diff --git a/.github/workflows/PG_test1.yml b/.github/workflows/PG_test1.yml deleted file mode 100644 index 86a9d7ca..00000000 --- a/.github/workflows/PG_test1.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: PostgreSQL Service Example -on: push - -env: - BUILD_VERSION: "2.6.1" - CONFIGURATION: "Release" - GA_USE_GITHUB_ENV: "true" - USE_MSSQL_DEFAULT_CONN_STRING: "FALSE" - USE_POSTGRES_DEFAULT_CONN_STRING: "FALSE" - SQLSERVER_SERVER: "localhost" - SQLSERVER_SA_PASS: ${{ secrets.MSSQL_SA_PWD }} - SQLSERVER_DATABASE_DS2: "AnalyticsMiddleTier_Testing_Ds2" - SQLSERVER_DATABASE_DS31: "AnalyticsMiddleTier_Testing_Ds31" - SQLSERVER_DATABASE_DS32: "AnalyticsMiddleTier_Testing_Ds32" - SQLSERVER_INTEGRATED_SECURITY: "false" - SQLSERVER_USER: ${{ secrets.MSSQL_USER }} - SQLSERVER_PASS: ${{ secrets.MSSQL_PWD }} - POSTGRES_HOST: "localhost" - POSTGRES_DATABASE: "edfi_ods_tests" - POSTGRES_PORT: "5432" - POSTGRES_USER: ${{ secrets.POSTGRESQL_USER }} - POSTGRES_PASS: ${{ secrets.POSTGRESQL_PWD }} - POSTGRES_POOLING: "false" - -jobs: - # Label of the runner job - runner-job: - # You must use a Linux environment when using service containers or container jobs - runs-on: ubuntu-latest - - # Service containers to run with `runner-job` - services: - # Label used to access the service container - postgres: - # Docker Hub image - image: postgres:11 - # Provide the password for postgres - env: - POSTGRES_PASSWORD: postgres - # Set health checks to wait until postgres has started - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps tcp port 5432 on service container to the host - - 5432:5432 - - steps: - - name: Start windows container for SQLServer 2017 Express - run: | - docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=${{ env.SQLSERVER_SA_PASS }}" -e "MSSQL_PID=Express" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest - - - - name: Check out repository code - uses: actions/checkout@v2 - - - name: Caching packages - uses: actions/cache@v2 - with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} - restore-keys: | - ${{ runner.os }}-nuget- - - - name: Building AMT - run: | - .\build.ps1 build -Configuration ${{ env.CONFIGURATION }} -Version ${{ env.BUILD_VERSION }} -BuildCounter ${{ github.run_number }} - shell: pwsh - - # - name: Unit Tests - # run: | - # .\build.ps1 unittest -Configuration ${{ env.CONFIGURATION }} - # shell: pwsh - - - name: Create Postgres DB - run: | - .\eng\CreateTestDbAndSchema.ps1 - shell: pwsh - env: - PGPASSWORD: postgres - - - name: Integration Tests - run: | - .\build.ps1 integrationtest -Configuration ${{ env.CONFIGURATION }} - shell: pwsh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd5fd706..7aa0e7b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,21 +13,23 @@ on: workflow_dispatch: env: - BUILD_VERSION: "2.6.1" + BUILD_VERSION: ${{ secrets.SEMANTIC_VERSION }} CONFIGURATION: "Release" GA_USE_GITHUB_ENV: "true" USE_MSSQL_DEFAULT_CONN_STRING: "FALSE" USE_POSTGRES_DEFAULT_CONN_STRING: "FALSE" SQLSERVER_SERVER: "localhost" - SQLSERVER_SA_PASS: ${{ secrets.MSSQL_SA_PWD }} + SQLSERVER_ADMIN_USER: "sa" + SQLSERVER_ADMIN_PASS: ${{ secrets.MSSQL_SA_PWD }} SQLSERVER_DATABASE_DS2: "AnalyticsMiddleTier_Testing_Ds2" SQLSERVER_DATABASE_DS31: "AnalyticsMiddleTier_Testing_Ds31" SQLSERVER_DATABASE_DS32: "AnalyticsMiddleTier_Testing_Ds32" + SQLSERVER_DATABASE_DS33: "AnalyticsMiddleTier_Testing_Ds33" SQLSERVER_INTEGRATED_SECURITY: "false" SQLSERVER_USER: ${{ secrets.MSSQL_USER }} SQLSERVER_PASS: ${{ secrets.MSSQL_PWD }} POSTGRES_HOST: "localhost" - POSTGRES_DATABASE: "edfi_ods_tests_ds32" + POSTGRES_DATABASE_DS32: "edfi_ods_tests_ds32" POSTGRES_DATABASE_DS33: "edfi_ods_tests_ds33" POSTGRES_PORT: "5432" POSTGRES_USER: ${{ secrets.POSTGRESQL_USER }} @@ -59,12 +61,13 @@ jobs: steps: - name: Start Ubuntu container for SQLServer 2017 Express run: | - docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=${{ env.SQLSERVER_SA_PASS }}" -e "MSSQL_PID=Express" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest + docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=${{ env.SQLSERVER_ADMIN_PASS }}" -e "MSSQL_PID=Express" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest + - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 - name: Caching packages - uses: actions/cache@v2 + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} @@ -78,18 +81,17 @@ jobs: - name: Create Postgres DB DS v3.2 run: | - .\eng\CreateTestDbAndSchema.ps1 -port ${{ env.POSTGRES_PORT }} -d ${{ env.POSTGRES_DATABASE }} + .\eng\CreateTestDbAndSchema.ps1 -port ${{ env.POSTGRES_PORT }} -d ${{ env.POSTGRES_DATABASE_DS32 }} -ds 3.2 shell: pwsh env: PGPASSWORD: ${{ env.POSTGRES_PASS }} - # TODO: Pass as parameter the path of the postgres version 3.3 script. - #- name: Create Postgres DB DS v3.3 - # run: | - # .\eng\CreateTestDbAndSchema.ps1 -port ${{ env.POSTGRES_PORT }} -d ${{ env.POSTGRES_DATABASE_DS33 }} - # shell: pwsh - # env: - # PGPASSWORD: {{ env.POSTGRESQL_PWD }} + - name: Create Postgres DB DS v3.3 + run: | + .\eng\CreateTestDbAndSchema.ps1 -port ${{ env.POSTGRES_PORT }} -d ${{ env.POSTGRES_DATABASE_DS33 }} -ds 3.3 + shell: pwsh + env: + PGPASSWORD: ${{ env.POSTGRES_PASS }} - name: Unit Tests run: | diff --git a/.github/workflows/create-pre-release.yml b/.github/workflows/create-pre-release.yml new file mode 100644 index 00000000..32aacb29 --- /dev/null +++ b/.github/workflows/create-pre-release.yml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: Apache-2.0 +# Licensed to the Ed-Fi Alliance under one or more agreements. +# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +# See the LICENSE and NOTICES files in the project root for more information. + +name: Create Release/Pre-Release + +on: + workflow_dispatch: + inputs: + releaseName: + description: 'Release Name' + required: true + default: '' + releaseDescription: + description: 'Release Description' + required: true + default: '' + createRelease: + description: 'Create Release' + required: true + default: 'false' + +env: + BUILD_VERSION: ${{ secrets.SEMANTIC_VERSION }} + CONFIGURATION: "Release" + PUBLISH_FOLDER: "./publish/" + PUBLISH_FDD_ZIP: "EdFi.AnalyticsMiddleTier-${{ secrets.SEMANTIC_VERSION }}.zip" + PUBLISH_SCD_ZIP: "EdFi.AnalyticsMiddleTier-win10.x64-${{ secrets.SEMANTIC_VERSION }}.zip" + +jobs: + AMT-Create-Release: + runs-on: Ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 + + - name: Caching packages + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- + + - name: Publish self-contained deployment + run: | + .\build.ps1 publish -SelfContained ${{ env.CONFIGURATION }} -Version ${{ env.BUILD_VERSION }} -BuildCounter ${{ github.run_number }} + shell: pwsh + + - name: Publish framework-dependent deployment + run: | + .\build.ps1 publish -Configuration ${{ env.CONFIGURATION }} -Version ${{ env.BUILD_VERSION }} -BuildCounter ${{ github.run_number }} + shell: pwsh + + - name: Create Zip file + run: | + .\build.ps1 CreateZip -Configuration ${{ env.CONFIGURATION }} -Version ${{ env.BUILD_VERSION }} -BuildCounter ${{ github.run_number }} + shell: pwsh + + - name: Create pre-release + id: create_pre_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + RELEASE_TAG: ${{ contains( github.event.inputs.createRelease, 'true') && env.BUILD_VERSION || format('{0}-pre-{1}', env.BUILD_VERSION, github.run_id) }} + with: + tag_name: ${{ env.RELEASE_TAG }} + release_name: ${{ env.BUILD_VERSION }} ${{ github.event.inputs.releaseName }} + body: | + ${{ github.event.inputs.releaseDescription }} + draft: false + prerelease: ${{ !contains( github.event.inputs.createRelease, 'true') }} + + - name: Upload publish zip + id: upload-publish-zip-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_pre_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ${{ env.PUBLISH_FOLDER }}${{ env.PUBLISH_FDD_ZIP }} + asset_name: ${{ env.PUBLISH_FDD_ZIP }} + asset_content_type: application/zip + + - name: Upload self-contained publish zip + id: upload-publish-self-contained-zip-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_pre_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ${{ env.PUBLISH_FOLDER }}${{ env.PUBLISH_SCD_ZIP }} + asset_name: ${{ env.PUBLISH_SCD_ZIP }} + asset_content_type: application/zip \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index 63cce936..e89e9f93 100644 --- a/build.ps1 +++ b/build.ps1 @@ -51,7 +51,7 @@ param( # Assembly and package version number, defaults 2.6.1 [string] - $Version = "2.6.1", + $Version = "2.7.1", # Build counter from the automation tool. [string] @@ -74,8 +74,8 @@ $publishFddDirectoryName = "EdFi.AnalyticsMiddleTier" $publishScdDirectoryName = "EdFi.AnalyticsMiddleTier-win10.x64" $publishFddOutputDirectory = "$publishOutputPath/$publishFddDirectoryName" $publishScdOutputDirectory = "$publishOutputPath/$publishScdDirectoryName" -$publishFddZipFile = "$publishFddDirectoryName.zip" -$publishScdZipFile = "$publishScdDirectoryName.zip" +$publishFddZipFile = "$publishFddDirectoryName-$Version.zip" +$publishScdZipFile = "$publishScdDirectoryName-$Version.zip" $testProjectName = "EdFi.AnalyticsMiddleTier.Tests" function Clean { @@ -125,19 +125,6 @@ function Compile { Invoke-Execute { dotnet --info dotnet build $solutionRoot -c $Configuration --nologo - - # Copy .env file if it exists - if (Test-Path -Path $solutionRoot/$testProjectName/.env -PathType leaf) { - $doc = New-Object System.Xml.XmlDocument - $projectFile = Get-Item $solutionRoot/$testProjectName/$testProjectName'.csproj' - $doc.Load($projectFile) - $TargetFrameworkNode = $doc.SelectSingleNode("Project//PropertyGroup//TargetFramework") - - if ($TargetFrameworkNode) { - $TargetFramework = $TargetFrameworkNode.InnerText - Copy-Item $solutionRoot/$testProjectName/.env -Destination $solutionRoot/$testProjectName/bin/$Configuration/$TargetFramework/ -Force - } - } } } @@ -166,13 +153,13 @@ function CreateZip { if (Test-Path $fddPackDestination) { Remove-Item $fddPackDestination } - Compress-Archive -Path $publishFddOutputDirectory -DestinationPath $fddPackDestination + Compress-Archive -Path $publishFddOutputDirectory/* -DestinationPath $fddPackDestination } if(Test-Path $publishScdOutputDirectory){ if (Test-Path $scdPackDestination) { Remove-Item $scdPackDestination } - Compress-Archive -Path $publishScdOutputDirectory -DestinationPath $scdPackDestination + Compress-Archive -Path $publishScdOutputDirectory/* -DestinationPath $scdPackDestination } } } diff --git a/client.js b/client.js deleted file mode 100644 index d83bc595..00000000 --- a/client.js +++ /dev/null @@ -1,29 +0,0 @@ -const { Client } = require('pg'); - -const pgclient = new Client({ - host: process.env.POSTGRES_HOST, - port: process.env.POSTGRES_PORT, - user: 'postgres', - password: 'postgres', - database: 'postgres' -}); - -pgclient.connect(); - -const table = 'CREATE TABLE student(id SERIAL PRIMARY KEY, firstName VARCHAR(40) NOT NULL, lastName VARCHAR(40) NOT NULL, age INT, address VARCHAR(80), email VARCHAR(40))' -const text = 'INSERT INTO student(firstname, lastname, age, address, email) VALUES($1, $2, $3, $4, $5) RETURNING *' -const values = ['Mona the', 'Octocat', 9, '88 Colin P Kelly Jr St, San Francisco, CA 94107, United States', 'octocat@github.com'] - -pgclient.query(table, (err, res) => { - if (err) throw err -}); - -pgclient.query(text, values, (err, res) => { - if (err) throw err -}); - -pgclient.query('SELECT * FROM student', (err, res) => { - if (err) throw err - console.log(err, res.rows) // Print the data in student table - pgclient.end() -}); \ No newline at end of file diff --git a/docker/.dockerignore b/docker/.dockerignore new file mode 100644 index 00000000..d4ea3468 --- /dev/null +++ b/docker/.dockerignore @@ -0,0 +1,7 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * Licensed to the Ed-Fi Alliance under one or more agreements. + * The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. + * See the LICENSE and NOTICES files in the project root for more information. + */ + diff --git a/docker/.env.example b/docker/.env.example new file mode 100644 index 00000000..c5d7b2da --- /dev/null +++ b/docker/.env.example @@ -0,0 +1,5 @@ +MSSQL_PID = Express +SQLSERVER_ADMIN_PASS = Your_Str0ng_P4ssword +POSTGRES_USER = postgres +POSTGRES_PASSWORD = Your_Str0ng_P4ssword +POSTGRES_DB = postgres \ No newline at end of file diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 00000000..49890b0e --- /dev/null +++ b/docker/README.md @@ -0,0 +1,46 @@ +# Ed-Fi-Analytics-Middle-Tier docker local configuration + +This docker container satisfies the user story: +> As an AMT developer, I want to run integration tests using PostgreSQL and SQL +> Server in Docker containers on my localhost. + +- Copy .env.example file and rename as .env to be considered by docker compose +- If you need to configure specific databases configuration, you can go to .env + file to change SQL engines variables. +- To start the containers run in terminal with administrative priviledges: +```bash + docker compose up -d + ``` +Docker Compose will start the container service in your computer. +Go to EdFi\eng and run in terminal +```bash +.\CreateTestDbAndSchema.ps1 +``` +This will create the databases and schemas used by postgres to perform the test +cases running. +Be sure you run this script twice, one for Ods3.2 and one for Ods3.3 DB and schemas. + +You can go to \EdFi\Ed-Fi-Analytics-Middle-Tier\src\EdFi.AnalyticsMiddleTier.Tests +and execute manually EdFi.Ods32.Minimal.Template.sql and EdFi.Ods33.Minimal.Template.sql +using PGAdmin. + +- Go to EdFi\Ed-Fi-Analytics-Middle-Tier\src\EdFi.AnalyticsMiddleTier.Tests +- Copy .env.example.docker file and rename as .env to be considered by the test project +- You can change the connection parameters in this file, ensure they match the + docker container's connection configuration +- Run test project + + +## Legal Information + +Copyright (c) 2022 Ed-Fi Alliance, LLC and contributors. + +Licensed under the [Apache License, Version 2.0](LICENSE) (the "License"). + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +See [NOTICES](NOTICES.md) for additional copyright and license notifications. diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 00000000..1d27e550 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,29 @@ + + # SPDX-License-Identifier: Apache-2.0 + # Licensed to the Ed-Fi Alliance under one or more agreements. + # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. + # See the LICENSE and NOTICES files in the project root for more information. + + +version: "3" +services: + mssql-service: + container_name: amt-mssql + image: mcr.microsoft.com/mssql/server:2017-GA-ubuntu + restart: always + ports: + - 1433:1433 + environment: + ACCEPT_EULA: "Y" + MSSQL_PID: "${MSSQL_PID}" + SA_PASSWORD: "${SQLSERVER_ADMIN_PASS}" + pg-service: + container_name: amt-pg + image: postgres:11-alpine + ports: + - 5432:5432 + environment: + POSTGRES_USER: "${POSTGRES_USER}" + POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" + POSTGRES_DB: "${POSTGRES_DB}" + PG_PORT: 5432 diff --git a/eng/CreateTestDbAndSchema.ps1 b/eng/CreateTestDbAndSchema.ps1 index 45c4c18c..1bd0c9c9 100644 --- a/eng/CreateTestDbAndSchema.ps1 +++ b/eng/CreateTestDbAndSchema.ps1 @@ -27,6 +27,9 @@ .PARAMETER script Specifies the script path for creating the database objects. + .PARAMETER datastandard + Specifies the datastandard version for the database. + .INPUTS None. You cannot pipe objects to CreateTestDbAndSchema.ps1. @@ -67,8 +70,21 @@ param ( [string][Alias('h')]$pghost="localhost", [string][Alias('u')]$user="postgres", [string][Alias('p')]$port="5432", - [string][Alias('d')]$database="edfi_ods_tests", - [string][Alias('s')]$script="$PSScriptRoot/../src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods.Minimal.Template.sql") + [string][Alias('ds')] + [ValidateSet("3.2", "3.3")] + $datastandard, + [string][Alias('d')]$database="edfi_ods_tests_ds32", + [string][Alias('s')]$script="$PSScriptRoot/../src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods32.Minimal.Template.sql") + +if($datastandard -eq "3.2"){ + $script="$PSScriptRoot/../src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods32.Minimal.Template.sql" + $database="edfi_ods_tests_ds32" +} +elseif($datastandard -eq "3.3"){ + $script="$PSScriptRoot/../src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods33.Minimal.Template.sql" + $database="edfi_ods_tests_ds33" +} + $dropDatabase = "DROP DATABASE IF EXISTS" +" " + $database +";" $createDatabase = "CREATE DATABASE" +" " + $database +";" diff --git a/samples/AMT-DataMart.sql b/samples/AMT-DataMart.sql index 9bc71e52..66bdf690 100644 --- a/samples/AMT-DataMart.sql +++ b/samples/AMT-DataMart.sql @@ -14,7 +14,7 @@ periodically to refresh the data. :setvar DataMartDB EdFi_AMT_DataMart -:setvar OdsDb EdFi_Glendale +:setvar OdsDb EdFi_Ods_Glendale_v510 USE [$(DataMartDB)] @@ -30,6 +30,14 @@ END ---------------------------- PRINT 'Creating staging tables...' +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_AcademicTimePeriodDim] +FROM [$(OdsDb)].[analytics].[AcademicTimePeriodDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_ClassPeriodDim] +FROM [$(OdsDb)].[analytics].[ClassPeriodDim] + SELECT * INTO [$(DataMartDB)].[analytics].[stg_ContactPersonDim] FROM [$(OdsDb)].[analytics].[ContactPersonDim] @@ -38,10 +46,18 @@ SELECT * INTO [$(DataMartDB)].[analytics].[stg_DateDim] FROM [$(OdsDb)].[analytics].[DateDim] +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_DemographicDim] +FROM [$(OdsDb)].[analytics].[DemographicDim] + SELECT * INTO [$(DataMartDB)].[analytics].[stg_GradingPeriodDim] FROM [$(OdsDb)].[analytics].[GradingPeriodDim] +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_LocalEducationAgencyDim] +FROM [$(OdsDb)].[analytics].[LocalEducationAgencyDim] + SELECT * INTO [$(DataMartDB)].[analytics].[stg_MostRecentGradingPeriod] FROM [$(OdsDb)].[analytics].[MostRecentGradingPeriod] @@ -51,28 +67,58 @@ INTO [$(DataMartDB)].[analytics].[stg_SchoolDim] FROM [$(OdsDb)].[analytics].[SchoolDim] SELECT * -INTO [$(DataMartDB)].[analytics].[stg_SchoolNetworkAssociationDim] -FROM [$(OdsDb)].[analytics].[SchoolNetworkAssociationDim] +INTO [$(DataMartDB)].[analytics].[stg_SectionDim] +FROM [$(OdsDb)].[analytics].[SectionDim] SELECT * -INTO [$(DataMartDB)].[analytics].[stg_rls_StudentDataAuthorization] -FROM [$(OdsDb)].[analytics].[rls_StudentDataAuthorization] +INTO [$(DataMartDB)].[analytics].[stg_StaffSectionDim] +FROM [$(OdsDb)].[analytics].[StaffSectionDim] SELECT * -INTO [$(DataMartDB)].[analytics].[stg_StudentDim] -FROM [$(OdsDb)].[analytics].[StudentDim] +INTO [$(DataMartDB)].[analytics].[stg_StudentLocalEducationAgencyDemographicsBridge] +FROM [$(OdsDb)].[analytics].[StudentLocalEducationAgencyDemographicsBridge] SELECT * -INTO [$(DataMartDB)].[analytics].[stg_ews_StudentEarlyWarningFact] -FROM [$(OdsDb)].[analytics].[ews_StudentEarlyWarningFact] +INTO [$(DataMartDB)].[analytics].[stg_StudentLocalEducationAgencyDim] +FROM [$(OdsDb)].[analytics].[StudentLocalEducationAgencyDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_StudentProgramDim] +FROM [$(OdsDb)].[analytics].[StudentProgramDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_StudentSchoolDemographicsBridge] +FROM [$(OdsDb)].[analytics].[StudentSchoolDemographicsBridge] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_StudentSchoolDim] +FROM [$(OdsDb)].[analytics].[StudentSchoolDim] SELECT * INTO [$(DataMartDB)].[analytics].[stg_StudentSectionDim] FROM [$(OdsDb)].[analytics].[StudentSectionDim] +-- ASMT Collection. + SELECT * -INTO [$(DataMartDB)].[analytics].[stg_ews_StudentSectionGradeFact] -FROM [$(OdsDb)].[analytics].[ews_StudentSectionGradeFact] +INTO [$(DataMartDB)].[analytics].[stg_asmt_AssessmentFact] +FROM [$(OdsDb)].[analytics].[asmt_AssessmentFact] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_asmt_StudentAssessmentFact] +FROM [$(OdsDb)].[analytics].[asmt_StudentAssessmentFact] + +-- CHRAB Collection + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_chrab_ChronicAbsenteeismAttendanceFact] +FROM [$(OdsDb)].[analytics].[chrab_ChronicAbsenteeismAttendanceFact] + +-- RLS Collection. + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_rls_StudentDataAuthorization] +FROM [$(OdsDb)].[analytics].[rls_StudentDataAuthorization] SELECT * INTO [$(DataMartDB)].[analytics].[stg_rls_UserAuthorization] @@ -86,27 +132,84 @@ SELECT * INTO [$(DataMartDB)].[analytics].[stg_rls_UserStudentDataAuthorization] FROM [$(OdsDb)].[analytics].[rls_UserStudentDataAuthorization] +-- EWS Collection. + SELECT * -INTO [$(DataMartDB)].[analytics].[stg_LocalEducationAgencyDim] -FROM [$(OdsDb)].[analytics].[LocalEducationAgencyDim] +INTO [$(DataMartDB)].[analytics].[stg_ews_StudentEarlyWarningFact] +FROM [$(OdsDb)].[analytics].[ews_StudentEarlyWarningFact] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_ews_StudentSectionGradeFact] +FROM [$(OdsDb)].[analytics].[ews_StudentSectionGradeFact] + +-- Equity Collection. + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_equity_StudentSchoolFoodServiceProgramDim] +FROM [$(OdsDb)].[analytics].[equity_StudentSchoolFoodServiceProgramDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_equity_FeederSchoolDim] +FROM [$(OdsDb)].[analytics].[equity_FeederSchoolDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_equity_StudentDisciplineActionDim] +FROM [$(OdsDb)].[analytics].[equity_StudentDisciplineActionDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_equity_StudentProgramCohortDim] +FROM [$(OdsDb)].[analytics].[equity_StudentProgramCohortDim] + +SELECT * +INTO [$(DataMartDB)].[analytics].[stg_equity_StudentHistoryDim] +FROM [$(OdsDb)].[analytics].[equity_StudentHistoryDim] GO + ---------------------------- -- Add Indexes to Staging Tables ---------------------------- PRINT 'Adding indexes to staging tables...' +CREATE UNIQUE CLUSTERED INDEX [UCX_AcademicTimePeriodDim] +ON [analytics].[stg_AcademicTimePeriodDim] ( + [AcademicTimePeriodKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_AcademicTimePeriodDim_GradingPeriodKey] +ON [analytics].[stg_AcademicTimePeriodDim] ( + [GradingPeriodKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_ClassPeriodDim] +ON [analytics].[stg_ClassPeriodDim] ( + [ClassPeriodKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ClassPeriodDim_SectionKey] +ON [analytics].[stg_ClassPeriodDim] ( + [SectionKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_ContactPersonDim] +ON [analytics].[stg_ContactPersonDim] ( + [UniqueKey] +) ON [Primary] + CREATE NONCLUSTERED INDEX [IX_ContactPersonDim_StudentKey] ON [analytics].[stg_ContactPersonDim] ( [StudentKey] ) ON [Primary] - CREATE UNIQUE CLUSTERED INDEX [UCX_DateDim] ON [analytics].[stg_DateDim] ( [DateKey] ) ON [Primary] +CREATE UNIQUE CLUSTERED INDEX [UCX_DemographicDim] +ON [analytics].[stg_DemographicDim] ( + [DemographicKey] +) ON [Primary] CREATE UNIQUE CLUSTERED INDEX [UCX_GradingPeriodDim] ON [analytics].[stg_GradingPeriodDim] ( @@ -118,50 +221,130 @@ ON [analytics].[stg_GradingPeriodDim] ( [SchoolKey] ) ON [Primary] +CREATE UNIQUE CLUSTERED INDEX [UCX_LocalEducationAgencyDim] +ON [analytics].[stg_LocalEducationAgencyDim] ( + [LocalEducationAgencyKey] +) ON [Primary] + CREATE UNIQUE CLUSTERED INDEX [UCX_MostRecentGradingPeriod] ON [analytics].[stg_MostRecentGradingPeriod] ( [SchoolKey] ) ON [Primary] - CREATE UNIQUE CLUSTERED INDEX [UCX_SchoolDim] ON [analytics].[stg_SchoolDim] ( [SchoolKey] ) ON [Primary] -CREATE NONCLUSTERED INDEX [IX_SchoolNetworkAssociationDim_SchoolKey] -ON [analytics].[stg_SchoolNetworkAssociationDim] ( +CREATE NONCLUSTERED INDEX [IX_SchoolDim_LocalEducationAgencyKey] +ON [analytics].[stg_SchoolDim] ( + [LocalEducationAgencyKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_SchoolDim_StateEducationAgencyKey] +ON [analytics].[stg_SchoolDim] ( + [StateEducationAgencyKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_SectionDim] +ON [analytics].[stg_SectionDim] ( + [SectionKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_SectionDim_SchoolKey] +ON [analytics].[stg_SectionDim] ( [SchoolKey] ) ON [Primary] -CREATE UNIQUE CLUSTERED INDEX [UCX_rls_StudentDataAuthorization] -ON [analytics].[stg_rls_StudentDataAuthorization] ( - [StudentKey], - [SchoolKey], - [BeginDate], - [EndDate] +CREATE UNIQUE CLUSTERED INDEX [UCX_StaffSectionDim] +ON [analytics].[stg_StaffSectionDim] ( + [StaffSectionKey] ) ON [Primary] -CREATE UNIQUE CLUSTERED INDEX [UCX_StudentDim] -ON [analytics].[stg_StudentDim] ( - [StudentKey], +CREATE NONCLUSTERED INDEX [IX_StaffSectionDim_SchoolKey] +ON [analytics].[stg_StaffSectionDim] ( [SchoolKey] ) ON [Primary] +CREATE NONCLUSTERED INDEX [IX_StaffSectionDim_SectionKey] +ON [analytics].[stg_StaffSectionDim] ( + [SectionKey] +) ON [Primary] -CREATE UNIQUE CLUSTERED INDEX [UCX_ews_StudentEarlyWarningFact] -ON [analytics].[stg_ews_StudentEarlyWarningFact] ( - [StudentKey], - [SchoolKey], - [DateKey] +CREATE NONCLUSTERED INDEX [IX_StudentLocalEducationAgencyDemographicsBridge_StudentSchoolDemographicBridgeKey] +ON [analytics].[stg_StudentLocalEducationAgencyDemographicsBridge] ( + [StudentSchoolDemographicBridgeKey] ) ON [Primary] +CREATE UNIQUE CLUSTERED INDEX [UCX_StudentLocalEducationAgencyDim] +ON [analytics].[stg_StudentLocalEducationAgencyDim] ( + [StudentLocalEducationAgencyKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentLocalEducationAgencyDim_StudentKey] +ON [analytics].[stg_StudentLocalEducationAgencyDim] ( + [StudentKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_StudentProgramDim] +ON [analytics].[stg_StudentProgramDim] ( + [StudentSchoolProgramKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentProgramDim_StudentKey] +ON [analytics].[stg_StudentProgramDim] ( + [StudentKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentProgramDim_SchoolKey] +ON [analytics].[stg_StudentProgramDim] ( + [SchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentProgramDim_StudentSchoolKey] +ON [analytics].[stg_StudentProgramDim] ( + [StudentSchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentSchoolDemographicsBridge_StudentSchoolDemographicBridgeKey] +ON [analytics].[stg_StudentSchoolDemographicsBridge] ( + [StudentSchoolDemographicBridgeKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_StudentSchoolDim] +ON [analytics].[stg_StudentSchoolDim] ( + [StudentSchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentSchoolDim_StudentKey] +ON [analytics].[stg_StudentSchoolDim] ( + [StudentKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentSchoolDim_SchoolKey] +ON [analytics].[stg_StudentSchoolDim] ( + [SchoolKey] +) ON [Primary] CREATE UNIQUE CLUSTERED INDEX [UCX_StudentSectionDim] ON [analytics].[stg_StudentSectionDim] ( [StudentSectionKey] ) ON [Primary] +CREATE NONCLUSTERED INDEX [IX_StudentSectionDim_SchoolKey] +ON [analytics].[stg_StudentSectionDim] ( + [SchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentSectionDim_StudentKey] +ON [analytics].[stg_StudentSectionDim] ( + [StudentKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_StudentSectionDim_SectionKey] +ON [analytics].[stg_StudentSectionDim] ( + [SectionKey] +) ON [Primary] CREATE INDEX [IX_StudentSectionDim_StudentSectionKey] ON [analytics].[stg_StudentSectionDim] @@ -172,38 +355,62 @@ CREATE INDEX [IX_StudentSectionDim_StudentSectionKey] ON [SchoolKey] ) ON [Primary] +-- ASMT Collection -CREATE NONCLUSTERED INDEX [IX_StudentSectionDim_SchoolKey] -ON [analytics].[stg_StudentSectionDim] ( - [SchoolKey] +CREATE UNIQUE CLUSTERED INDEX [UCX_asmt_AssessmentFact] +ON [analytics].[stg_asmt_AssessmentFact] ( + [AssessmentFactKey] ) ON [Primary] -CREATE NONCLUSTERED INDEX [IX_StudentSectionDim_SectionKey] -ON [analytics].[stg_StudentSectionDim] ( - [SectionKey] +CREATE NONCLUSTERED INDEX [IX_asmt_AssessmentFact_AssessmentKey] +ON [analytics].[stg_asmt_AssessmentFact] ( + [AssessmentKey] ) ON [Primary] -CREATE UNIQUE CLUSTERED INDEX [UCX_ews_StudentSectionGradeFact] -ON [analytics].[stg_ews_StudentSectionGradeFact] ( - [StudentSectionKey], - [GradingPeriodKey] +CREATE UNIQUE CLUSTERED INDEX [UCX_asmt_StudentAssessmentFact] +ON [analytics].[stg_asmt_StudentAssessmentFact] ( + [StudentAssessmentFactKey] ) ON [Primary] -CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_StudentKey] -ON [analytics].[stg_ews_StudentSectionGradeFact] ( - [StudentKey] +CREATE NONCLUSTERED INDEX [IX_asmt_StudentAssessmentFact_StudentAssessmentKey] +ON [analytics].[stg_asmt_StudentAssessmentFact] ( + [StudentAssessmentKey] ) ON [Primary] -CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_SchoolKey] -ON [analytics].[stg_ews_StudentSectionGradeFact] ( - [SchoolKey] +CREATE NONCLUSTERED INDEX [IX_asmt_StudentAssessmentFact_AssessmentKey] +ON [analytics].[stg_asmt_StudentAssessmentFact] ( + [AssessmentKey] ) ON [Primary] -CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_SectionKey] -ON [analytics].[stg_ews_StudentSectionGradeFact] ( - [SectionKey] + +-- CHRAB Collection + +CREATE UNIQUE CLUSTERED INDEX [UCX_chrab_ChronicAbsenteeismAttendanceFact] +ON [analytics].[stg_chrab_ChronicAbsenteeismAttendanceFact] ( + [StudentSchoolKey], + [DateKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_chrab_ChronicAbsenteeismAttendanceFact_StudentKey] +ON [analytics].[stg_chrab_ChronicAbsenteeismAttendanceFact] ( + [StudentKey] ) ON [Primary] +CREATE NONCLUSTERED INDEX [IX_chrab_ChronicAbsenteeismAttendanceFact_SchoolKey] +ON [analytics].[stg_chrab_ChronicAbsenteeismAttendanceFact] ( + [SchoolKey] +) ON [Primary] + +-- RLS Collection + +CREATE UNIQUE CLUSTERED INDEX [UCX_rls_StudentDataAuthorization] +ON [analytics].[stg_rls_StudentDataAuthorization] ( + [StudentKey], + [SchoolKey], + [BeginDate], + [EndDate], + [SectionId] +) ON [Primary] CREATE UNIQUE CLUSTERED INDEX [UCX_rls_UserAuthorization] ON [analytics].[stg_rls_UserAuthorization] ( @@ -219,13 +426,115 @@ ON [analytics].[stg_rls_UserDim] ( [UserKey] ) ON [Primary] - CREATE UNIQUE CLUSTERED INDEX [UCX_rls_UserStudentDataAuthorization] ON [analytics].[stg_rls_UserStudentDataAuthorization] ( [UserKey], [StudentKey] ) ON [Primary] +-- EWS Collection + +CREATE UNIQUE CLUSTERED INDEX [UCX_ews_StudentEarlyWarningFact] +ON [analytics].[stg_ews_StudentEarlyWarningFact] ( + [StudentKey], + [SchoolKey], + [DateKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ews_StudentEarlyWarningFact_SchoolKey] +ON [analytics].[stg_ews_StudentEarlyWarningFact] ( + [SchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ews_StudentEarlyWarningFact_DateKey] +ON [analytics].[stg_ews_StudentEarlyWarningFact] ( + [DateKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_ews_StudentSectionGradeFact] +ON [analytics].[stg_ews_StudentSectionGradeFact] ( + [StudentSectionKey], + [GradingPeriodKey], + [GradeType] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_StudentKey] +ON [analytics].[stg_ews_StudentSectionGradeFact] ( + [StudentKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_SchoolKey] +ON [analytics].[stg_ews_StudentSectionGradeFact] ( + [SchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_SectionKey] +ON [analytics].[stg_ews_StudentSectionGradeFact] ( + [SectionKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_ews_StudentSectionGradeFact_GradingPeriodKey] +ON [analytics].[stg_ews_StudentSectionGradeFact] ( + [GradingPeriodKey] +) ON [Primary] + +-- Equity Collection + +CREATE UNIQUE CLUSTERED INDEX [UCX_equity_FeederSchoolDim] +ON [analytics].[stg_equity_FeederSchoolDim] ( + [FeederSchoolUniqueKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_equity_FeederSchoolDim_SchoolKey] +ON [analytics].[stg_equity_FeederSchoolDim] ( + [SchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_equity_FeederSchoolDim_FeederSchoolKey] +ON [analytics].[stg_equity_FeederSchoolDim] ( + [FeederSchoolKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_equity_StudentDisciplineActionDim] +ON [analytics].[stg_equity_StudentDisciplineActionDim] ( + [StudentDisciplineActionKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_equity_StudentDisciplineActionDim_StudentSchoolKey] +ON [analytics].[stg_equity_StudentDisciplineActionDim] ( + [StudentSchoolKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_equity_StudentDisciplineActionDim_DisciplineDateKey] +ON [analytics].[stg_equity_StudentDisciplineActionDim] ( + [DisciplineDateKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_equity_StudentSchoolFoodServiceProgramDim] +ON [analytics].[stg_equity_StudentSchoolFoodServiceProgramDim] ( + [StudentSchoolFoodServiceProgramKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_equity_StudentSchoolFoodServiceProgramDim_StudentSchoolProgramKey] +ON [analytics].[stg_equity_StudentSchoolFoodServiceProgramDim] ( + [StudentSchoolProgramKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_equity_StudentProgramCohortDim] +ON [analytics].[stg_equity_StudentProgramCohortDim] ( + [StudentProgramCohortKey] +) ON [Primary] + +CREATE NONCLUSTERED INDEX [IX_equity_StudentProgramCohortDim_StudentSchoolProgramKey] +ON [analytics].[stg_equity_StudentProgramCohortDim] ( + [StudentSchoolProgramKey] +) ON [Primary] + +CREATE UNIQUE CLUSTERED INDEX [UCX_equity_StudentHistoryDim] +ON [analytics].[stg_equity_StudentHistoryDim] ( + [StudentSchoolKey] +) ON [Primary] + ---------------------------- -- Drop real tables so they can be replaced by the staging ones -- (Dropping and then renaming staging tables is much faster @@ -339,6 +648,425 @@ BEGIN END +---------------------------- +-- Add school year column to each table. +---------------------------- + +ALTER TABLE [$(DataMartDB)].[analytics].[AcademicTimePeriodDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[ClassPeriodDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[ContactPersonDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[DateDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[DemographicDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[GradingPeriodDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[LocalEducationAgencyDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[MostRecentGradingPeriod] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[SchoolDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[SectionDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StaffSectionDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDemographicsBridge] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StudentProgramDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StudentSchoolDemographicsBridge] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StudentSchoolDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[StudentSectionDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[asmt_AssessmentFact] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[asmt_StudentAssessmentFact] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[chrab_ChronicAbsenteeismAttendanceFact] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[rls_StudentDataAuthorization] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[rls_UserAuthorization] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[rls_UserDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[rls_UserStudentDataAuthorization] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[ews_StudentEarlyWarningFact] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[ews_StudentSectionGradeFact] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[equity_StudentSchoolFoodServiceProgramDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[equity_FeederSchoolDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[equity_StudentDisciplineActionDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[equity_StudentProgramCohortDim] +ADD SchoolYearSource SMALLINT + +ALTER TABLE [$(DataMartDB)].[analytics].[equity_StudentHistoryDim] +ADD SchoolYearSource SMALLINT + +---------------------------- +-- Set school year value. +---------------------------- +DECLARE @SchoolYear SMALLINT; +SET @SchoolYear = (select SchoolYear from [$(OdsDb)].[edfi].[SchoolYearType] where CurrentSchoolYear = 1); + +UPDATE [$(DataMartDB)].[analytics].[AcademicTimePeriodDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ClassPeriodDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ContactPersonDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[DateDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[DemographicDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[GradingPeriodDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[LocalEducationAgencyDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[MostRecentGradingPeriod] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[SchoolDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[SectionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StaffSectionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDemographicsBridge] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentProgramDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentSchoolDemographicsBridge] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentSchoolDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentSectionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[asmt_AssessmentFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[asmt_StudentAssessmentFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[chrab_ChronicAbsenteeismAttendanceFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_StudentDataAuthorization] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_UserAuthorization] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_UserDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_UserStudentDataAuthorization] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ews_StudentEarlyWarningFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ews_StudentSectionGradeFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentSchoolFoodServiceProgramDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_FeederSchoolDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentDisciplineActionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentProgramCohortDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentHistoryDim] +SET SchoolYearSource = @SchoolYear; + + +----------------------------------------------------------------------------------------- + +-- This script contains a final section that is commented out. +-- Uncomment it when you need to combine the data from 2 different Ods sources. +-- Additionally you have to set the SecondOdsDb variable below +/* +:setvar SecondOdsDb EdFi_Ods_Northridge_v510 + +-- Second ODS +USE [$(DataMartDB)] +GO + +---------------------------- +-- Populate Tables from Second Ods +---------------------------- + +INSERT INTO [$(DataMartDB)].[analytics].[AcademicTimePeriodDim] ([AcademicTimePeriodKey],[SchoolYear],[SchoolYearName],[IsCurrentSchoolYear],[SchoolKey],[SessionKey],[SessionName],[TermName],[GradingPeriodKey],[GradingPeriodName],[LastModifiedDate]) +SELECT [AcademicTimePeriodKey],[SchoolYear],[SchoolYearName],[IsCurrentSchoolYear],[SchoolKey],[SessionKey],[SessionName],[TermName],[GradingPeriodKey],[GradingPeriodName],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[AcademicTimePeriodDim] + +INSERT INTO [$(DataMartDB)].[analytics].[ClassPeriodDim] ([ClassPeriodKey],[SectionKey],[ClassPeriodName],[LocalCourseCode],[SchoolId],[SchoolYear],[SectionIdentifier],[SessionName]) +SELECT [ClassPeriodKey],[SectionKey],[ClassPeriodName],[LocalCourseCode],[SchoolId],[SchoolYear],[SectionIdentifier],[SessionName] FROM [$(SecondOdsDb)].[analytics].[ClassPeriodDim] + +INSERT INTO [$(DataMartDB)].[analytics].[ContactPersonDim] ([UniqueKey],[ContactPersonKey],[StudentKey],[ContactFirstName],[ContactLastName],[RelationshipToStudent],[ContactHomeAddress],[ContactPhysicalAddress],[ContactMailingAddress],[ContactWorkAddress],[ContactTemporaryAddress],[HomePhoneNumber],[MobilePhoneNumber],[WorkPhoneNumber],[PrimaryEmailAddress],[PersonalEmailAddress],[WorkEmailAddress],[IsPrimaryContact],[StudentLivesWith],[IsEmergencyContact],[ContactPriority],[ContactRestrictions],[LastModifiedDate],[PostalCode]) +SELECT [UniqueKey],[ContactPersonKey],[StudentKey],[ContactFirstName],[ContactLastName],[RelationshipToStudent],[ContactHomeAddress],[ContactPhysicalAddress],[ContactMailingAddress],[ContactWorkAddress],[ContactTemporaryAddress],[HomePhoneNumber],[MobilePhoneNumber],[WorkPhoneNumber],[PrimaryEmailAddress],[PersonalEmailAddress],[WorkEmailAddress],[IsPrimaryContact],[StudentLivesWith],[IsEmergencyContact],[ContactPriority],[ContactRestrictions],[LastModifiedDate],[PostalCode] FROM [$(SecondOdsDb)].[analytics].[ContactPersonDim] + +INSERT INTO [$(DataMartDB)].[analytics].[DateDim] ([DateKey],[Date],[Day],[Month],[MonthName],[CalendarQuarter],[CalendarQuarterName],[CalendarYear],[SchoolYear]) +SELECT [DateKey],[Date],[Day],[Month],[MonthName],[CalendarQuarter],[CalendarQuarterName],[CalendarYear],[SchoolYear] FROM [$(SecondOdsDb)].[analytics].[DateDim] + +INSERT INTO [$(DataMartDB)].[analytics].[DemographicDim] ([DemographicKey],[DemographicParentKey],[DemographicLabel]) +SELECT [DemographicKey],[DemographicParentKey],[DemographicLabel] FROM [$(SecondOdsDb)].[analytics].[DemographicDim] + +INSERT INTO [$(DataMartDB)].[analytics].[GradingPeriodDim] ([GradingPeriodKey],[GradingPeriodBeginDateKey],[GradingPeriodEndDateKey],[GradingPeriodDescription],[TotalInstructionalDays],[PeriodSequence],[SchoolKey],[SchoolYear],[LastModifiedDate]) +SELECT [GradingPeriodKey],[GradingPeriodBeginDateKey],[GradingPeriodEndDateKey],[GradingPeriodDescription],[TotalInstructionalDays],[PeriodSequence],[SchoolKey],[SchoolYear],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[GradingPeriodDim] + +INSERT INTO [$(DataMartDB)].[analytics].[LocalEducationAgencyDim] ([LocalEducationAgencyKey],[LocalEducationAgencyName],[LocalEducationAgencyType],[LocalEducationAgencyParentLocalEducationAgencyKey],[LocalEducationAgencyStateEducationAgencyName],[LocalEducationAgencyStateEducationAgencyKey],[LocalEducationAgencyServiceCenterName],[LocalEducationAgencyServiceCenterKey],[LocalEducationAgencyCharterStatus],[LastModifiedDate]) +SELECT [LocalEducationAgencyKey],[LocalEducationAgencyName],[LocalEducationAgencyType],[LocalEducationAgencyParentLocalEducationAgencyKey],[LocalEducationAgencyStateEducationAgencyName],[LocalEducationAgencyStateEducationAgencyKey],[LocalEducationAgencyServiceCenterName],[LocalEducationAgencyServiceCenterKey],[LocalEducationAgencyCharterStatus],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[LocalEducationAgencyDim] + +INSERT INTO [$(DataMartDB)].[analytics].[MostRecentGradingPeriod] ([SchoolKey],[GradingPeriodBeginDateKey]) +SELECT [SchoolKey],[GradingPeriodBeginDateKey] FROM [$(SecondOdsDb)].[analytics].[MostRecentGradingPeriod] + +INSERT INTO [$(DataMartDB)].[analytics].[SchoolDim] ([SchoolKey],[SchoolName],[SchoolType],[SchoolAddress],[SchoolCity],[SchoolCounty],[SchoolState],[LocalEducationAgencyName],[LocalEducationAgencyKey],[StateEducationAgencyName],[StateEducationAgencyKey],[EducationServiceCenterName],[EducationServiceCenterKey],[LastModifiedDate]) +SELECT [SchoolKey],[SchoolName],[SchoolType],[SchoolAddress],[SchoolCity],[SchoolCounty],[SchoolState],[LocalEducationAgencyName],[LocalEducationAgencyKey],[StateEducationAgencyName],[StateEducationAgencyKey],[EducationServiceCenterName],[EducationServiceCenterKey],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[SchoolDim] + +INSERT INTO [$(DataMartDB)].[analytics].[SectionDim] ([SchoolKey],[SectionKey],[Description],[SectionName],[SessionName],[LocalCourseCode],[SchoolYear],[EducationalEnvironmentDescriptor],[LocalEducationAgencyKey],[LastModifiedDate],[CourseTitle],[SessionKey]) +SELECT [SchoolKey],[SectionKey],[Description],[SectionName],[SessionName],[LocalCourseCode],[SchoolYear],[EducationalEnvironmentDescriptor],[LocalEducationAgencyKey],[LastModifiedDate],[CourseTitle],[SessionKey] FROM [$(SecondOdsDb)].[analytics].[SectionDim] + +INSERT INTO [$(DataMartDB)].[analytics].[StaffSectionDim] ([StaffSectionKey],[UserKey],[SchoolKey],[SectionKey],[PersonalTitlePrefix],[StaffFirstName],[StaffMiddleName],[StaffLastName],[ElectronicMailAddress],[Sex],[BirthDate],[Race],[HispanicLatinoEthnicity],[HighestCompletedLevelOfEducation],[YearsOfPriorProfessionalExperience],[YearsOfPriorTeachingExperience],[HighlyQualifiedTeacher],[LoginId],[LastModifiedDate]) +SELECT [StaffSectionKey],[UserKey],[SchoolKey],[SectionKey],[PersonalTitlePrefix],[StaffFirstName],[StaffMiddleName],[StaffLastName],[ElectronicMailAddress],[Sex],[BirthDate],[Race],[HispanicLatinoEthnicity],[HighestCompletedLevelOfEducation],[YearsOfPriorProfessionalExperience],[YearsOfPriorTeachingExperience],[HighlyQualifiedTeacher],[LoginId],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[StaffSectionDim] + +INSERT INTO [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDemographicsBridge] ([StudentSchoolDemographicBridgeKey],[StudentLocalEducationAgencyKey],[DemographicKey]) +SELECT [StudentSchoolDemographicBridgeKey],[StudentLocalEducationAgencyKey],[DemographicKey] FROM [$(SecondOdsDb)].[analytics].[StudentLocalEducationAgencyDemographicsBridge] + +INSERT INTO [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDim] ([StudentLocalEducationAgencyKey],[StudentKey],[LocalEducationAgencyKey],[StudentFirstName],[StudentMiddleName],[StudentLastName],[LimitedEnglishProficiency],[IsHispanic],[Sex],[InternetAccessInResidence],[InternetAccessTypeInResidence],[InternetPerformance],[DigitalDevice],[DeviceAccess],[LastModifiedDate]) +SELECT [StudentLocalEducationAgencyKey],[StudentKey],[LocalEducationAgencyKey],[StudentFirstName],[StudentMiddleName],[StudentLastName],[LimitedEnglishProficiency],[IsHispanic],[Sex],[InternetAccessInResidence],[InternetAccessTypeInResidence],[InternetPerformance],[DigitalDevice],[DeviceAccess],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[StudentLocalEducationAgencyDim] + +INSERT INTO [$(DataMartDB)].[analytics].[StudentProgramDim] ([StudentSchoolProgramKey],[BeginDateKey],[EducationOrganizationId],[ProgramName],[StudentKey],[SchoolKey],[StudentSchoolKey],[LastModifiedDate]) +SELECT [StudentSchoolProgramKey],[BeginDateKey],[EducationOrganizationId],[ProgramName],[StudentKey],[SchoolKey],[StudentSchoolKey],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[StudentProgramDim] + +INSERT INTO [$(DataMartDB)].[analytics].[StudentSchoolDemographicsBridge] ([StudentSchoolDemographicBridgeKey],[StudentSchoolKey],[DemographicKey]) +SELECT [StudentSchoolDemographicBridgeKey],[StudentSchoolKey],[DemographicKey] FROM [$(SecondOdsDb)].[analytics].[StudentSchoolDemographicsBridge] + +INSERT INTO [$(DataMartDB)].[analytics].[StudentSchoolDim] ([StudentSchoolKey],[StudentKey],[SchoolKey],[SchoolYear],[StudentFirstName],[StudentMiddleName],[StudentLastName],[BirthDate],[EnrollmentDateKey],[GradeLevel],[LimitedEnglishProficiency],[IsHispanic],[Sex],[InternetAccessInResidence],[InternetAccessTypeInResidence],[InternetPerformance],[DigitalDevice],[DeviceAccess],[LastModifiedDate]) +SELECT [StudentSchoolKey],[StudentKey],[SchoolKey],[SchoolYear],[StudentFirstName],[StudentMiddleName],[StudentLastName],[BirthDate],[EnrollmentDateKey],[GradeLevel],[LimitedEnglishProficiency],[IsHispanic],[Sex],[InternetAccessInResidence],[InternetAccessTypeInResidence],[InternetPerformance],[DigitalDevice],[DeviceAccess],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[StudentSchoolDim] + +INSERT INTO [$(DataMartDB)].[analytics].[StudentSectionDim] ([StudentSectionKey],[StudentSchoolKey],[StudentKey],[SectionKey],[LocalCourseCode],[Subject],[CourseTitle],[TeacherName],[StudentSectionStartDateKey],[StudentSectionEndDateKey],[SchoolKey],[SchoolYear],[LastModifiedDate]) +SELECT [StudentSectionKey],[StudentSchoolKey],[StudentKey],[SectionKey],[LocalCourseCode],[Subject],[CourseTitle],[TeacherName],[StudentSectionStartDateKey],[StudentSectionEndDateKey],[SchoolKey],[SchoolYear],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[StudentSectionDim] + +-- ASMT Collection. + +INSERT INTO [$(DataMartDB)].[analytics].[asmt_AssessmentFact] ([AssessmentFactKey],[AssessmentKey],[AssessmentIdentifier],[Namespace],[Title],[Version],[Category],[AssessedGradeLevel],[AcademicSubject],[ResultDataType],[ReportingMethod],[ObjectiveAssessmentKey],[IdentificationCode],[ParentObjectiveAssessmentKey],[ObjectiveAssessmentDescription],[PercentOfAssessment],[MinScore],[MaxScore],[LearningStandard]) +SELECT [AssessmentFactKey],[AssessmentKey],[AssessmentIdentifier],[Namespace],[Title],[Version],[Category],[AssessedGradeLevel],[AcademicSubject],[ResultDataType],[ReportingMethod],[ObjectiveAssessmentKey],[IdentificationCode],[ParentObjectiveAssessmentKey],[ObjectiveAssessmentDescription],[PercentOfAssessment],[MinScore],[MaxScore],[LearningStandard] FROM [$(SecondOdsDb)].[analytics].[asmt_AssessmentFact] + +INSERT INTO [$(DataMartDB)].[analytics].[asmt_StudentAssessmentFact] ([StudentAssessmentFactKey],[StudentAssessmentKey],[StudentObjectiveAssessmentKey],[ObjectiveAssessmentKey],[AssessmentKey],[AssessmentIdentifier],[Namespace],[StudentAssessmentIdentifier],[StudentUSI],[StudentSchoolKey],[SchoolKey],[AdministrationDate],[AssessedGradeLevel],[StudentScore],[ResultDataType],[ReportingMethod],[PerformanceResult]) +SELECT [StudentAssessmentFactKey],[StudentAssessmentKey],[StudentObjectiveAssessmentKey],[ObjectiveAssessmentKey],[AssessmentKey],[AssessmentIdentifier],[Namespace],[StudentAssessmentIdentifier],[StudentUSI],[StudentSchoolKey],[SchoolKey],[AdministrationDate],[AssessedGradeLevel],[StudentScore],[ResultDataType],[ReportingMethod],[PerformanceResult] FROM [$(SecondOdsDb)].[analytics].[asmt_StudentAssessmentFact] + +-- RLS Collection. + +INSERT INTO [$(DataMartDB)].[analytics].[rls_StudentDataAuthorization] ([StudentKey],[SchoolKey],[SectionId],[BeginDate],[EndDate]) +SELECT [StudentKey],[SchoolKey],[SectionId],[BeginDate],[EndDate] FROM [$(SecondOdsDb)].[analytics].[rls_StudentDataAuthorization] + +INSERT INTO [$(DataMartDB)].[analytics].[rls_UserAuthorization] ([UserKey],[UserScope],[StudentPermission],[SectionPermission],[SectionKeyPermission],[SchoolPermission],[DistrictId]) +SELECT [UserKey],[UserScope],[StudentPermission],[SectionPermission],[SectionKeyPermission],[SchoolPermission],[DistrictId] FROM [$(SecondOdsDb)].[analytics].[rls_UserAuthorization] + +INSERT INTO [$(DataMartDB)].[analytics].[rls_UserDim] ([UserKey],[UserEmail],[LastModifiedDate]) +SELECT [UserKey],[UserEmail],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[rls_UserDim] + +INSERT INTO [$(DataMartDB)].[analytics].[rls_UserStudentDataAuthorization] ([UserKey],[StudentKey]) +SELECT [UserKey],[StudentKey] FROM [$(SecondOdsDb)].[analytics].[rls_UserStudentDataAuthorization] + +-- EWS Collection. + +INSERT INTO [$(DataMartDB)].[analytics].[ews_StudentEarlyWarningFact] ([StudentKey],[SchoolKey],[DateKey],[IsInstructionalDay],[IsEnrolled],[IsPresentSchool],[IsAbsentFromSchoolExcused],[IsAbsentFromSchoolUnexcused],[IsTardyToSchool],[IsPresentHomeroom],[IsAbsentFromHomeroomExcused],[IsAbsentFromHomeroomUnexcused],[IsTardyToHomeroom],[IsPresentAnyClass],[IsAbsentFromAnyClassExcused],[IsAbsentFromAnyClassUnexcused],[IsTardyToAnyClass],[CountByDayOfStateOffenses],[CountByDayOfConductOffenses]) +SELECT [StudentKey],[SchoolKey],[DateKey],[IsInstructionalDay],[IsEnrolled],[IsPresentSchool],[IsAbsentFromSchoolExcused],[IsAbsentFromSchoolUnexcused],[IsTardyToSchool],[IsPresentHomeroom],[IsAbsentFromHomeroomExcused],[IsAbsentFromHomeroomUnexcused],[IsTardyToHomeroom],[IsPresentAnyClass],[IsAbsentFromAnyClassExcused],[IsAbsentFromAnyClassUnexcused],[IsTardyToAnyClass],[CountByDayOfStateOffenses],[CountByDayOfConductOffenses] FROM [$(SecondOdsDb)].[analytics].[ews_StudentEarlyWarningFact] + +INSERT INTO [$(DataMartDB)].[analytics].[ews_StudentSectionGradeFact] ([StudentKey],[SchoolKey],[GradingPeriodKey],[StudentSectionKey],[SectionKey],[NumericGradeEarned],[LetterGradeEarned],[GradeType]) +SELECT [StudentKey],[SchoolKey],[GradingPeriodKey],[StudentSectionKey],[SectionKey],[NumericGradeEarned],[LetterGradeEarned],[GradeType] FROM [$(SecondOdsDb)].[analytics].[ews_StudentSectionGradeFact] + +-- Equity Collection. + +INSERT INTO [$(DataMartDB)].[analytics].[equity_StudentSchoolFoodServiceProgramDim] ([StudentSchoolFoodServiceProgramKey],[StudentSchoolProgramKey],[StudentSchoolKey],[ProgramName],[SchoolFoodServiceProgramServiceDescriptor],[LastModifiedDate]) +SELECT [StudentSchoolFoodServiceProgramKey],[StudentSchoolProgramKey],[StudentSchoolKey],[ProgramName],[SchoolFoodServiceProgramServiceDescriptor],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[equity_StudentSchoolFoodServiceProgramDim] + +INSERT INTO [$(DataMartDB)].[analytics].[equity_FeederSchoolDim] ([FeederSchoolUniqueKey],[SchoolKey],[FeederSchoolKey],[FeederSchoolName],[LastModifiedDate]) +SELECT [FeederSchoolUniqueKey],[SchoolKey],[FeederSchoolKey],[FeederSchoolName],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[equity_FeederSchoolDim] + +INSERT INTO [$(DataMartDB)].[analytics].[equity_StudentDisciplineActionDim] ([StudentDisciplineActionKey],[StudentSchoolKey],[DisciplineDateKey],[StudentKey],[SchoolKey],[DisciplineActionDescription],[UserKey],[LastModifiedDate]) +SELECT [StudentDisciplineActionKey],[StudentSchoolKey],[DisciplineDateKey],[StudentKey],[SchoolKey],[DisciplineActionDescription],[UserKey],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[equity_StudentDisciplineActionDim] + +INSERT INTO [$(DataMartDB)].[analytics].[equity_StudentProgramCohortDim] ([StudentProgramCohortKey],[StudentSchoolProgramKey],[StudentSchoolKey],[EntryGradeLevelDescriptor],[CohortTypeDescriptor],[CohortDescription],[ProgramName],[LastModifiedDate]) +SELECT [StudentProgramCohortKey],[StudentSchoolProgramKey],[StudentSchoolKey],[EntryGradeLevelDescriptor],[CohortTypeDescriptor],[CohortDescription],[ProgramName],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[equity_StudentProgramCohortDim] + +INSERT INTO [$(DataMartDB)].[analytics].[equity_StudentHistoryDim] ([StudentKey],[StudentSchoolKey],[GradeSummary],[CurrentSchoolKey],[AttendanceRate],[ReferralsAndSuspensions],[EnrollmentHistory],[LastModifiedDate]) +SELECT [StudentKey],[StudentSchoolKey],[GradeSummary],[CurrentSchoolKey],[AttendanceRate],[ReferralsAndSuspensions],[EnrollmentHistory],[LastModifiedDate] FROM [$(SecondOdsDb)].[analytics].[equity_StudentHistoryDim] + +-- CHRAB Collection + +INSERT INTO [$(DataMartDB)].[analytics].[chrab_ChronicAbsenteeismAttendanceFact] ([StudentSchoolKey],[StudentKey],[SchoolKey],[DateKey],[ReportedAsPresentAtSchool],[ReportedAsAbsentFromSchool],[ReportedAsPresentAtHomeRoom],[ReportedAsAbsentFromHomeRoom],[ReportedAsIsPresentInAllSections],[ReportedAsAbsentFromAnySection]) +SELECT [StudentSchoolKey],[StudentKey],[SchoolKey],[DateKey],[ReportedAsPresentAtSchool],[ReportedAsAbsentFromSchool],[ReportedAsPresentAtHomeRoom],[ReportedAsAbsentFromHomeRoom],[ReportedAsIsPresentInAllSections],[ReportedAsAbsentFromAnySection] FROM [$(SecondOdsDb)].[analytics].[chrab_ChronicAbsenteeismAttendanceFact] +GO + +---------------------------- +-- Set school year value. +---------------------------- + +DECLARE @SchoolYear SMALLINT; +SET @SchoolYear = (select SchoolYear from [$(SecondOdsDb)].[edfi].[SchoolYearType] where CurrentSchoolYear = 1); + +UPDATE [$(DataMartDB)].[analytics].[AcademicTimePeriodDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ClassPeriodDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ContactPersonDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[DateDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[DemographicDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[GradingPeriodDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[LocalEducationAgencyDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[MostRecentGradingPeriod] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[SchoolDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[SectionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StaffSectionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDemographicsBridge] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentLocalEducationAgencyDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentProgramDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentSchoolDemographicsBridge] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentSchoolDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[StudentSectionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[asmt_AssessmentFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[asmt_StudentAssessmentFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[chrab_ChronicAbsenteeismAttendanceFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_StudentDataAuthorization] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_UserAuthorization] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_UserDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[rls_UserStudentDataAuthorization] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ews_StudentEarlyWarningFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[ews_StudentSectionGradeFact] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentSchoolFoodServiceProgramDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_FeederSchoolDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentDisciplineActionDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentProgramCohortDim] +SET SchoolYearSource = @SchoolYear; + +UPDATE [$(DataMartDB)].[analytics].[equity_StudentHistoryDim] +SET SchoolYearSource = @SchoolYear; +*/ +----------------------------------------------------------------------------------------- + PRINT 'All operations complete. Run the Analytics Middle Tier installer to install EWS views.' -GO \ No newline at end of file +GO \ No newline at end of file diff --git a/samples/README.md b/samples/README.md new file mode 100644 index 00000000..c9232662 --- /dev/null +++ b/samples/README.md @@ -0,0 +1,20 @@ +# Analytics Middle Tier Sample Scripts + +## AMT-DataMart + +This script will create a data mart with the views materialized into tables. +Run this with sqlcmd or in SSMS with "sqlcmd mode" turned on. Adjust the two +variables on line 16 and 17. + +Assumes that the destination database already exists and is on the same server +as the ODS. Run the script periodically to refresh the data. + +> :setvar DataMartDB EdFi_AMT_DataMart +:setvar OdsDb EdFi_Ods_Glendale_v510 + +AMT-DataMart script contains a final section that is commented out. +Uncomment it when you need to combine the data from 2 different Ods sources. +Additionally you have to set the SecondOdsDb variable. + +> :setvar SecondOdsDb EdFi_Ods_Northridge_v510 + diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/MSSQL/0023-View-StudentSchoolDim-alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/MSSQL/0023-View-StudentSchoolDim-alter.sql new file mode 100644 index 00000000..643bfe53 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/MSSQL/0023-View-StudentSchoolDim-alter.sql @@ -0,0 +1,132 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + +IF EXISTS +( + SELECT 1 + FROM + INFORMATION_SCHEMA.VIEWS + WHERE + TABLE_SCHEMA = 'analytics' + AND + TABLE_NAME = 'StudentSchoolDim' +) +BEGIN + DROP VIEW analytics.StudentSchoolDim; +END; +GO + +CREATE VIEW analytics.StudentSchoolDim +AS + SELECT + CONCAT(Student.StudentUniqueId, '-', StudentSchoolAssociation.SchoolId) AS StudentSchoolKey, + Student.StudentUniqueId AS StudentKey, + CAST(StudentSchoolAssociation.SchoolId AS VARCHAR) AS SchoolKey, + COALESCE(CAST(StudentSchoolAssociation.SchoolYear AS VARCHAR), 'Unknown') AS SchoolYear, + Student.FirstName AS StudentFirstName, + COALESCE(Student.MiddleName, '') AS StudentMiddleName, + COALESCE(Student.LastSurname, '') AS StudentLastName, + Student.BirthDate, + CAST(StudentSchoolAssociation.EntryDate AS NVARCHAR) AS EnrollmentDateKey, + Descriptor.CodeValue AS GradeLevel, + COALESCE(CASE + WHEN studentEdOrg.StudentUSI IS NOT NULL + THEN LimitedEnglishDescriptorSchool.CodeValue + ELSE LimitedEnglishDescriptorDist.CodeValue + END, 'Not applicable') AS LimitedEnglishProficiency, + COALESCE(CASE + WHEN studentEdOrg.StudentUSI IS NOT NULL + THEN studentEdOrg.HispanicLatinoEthnicity + ELSE districtEdOrg.HispanicLatinoEthnicity + END, CAST(0 as BIT)) AS IsHispanic, + COALESCE(CASE + WHEN studentEdOrg.StudentUSI IS NOT NULL + THEN SexTypeSchool.CodeValue + ELSE SexTypeDist.CodeValue + END, '') AS Sex, + COALESCE(InternetAccessInResidence.Indicator,'n/a') as InternetAccessInResidence, + COALESCE(InternetAccessTypeInResidence.Indicator,'n/a') as InternetAccessTypeInResidence, + COALESCE(InternetPerformance.Indicator,'n/a') as InternetPerformance, + COALESCE(DigitalDevice.Indicator,'n/a') as DigitalDevice, + COALESCE(DeviceAccess.Indicator,'n/a') as DeviceAccess, + ( + SELECT + MAX(MaxLastModifiedDate) + FROM (VALUES + (Student.LastModifiedDate) + ,(studentEdOrg.LastModifiedDate) + ,(districtEdOrg.LastModifiedDate) + ) AS VALUE(MaxLastModifiedDate) + ) AS LastModifiedDate + FROM + edfi.Student + INNER JOIN + edfi.StudentSchoolAssociation ON + Student.StudentUSI = StudentSchoolAssociation.StudentUSI + INNER JOIN + edfi.Descriptor ON + StudentSchoolAssociation.EntryGradeLevelDescriptorId = Descriptor.DescriptorId + INNER JOIN + edfi.School ON + StudentSchoolAssociation.SchoolId = School.SchoolId + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociation AS studentEdOrg ON + Student.StudentUSI = studentEdOrg.StudentUSI + AND StudentSchoolAssociation.SchoolId = studentEdOrg.EducationOrganizationId + LEFT OUTER JOIN + edfi.Descriptor AS LimitedEnglishDescriptorSchool ON + studentEdOrg.LimitedEnglishProficiencyDescriptorId = LimitedEnglishDescriptorSchool.DescriptorId + LEFT OUTER JOIN + edfi.Descriptor AS SexTypeSchool ON + studentEdOrg.SexDescriptorId = SexTypeSchool.DescriptorId + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociation AS districtEdOrg ON + Student.StudentUSI = districtEdOrg.StudentUSI + AND School.LocalEducationAgencyId = districtEdOrg.EducationOrganizationId + LEFT OUTER JOIN + edfi.Descriptor AS LimitedEnglishDescriptorDist ON + districtEdOrg.LimitedEnglishProficiencyDescriptorId = LimitedEnglishDescriptorDist.DescriptorId + LEFT OUTER JOIN + edfi.Descriptor AS SexTypeDist ON + districtEdOrg.SexDescriptorId = SexTypeDist.DescriptorId + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS InternetAccessInResidence ON + studentEdOrg.StudentUSI = InternetAccessInResidence.StudentUSI + AND + studentEdOrg.EducationOrganizationId = InternetAccessInResidence.EducationOrganizationId + AND + InternetAccessInResidence.IndicatorName = 'Internet Access In Residence' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS InternetAccessTypeInResidence ON + studentEdOrg.StudentUSI = InternetAccessTypeInResidence.StudentUSI + AND + studentEdOrg.EducationOrganizationId = InternetAccessTypeInResidence.EducationOrganizationId + AND + InternetAccessTypeInResidence.IndicatorName = 'Internet Access Type In Residence' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS InternetPerformance ON + studentEdOrg.StudentUSI = InternetPerformance.StudentUSI + AND + studentEdOrg.EducationOrganizationId = InternetPerformance.EducationOrganizationId + AND + InternetPerformance.IndicatorName = 'Internet Performance In Residence' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS DigitalDevice ON + studentEdOrg.StudentUSI = DigitalDevice.StudentUSI + AND + studentEdOrg.EducationOrganizationId = DigitalDevice.EducationOrganizationId + AND + DigitalDevice.IndicatorName = 'Digital Device' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS DeviceAccess ON + studentEdOrg.StudentUSI = DeviceAccess.StudentUSI + AND + studentEdOrg.EducationOrganizationId = DeviceAccess.EducationOrganizationId + AND + DeviceAccess.IndicatorName = 'Device Access' + WHERE + (StudentSchoolAssociation.ExitWithdrawDate IS NULL OR StudentSchoolAssociation.ExitWithdrawDate >= GETDATE()); + +GO diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0032-View-AcademicTimePeriodDim-Create.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0023-View-AcademicTimePeriodDim-Create.sql similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0032-View-AcademicTimePeriodDim-Create.sql rename to src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0023-View-AcademicTimePeriodDim-Create.sql diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0024-View-StudentSchoolDim-alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0024-View-StudentSchoolDim-alter.sql new file mode 100644 index 00000000..b357437b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0024-View-StudentSchoolDim-alter.sql @@ -0,0 +1,116 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. +DROP VIEW IF EXISTS analytics.StudentSchoolDim; + +CREATE OR REPLACE VIEW analytics.StudentSchoolDim +AS +SELECT + CONCAT(Student.StudentUniqueId, '-', StudentSchoolAssociation.SchoolId) AS StudentSchoolKey, + Student.StudentUniqueId AS StudentKey, + CAST(StudentSchoolAssociation.SchoolId AS VARCHAR) AS SchoolKey, + COALESCE(CAST(StudentSchoolAssociation.SchoolYear AS VARCHAR), 'Unknown') AS SchoolYear, + Student.FirstName AS StudentFirstName, + COALESCE(Student.MiddleName, '') AS StudentMiddleName, + COALESCE(Student.LastSurname, '') AS StudentLastName, + CAST(StudentSchoolAssociation.EntryDate AS VARCHAR) AS EnrollmentDateKey, + Descriptor.CodeValue AS GradeLevel, + COALESCE(CASE + WHEN studentEdOrg.StudentUSI IS NOT NULL + THEN LimitedEnglishDescriptorSchool.CodeValue + ELSE LimitedEnglishDescriptorDist.CodeValue + END, 'Not applicable') AS LimitedEnglishProficiency, + COALESCE(CASE + WHEN studentEdOrg.StudentUSI IS NOT NULL + THEN studentEdOrg.HispanicLatinoEthnicity + ELSE districtEdOrg.HispanicLatinoEthnicity + END, FALSE) AS IsHispanic, + COALESCE(CASE + WHEN studentEdOrg.StudentUSI IS NOT NULL + THEN SexTypeSchool.CodeValue + ELSE SexTypeDist.CodeValue + END, '') AS Sex, + COALESCE(InternetAccessInResidence.Indicator,'n/a') as InternetAccessInResidence, + COALESCE(InternetAccessTypeInResidence.Indicator,'n/a') as InternetAccessTypeInResidence, + COALESCE(InternetPerformance.Indicator,'n/a') as InternetPerformance, + COALESCE(DigitalDevice.Indicator,'n/a') as DigitalDevice, + COALESCE(DeviceAccess.Indicator,'n/a') as DeviceAccess, + ( + SELECT + MAX(MaxLastModifiedDate) + FROM (VALUES + (Student.LastModifiedDate) + ,(studentEdOrg.LastModifiedDate) + ,(districtEdOrg.LastModifiedDate) + ) AS VALUE(MaxLastModifiedDate) + ) AS LastModifiedDate, + Student.BirthDate + FROM + edfi.Student + INNER JOIN + edfi.StudentSchoolAssociation ON + Student.StudentUSI = StudentSchoolAssociation.StudentUSI + INNER JOIN + edfi.Descriptor ON + StudentSchoolAssociation.EntryGradeLevelDescriptorId = Descriptor.DescriptorId + INNER JOIN + edfi.School ON + StudentSchoolAssociation.SchoolId = School.SchoolId + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociation AS studentEdOrg ON + Student.StudentUSI = studentEdOrg.StudentUSI + AND StudentSchoolAssociation.SchoolId = studentEdOrg.EducationOrganizationId + LEFT OUTER JOIN + edfi.Descriptor AS LimitedEnglishDescriptorSchool ON + studentEdOrg.LimitedEnglishProficiencyDescriptorId = LimitedEnglishDescriptorSchool.DescriptorId + LEFT OUTER JOIN + edfi.Descriptor AS SexTypeSchool ON + studentEdOrg.SexDescriptorId = SexTypeSchool.DescriptorId + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociation AS districtEdOrg ON + Student.StudentUSI = districtEdOrg.StudentUSI + AND School.LocalEducationAgencyId = districtEdOrg.EducationOrganizationId + LEFT OUTER JOIN + edfi.Descriptor AS LimitedEnglishDescriptorDist ON + districtEdOrg.LimitedEnglishProficiencyDescriptorId = LimitedEnglishDescriptorDist.DescriptorId + LEFT OUTER JOIN + edfi.Descriptor AS SexTypeDist ON + districtEdOrg.SexDescriptorId = SexTypeDist.DescriptorId + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS InternetAccessInResidence ON + studentEdOrg.StudentUSI = InternetAccessInResidence.StudentUSI + AND + studentEdOrg.EducationOrganizationId = InternetAccessInResidence.EducationOrganizationId + AND + InternetAccessInResidence.IndicatorName = 'Internet Access In Residence' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS InternetAccessTypeInResidence ON + studentEdOrg.StudentUSI = InternetAccessTypeInResidence.StudentUSI + AND + studentEdOrg.EducationOrganizationId = InternetAccessTypeInResidence.EducationOrganizationId + AND + InternetAccessTypeInResidence.IndicatorName = 'Internet Access Type In Residence' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS InternetPerformance ON + studentEdOrg.StudentUSI = InternetPerformance.StudentUSI + AND + studentEdOrg.EducationOrganizationId = InternetPerformance.EducationOrganizationId + AND + InternetPerformance.IndicatorName = 'Internet Performance In Residence' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS DigitalDevice ON + studentEdOrg.StudentUSI = DigitalDevice.StudentUSI + AND + studentEdOrg.EducationOrganizationId = DigitalDevice.EducationOrganizationId + AND + DigitalDevice.IndicatorName = 'Digital Device' + LEFT OUTER JOIN + edfi.StudentEducationOrganizationAssociationStudentIndicator AS DeviceAccess ON + studentEdOrg.StudentUSI = DeviceAccess.StudentUSI + AND + studentEdOrg.EducationOrganizationId = DeviceAccess.EducationOrganizationId + AND + DeviceAccess.IndicatorName = 'Device Access' + WHERE( + StudentSchoolAssociation.ExitWithdrawDate IS NULL OR StudentSchoolAssociation.ExitWithdrawDate >= now()); diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/.env.example b/src/EdFi.AnalyticsMiddleTier.Tests/.env.example index 40eb7065..c1d2d13e 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/.env.example +++ b/src/EdFi.AnalyticsMiddleTier.Tests/.env.example @@ -1,16 +1,19 @@ -USE_MSSQL_DEFAULT_CONN_STRING=TRUE -USE_POSTGRES_DEFAULT_CONN_STRING=TRUE +USE_MSSQL_DEFAULT_CONN_STRING=FALSE +USE_POSTGRES_DEFAULT_CONN_STRING=FALSE SQLSERVER_SERVER=localhost -SQLSERVER_SA_PASS=123 SQLSERVER_DATABASE_DS2=AnalyticsMiddleTier_Testing_Ds2 SQLSERVER_DATABASE_DS31=AnalyticsMiddleTier_Testing_Ds31 SQLSERVER_DATABASE_DS32=AnalyticsMiddleTier_Testing_Ds32 -SQLSERVER_INTEGRATED_SECURITY=false +SQLSERVER_DATABASE_DS33=AnalyticsMiddleTier_Testing_Ds33 +SQLSERVER_INTEGRATED_SECURITY=FALSE +SQLSERVER_ADMIN_USER=sa +SQLSERVER_ADMIN_PASS=Your_Str0ng_P4ssword SQLSERVER_USER=ods_user -SQLSERVER_PASS=123 +SQLSERVER_PASS=Your_Str0ng_P4ssword POSTGRES_HOST=localhost -POSTGRES_DATABASE=edfi_ods_tests +POSTGRES_DATABASE_DS32=edfi_ods_tests_ds32 +POSTGRES_DATABASE_DS33=edfi_ods_tests_ds33 POSTGRES_PORT=5432 POSTGRES_USER=postgres -POSTGRES_PASS=123 +POSTGRES_PASS=Your_Str0ng_P4ssword POSTGRES_POOLING=false \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/.env.example.docker b/src/EdFi.AnalyticsMiddleTier.Tests/.env.example.docker new file mode 100644 index 00000000..c1d2d13e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/.env.example.docker @@ -0,0 +1,19 @@ +USE_MSSQL_DEFAULT_CONN_STRING=FALSE +USE_POSTGRES_DEFAULT_CONN_STRING=FALSE +SQLSERVER_SERVER=localhost +SQLSERVER_DATABASE_DS2=AnalyticsMiddleTier_Testing_Ds2 +SQLSERVER_DATABASE_DS31=AnalyticsMiddleTier_Testing_Ds31 +SQLSERVER_DATABASE_DS32=AnalyticsMiddleTier_Testing_Ds32 +SQLSERVER_DATABASE_DS33=AnalyticsMiddleTier_Testing_Ds33 +SQLSERVER_INTEGRATED_SECURITY=FALSE +SQLSERVER_ADMIN_USER=sa +SQLSERVER_ADMIN_PASS=Your_Str0ng_P4ssword +SQLSERVER_USER=ods_user +SQLSERVER_PASS=Your_Str0ng_P4ssword +POSTGRES_HOST=localhost +POSTGRES_DATABASE_DS32=edfi_ods_tests_ds32 +POSTGRES_DATABASE_DS33=edfi_ods_tests_ds33 +POSTGRES_PORT=5432 +POSTGRES_USER=postgres +POSTGRES_PASS=Your_Str0ng_P4ssword +POSTGRES_POOLING=false \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardSettings.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardSettings.cs new file mode 100644 index 00000000..0333da8f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardSettings.cs @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. +using System; +using System.Collections.Generic; +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public abstract class DataStandardSettings : IDataStandardSettings + { + private const string DefaultVersionSeparator = "."; + private const string FileNameSeparator = "_"; + + public abstract Engine DatabaseEngine { get; } + public DataStandard CurrentDataStandard { get; protected set; } + public string Version { get; protected set; } + public string VersionFolderName => ($"v{FileNameSeparator}{Version.Replace(DefaultVersionSeparator, FileNameSeparator)}"); + public string BaseVersionFolderName => $"v{FileNameSeparator}{BaseVersion.Replace(DefaultVersionSeparator, FileNameSeparator)}"; + public string TestDataFolderName => $"{DatabaseEngine}.{VersionFolderName}"; + public string DatabaseBackupFile => String.Format(DatabaseBackupFileFormat, (Version.Equals("2") ? "2.0" : Version)); + public IDatabaseConnection DatabaseConnection { get;protected set; } + public Type DataStandardInstallType { get; protected set; } + + protected string BaseVersion => Version.Split(DefaultVersionSeparator)[0]; + protected abstract string DatabaseBackupFileFormat { get; } + protected string DatabaseVersionSuffix => $"{Version.Replace(DefaultVersionSeparator, string.Empty)}"; + protected Dictionary SupportedVersion + => (new DataStandardVersion()).SupportedVersion; + + protected DataStandardSettings() + { + Version = string.Empty; + } + + protected void InitializeSettings(DataStandard dataStandard) + { + CurrentDataStandard = dataStandard; + Version = SupportedVersion[dataStandard].version; + DataStandardInstallType = SupportedVersion[dataStandard].typeInstall; + } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Common/DataStandardTestFixtureBase.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardTestFixtureBase.cs similarity index 78% rename from src/EdFi.AnalyticsMiddleTier.Tests/Common/DataStandardTestFixtureBase.cs rename to src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardTestFixtureBase.cs index f38c3539..70ecb154 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Common/DataStandardTestFixtureBase.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardTestFixtureBase.cs @@ -5,7 +5,7 @@ using System.Collections; -namespace EdFi.AnalyticsMiddleTier.Tests.Common +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration { public abstract class DataStandardTestFixtureBase : IDataStandardTestFixtureBase { @@ -28,7 +28,7 @@ public class DataStandardTestFixture : DataStandardTestFixtureBase { public DataStandardTestFixture() { - FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard2, TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32 }; + FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard2, TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32, TestHarnessSQLServer.DataStandard33 }; } } @@ -36,7 +36,7 @@ public class DataStandardTestFixtureDs3 : DataStandardTestFixtureBase { public DataStandardTestFixtureDs3() { - FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32 }; + FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32, TestHarnessSQLServer.DataStandard33 }; } } @@ -44,7 +44,7 @@ public class DataStandardTestFixturePostgres : DataStandardTestFixtureBase { public DataStandardTestFixturePostgres() { - FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard2, TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32, TestHarnessPostgres.DataStandard32PG}; + FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard2, TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32, TestHarnessSQLServer.DataStandard33, TestHarnessPostgres.DataStandard32PG, TestHarnessPostgres.DataStandard33PG}; } } @@ -52,7 +52,7 @@ public class DataStandardTestFixturePostgresDs3 : DataStandardTestFixtureBase { public DataStandardTestFixturePostgresDs3() { - FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32, TestHarnessPostgres.DataStandard32PG }; + FixtureList = new ITestHarnessBase[] { TestHarnessSQLServer.DataStandard31, TestHarnessSQLServer.DataStandard32, TestHarnessSQLServer.DataStandard33, TestHarnessPostgres.DataStandard32PG, TestHarnessPostgres.DataStandard33PG}; } } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardVersion.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardVersion.cs new file mode 100644 index 00000000..b152b517 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DataStandardVersion.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public class DataStandardVersion + { + public Dictionary SupportedVersion + { + get + { + var versions = new Dictionary + { + {DataStandard.Ds2, ("2", typeof(DataStandard2.Install))}, + {DataStandard.Ds31, ("3.1", typeof(DataStandard31.Install))}, + {DataStandard.Ds32, ("3.2", typeof(DataStandard32.Install))}, + {DataStandard.Ds33, ("3.3", typeof(DataStandard33.Install))} + }; + return versions; + } + } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DatabaseConnection.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DatabaseConnection.cs new file mode 100644 index 00000000..e1bfc89f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/DatabaseConnection.cs @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. +using System; +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public abstract class DatabaseConnection : IDatabaseConnection + { + private DbConnectionStringParameters _dbConnectionStringParam; + + public abstract IOrm Orm { get; } + + public abstract IDatabaseMigrationStrategy DatabaseMigrationStrategy { get; } + + public abstract IUninstallStrategy UninstallStrategy { get; } + + protected abstract string DefaultDatabaseNamePrefix { get; } + + protected abstract string EnvParameterDataBaseNamePrefix { get; } + + public string DatabaseName => + DbConnectionStringParameter.UseDefaultConnectionString + ? DbConnectionStringParameter.DefaultDataBaseName + : GetEnvironmentVariable(DbConnectionStringParameter.EnvParameterDataBaseName); + + public abstract string MainDatabaseConnectionString { get; } + + public abstract string ConnectionString { get; } + + protected DbConnectionStringParameters DbConnectionStringParameter + => _dbConnectionStringParam ??= new DbConnectionStringParameters(DefaultDatabaseNamePrefix, EnvParameterDataBaseNamePrefix); + + private readonly DotEnvHelper _dotEnvHelper; + + protected DatabaseConnection(string versionFileSuffix) + { + _dotEnvHelper = new DotEnvHelper(); + DbConnectionStringParameter.DatabaseVersionSuffix = versionFileSuffix; + } + + protected string GetEnvironmentVariable(string key) + => ((Environment.GetEnvironmentVariable("GA_USE_GITHUB_ENV", EnvironmentVariableTarget.Process) ?? "false").ToLower().Equals("true")) + ? Environment.GetEnvironmentVariable(key, EnvironmentVariableTarget.Process) ?? string.Empty + : _dotEnvHelper.Value(key) ?? string.Empty; + + protected bool UseEnvironmentConnectionString(string key) + { + string useDefaultConnectionString = GetEnvironmentVariable(key).ToLower(); + return String.IsNullOrWhiteSpace(useDefaultConnectionString) || useDefaultConnectionString == "true"; + } + + protected class DbConnectionStringParameters + { + public bool UseDefaultConnectionString { get; set; } + + public string Server { get; set; } + + public string IntegratedSecurity { get; set; } + + public string User { get; set; } + + public string Pass { get; set; } + + public string AdminUser { get; set; } + + public string AdminUserPass { get; set; } + + public string Port { get; set; } + + public string Pooling { get; set; } + + public string DatabaseVersionSuffix { get; set; } + + public string DefaultDatabaseNamePrefix { get; } + + public string EnvParameterDataBaseNamePrefix { get; } + + public string DefaultDataBaseName => $"{DefaultDatabaseNamePrefix}{DatabaseVersionSuffix}"; + + public string EnvParameterDataBaseName => $"{EnvParameterDataBaseNamePrefix}{DatabaseVersionSuffix.ToUpper()}"; + + public DbConnectionStringParameters(string defaultDatabaseNamePrefix, string envParameterDataBaseNamePrefix) + { + DefaultDatabaseNamePrefix = defaultDatabaseNamePrefix; + EnvParameterDataBaseNamePrefix = envParameterDataBaseNamePrefix; + } + } + } +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDataStandardSettings.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDataStandardSettings.cs new file mode 100644 index 00000000..24aca1f7 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDataStandardSettings.cs @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. +using System; +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public interface IDataStandardSettings + { + Engine DatabaseEngine { get; } + DataStandard CurrentDataStandard { get; } + string Version { get; } + string VersionFolderName { get; } + string BaseVersionFolderName { get; } + string TestDataFolderName { get; } + IDatabaseConnection DatabaseConnection { get; } + string DatabaseBackupFile { get; } + Type DataStandardInstallType { get; } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Common/IDataStandardTestFixtureBase.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDataStandardTestFixtureBase.cs similarity index 86% rename from src/EdFi.AnalyticsMiddleTier.Tests/Common/IDataStandardTestFixtureBase.cs rename to src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDataStandardTestFixtureBase.cs index e8b98ed7..0737346c 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Common/IDataStandardTestFixtureBase.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDataStandardTestFixtureBase.cs @@ -5,7 +5,7 @@ using System.Collections; -namespace EdFi.AnalyticsMiddleTier.Tests.Common +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration { public interface IDataStandardTestFixtureBase : IEnumerable { diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDatabaseConnection.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDatabaseConnection.cs new file mode 100644 index 00000000..83c44af4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/IDatabaseConnection.cs @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. + +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + + public interface IDatabaseConnection + { + IOrm Orm { get; } + + IDatabaseMigrationStrategy DatabaseMigrationStrategy { get; } + + IUninstallStrategy UninstallStrategy { get; } + + string DatabaseName { get; } + + string MainDatabaseConnectionString { get; } + + string ConnectionString { get; } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/PostgresConnection.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/PostgresConnection.cs new file mode 100644 index 00000000..e72adc66 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/PostgresConnection.cs @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. + +using EdFi.AnalyticsMiddleTier.Common; +using Npgsql; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public class PostgresConnection : DatabaseConnection { + public override string ConnectionString + => DbConnectionStringParameter.UseDefaultConnectionString + ? "User ID=postgres;" + + "Host=localhost;Port=5432;" + + $"Database={DatabaseName};" + + "Pooling=false" + : $"User ID={DbConnectionStringParameter.User};" + + $"Host={DbConnectionStringParameter.Server};" + + $"Port={DbConnectionStringParameter.Port};" + + $"Database={DatabaseName};" + + $"Pooling={DbConnectionStringParameter.Pooling};" + + $"password={DbConnectionStringParameter.Pass}"; + + protected override string DefaultDatabaseNamePrefix => "edfi_ods_tests_ds"; + + protected override string EnvParameterDataBaseNamePrefix => "POSTGRES_DATABASE_DS"; + + public PostgresConnection(string versionFileSuffix) : base(versionFileSuffix) + { + Initialize(); + } + + public override string MainDatabaseConnectionString => string.Empty; + + public override IOrm Orm => new DapperWrapper(new NpgsqlConnection(ConnectionString)); + + public override IDatabaseMigrationStrategy DatabaseMigrationStrategy => new PostgresMigrationStrategy(Orm); + + public override IUninstallStrategy UninstallStrategy => new PostgresUninstallStrategy(Orm); + + protected void Initialize() + { + DbConnectionStringParameter.UseDefaultConnectionString = UseEnvironmentConnectionString("USE_POSTGRES_DEFAULT_CONN_STRING"); + + DbConnectionStringParameter.Server = GetEnvironmentVariable("POSTGRES_HOST"); + + DbConnectionStringParameter.Port = GetEnvironmentVariable("POSTGRES_PORT"); + + DbConnectionStringParameter.Pooling = GetEnvironmentVariable("POSTGRES_POOLING"); + + DbConnectionStringParameter.User = GetEnvironmentVariable("POSTGRES_USER"); + + DbConnectionStringParameter.Pass = GetEnvironmentVariable("POSTGRES_PASS"); + } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/PostgresDataStandardSettings.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/PostgresDataStandardSettings.cs new file mode 100644 index 00000000..f673e919 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/PostgresDataStandardSettings.cs @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. + +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public class PostgresDataStandardSettings : DataStandardSettings + { + public override Engine DatabaseEngine => Engine.PostgreSQL; + + protected override string DatabaseBackupFileFormat => "EdFi.Ods{0}.Minimal.Template.sql"; + + public PostgresDataStandardSettings(DataStandard dataStandard) + { + InitializeSettings(dataStandard); + DatabaseConnection + = new PostgresConnection(DatabaseVersionSuffix); + } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/SqlServerConnection.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/SqlServerConnection.cs new file mode 100644 index 00000000..da48b0a5 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/SqlServerConnection.cs @@ -0,0 +1,84 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using EdFi.AnalyticsMiddleTier.Common; +// ReSharper disable StringLiteralTypo + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public class SqlServerConnection : DatabaseConnection + { + public override string MainDatabaseConnectionString + => String.Format(GetConnectionStringFormat(), + DbConnectionStringParameter.Server, + "master", + DbConnectionStringParameter.IntegratedSecurity, + DbConnectionStringParameter.AdminUser, + DbConnectionStringParameter.AdminUserPass); + + public override string ConnectionString + => String.Format(GetConnectionStringFormat(), + DbConnectionStringParameter.Server, + DatabaseName, + DbConnectionStringParameter.IntegratedSecurity, + DbConnectionStringParameter.User, + DbConnectionStringParameter.Pass); + + protected override string DefaultDatabaseNamePrefix => "AnalyticsMiddleTier_Testing_Ds"; + + protected override string EnvParameterDataBaseNamePrefix => "SQLSERVER_DATABASE_DS"; + + public SqlServerConnection(string versionFileSuffix) : base(versionFileSuffix) + { + Initialize(); + } + + public override IOrm Orm => new DapperWrapper(new SqlConnection(ConnectionString)); + + public override IDatabaseMigrationStrategy DatabaseMigrationStrategy => new SqlServerMigrationStrategy(Orm); + + public override IUninstallStrategy UninstallStrategy => new SqlServerUninstallStrategy(Orm); + + private void Initialize() + { + DbConnectionStringParameter.UseDefaultConnectionString = UseEnvironmentConnectionString("USE_MSSQL_DEFAULT_CONN_STRING"); + + DbConnectionStringParameter.Server = GetEnvironmentVariable("SQLSERVER_SERVER"); + + DbConnectionStringParameter.IntegratedSecurity = GetEnvironmentVariable("SQLSERVER_INTEGRATED_SECURITY"); + + DbConnectionStringParameter.User = GetEnvironmentVariable("SQLSERVER_USER"); + + DbConnectionStringParameter.Pass = GetEnvironmentVariable("SQLSERVER_PASS"); + + DbConnectionStringParameter.AdminUser = GetEnvironmentVariable("SQLSERVER_ADMIN_USER") ?? "sa"; + + DbConnectionStringParameter.AdminUserPass = GetEnvironmentVariable("SQLSERVER_ADMIN_PASS"); + } + + private string GetConnectionStringFormat() + { + var integratedSecurityList = new List { "true", "sspi" }; + bool useIntegratedSecurity = integratedSecurityList + .Any(s => DbConnectionStringParameter.IntegratedSecurity.ToLower().Contains(s)); + + if (DbConnectionStringParameter.UseDefaultConnectionString) + { + return "server=localhost;database={1};integrated security=sspi"; + } + else if (useIntegratedSecurity) + { + return "server={0};database={1};integrated security={2};"; + } + else + { + return "server={0};database={1};User={3};Password={4}"; + } + } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/SqlServerDataStandardSettings.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/SqlServerDataStandardSettings.cs new file mode 100644 index 00000000..2fc58095 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DataStandardConfiguration/SqlServerDataStandardSettings.cs @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: Apache-2.0 +// Licensed to the Ed-Fi Alliance under one or more agreements. +// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +// See the LICENSE and NOTICES files in the project root for more information. + +using EdFi.AnalyticsMiddleTier.Common; + +namespace EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration +{ + public class SqlServerDataStandardSettings : DataStandardSettings + { + public override Engine DatabaseEngine => Engine.MSSQL; + + protected override string DatabaseBackupFileFormat => "EdFi_Ods_{0}.dacpac"; + + public SqlServerDataStandardSettings(DataStandard dataStandard) + { + InitializeSettings(dataStandard); + DatabaseConnection + = new SqlServerConnection(DatabaseVersionSuffix); + + } + } +} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DatabaseConnectionString.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DatabaseConnectionString.cs deleted file mode 100644 index 374a550c..00000000 --- a/src/EdFi.AnalyticsMiddleTier.Tests/DatabaseConnectionString.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace EdFi.AnalyticsMiddleTier.Tests -{ - public abstract class DatabaseConnectionString - { - private DotEnvHelper dotEnvHelper; - - protected DatabaseConnectionString() - { - dotEnvHelper = new DotEnvHelper(); - } - - protected string GetEnvironmentVariable(string key) - => ((Environment.GetEnvironmentVariable("GA_USE_GITHUB_ENV", EnvironmentVariableTarget.Process) ?? "false").ToLower().Equals("true")) - ? Environment.GetEnvironmentVariable(key, EnvironmentVariableTarget.Process) ?? string.Empty - : dotEnvHelper.Value(key) ?? string.Empty; - - protected bool UseEnvironmentConnectionString(string key) - { - string useDefaultConnectionString = GetEnvironmentVariable(key).ToLower(); - return String.IsNullOrWhiteSpace(useDefaultConnectionString) || useDefaultConnectionString == "true"; - } - - public virtual string GetMainDatabaseConnectionString{ - get; - } - } -} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view.cs index 803baf4c..da08f15f 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view.cs @@ -5,9 +5,8 @@ using System.Diagnostics.CodeAnalysis; using EdFi.AnalyticsMiddleTier.Common; -using EdFi.AnalyticsMiddleTier.Tests.Common; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using NUnit.Framework; -using Shouldly; namespace EdFi.AnalyticsMiddleTier.Tests.Dimensions { @@ -17,41 +16,24 @@ namespace EdFi.AnalyticsMiddleTier.Tests.Dimensions public abstract class When_querying_a_view : TestCaseBase { protected void PrepareTestData(string testCaseFolder, string xmlLoadFile) => - PrepareTestData(testCaseFolder, xmlLoadFile, false, null); + PrepareTestData(testCaseFolder, xmlLoadFile, null); - protected void PrepareTestData(string testCaseFolder, string xmlLoadFile, params Component[] components) => - PrepareTestData(testCaseFolder, xmlLoadFile, false, components); - - protected void PrepareTestData(string testCaseFolder, string xmlLoadFile, bool useCurrentDataStandard) => - PrepareTestData(testCaseFolder, xmlLoadFile, useCurrentDataStandard, null); - - protected void PrepareTestData(string testCaseFolder, string xmlLoadFile, bool useCurrentDataStandard, - params Component[] components) + protected void PrepareTestData(string testCaseFolder, string xmlLoadFile, params Component[] components) { foreach (var dataStandard in fixtureList.GetFixturesList()) { - ITestHarnessBase currentDataStandard; - if (dataStandard.GetType().ToString().Contains("TestHarnessSQLServer")) - { - currentDataStandard = ((TestHarnessSQLServer) dataStandard); - } - else - { - currentDataStandard = ((TestHarnessPostgres) dataStandard); - } - string xmlLoadFilePath = - $"{testCaseFolder}.{currentDataStandard.GetTestDataFolderName(useCurrentDataStandard)}.{xmlLoadFile}"; + $"{testCaseFolder}.{dataStandard}.{xmlLoadFile}"; - currentDataStandard.PrepareDatabase(); - currentDataStandard.LoadTestCaseData(xmlLoadFilePath); + dataStandard.PrepareDatabase(); + dataStandard.LoadTestCaseData(xmlLoadFilePath); if (components == null || components.Length == 0) { - currentDataStandard.Install(10); + dataStandard.Install(10); } else { - currentDataStandard.Install(10, components); + dataStandard.Install(10, components); } } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_ds3.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_ds3.cs index 40a95019..d13aef51 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_ds3.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_ds3.cs @@ -4,7 +4,7 @@ // See the LICENSE and NOTICES files in the project root for more information. using System.Diagnostics.CodeAnalysis; -using EdFi.AnalyticsMiddleTier.Tests.Common; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using NUnit.Framework; namespace EdFi.AnalyticsMiddleTier.Tests.Dimensions diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres.cs index 7f4a438f..90e982e0 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres.cs @@ -4,7 +4,7 @@ // See the LICENSE and NOTICES files in the project root for more information. using System.Diagnostics.CodeAnalysis; -using EdFi.AnalyticsMiddleTier.Tests.Common; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using NUnit.Framework; namespace EdFi.AnalyticsMiddleTier.Tests.Dimensions diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres_ds3.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres_ds3.cs index 29d3b1f1..24b9619c 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres_ds3.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_a_view_postgres_ds3.cs @@ -4,7 +4,7 @@ // See the LICENSE and NOTICES files in the project root for more information. using System.Diagnostics.CodeAnalysis; -using EdFi.AnalyticsMiddleTier.Tests.Common; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using NUnit.Framework; namespace EdFi.AnalyticsMiddleTier.Tests.Dimensions diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AcademicTimePeriodDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AcademicTimePeriodDim_view.cs index ea98b8ca..a9c00f65 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AcademicTimePeriodDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AcademicTimePeriodDim_view.cs @@ -33,7 +33,7 @@ public class Given_default_record_When_querying_the_AcademicTimePeriodDim_view [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -48,7 +48,7 @@ public void Then_should_return_one_record() public void Then_should_have_AcademicTimePeriodKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_AcademicTimePeriodKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_AcademicTimePeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -56,7 +56,7 @@ public void Then_should_have_AcademicTimePeriodKey() public void Then_should_have_GradingPeriodKey() { (bool success, string errorMessage) testResult = DataStandard - .RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_GradingPeriodKey.xml"); + .RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_GradingPeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -65,7 +65,7 @@ public void Then_should_have_IsCurrentSchoolYear() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_IsCurrentSchoolYear.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_IsCurrentSchoolYear.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -74,7 +74,7 @@ public void Then_should_have_LastModifiedDate_based_on_GradingPeriod() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_LastModifiedDate_based_on_GradingPeriod.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_LastModifiedDate_based_on_GradingPeriod.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -83,7 +83,7 @@ public void Then_should_have_LastModifiedDate_based_on_Session() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_LastModifiedDate_based_on_Session.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_LastModifiedDate_based_on_Session.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -92,7 +92,7 @@ public void Then_should_have_LastModifiedDate_based_on_SchoolYear() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_LastModifiedDate_based_on_SchoolYear.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_LastModifiedDate_based_on_SchoolYear.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -101,7 +101,7 @@ public void Then_should_have_SchoolKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_SchoolKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -110,7 +110,7 @@ public void Then_should_have_SchoolYear() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_SchoolYear.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_SchoolYear.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -119,7 +119,7 @@ public void Then_should_have_SchoolYearName() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_SchoolYearName.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_SchoolYearName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -128,7 +128,7 @@ public void Then_should_have_SessionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.should_have_SessionKey.xml"); + $"{TestCasesFolder}.{DataStandard.TestDataFolderName}.should_have_SessionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -137,7 +137,7 @@ public void Then_should_have_TermName() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.should_have_TermName.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.should_have_TermName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -146,7 +146,7 @@ public void Then_additional_join_condition_test() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.additional_join_condition_test.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.additional_join_condition_test.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AssessmentFact_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AssessmentFact_view.cs index d683fc20..3c5fc3b0 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AssessmentFact_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_AssessmentFact_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_AssessmentFact_view : When_querying_a_vi [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_AssessmentFact_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_AssessmentFact_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] @@ -30,7 +30,7 @@ public class SetupAssessmentFactTestCase : When_querying_the_AssessmentFact_view { [OneTimeSetUp] - public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, true, Component.Asmt); + public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, Component.Asmt); } public class Given_assessment_2s3ch0knpb4val7uqve6mn269bavkdx2 : When_querying_the_AssessmentFact_view diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ChronicAbsenteeismAttendanceFact_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ChronicAbsenteeismAttendanceFact_view.cs index fd3e13c6..e2a127e3 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ChronicAbsenteeismAttendanceFact_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ChronicAbsenteeismAttendanceFact_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_ChronicAbsenteeismAttendanceFact_view : [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ClassPeriodDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ClassPeriodDim_view.cs index 14ae30a5..08f03cdd 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ClassPeriodDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ClassPeriodDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_ClassPeriodDim_view_base : When_querying [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_ClassPeriodDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_ClassPeriodDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] @@ -40,7 +40,7 @@ public class When_querying_the_ClassPeriodDim_view [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -49,7 +49,7 @@ public void Then_should_not_return_any_record() { if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds2)) { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_not_return_any_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_not_return_any_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } else @@ -61,42 +61,42 @@ public void Then_should_not_return_any_record() [Test] public void Then_should_have_ClassPeriodKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_ClassPeriodKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_ClassPeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_ClassPeriodName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_ClassPeriodName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_ClassPeriodName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LocalCourseCode() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LocalCourseCode.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LocalCourseCode.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SchoolId() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolId.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolId.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SchoolYear() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolYear.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolYear.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -105,14 +105,14 @@ public void Then_should_have_SectionIdentifier() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionIdentifier.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionIdentifier.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SessionName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SessionName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SessionName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ContactPersonDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ContactPersonDim_view.cs index 6263929a..ac6f196e 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ContactPersonDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_ContactPersonDim_view.cs @@ -20,7 +20,7 @@ public abstract class When_querying_the_ContactPersonDim_view : When_querying_a_ [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_ContactPersonDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_ContactPersonDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] @@ -28,7 +28,7 @@ public class SetupContactPersonDim : When_querying_the_ContactPersonDim_view { [OneTimeSetUp] - public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, true); + public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, null); } public class Given_contact_person_132500_189856 : When_querying_the_ContactPersonDim_view diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DateDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DateDim_view.cs index 9ee5b8cf..db6f4160 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DateDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DateDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_DateDim_view : When_querying_a_view_post [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.GetTestDataFolderName(false)}.0001_view_should_match_column_dictionary.json"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_view_should_match_column_dictionary.json"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DemographicDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DemographicDim_view.cs index 0898e7c0..92074500 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DemographicDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_DemographicDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_DemographicDim_view : When_querying_a_vi [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_DemographicDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_DemographicDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_FeederSchoolDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_FeederSchoolDim_view.cs index 8ac3a9c7..c6669fb1 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_FeederSchoolDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_FeederSchoolDim_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_FeederSchoolDim_view : When_querying_a_v [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_FeederSchoolDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_FeederSchoolDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_GradingPeriodDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_GradingPeriodDim_view.cs index d7ac74c5..34058b0b 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_GradingPeriodDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_GradingPeriodDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_GradingPeriodDim_view : When_querying_a_ [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.GetTestDataFolderName(false)}.0001_GradingPeriodDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_GradingPeriodDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_LocalEducationAgencyDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_LocalEducationAgencyDim_view.cs index 9e6be7f9..549b418a 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_LocalEducationAgencyDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_LocalEducationAgencyDim_view.cs @@ -20,7 +20,7 @@ public abstract class When_querying_the_LocalEducationAgencyDim_view : When_quer [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.GetTestDataFolderName(false)}.0001_LocalEducationAgencyDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_LocalEducationAgencyDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] 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 13dc1fdf..86c048f6 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 @@ -20,7 +20,7 @@ public abstract class When_querying_the_SchoolDim_view_base : When_querying_a_vi [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_view_should_match_column_dictionary.json"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard}.0001_view_should_match_column_dictionary.json"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -29,7 +29,7 @@ public class SetupSchoolDimTestCase : When_querying_the_SchoolDim_view_base { [OneTimeSetUp] - public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, true); + public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, null); } [SuppressMessage("ReSharper", "InconsistentNaming")] public class When_querying_the_SchoolDim_view 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 7bb1487b..8c76ffaa 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 @@ -21,35 +21,35 @@ public abstract class When_querying_the_SectionDim_view_base : When_querying_a_v [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.GetTestDataFolderName(false)}.0001_SectionDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_SectionDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.YTAR11_should_have_SectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.YTAR11_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.YTAR11_should_have_SectionName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.YTAR11_should_have_SectionName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SessionName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.YTAR11_should_have_SessionName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.YTAR11_should_have_SessionName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_EducationalEnvironmentDescriptor() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.YTAR11_should_have_EducationalEnvironmentDescriptor.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.YTAR11_should_have_EducationalEnvironmentDescriptor.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -120,7 +120,7 @@ public void Then_should_have_CourseTitle() [Test] public void Then_should_have_SessionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SessionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SessionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -143,14 +143,14 @@ public void SetUp() [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0002_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0002_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_2() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0003_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0003_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -172,63 +172,63 @@ public void SetUp() [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0002_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0002_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_2() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0003_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0003_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_no_records() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0004_Should_return_no_records.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0004_Should_return_no_records.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_3() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0005_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0005_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_4() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0006_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0006_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_5() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0007_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0007_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_6() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0008_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0008_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_7() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0009_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0009_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_return_one_record_8() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.0010_Should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.0010_Should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffClassificationDescriptorScopeList_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffClassificationDescriptorScopeList_view.cs index 3f304313..9876cf5e 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffClassificationDescriptorScopeList_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffClassificationDescriptorScopeList_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StaffClassificationDescriptorScopeList : [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffSectionDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffSectionDim_view.cs index 284faa96..7c393928 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffSectionDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StaffSectionDim_view.cs @@ -20,7 +20,7 @@ public abstract class When_querying_the_StaffSectionDim_view : When_querying_a_v [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] @@ -40,125 +40,125 @@ public class Given_StaffSection_11324_XLTV31 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_BirthDate() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_BirthDate.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_BirthDate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_ElectronicMailAddress_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_ElectronicMailAddress_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_ElectronicMailAddress_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LastModifiedDate() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LastModifiedDate.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LastModifiedDate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffFirstName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffFirstName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffFirstName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HighestCompletedLevelOfEducation() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HighestCompletedLevelOfEducation.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HighestCompletedLevelOfEducation.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HighlyQualifiedTeacher() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HighlyQualifiedTeacher.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HighlyQualifiedTeacher.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HispanicLatinoEthnicity() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffLastName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffLastName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffLastName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LoginId() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LoginId.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LoginId.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffMiddleName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffMiddleName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffMiddleName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_PersonalTitlePrefix_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_PersonalTitlePrefix_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_PersonalTitlePrefix_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_Race() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_Race.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_Race.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SchoolKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_Sex() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_Sex.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_Sex.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffSectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_UserKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_UserKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_UserKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_YearsOfPriorProfessionalExperience() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_YearsOfPriorProfessionalExperience.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_YearsOfPriorProfessionalExperience.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_YearsOfPriorTeachingExperience() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_YearsOfPriorTeachingExperience.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_YearsOfPriorTeachingExperience.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -173,125 +173,125 @@ public class Given_StaffSection_11331_NCMR11 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_BirthDate() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_BirthDate.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_BirthDate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_ElectronicMailAddress() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_ElectronicMailAddress.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_ElectronicMailAddress.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LastModifiedDate() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LastModifiedDate.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LastModifiedDate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffFirstName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffFirstName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffFirstName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HighestCompletedLevelOfEducation() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HighestCompletedLevelOfEducation.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HighestCompletedLevelOfEducation.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HighlyQualifiedTeacher() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HighlyQualifiedTeacher.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HighlyQualifiedTeacher.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HispanicLatinoEthnicity() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffLastName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffLastName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffLastName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LoginId() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LoginId.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LoginId.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffMiddleName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffMiddleName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffMiddleName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_PersonalTitlePrefix() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_PersonalTitlePrefix.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_PersonalTitlePrefix.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_Race() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_Race.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_Race.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SchoolKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_Sex() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_Sex.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_Sex.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffSectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_UserKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_UserKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_UserKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_YearsOfPriorProfessionalExperience() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_YearsOfPriorProfessionalExperience.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_YearsOfPriorProfessionalExperience.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_YearsOfPriorTeachingExperience() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_YearsOfPriorTeachingExperience.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_YearsOfPriorTeachingExperience.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -306,26 +306,26 @@ public class Given_StaffSection_11331_2012 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SchoolKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffSectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -340,125 +340,125 @@ public class Given_StaffSection_13724_BPPR20 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_BirthDate_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_BirthDate_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_BirthDate_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_ElectronicMailAddress_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_ElectronicMailAddress_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_ElectronicMailAddress_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LastModifiedDate() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LastModifiedDate.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LastModifiedDate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffFirstName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffFirstName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffFirstName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HighestCompletedLevelOfEducation_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HighestCompletedLevelOfEducation_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HighestCompletedLevelOfEducation_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HighlyQualifiedTeacher_Zero() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HighlyQualifiedTeacher_Zero.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HighlyQualifiedTeacher_Zero.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_HispanicLatinoEthnicity() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffLastName() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffLastName.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffLastName.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_LoginId_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LoginId_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LoginId_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffMiddleName_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffMiddleName_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffMiddleName_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_PersonalTitlePrefix_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_PersonalTitlePrefix_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_PersonalTitlePrefix_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_Race() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_Race.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_Race.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SchoolKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_SectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_Sex_Empty() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_Sex_Empty.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_Sex_Empty.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_StaffSectionKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StaffSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_UserKey() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_UserKey.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_UserKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_YearsOfPriorProfessionalExperience_Zero() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_YearsOfPriorProfessionalExperience_Zero.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_YearsOfPriorProfessionalExperience_Zero.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_YearsOfPriorTeachingExperience_Zero() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_YearsOfPriorTeachingExperience_Zero.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_YearsOfPriorTeachingExperience_Zero.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -473,7 +473,7 @@ public class Given_StaffSection_142990_NCMR11 [Test] public void Then_should_have_HispanicLatinoEthnicity_Zero() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity_Zero.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_HispanicLatinoEthnicity_Zero.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentAssessmentFact_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentAssessmentFact_view.cs index d4970af2..9f5face5 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentAssessmentFact_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentAssessmentFact_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_StudentAssessmentFact_view : When_queryi [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentAssessmentFact_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentAssessmentFact_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDataAuthorization_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDataAuthorization_view.cs index 09c96475..055abe89 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDataAuthorization_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDataAuthorization_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StudentDataAuthorization_view : When_que [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_view_should_match_column_dictionary.json"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_view_should_match_column_dictionary.json"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] @@ -29,7 +29,7 @@ public class SetupStudentDataAuthorizationTestCase : When_querying_the_StudentDataAuthorization_view { [OneTimeSetUp] - public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName,Component.RLS); + public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName, Component.RLS); } [SuppressMessage("ReSharper", "InconsistentNaming")] public class When_querying_the_StudentDataAuthorization_view_custom diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDisciplineActionDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDisciplineActionDim_view.cs index 382266c7..0a1e3ace 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDisciplineActionDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentDisciplineActionDim_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_StudentDisciplineActionDim_view : When_q [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentDisciplineActionDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentDisciplineActionDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentEarlyWarningFact_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentEarlyWarningFact_view.cs index 38378400..db992c2b 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentEarlyWarningFact_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentEarlyWarningFact_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_StudentEarlyWarningFact_view : When_quer [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentEarlyWarningFact_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentEarlyWarningFact_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [SetUpFixture] diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentHistoryDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentHistoryDim_view.cs index 17d691d8..c75b97fb 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentHistoryDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentHistoryDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StudentHistoryDim_view : When_querying_a [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentHistoryDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentHistoryDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDemographicsBridge_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDemographicsBridge_view.cs index 9745b353..ebd648bc 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDemographicsBridge_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDemographicsBridge_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StudentLocalEducationAgencyDemographicsB [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.GetTestDataFolderName(false)}.0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDim_view.cs index 5e0b5ee9..cb686b12 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentLocalEducationAgencyDim_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_StudentLocalEducationAgencyDim_view : Wh [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramCohortDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramCohortDim_view.cs index b58b4a05..09634500 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramCohortDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramCohortDim_view.cs @@ -24,7 +24,7 @@ public void Then_view_should_match_column_dictionary() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentProgramCohortDim_should_match_column_dictionary.xml"); + $"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentProgramCohortDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramDim_view.cs index 69c88dab..e36547ef 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentProgramDim_view.cs @@ -18,7 +18,7 @@ public void Then_view_should_match_column_dictionary() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_StudentProgramDim_should_match_column_dictionary.xml"); + $"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentProgramDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -27,7 +27,7 @@ public class SetupStudentProgramDimTestCase : When_querying_the_StudentProgramDim_view { [OneTimeSetUp] - public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName,true); + public void PrepareDatabase() => PrepareTestData(TestCasesFolder, TestCasesDataFileName); } [SuppressMessage("ReSharper", "InconsistentNaming")] diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDemographicsBridge_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDemographicsBridge_view.cs index f91bc3d6..fe5b7859 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDemographicsBridge_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDemographicsBridge_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_StudentSchoolDemographicsBridge_view : W [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDim_view.cs index 5f491117..022cd078 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StudentSchoolDim_view : When_querying_a_ [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_StudentSchoolDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentSchoolDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolFoodServiceProgramDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolFoodServiceProgramDim_view.cs index 29a66ef2..a8636bc4 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolFoodServiceProgramDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSchoolFoodServiceProgramDim_view.cs @@ -22,7 +22,7 @@ public abstract class When_querying_the_StudentSchoolFoodServiceProgramDim_view [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionDim_view.cs index c37eccaf..c43e8498 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StudentSectionDim_view : When_querying_a public void Then_view_should_match_column_dictionary() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_StudentSectionDim_should_match_column_dictionary.xml"); + $"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentSectionDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -44,7 +44,7 @@ public void Then_should_return_one_record() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -53,7 +53,7 @@ public void Then_studentsectionkey_should_be_set_correctly() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_studentsectionkey_should_be_set_correctly.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_studentsectionkey_should_be_set_correctly.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -62,7 +62,7 @@ public void Then_should_have_course_title_not_null() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_course_title_not_null.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_course_title_not_null.xml"); testResult.success.ShouldBe(false, testResult.errorMessage); } @@ -71,7 +71,7 @@ public void Then_sectionkey_should_be_set_correctly() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_sectionkey_should_be_set_correctly.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_sectionkey_should_be_set_correctly.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -80,7 +80,7 @@ public void Then_should_have_lastmodifieddate() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -88,7 +88,7 @@ public void Then_should_have_lastmodifieddate() public void Then_should_have_local_course() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_local_course.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_local_course.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -96,7 +96,7 @@ public void Then_should_have_local_course() public void Then_should_have_schoolkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_schoolkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_schoolkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -104,7 +104,7 @@ public void Then_should_have_schoolkey() public void Then_should_have_studentkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -112,7 +112,7 @@ public void Then_should_have_studentkey() public void Then_should_have_studentschoolkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentschoolkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentschoolkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -120,7 +120,7 @@ public void Then_should_have_studentschoolkey() public void Then_should_have_studentsectionenddatekey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentsectionenddatekey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentsectionenddatekey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -128,7 +128,7 @@ public void Then_should_have_studentsectionenddatekey() public void Then_should_have_studentsectionstartdatekey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentsectionstartdatekey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentsectionstartdatekey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -136,7 +136,7 @@ public void Then_should_have_studentsectionstartdatekey() public void Then_should_have_subject() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_subject.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_subject.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -144,7 +144,7 @@ public void Then_should_have_subject() public void Then_should_have_teacher_empty() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_teacher_empty.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_teacher_empty.xml"); Result.success.ShouldBe(true, Result.errorMessage); } } @@ -160,7 +160,7 @@ public void Then_should_return_one_record() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -169,7 +169,7 @@ public void Then_studentsectionkey_should_be_set_correctly() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_studentsectionkey_should_be_set_correctly.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_studentsectionkey_should_be_set_correctly.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -178,7 +178,7 @@ public void Then_sectionkey_should_be_set_correctly() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_sectionkey_should_be_set_correctly.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_sectionkey_should_be_set_correctly.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -187,7 +187,7 @@ public void Then_should_have_course_title_not_null() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_course_title_not_null.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_course_title_not_null.xml"); testResult.success.ShouldBe(false, testResult.errorMessage); } @@ -196,7 +196,7 @@ public void Then_should_have_lastmodifieddate() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -204,7 +204,7 @@ public void Then_should_have_lastmodifieddate() public void Then_should_have_local_course() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_local_course.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_local_course.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -212,7 +212,7 @@ public void Then_should_have_local_course() public void Then_should_have_schoolkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_schoolkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_schoolkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -220,7 +220,7 @@ public void Then_should_have_schoolkey() public void Then_should_have_studentkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -228,7 +228,7 @@ public void Then_should_have_studentkey() public void Then_should_have_studentschoolkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentschoolkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentschoolkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -236,7 +236,7 @@ public void Then_should_have_studentschoolkey() public void Then_should_have_studentsectionenddatekey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentsectionenddatekey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentsectionenddatekey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -244,7 +244,7 @@ public void Then_should_have_studentsectionenddatekey() public void Then_should_have_studentsectionstartdatekey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentsectionstartdatekey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentsectionstartdatekey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -252,7 +252,7 @@ public void Then_should_have_studentsectionstartdatekey() public void Then_should_have_subject_empty() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_subject_empty.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_subject_empty.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -260,7 +260,7 @@ public void Then_should_have_subject_empty() public void Then_should_have_teacher_empty() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_teacher_empty.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_teacher_empty.xml"); Result.success.ShouldBe(true, Result.errorMessage); } } @@ -276,7 +276,7 @@ public void Then_should_return_one_record() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -285,7 +285,7 @@ public void Then_studentsectionkey_should_be_set_correctly() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_studentsectionkey_should_be_set_correctly.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_studentsectionkey_should_be_set_correctly.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -294,7 +294,7 @@ public void Then_sectionkey_should_be_set_correctly() { (bool success, string errorMessage) testResult = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_sectionkey_should_be_set_correctly.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_sectionkey_should_be_set_correctly.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -303,7 +303,7 @@ public void Then_should_have_course_title_not_null() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_course_title_not_null.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_course_title_not_null.xml"); testResult.success.ShouldBe(false, testResult.errorMessage); } @@ -312,7 +312,7 @@ public void Then_should_have_lastmodifieddate() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -320,7 +320,7 @@ public void Then_should_have_lastmodifieddate() public void Then_should_have_local_course() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_local_course.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_local_course.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -328,7 +328,7 @@ public void Then_should_have_local_course() public void Then_should_have_schoolkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_schoolkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_schoolkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -336,7 +336,7 @@ public void Then_should_have_schoolkey() public void Then_should_have_studentkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -344,7 +344,7 @@ public void Then_should_have_studentkey() public void Then_should_have_studentschoolkey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentschoolkey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentschoolkey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -352,7 +352,7 @@ public void Then_should_have_studentschoolkey() public void Then_should_have_studentsectionenddatekey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentsectionenddatekey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentsectionenddatekey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -360,7 +360,7 @@ public void Then_should_have_studentsectionenddatekey() public void Then_should_have_studentsectionstartdatekey() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_studentsectionstartdatekey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_studentsectionstartdatekey.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -368,7 +368,7 @@ public void Then_should_have_studentsectionstartdatekey() public void Then_should_have_subject() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_subject.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_subject.xml"); Result.success.ShouldBe(true, Result.errorMessage); } @@ -376,14 +376,14 @@ public void Then_should_have_subject() public void Then_should_have_multiple_teacher() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_multiple_teacher.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_multiple_teacher.xml"); Result.success.ShouldBe(true, Result.errorMessage); } [Test] public void Then_should_have_school_year() { Result = DataStandard.RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_school_year.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_school_year.xml"); Result.success.ShouldBe(true, Result.errorMessage); } } @@ -399,7 +399,7 @@ public void Then_should_have_lastmodifieddate() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_lastmodifieddate.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionGradeFact_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionGradeFact_view.cs index 0e652449..f5cc8a52 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionGradeFact_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_StudentSectionGradeFact_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_StudentSectionGradeFact_view : When_quer [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_StudentSectionGradeFact_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_StudentSectionGradeFact_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -41,7 +41,7 @@ public class Given_sudent_section_grade_fact_189889 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -50,7 +50,7 @@ public void Then_should_have_StudentKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -58,7 +58,7 @@ public void Then_should_have_SchoolKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -66,7 +66,7 @@ public void Then_should_have_GradingPeriodKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -74,7 +74,7 @@ public void Then_should_have_StudentSectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -82,7 +82,7 @@ public void Then_should_have_SectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -90,7 +90,7 @@ public void Then_should_have_NumericGradeEarned() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_NumericGradeEarned.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_NumericGradeEarned.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -98,7 +98,7 @@ public void Then_should_have_LetterGradeEarned() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LetterGradeEarned.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LetterGradeEarned.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -107,7 +107,7 @@ public void Then_should_have_GradeType() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradeType.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradeType.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -120,7 +120,7 @@ public class Given_sudent_section_grade_fact_189919 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -129,7 +129,7 @@ public void Then_should_have_StudentKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -137,7 +137,7 @@ public void Then_should_have_SchoolKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -145,7 +145,7 @@ public void Then_should_have_GradingPeriodKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -153,7 +153,7 @@ public void Then_should_have_StudentSectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -161,7 +161,7 @@ public void Then_should_have_SectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -169,7 +169,7 @@ public void Then_should_have_NumericGradeEarned() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_NumericGradeEarned.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_NumericGradeEarned.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -177,7 +177,7 @@ public void Then_should_have_LetterGradeEarned_null() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LetterGradeEarned_null.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LetterGradeEarned_null.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -185,7 +185,7 @@ public void Then_should_have_GradeType() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradeType.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradeType.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -198,7 +198,7 @@ public class Given_sudent_section_grade_fact_190966 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -207,7 +207,7 @@ public void Then_should_have_StudentKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -215,7 +215,7 @@ public void Then_should_have_SchoolKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -223,7 +223,7 @@ public void Then_should_have_GradingPeriodKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -231,7 +231,7 @@ public void Then_should_have_StudentSectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -239,7 +239,7 @@ public void Then_should_have_SectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -247,7 +247,7 @@ public void Then_should_have_NumericGradeEarned_null() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_NumericGradeEarned_null.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_NumericGradeEarned_null.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -255,7 +255,7 @@ public void Then_should_have_LetterGradeEarned() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LetterGradeEarned.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LetterGradeEarned.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -263,7 +263,7 @@ public void Then_should_have_GradeType() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradeType.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradeType.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -276,7 +276,7 @@ public class Given_sudent_section_grade_fact_189914 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -285,7 +285,7 @@ public void Then_should_have_StudentKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -293,7 +293,7 @@ public void Then_should_have_SchoolKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SchoolKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SchoolKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -301,7 +301,7 @@ public void Then_should_have_GradingPeriodKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradingPeriodKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -309,7 +309,7 @@ public void Then_should_have_StudentSectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_StudentSectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -317,7 +317,7 @@ public void Then_should_have_SectionKey() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_SectionKey.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_SectionKey.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -325,7 +325,7 @@ public void Then_should_have_NumericGradeEarned() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_NumericGradeEarned.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_NumericGradeEarned.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -333,7 +333,7 @@ public void Then_should_have_LetterGradeEarned() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_LetterGradeEarned.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_LetterGradeEarned.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] @@ -341,7 +341,7 @@ public void Then_should_have_GradeType() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradeType.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradeType.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -353,7 +353,7 @@ public class Given_sudent_section_grade_fact_203451 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -362,7 +362,7 @@ public void Then_should_have_GradeType() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradeType.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradeType.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -374,7 +374,7 @@ public class Given_sudent_section_grade_fact_205689 [Test] public void Then_should_return_one_record() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_return_one_record.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_return_one_record.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -383,7 +383,7 @@ public void Then_should_have_GradeType() { (bool success, string errorMessage) testResult = DataStandard .RunTestCase( - $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.{_caseIdentifier}_should_have_GradeType.xml"); + $"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.{_caseIdentifier}_should_have_GradeType.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserAuthorization_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserAuthorization_view.cs index 1e556d72..bbd0ed42 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserAuthorization_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserAuthorization_view.cs @@ -20,7 +20,7 @@ public abstract class When_querying_the_UserAuthorization_view : When_querying_a [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_view_should_match_column_dictionary.json"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_view_should_match_column_dictionary.json"); testResult.success.ShouldBe(true, testResult.errorMessage); } @@ -159,7 +159,7 @@ public void Then_SectionPermission_with_UserScope_equal_to_Section_is_returned_p [Test] public void Then_SectionPermission_with_UserScope_equal_to_SectionKey_is_returned_properly() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersion}.querying_SectionPermission_should_have_SectionKeyPermission.json"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardBaseVersionFolderName}.querying_SectionPermission_should_have_SectionKeyPermission.json"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserDim_view.cs index d97792c9..c7a963c2 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserDim_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_UserDim_view : When_querying_a_view_post [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0001_UserDim_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_UserDim_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserStudentDataAuthorization_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserStudentDataAuthorization_view.cs index d62859c4..de943192 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserStudentDataAuthorization_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_UserStudentDataAuthorization_view.cs @@ -21,7 +21,7 @@ public abstract class When_querying_the_UserStudentDataAuthorization_view : When [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardEngine}.0001_UserStudentDataAuthorization_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0001_UserStudentDataAuthorization_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/DotEnvHelper.cs b/src/EdFi.AnalyticsMiddleTier.Tests/DotEnvHelper.cs index 9a0b026b..f60078f8 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/DotEnvHelper.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/DotEnvHelper.cs @@ -5,12 +5,15 @@ namespace EdFi.AnalyticsMiddleTier.Tests { public class DotEnvHelper { - private IDictionary _variables; + private readonly IDictionary _variables; public DotEnvHelper() { if (_variables != null) + { return; + } + _variables = DotEnv.Read(); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.AnalyticsMiddleTier.Tests.csproj b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.AnalyticsMiddleTier.Tests.csproj index d4614586..f22ac6fb 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.AnalyticsMiddleTier.Tests.csproj +++ b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.AnalyticsMiddleTier.Tests.csproj @@ -1,4 +1,4 @@ - + 8.0 @@ -44,6 +44,7 @@ + @@ -59,46 +60,11 @@ PreserveNewest + + PreserveNewest + + + PreserveNewest + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods.Minimal.Template.sql b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods32.Minimal.Template.sql similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods.Minimal.Template.sql rename to src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods32.Minimal.Template.sql diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods33.Minimal.Template.sql b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods33.Minimal.Template.sql new file mode 100644 index 00000000..5fda9a61 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi.Ods33.Minimal.Template.sql @@ -0,0 +1,81150 @@ +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 11.6 +-- Dumped by pg_dump version 12.2 + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: auth; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA auth; + + +ALTER SCHEMA auth OWNER TO postgres; + +-- +-- Name: changes; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA changes; + + +ALTER SCHEMA changes OWNER TO postgres; + +-- +-- Name: edfi; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA edfi; + + +ALTER SCHEMA edfi OWNER TO postgres; + +-- +-- Name: interop; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA interop; + + +ALTER SCHEMA interop OWNER TO postgres; + +-- +-- Name: tracked_deletes_edfi; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA tracked_deletes_edfi; + + +ALTER SCHEMA tracked_deletes_edfi OWNER TO postgres; + +-- +-- Name: util; Type: SCHEMA; Schema: -; Owner: postgres +-- + +CREATE SCHEMA util; + + +ALTER SCHEMA util OWNER TO postgres; + +-- +-- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner: - +-- + +CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public; + + +-- +-- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner: +-- + +COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; + + +-- +-- Name: getmaxchangeversion(); Type: FUNCTION; Schema: changes; Owner: postgres +-- + +CREATE FUNCTION changes.getmaxchangeversion() RETURNS bigint + LANGUAGE plpgsql + AS $$ +DECLARE + result bigint; +BEGIN + SELECT last_value FROM changes.ChangeVersionSequence INTO result; + RETURN result; +END +$$; + + +ALTER FUNCTION changes.getmaxchangeversion() OWNER TO postgres; + +-- +-- Name: updatechangeversion(); Type: FUNCTION; Schema: changes; Owner: postgres +-- + +CREATE FUNCTION changes.updatechangeversion() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + new.ChangeVersion := nextval('changes.ChangeVersionSequence'); + RETURN new; +END; +$$; + + +ALTER FUNCTION changes.updatechangeversion() OWNER TO postgres; + +-- +-- Name: edfi_communityorganization_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_communityorganization_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.communityorganizationid + AND targeteducationorganizationid = OLD.communityorganizationid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_communityorganization_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_communityorganization_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_communityorganization_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.communityorganizationid AS SourceEducationOrganizationId, + NEW.communityorganizationid AS targeteducationorganizationid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_communityorganization_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_communityprovider_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_communityprovider_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove affected tuples + WITH cj AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be deleted by clearing or changing the communityorganizationid + SELECT tuples.sourceeducationorganizationid, OLD.communityproviderid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.communityorganizationid + AND OLD.communityorganizationid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the descendants of the communityprovider (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, OLD.communityproviderid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = OLD.communityproviderid + ) as targets + WHERE sources.communityproviderid = targets.communityproviderid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.communityproviderid + AND targeteducationorganizationid = OLD.communityproviderid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_communityprovider_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_communityprovider_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_communityprovider_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.communityproviderid AS SourceEducationOrganizationId, + NEW.communityproviderid AS targeteducationorganizationid; + + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT sources.SourceEducationOrganizationId, targets.targeteducationorganizationid + FROM ( + -- Find ancestors that need to have tuples inserted due to assignment of the communityorganizationid + SELECT tuples.SourceEducationOrganizationId, NEW.communityproviderid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.communityorganizationid + AND NEW.communityorganizationid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the existing targets/descendants (to be cross joined with all the affected ancestor sources) + ( + SELECT NEW.communityproviderid, tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.SourceEducationOrganizationId = NEW.communityproviderid + ) as targets + WHERE sources.communityproviderid = targets.communityproviderid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_communityprovider_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_communityprovider_tr_update(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_communityprovider_tr_update() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove all tuples impacted by the clearing or changing of the parent education organizations + WITH cj AS ( + SELECT d1.sourceeducationorganizationid, d2.targeteducationorganizationid + FROM ( + -- Find ancestors to be deleted by clearing or changing the communityorganizationid + SELECT tuples.sourceeducationorganizationid, new.communityproviderid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.communityorganizationid + AND OLD.communityorganizationid IS NOT NULL + AND (NEW.communityorganizationid IS NULL OR OLD.communityorganizationid <> NEW.communityorganizationid) + + EXCEPT + + -- Find ancestors that should remain due to new value for the communityorganizationid + SELECT tuples.sourceeducationorganizationid, NEW.communityproviderid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.communityorganizationid + ) AS d1 + + CROSS JOIN + -- Get all the descendants of the communityprovider (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, NEW.communityproviderid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE NEW.communityproviderid = tuples.sourceeducationorganizationid + ) as d2 + WHERE d1.communityproviderid = d2.communityproviderid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Add new tuples resulting from the changes/initializations of parent Education Organization ids + WITH source(sourceeducationorganizationid, targeteducationorganizationid) AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be inserted by initializing or changing the communityorganizationid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.communityorganizationid + AND ((OLD.communityorganizationid IS NULL AND NEW.communityorganizationid IS NOT NULL) + OR OLD.communityorganizationid <> NEW.communityorganizationid) + ) as sources + CROSS JOIN ( + -- Get all the descendants of the communityprovider (to be cross joined with all the affected ancestor sources) + SELECT tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = NEW.communityproviderid + ) AS targets + ) + INSERT INTO auth.educationorganizationidtoeducationorganizationid(sourceeducationorganizationid, targeteducationorganizationid) + SELECT source.sourceeducationorganizationid, source.targeteducationorganizationid + FROM source + ON CONFLICT DO NOTHING; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_communityprovider_tr_update() OWNER TO postgres; + +-- +-- Name: edfi_educationorganizationnetwork_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_educationorganizationnetwork_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.educationorganizationnetworkid + AND targeteducationorganizationid = OLD.educationorganizationnetworkid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_educationorganizationnetwork_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_educationorganizationnetwork_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_educationorganizationnetwork_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.educationorganizationnetworkid AS SourceEducationOrganizationId, + NEW.educationorganizationnetworkid AS targeteducationorganizationid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_educationorganizationnetwork_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_educationservicecenter_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_educationservicecenter_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove affected tuples + WITH cj AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be deleted by clearing or changing the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid, OLD.educationservicecenterid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.stateeducationagencyid + AND OLD.stateeducationagencyid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the descendants of the educationservicecenter (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, OLD.educationservicecenterid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = OLD.educationservicecenterid + ) as targets + WHERE sources.educationservicecenterid = targets.educationservicecenterid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.educationservicecenterid + AND targeteducationorganizationid = OLD.educationservicecenterid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_educationservicecenter_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_educationservicecenter_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_educationservicecenter_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.educationservicecenterid AS SourceEducationOrganizationId, + NEW.educationservicecenterid AS targeteducationorganizationid; + + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT sources.SourceEducationOrganizationId, targets.targeteducationorganizationid + FROM ( + -- Find ancestors that need to have tuples inserted due to assignment of the stateeducationagencyid + SELECT tuples.SourceEducationOrganizationId, NEW.educationservicecenterid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.stateeducationagencyid + AND NEW.stateeducationagencyid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the existing targets/descendants (to be cross joined with all the affected ancestor sources) + ( + SELECT NEW.educationservicecenterid, tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.SourceEducationOrganizationId = NEW.educationservicecenterid + ) as targets + WHERE sources.educationservicecenterid = targets.educationservicecenterid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_educationservicecenter_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_educationservicecenter_tr_update(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_educationservicecenter_tr_update() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove all tuples impacted by the clearing or changing of the parent education organizations + WITH cj AS ( + SELECT d1.sourceeducationorganizationid, d2.targeteducationorganizationid + FROM ( + -- Find ancestors to be deleted by clearing or changing the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid, new.educationservicecenterid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.stateeducationagencyid + AND OLD.stateeducationagencyid IS NOT NULL + AND (NEW.stateeducationagencyid IS NULL OR OLD.stateeducationagencyid <> NEW.stateeducationagencyid) + + EXCEPT + + -- Find ancestors that should remain due to new value for the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid, NEW.educationservicecenterid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.stateeducationagencyid + ) AS d1 + + CROSS JOIN + -- Get all the descendants of the educationservicecenter (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, NEW.educationservicecenterid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE NEW.educationservicecenterid = tuples.sourceeducationorganizationid + ) as d2 + WHERE d1.educationservicecenterid = d2.educationservicecenterid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Add new tuples resulting from the changes/initializations of parent Education Organization ids + WITH source(sourceeducationorganizationid, targeteducationorganizationid) AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be inserted by initializing or changing the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.stateeducationagencyid + AND ((OLD.stateeducationagencyid IS NULL AND NEW.stateeducationagencyid IS NOT NULL) + OR OLD.stateeducationagencyid <> NEW.stateeducationagencyid) + ) as sources + CROSS JOIN ( + -- Get all the descendants of the educationservicecenter (to be cross joined with all the affected ancestor sources) + SELECT tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = NEW.educationservicecenterid + ) AS targets + ) + INSERT INTO auth.educationorganizationidtoeducationorganizationid(sourceeducationorganizationid, targeteducationorganizationid) + SELECT source.sourceeducationorganizationid, source.targeteducationorganizationid + FROM source + ON CONFLICT DO NOTHING; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_educationservicecenter_tr_update() OWNER TO postgres; + +-- +-- Name: edfi_localeducationagency_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_localeducationagency_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove affected tuples + WITH cj AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be deleted by clearing or changing the parentlocaleducationagencyid + SELECT tuples.sourceeducationorganizationid, OLD.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.parentlocaleducationagencyid + AND OLD.parentlocaleducationagencyid IS NOT NULL + + UNION + + -- Find ancestors to be deleted by clearing or changing the educationservicecenterid + SELECT tuples.sourceeducationorganizationid, OLD.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.educationservicecenterid + AND OLD.educationservicecenterid IS NOT NULL + + UNION + + -- Find ancestors to be deleted by clearing or changing the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid, OLD.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.stateeducationagencyid + AND OLD.stateeducationagencyid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the descendants of the localeducationagency (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, OLD.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = OLD.localeducationagencyid + ) as targets + WHERE sources.localeducationagencyid = targets.localeducationagencyid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.localeducationagencyid + AND targeteducationorganizationid = OLD.localeducationagencyid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_localeducationagency_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_localeducationagency_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_localeducationagency_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.localeducationagencyid AS SourceEducationOrganizationId, + NEW.localeducationagencyid AS targeteducationorganizationid; + + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT sources.SourceEducationOrganizationId, targets.targeteducationorganizationid + FROM ( + -- Find ancestors that need to have tuples inserted due to assignment of the parentlocaleducationagencyid + SELECT tuples.SourceEducationOrganizationId, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.parentlocaleducationagencyid + AND NEW.parentlocaleducationagencyid IS NOT NULL + + UNION + + -- Find ancestors that need to have tuples inserted due to assignment of the educationservicecenterid + SELECT tuples.SourceEducationOrganizationId, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.educationservicecenterid + AND NEW.educationservicecenterid IS NOT NULL + + UNION + + -- Find ancestors that need to have tuples inserted due to assignment of the stateeducationagencyid + SELECT tuples.SourceEducationOrganizationId, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.stateeducationagencyid + AND NEW.stateeducationagencyid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the existing targets/descendants (to be cross joined with all the affected ancestor sources) + ( + SELECT NEW.localeducationagencyid, tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.SourceEducationOrganizationId = NEW.localeducationagencyid + ) as targets + WHERE sources.localeducationagencyid = targets.localeducationagencyid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_localeducationagency_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_localeducationagency_tr_update(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_localeducationagency_tr_update() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove all tuples impacted by the clearing or changing of the parent education organizations + WITH cj AS ( + SELECT d1.sourceeducationorganizationid, d2.targeteducationorganizationid + FROM ( + -- Find ancestors to be deleted by clearing or changing the parentlocaleducationagencyid + SELECT tuples.sourceeducationorganizationid, new.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.parentlocaleducationagencyid + AND OLD.parentlocaleducationagencyid IS NOT NULL + AND (NEW.parentlocaleducationagencyid IS NULL OR OLD.parentlocaleducationagencyid <> NEW.parentlocaleducationagencyid) + + UNION + + -- Find ancestors to be deleted by clearing or changing the educationservicecenterid + SELECT tuples.sourceeducationorganizationid, new.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.educationservicecenterid + AND OLD.educationservicecenterid IS NOT NULL + AND (NEW.educationservicecenterid IS NULL OR OLD.educationservicecenterid <> NEW.educationservicecenterid) + + UNION + + -- Find ancestors to be deleted by clearing or changing the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid, new.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.stateeducationagencyid + AND OLD.stateeducationagencyid IS NOT NULL + AND (NEW.stateeducationagencyid IS NULL OR OLD.stateeducationagencyid <> NEW.stateeducationagencyid) + + EXCEPT + + -- Find ancestors that should remain due to new value for the parentlocaleducationagencyid + SELECT tuples.sourceeducationorganizationid, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.parentlocaleducationagencyid + + EXCEPT + + -- Find ancestors that should remain due to new value for the educationservicecenterid + SELECT tuples.sourceeducationorganizationid, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.educationservicecenterid + + EXCEPT + + -- Find ancestors that should remain due to new value for the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.stateeducationagencyid + ) AS d1 + + CROSS JOIN + -- Get all the descendants of the localeducationagency (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, NEW.localeducationagencyid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE NEW.localeducationagencyid = tuples.sourceeducationorganizationid + ) as d2 + WHERE d1.localeducationagencyid = d2.localeducationagencyid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Add new tuples resulting from the changes/initializations of parent Education Organization ids + WITH source(sourceeducationorganizationid, targeteducationorganizationid) AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be inserted by initializing or changing the parentlocaleducationagencyid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.parentlocaleducationagencyid + AND ((OLD.parentlocaleducationagencyid IS NULL AND NEW.parentlocaleducationagencyid IS NOT NULL) + OR OLD.parentlocaleducationagencyid <> NEW.parentlocaleducationagencyid) + + UNION + + -- Find ancestors to be inserted by initializing or changing the educationservicecenterid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.educationservicecenterid + AND ((OLD.educationservicecenterid IS NULL AND NEW.educationservicecenterid IS NOT NULL) + OR OLD.educationservicecenterid <> NEW.educationservicecenterid) + + UNION + + -- Find ancestors to be inserted by initializing or changing the stateeducationagencyid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.stateeducationagencyid + AND ((OLD.stateeducationagencyid IS NULL AND NEW.stateeducationagencyid IS NOT NULL) + OR OLD.stateeducationagencyid <> NEW.stateeducationagencyid) + ) as sources + CROSS JOIN ( + -- Get all the descendants of the localeducationagency (to be cross joined with all the affected ancestor sources) + SELECT tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = NEW.localeducationagencyid + ) AS targets + ) + INSERT INTO auth.educationorganizationidtoeducationorganizationid(sourceeducationorganizationid, targeteducationorganizationid) + SELECT source.sourceeducationorganizationid, source.targeteducationorganizationid + FROM source + ON CONFLICT DO NOTHING; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_localeducationagency_tr_update() OWNER TO postgres; + +-- +-- Name: edfi_organizationdepartment_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_organizationdepartment_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove affected tuples + WITH cj AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be deleted by clearing or changing the parenteducationorganizationid + SELECT tuples.sourceeducationorganizationid, OLD.organizationdepartmentid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.parenteducationorganizationid + AND OLD.parenteducationorganizationid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the descendants of the organizationdepartment (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, OLD.organizationdepartmentid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = OLD.organizationdepartmentid + ) as targets + WHERE sources.organizationdepartmentid = targets.organizationdepartmentid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.organizationdepartmentid + AND targeteducationorganizationid = OLD.organizationdepartmentid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_organizationdepartment_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_organizationdepartment_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_organizationdepartment_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.organizationdepartmentid AS SourceEducationOrganizationId, + NEW.organizationdepartmentid AS targeteducationorganizationid; + + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT sources.SourceEducationOrganizationId, targets.targeteducationorganizationid + FROM ( + -- Find ancestors that need to have tuples inserted due to assignment of the parenteducationorganizationid + SELECT tuples.SourceEducationOrganizationId, NEW.organizationdepartmentid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.parenteducationorganizationid + AND NEW.parenteducationorganizationid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the existing targets/descendants (to be cross joined with all the affected ancestor sources) + ( + SELECT NEW.organizationdepartmentid, tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.SourceEducationOrganizationId = NEW.organizationdepartmentid + ) as targets + WHERE sources.organizationdepartmentid = targets.organizationdepartmentid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_organizationdepartment_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_organizationdepartment_tr_update(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_organizationdepartment_tr_update() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove all tuples impacted by the clearing or changing of the parent education organizations + WITH cj AS ( + SELECT d1.sourceeducationorganizationid, d2.targeteducationorganizationid + FROM ( + -- Find ancestors to be deleted by clearing or changing the parenteducationorganizationid + SELECT tuples.sourceeducationorganizationid, new.organizationdepartmentid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.parenteducationorganizationid + AND OLD.parenteducationorganizationid IS NOT NULL + AND (NEW.parenteducationorganizationid IS NULL OR OLD.parenteducationorganizationid <> NEW.parenteducationorganizationid) + + EXCEPT + + -- Find ancestors that should remain due to new value for the parenteducationorganizationid + SELECT tuples.sourceeducationorganizationid, NEW.organizationdepartmentid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.parenteducationorganizationid + ) AS d1 + + CROSS JOIN + -- Get all the descendants of the organizationdepartment (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, NEW.organizationdepartmentid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE NEW.organizationdepartmentid = tuples.sourceeducationorganizationid + ) as d2 + WHERE d1.organizationdepartmentid = d2.organizationdepartmentid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Add new tuples resulting from the changes/initializations of parent Education Organization ids + WITH source(sourceeducationorganizationid, targeteducationorganizationid) AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be inserted by initializing or changing the parenteducationorganizationid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.parenteducationorganizationid + AND ((OLD.parenteducationorganizationid IS NULL AND NEW.parenteducationorganizationid IS NOT NULL) + OR OLD.parenteducationorganizationid <> NEW.parenteducationorganizationid) + ) as sources + CROSS JOIN ( + -- Get all the descendants of the organizationdepartment (to be cross joined with all the affected ancestor sources) + SELECT tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = NEW.organizationdepartmentid + ) AS targets + ) + INSERT INTO auth.educationorganizationidtoeducationorganizationid(sourceeducationorganizationid, targeteducationorganizationid) + SELECT source.sourceeducationorganizationid, source.targeteducationorganizationid + FROM source + ON CONFLICT DO NOTHING; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_organizationdepartment_tr_update() OWNER TO postgres; + +-- +-- Name: edfi_postsecondaryinstitution_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_postsecondaryinstitution_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.postsecondaryinstitutionid + AND targeteducationorganizationid = OLD.postsecondaryinstitutionid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_postsecondaryinstitution_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_postsecondaryinstitution_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_postsecondaryinstitution_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.postsecondaryinstitutionid AS SourceEducationOrganizationId, + NEW.postsecondaryinstitutionid AS targeteducationorganizationid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_postsecondaryinstitution_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_school_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_school_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove affected tuples + WITH cj AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be deleted by clearing or changing the localeducationagencyid + SELECT tuples.sourceeducationorganizationid, OLD.schoolid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.localeducationagencyid + AND OLD.localeducationagencyid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the descendants of the school (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, OLD.schoolid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = OLD.schoolid + ) as targets + WHERE sources.schoolid = targets.schoolid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.schoolid + AND targeteducationorganizationid = OLD.schoolid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_school_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_school_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_school_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.schoolid AS SourceEducationOrganizationId, + NEW.schoolid AS targeteducationorganizationid; + + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT sources.SourceEducationOrganizationId, targets.targeteducationorganizationid + FROM ( + -- Find ancestors that need to have tuples inserted due to assignment of the localeducationagencyid + SELECT tuples.SourceEducationOrganizationId, NEW.schoolid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.localeducationagencyid + AND NEW.localeducationagencyid IS NOT NULL + ) AS sources + CROSS JOIN + -- Get all the existing targets/descendants (to be cross joined with all the affected ancestor sources) + ( + SELECT NEW.schoolid, tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.SourceEducationOrganizationId = NEW.schoolid + ) as targets + WHERE sources.schoolid = targets.schoolid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_school_tr_insert() OWNER TO postgres; + +-- +-- Name: edfi_school_tr_update(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_school_tr_update() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Remove all tuples impacted by the clearing or changing of the parent education organizations + WITH cj AS ( + SELECT d1.sourceeducationorganizationid, d2.targeteducationorganizationid + FROM ( + -- Find ancestors to be deleted by clearing or changing the localeducationagencyid + SELECT tuples.sourceeducationorganizationid, new.schoolid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = OLD.localeducationagencyid + AND OLD.localeducationagencyid IS NOT NULL + AND (NEW.localeducationagencyid IS NULL OR OLD.localeducationagencyid <> NEW.localeducationagencyid) + + EXCEPT + + -- Find ancestors that should remain due to new value for the localeducationagencyid + SELECT tuples.sourceeducationorganizationid, NEW.schoolid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.localeducationagencyid + ) AS d1 + + CROSS JOIN + -- Get all the descendants of the school (to be cross joined with all the affected ancestor sources) + (SELECT tuples.targeteducationorganizationid, NEW.schoolid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE NEW.schoolid = tuples.sourceeducationorganizationid + ) as d2 + WHERE d1.schoolid = d2.schoolid + ) + DELETE FROM auth.educationorganizationidtoeducationorganizationid AS tbd USING cj + WHERE tbd.sourceeducationorganizationid = cj.sourceeducationorganizationid + AND tbd.targeteducationorganizationid = cj.targeteducationorganizationid; + + -- Add new tuples resulting from the changes/initializations of parent Education Organization ids + WITH source(sourceeducationorganizationid, targeteducationorganizationid) AS ( + SELECT sources.sourceeducationorganizationid, targets.targeteducationorganizationid + FROM ( + -- Determine the source ancestors affected by this change + -- Find ancestors to be inserted by initializing or changing the localeducationagencyid + SELECT tuples.sourceeducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.targeteducationorganizationid = NEW.localeducationagencyid + AND ((OLD.localeducationagencyid IS NULL AND NEW.localeducationagencyid IS NOT NULL) + OR OLD.localeducationagencyid <> NEW.localeducationagencyid) + ) as sources + CROSS JOIN ( + -- Get all the descendants of the school (to be cross joined with all the affected ancestor sources) + SELECT tuples.targeteducationorganizationid + FROM auth.educationorganizationidtoeducationorganizationid tuples + WHERE tuples.sourceeducationorganizationid = NEW.schoolid + ) AS targets + ) + INSERT INTO auth.educationorganizationidtoeducationorganizationid(sourceeducationorganizationid, targeteducationorganizationid) + SELECT source.sourceeducationorganizationid, source.targeteducationorganizationid + FROM source + ON CONFLICT DO NOTHING; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_school_tr_update() OWNER TO postgres; + +-- +-- Name: edfi_stateeducationagency_tr_delete(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_stateeducationagency_tr_delete() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Delete self-referencing tuple + DELETE + FROM auth.educationorganizationidtoeducationorganizationid + WHERE sourceeducationorganizationid = OLD.stateeducationagencyid + AND targeteducationorganizationid = OLD.stateeducationagencyid; + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_stateeducationagency_tr_delete() OWNER TO postgres; + +-- +-- Name: edfi_stateeducationagency_tr_insert(); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.edfi_stateeducationagency_tr_insert() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + -- Add new tuple for current record + INSERT INTO auth.educationorganizationidtoeducationorganizationid(SourceEducationOrganizationId, targeteducationorganizationid) + SELECT NEW.stateeducationagencyid AS SourceEducationOrganizationId, + NEW.stateeducationagencyid AS targeteducationorganizationid; + + + RETURN NULL; +END; +$$; + + +ALTER FUNCTION edfi.edfi_stateeducationagency_tr_insert() OWNER TO postgres; + +-- +-- Name: setcurrentschoolyear(integer); Type: FUNCTION; Schema: edfi; Owner: postgres +-- + +CREATE FUNCTION edfi.setcurrentschoolyear(newschoolyear integer) RETURNS void + LANGUAGE plpgsql + AS $_$ +DECLARE + rowCount integer; + newSchoolYear ALIAS FOR $1; +BEGIN + UPDATE edfi.SchoolYearType + SET CurrentSchoolYear = 'true' + WHERE SchoolYear = newSchoolYear; + + GET DIAGNOSTICS rowCount = ROW_COUNT; + + IF rowCount = 0 THEN + RAISE EXCEPTION 'Specified school year does not exist.' USING ERRCODE = '50000'; + END IF; + + UPDATE edfi.SchoolYearType + SET CurrentSchoolYear = 'false' + WHERE SchoolYear <> newSchoolYear; +END; +$_$; + + +ALTER FUNCTION edfi.setcurrentschoolyear(newschoolyear integer) OWNER TO postgres; + +-- +-- Name: absenceeventcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.absenceeventcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AbsenceEventCategoryDescriptor(AbsenceEventCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.AbsenceEventCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AbsenceEventCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.absenceeventcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: academichonorcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.academichonorcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AcademicHonorCategoryDescriptor(AcademicHonorCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.AcademicHonorCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AcademicHonorCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.academichonorcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: academicsubjectdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.academicsubjectdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId, Id, ChangeVersion) + SELECT OLD.AcademicSubjectDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AcademicSubjectDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.academicsubjectdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: academicweek_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.academicweek_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AcademicWeek(SchoolId, WeekIdentifier, Id, ChangeVersion) + VALUES (OLD.SchoolId, OLD.WeekIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.academicweek_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: accommodationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.accommodationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AccommodationDescriptor(AccommodationDescriptorId, Id, ChangeVersion) + SELECT OLD.AccommodationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AccommodationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.accommodationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: account_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.account_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Account(AccountIdentifier, EducationOrganizationId, FiscalYear, Id, ChangeVersion) + VALUES (OLD.AccountIdentifier, OLD.EducationOrganizationId, OLD.FiscalYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.account_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: accountabilityrating_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.accountabilityrating_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AccountabilityRating(EducationOrganizationId, RatingTitle, SchoolYear, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.RatingTitle, OLD.SchoolYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.accountabilityrating_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: accountclassificationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.accountclassificationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AccountClassificationDescriptor(AccountClassificationDescriptorId, Id, ChangeVersion) + SELECT OLD.AccountClassificationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AccountClassificationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.accountclassificationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: accountcode_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.accountcode_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AccountCode(AccountClassificationDescriptorId, AccountCodeNumber, EducationOrganizationId, FiscalYear, Id, ChangeVersion) + VALUES (OLD.AccountClassificationDescriptorId, OLD.AccountCodeNumber, OLD.EducationOrganizationId, OLD.FiscalYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.accountcode_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: achievementcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.achievementcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AchievementCategoryDescriptor(AchievementCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.AchievementCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AchievementCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.achievementcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: actual_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.actual_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Actual(AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear, Id, ChangeVersion) + VALUES (OLD.AccountIdentifier, OLD.AsOfDate, OLD.EducationOrganizationId, OLD.FiscalYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.actual_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: additionalcredittypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.additionalcredittypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AdditionalCreditTypeDescriptor(AdditionalCreditTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.AdditionalCreditTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AdditionalCreditTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.additionalcredittypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: addresstypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.addresstypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AddressTypeDescriptor(AddressTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.AddressTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AddressTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.addresstypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: administrationenvironmentdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.administrationenvironmentdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId, Id, ChangeVersion) + SELECT OLD.AdministrationEnvironmentDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AdministrationEnvironmentDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.administrationenvironmentdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: administrativefundingcontroldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.administrativefundingcontroldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AdministrativeFundingControlDescriptor(AdministrativeFundingControlDescriptorId, Id, ChangeVersion) + SELECT OLD.AdministrativeFundingControlDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AdministrativeFundingControlDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.administrativefundingcontroldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: ancestryethnicorigindescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.ancestryethnicorigindescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AncestryEthnicOriginDescriptor(AncestryEthnicOriginDescriptorId, Id, ChangeVersion) + SELECT OLD.AncestryEthnicOriginDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AncestryEthnicOriginDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.ancestryethnicorigindescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessment_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessment_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Assessment(AssessmentIdentifier, Namespace, Id, ChangeVersion) + VALUES (OLD.AssessmentIdentifier, OLD.Namespace, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessment_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.AssessmentCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AssessmentCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentidentificationsystemdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentidentificationsystemdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentIdentificationSystemDescriptor(AssessmentIdentificationSystemDescriptorId, Id, ChangeVersion) + SELECT OLD.AssessmentIdentificationSystemDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AssessmentIdentificationSystemDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentidentificationsystemdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentitem_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentitem_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentItem(AssessmentIdentifier, IdentificationCode, Namespace, Id, ChangeVersion) + VALUES (OLD.AssessmentIdentifier, OLD.IdentificationCode, OLD.Namespace, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentitem_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentitemcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentitemcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentItemCategoryDescriptor(AssessmentItemCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.AssessmentItemCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AssessmentItemCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentitemcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentitemresultdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentitemresultdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentItemResultDescriptor(AssessmentItemResultDescriptorId, Id, ChangeVersion) + SELECT OLD.AssessmentItemResultDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AssessmentItemResultDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentitemresultdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentperioddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentperioddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentPeriodDescriptor(AssessmentPeriodDescriptorId, Id, ChangeVersion) + SELECT OLD.AssessmentPeriodDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AssessmentPeriodDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentperioddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentreportingmethoddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentreportingmethoddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId, Id, ChangeVersion) + SELECT OLD.AssessmentReportingMethodDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AssessmentReportingMethodDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentreportingmethoddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: assessmentscorerangelearningstandard_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.assessmentscorerangelearningstandard_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AssessmentScoreRangeLearningStandard(AssessmentIdentifier, Namespace, ScoreRangeId, Id, ChangeVersion) + VALUES (OLD.AssessmentIdentifier, OLD.Namespace, OLD.ScoreRangeId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.assessmentscorerangelearningstandard_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: attemptstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.attemptstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AttemptStatusDescriptor(AttemptStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.AttemptStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AttemptStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.attemptstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: attendanceeventcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.attendanceeventcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.AttendanceEventCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.AttendanceEventCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.attendanceeventcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: barriertointernetaccessinresidencedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.BarrierToInternetAccessInResidenceDescriptor(BarrierToInternetAccessInResidenceDescriptorId, Id, ChangeVersion) + SELECT OLD.BarrierToInternetAccessInResidenceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.BarrierToInternetAccessInResidenceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: behaviordescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.behaviordescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.BehaviorDescriptor(BehaviorDescriptorId, Id, ChangeVersion) + SELECT OLD.BehaviorDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.BehaviorDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.behaviordescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: bellschedule_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.bellschedule_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.BellSchedule(BellScheduleName, SchoolId, Id, ChangeVersion) + VALUES (OLD.BellScheduleName, OLD.SchoolId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.bellschedule_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: budget_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.budget_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Budget(AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear, Id, ChangeVersion) + VALUES (OLD.AccountIdentifier, OLD.AsOfDate, OLD.EducationOrganizationId, OLD.FiscalYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.budget_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: calendar_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.calendar_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Calendar(CalendarCode, SchoolId, SchoolYear, Id, ChangeVersion) + VALUES (OLD.CalendarCode, OLD.SchoolId, OLD.SchoolYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.calendar_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: calendardate_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.calendardate_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CalendarDate(CalendarCode, Date, SchoolId, SchoolYear, Id, ChangeVersion) + VALUES (OLD.CalendarCode, OLD.Date, OLD.SchoolId, OLD.SchoolYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.calendardate_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: calendareventdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.calendareventdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CalendarEventDescriptor(CalendarEventDescriptorId, Id, ChangeVersion) + SELECT OLD.CalendarEventDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CalendarEventDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.calendareventdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: calendartypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.calendartypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.CalendarTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CalendarTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.calendartypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: careerpathwaydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.careerpathwaydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CareerPathwayDescriptor(CareerPathwayDescriptorId, Id, ChangeVersion) + SELECT OLD.CareerPathwayDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CareerPathwayDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.careerpathwaydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: charterapprovalagencytypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.charterapprovalagencytypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CharterApprovalAgencyTypeDescriptor(CharterApprovalAgencyTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.CharterApprovalAgencyTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CharterApprovalAgencyTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.charterapprovalagencytypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: charterstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.charterstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CharterStatusDescriptor(CharterStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.CharterStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CharterStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.charterstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: citizenshipstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.citizenshipstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CitizenshipStatusDescriptor(CitizenshipStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.CitizenshipStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CitizenshipStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.citizenshipstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: classperiod_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.classperiod_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ClassPeriod(ClassPeriodName, SchoolId, Id, ChangeVersion) + VALUES (OLD.ClassPeriodName, OLD.SchoolId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.classperiod_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: classroompositiondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.classroompositiondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId, Id, ChangeVersion) + SELECT OLD.ClassroomPositionDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ClassroomPositionDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.classroompositiondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: cohort_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.cohort_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Cohort(CohortIdentifier, EducationOrganizationId, Id, ChangeVersion) + VALUES (OLD.CohortIdentifier, OLD.EducationOrganizationId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.cohort_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: cohortscopedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.cohortscopedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CohortScopeDescriptor(CohortScopeDescriptorId, Id, ChangeVersion) + SELECT OLD.CohortScopeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CohortScopeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.cohortscopedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: cohorttypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.cohorttypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CohortTypeDescriptor(CohortTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.CohortTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CohortTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.cohorttypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: cohortyeartypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.cohortyeartypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.CohortYearTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CohortYearTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.cohortyeartypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: communityorganization_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.communityorganization_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CommunityOrganization(CommunityOrganizationId, Id, ChangeVersion) + SELECT OLD.CommunityOrganizationId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.CommunityOrganizationId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.communityorganization_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: communityprovider_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.communityprovider_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CommunityProvider(CommunityProviderId, Id, ChangeVersion) + SELECT OLD.CommunityProviderId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.CommunityProviderId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.communityprovider_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: communityproviderlicense_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.communityproviderlicense_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CommunityProviderLicense(CommunityProviderId, LicenseIdentifier, LicensingOrganization, Id, ChangeVersion) + VALUES (OLD.CommunityProviderId, OLD.LicenseIdentifier, OLD.LicensingOrganization, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.communityproviderlicense_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: competencyleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.competencyleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CompetencyLevelDescriptor(CompetencyLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.CompetencyLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CompetencyLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.competencyleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: competencyobjective_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.competencyobjective_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CompetencyObjective(EducationOrganizationId, Objective, ObjectiveGradeLevelDescriptorId, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.Objective, OLD.ObjectiveGradeLevelDescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.competencyobjective_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: contacttypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.contacttypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ContactTypeDescriptor(ContactTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.ContactTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ContactTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.contacttypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: contentclassdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.contentclassdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ContentClassDescriptor(ContentClassDescriptorId, Id, ChangeVersion) + SELECT OLD.ContentClassDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ContentClassDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.contentclassdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: continuationofservicesreasondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.continuationofservicesreasondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ContinuationOfServicesReasonDescriptor(ContinuationOfServicesReasonDescriptorId, Id, ChangeVersion) + SELECT OLD.ContinuationOfServicesReasonDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ContinuationOfServicesReasonDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.continuationofservicesreasondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: contractedstaff_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.contractedstaff_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ContractedStaff(AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear, StaffUSI, Id, ChangeVersion) + VALUES (OLD.AccountIdentifier, OLD.AsOfDate, OLD.EducationOrganizationId, OLD.FiscalYear, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.contractedstaff_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: costratedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.costratedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CostRateDescriptor(CostRateDescriptorId, Id, ChangeVersion) + SELECT OLD.CostRateDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CostRateDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.costratedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: countrydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.countrydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CountryDescriptor(CountryDescriptorId, Id, ChangeVersion) + SELECT OLD.CountryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CountryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.countrydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: course_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.course_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Course(CourseCode, EducationOrganizationId, Id, ChangeVersion) + VALUES (OLD.CourseCode, OLD.EducationOrganizationId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.course_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: courseattemptresultdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.courseattemptresultdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseAttemptResultDescriptor(CourseAttemptResultDescriptorId, Id, ChangeVersion) + SELECT OLD.CourseAttemptResultDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CourseAttemptResultDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.courseattemptresultdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: coursedefinedbydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.coursedefinedbydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseDefinedByDescriptor(CourseDefinedByDescriptorId, Id, ChangeVersion) + SELECT OLD.CourseDefinedByDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CourseDefinedByDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.coursedefinedbydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: coursegpaapplicabilitydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.coursegpaapplicabilitydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseGPAApplicabilityDescriptor(CourseGPAApplicabilityDescriptorId, Id, ChangeVersion) + SELECT OLD.CourseGPAApplicabilityDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CourseGPAApplicabilityDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.coursegpaapplicabilitydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: courseidentificationsystemdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.courseidentificationsystemdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseIdentificationSystemDescriptor(CourseIdentificationSystemDescriptorId, Id, ChangeVersion) + SELECT OLD.CourseIdentificationSystemDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CourseIdentificationSystemDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.courseidentificationsystemdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: courselevelcharacteristicdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.courselevelcharacteristicdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseLevelCharacteristicDescriptor(CourseLevelCharacteristicDescriptorId, Id, ChangeVersion) + SELECT OLD.CourseLevelCharacteristicDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CourseLevelCharacteristicDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.courselevelcharacteristicdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: courseoffering_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.courseoffering_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseOffering(LocalCourseCode, SchoolId, SchoolYear, SessionName, Id, ChangeVersion) + VALUES (OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SessionName, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.courseoffering_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: courserepeatcodedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.courserepeatcodedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseRepeatCodeDescriptor(CourseRepeatCodeDescriptorId, Id, ChangeVersion) + SELECT OLD.CourseRepeatCodeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CourseRepeatCodeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.courserepeatcodedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: coursetranscript_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.coursetranscript_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CourseTranscript(CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, Id, ChangeVersion) + VALUES (OLD.CourseAttemptResultDescriptorId, OLD.CourseCode, OLD.CourseEducationOrganizationId, OLD.EducationOrganizationId, OLD.SchoolYear, OLD.StudentUSI, OLD.TermDescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.coursetranscript_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: credential_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.credential_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Credential(CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId, Id, ChangeVersion) + VALUES (OLD.CredentialIdentifier, OLD.StateOfIssueStateAbbreviationDescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.credential_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: credentialfielddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.credentialfielddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CredentialFieldDescriptor(CredentialFieldDescriptorId, Id, ChangeVersion) + SELECT OLD.CredentialFieldDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CredentialFieldDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.credentialfielddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: credentialtypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.credentialtypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CredentialTypeDescriptor(CredentialTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.CredentialTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CredentialTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.credentialtypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: creditcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.creditcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CreditCategoryDescriptor(CreditCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.CreditCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CreditCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.creditcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: credittypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.credittypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CreditTypeDescriptor(CreditTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.CreditTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CreditTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.credittypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: cteprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.cteprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CTEProgramServiceDescriptor(CTEProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.CTEProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CTEProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.cteprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: curriculumuseddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.curriculumuseddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.CurriculumUsedDescriptor(CurriculumUsedDescriptorId, Id, ChangeVersion) + SELECT OLD.CurriculumUsedDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.CurriculumUsedDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.curriculumuseddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: deliverymethoddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.deliverymethoddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DeliveryMethodDescriptor(DeliveryMethodDescriptorId, Id, ChangeVersion) + SELECT OLD.DeliveryMethodDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DeliveryMethodDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.deliverymethoddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: descriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.descriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Descriptor(DescriptorId, Id, ChangeVersion) + VALUES (OLD.DescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.descriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: diagnosisdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.diagnosisdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DiagnosisDescriptor(DiagnosisDescriptorId, Id, ChangeVersion) + SELECT OLD.DiagnosisDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DiagnosisDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.diagnosisdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: diplomaleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.diplomaleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DiplomaLevelDescriptor(DiplomaLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.DiplomaLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DiplomaLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.diplomaleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: diplomatypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.diplomatypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DiplomaTypeDescriptor(DiplomaTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.DiplomaTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DiplomaTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.diplomatypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disabilitydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disabilitydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisabilityDescriptor(DisabilityDescriptorId, Id, ChangeVersion) + SELECT OLD.DisabilityDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DisabilityDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disabilitydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disabilitydesignationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disabilitydesignationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId, Id, ChangeVersion) + SELECT OLD.DisabilityDesignationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DisabilityDesignationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disabilitydesignationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disabilitydeterminationsourcetypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.DisabilityDeterminationSourceTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DisabilityDeterminationSourceTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disciplineaction_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disciplineaction_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisciplineAction(DisciplineActionIdentifier, DisciplineDate, StudentUSI, Id, ChangeVersion) + VALUES (OLD.DisciplineActionIdentifier, OLD.DisciplineDate, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disciplineaction_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId, Id, ChangeVersion) + SELECT OLD.DisciplineActionLengthDifferenceReasonDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DisciplineActionLengthDifferenceReasonDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disciplinedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disciplinedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisciplineDescriptor(DisciplineDescriptorId, Id, ChangeVersion) + SELECT OLD.DisciplineDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DisciplineDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disciplinedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disciplineincident_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disciplineincident_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisciplineIncident(IncidentIdentifier, SchoolId, Id, ChangeVersion) + VALUES (OLD.IncidentIdentifier, OLD.SchoolId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disciplineincident_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: disciplineincidentparticipationcodedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.DisciplineIncidentParticipationCodeDescriptor(DisciplineIncidentParticipationCodeDescriptorId, Id, ChangeVersion) + SELECT OLD.DisciplineIncidentParticipationCodeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.DisciplineIncidentParticipationCodeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationalenvironmentdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationalenvironmentdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId, Id, ChangeVersion) + SELECT OLD.EducationalEnvironmentDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EducationalEnvironmentDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationalenvironmentdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationcontent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationcontent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationContent(ContentIdentifier, Id, ChangeVersion) + VALUES (OLD.ContentIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationcontent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganization_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganization_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganization(EducationOrganizationId, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganization_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganizationcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganizationcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganizationCategoryDescriptor(EducationOrganizationCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.EducationOrganizationCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EducationOrganizationCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganizationcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganizationidentificationsystemdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganizationIdentificationSystemDescriptor(EducationOrganizationIdentificationSystemDescriptorId, Id, ChangeVersion) + SELECT OLD.EducationOrganizationIdentificationSystemDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EducationOrganizationIdentificationSystemDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganizationinterventionprescription_e670ae_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganizationinterventionprescription_e670ae_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganizationInterventionPrescriptionAssociation(EducationOrganizationId, InterventionPrescriptionEducationOrganizationId, InterventionPrescriptionIdentificationCode, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.InterventionPrescriptionEducationOrganizationId, OLD.InterventionPrescriptionIdentificationCode, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganizationinterventionprescription_e670ae_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganizationnetwork_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganizationnetwork_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganizationNetwork(EducationOrganizationNetworkId, Id, ChangeVersion) + SELECT OLD.EducationOrganizationNetworkId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.EducationOrganizationNetworkId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganizationnetwork_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganizationnetworkassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganizationnetworkassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganizationNetworkAssociation(EducationOrganizationNetworkId, MemberEducationOrganizationId, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationNetworkId, OLD.MemberEducationOrganizationId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganizationnetworkassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationorganizationpeerassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationorganizationpeerassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationOrganizationPeerAssociation(EducationOrganizationId, PeerEducationOrganizationId, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.PeerEducationOrganizationId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationorganizationpeerassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationplandescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationplandescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationPlanDescriptor(EducationPlanDescriptorId, Id, ChangeVersion) + SELECT OLD.EducationPlanDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EducationPlanDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationplandescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: educationservicecenter_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.educationservicecenter_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EducationServiceCenter(EducationServiceCenterId, Id, ChangeVersion) + SELECT OLD.EducationServiceCenterId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.EducationServiceCenterId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.educationservicecenter_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: electronicmailtypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.electronicmailtypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.ElectronicMailTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ElectronicMailTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.electronicmailtypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: employmentstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.employmentstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EmploymentStatusDescriptor(EmploymentStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.EmploymentStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EmploymentStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.employmentstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: entrygradelevelreasondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.entrygradelevelreasondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EntryGradeLevelReasonDescriptor(EntryGradeLevelReasonDescriptorId, Id, ChangeVersion) + SELECT OLD.EntryGradeLevelReasonDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EntryGradeLevelReasonDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.entrygradelevelreasondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: entrytypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.entrytypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EntryTypeDescriptor(EntryTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.EntryTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EntryTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.entrytypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: eventcircumstancedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.eventcircumstancedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.EventCircumstanceDescriptor(EventCircumstanceDescriptorId, Id, ChangeVersion) + SELECT OLD.EventCircumstanceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.EventCircumstanceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.eventcircumstancedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: exitwithdrawtypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.exitwithdrawtypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.ExitWithdrawTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ExitWithdrawTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.exitwithdrawtypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: feederschoolassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.feederschoolassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.FeederSchoolAssociation(BeginDate, FeederSchoolId, SchoolId, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.FeederSchoolId, OLD.SchoolId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.feederschoolassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: generalstudentprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.generalstudentprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GeneralStudentProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.generalstudentprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: grade_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.grade_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Grade(BeginDate, GradeTypeDescriptorId, GradingPeriodDescriptorId, GradingPeriodSchoolYear, GradingPeriodSequence, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.GradeTypeDescriptorId, OLD.GradingPeriodDescriptorId, OLD.GradingPeriodSchoolYear, OLD.GradingPeriodSequence, OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.grade_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradebookentry_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradebookentry_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradebookEntry(DateAssigned, GradebookEntryTitle, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, Id, ChangeVersion) + VALUES (OLD.DateAssigned, OLD.GradebookEntryTitle, OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradebookentry_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradebookentrytypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradebookentrytypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradebookEntryTypeDescriptor(GradebookEntryTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.GradebookEntryTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GradebookEntryTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradebookentrytypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradeleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradeleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradeLevelDescriptor(GradeLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.GradeLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GradeLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradeleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradepointaveragetypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradepointaveragetypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradePointAverageTypeDescriptor(GradePointAverageTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.GradePointAverageTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GradePointAverageTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradepointaveragetypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradetypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradetypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradeTypeDescriptor(GradeTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.GradeTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GradeTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradetypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradingperiod_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradingperiod_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradingPeriod(GradingPeriodDescriptorId, PeriodSequence, SchoolId, SchoolYear, Id, ChangeVersion) + VALUES (OLD.GradingPeriodDescriptorId, OLD.PeriodSequence, OLD.SchoolId, OLD.SchoolYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradingperiod_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gradingperioddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gradingperioddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId, Id, ChangeVersion) + SELECT OLD.GradingPeriodDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GradingPeriodDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gradingperioddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: graduationplan_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.graduationplan_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GraduationPlan(EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.GraduationPlanTypeDescriptorId, OLD.GraduationSchoolYear, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.graduationplan_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: graduationplantypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.graduationplantypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.GraduationPlanTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GraduationPlanTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.graduationplantypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.GunFreeSchoolsActReportingStatusDescriptor(GunFreeSchoolsActReportingStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.GunFreeSchoolsActReportingStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.GunFreeSchoolsActReportingStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: homelessprimarynighttimeresidencedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.HomelessPrimaryNighttimeResidenceDescriptor(HomelessPrimaryNighttimeResidenceDescriptorId, Id, ChangeVersion) + SELECT OLD.HomelessPrimaryNighttimeResidenceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.HomelessPrimaryNighttimeResidenceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: homelessprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.homelessprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.HomelessProgramServiceDescriptor(HomelessProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.HomelessProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.HomelessProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.homelessprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: identificationdocumentusedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.identificationdocumentusedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.IdentificationDocumentUseDescriptor(IdentificationDocumentUseDescriptorId, Id, ChangeVersion) + SELECT OLD.IdentificationDocumentUseDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.IdentificationDocumentUseDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.identificationdocumentusedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: incidentlocationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.incidentlocationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId, Id, ChangeVersion) + SELECT OLD.IncidentLocationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.IncidentLocationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.incidentlocationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: indicatordescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.indicatordescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.IndicatorDescriptor(IndicatorDescriptorId, Id, ChangeVersion) + SELECT OLD.IndicatorDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.IndicatorDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.indicatordescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: indicatorgroupdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.indicatorgroupdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.IndicatorGroupDescriptor(IndicatorGroupDescriptorId, Id, ChangeVersion) + SELECT OLD.IndicatorGroupDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.IndicatorGroupDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.indicatorgroupdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: indicatorleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.indicatorleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.IndicatorLevelDescriptor(IndicatorLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.IndicatorLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.IndicatorLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.indicatorleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: institutiontelephonenumbertypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.institutiontelephonenumbertypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InstitutionTelephoneNumberTypeDescriptor(InstitutionTelephoneNumberTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.InstitutionTelephoneNumberTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InstitutionTelephoneNumberTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.institutiontelephonenumbertypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: interactivitystyledescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.interactivitystyledescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InteractivityStyleDescriptor(InteractivityStyleDescriptorId, Id, ChangeVersion) + SELECT OLD.InteractivityStyleDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InteractivityStyleDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.interactivitystyledescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: internetaccessdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.internetaccessdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InternetAccessDescriptor(InternetAccessDescriptorId, Id, ChangeVersion) + SELECT OLD.InternetAccessDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InternetAccessDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.internetaccessdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: internetaccesstypeinresidencedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.internetaccesstypeinresidencedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InternetAccessTypeInResidenceDescriptor(InternetAccessTypeInResidenceDescriptorId, Id, ChangeVersion) + SELECT OLD.InternetAccessTypeInResidenceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InternetAccessTypeInResidenceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.internetaccesstypeinresidencedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: internetperformanceinresidencedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.internetperformanceinresidencedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InternetPerformanceInResidenceDescriptor(InternetPerformanceInResidenceDescriptorId, Id, ChangeVersion) + SELECT OLD.InternetPerformanceInResidenceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InternetPerformanceInResidenceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.internetperformanceinresidencedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: intervention_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.intervention_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Intervention(EducationOrganizationId, InterventionIdentificationCode, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.InterventionIdentificationCode, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.intervention_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: interventionclassdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.interventionclassdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InterventionClassDescriptor(InterventionClassDescriptorId, Id, ChangeVersion) + SELECT OLD.InterventionClassDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InterventionClassDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.interventionclassdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: interventioneffectivenessratingdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.interventioneffectivenessratingdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InterventionEffectivenessRatingDescriptor(InterventionEffectivenessRatingDescriptorId, Id, ChangeVersion) + SELECT OLD.InterventionEffectivenessRatingDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.InterventionEffectivenessRatingDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.interventioneffectivenessratingdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: interventionprescription_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.interventionprescription_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InterventionPrescription(EducationOrganizationId, InterventionPrescriptionIdentificationCode, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.InterventionPrescriptionIdentificationCode, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.interventionprescription_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: interventionstudy_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.interventionstudy_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.InterventionStudy(EducationOrganizationId, InterventionStudyIdentificationCode, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.InterventionStudyIdentificationCode, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.interventionstudy_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: languagedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.languagedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LanguageDescriptor(LanguageDescriptorId, Id, ChangeVersion) + SELECT OLD.LanguageDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LanguageDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.languagedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: languageinstructionprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.languageinstructionprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LanguageInstructionProgramServiceDescriptor(LanguageInstructionProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.LanguageInstructionProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LanguageInstructionProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.languageinstructionprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: languageusedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.languageusedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LanguageUseDescriptor(LanguageUseDescriptorId, Id, ChangeVersion) + SELECT OLD.LanguageUseDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LanguageUseDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.languageusedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: learningobjective_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.learningobjective_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LearningObjective(LearningObjectiveId, Namespace, Id, ChangeVersion) + VALUES (OLD.LearningObjectiveId, OLD.Namespace, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.learningobjective_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: learningstandard_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.learningstandard_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LearningStandard(LearningStandardId, Id, ChangeVersion) + VALUES (OLD.LearningStandardId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.learningstandard_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: learningstandardcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.learningstandardcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LearningStandardCategoryDescriptor(LearningStandardCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.LearningStandardCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LearningStandardCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.learningstandardcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: learningstandardequivalenceassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.learningstandardequivalenceassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LearningStandardEquivalenceAssociation(Namespace, SourceLearningStandardId, TargetLearningStandardId, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.SourceLearningStandardId, OLD.TargetLearningStandardId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.learningstandardequivalenceassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: learningstandardequivalencestrengthdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LearningStandardEquivalenceStrengthDescriptor(LearningStandardEquivalenceStrengthDescriptorId, Id, ChangeVersion) + SELECT OLD.LearningStandardEquivalenceStrengthDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LearningStandardEquivalenceStrengthDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: learningstandardscopedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.learningstandardscopedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LearningStandardScopeDescriptor(LearningStandardScopeDescriptorId, Id, ChangeVersion) + SELECT OLD.LearningStandardScopeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LearningStandardScopeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.learningstandardscopedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: levelofeducationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.levelofeducationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId, Id, ChangeVersion) + SELECT OLD.LevelOfEducationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LevelOfEducationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.levelofeducationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: licensestatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.licensestatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LicenseStatusDescriptor(LicenseStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.LicenseStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LicenseStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.licensestatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: licensetypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.licensetypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LicenseTypeDescriptor(LicenseTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.LicenseTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LicenseTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.licensetypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: limitedenglishproficiencydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.limitedenglishproficiencydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId, Id, ChangeVersion) + SELECT OLD.LimitedEnglishProficiencyDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LimitedEnglishProficiencyDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.limitedenglishproficiencydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: localedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.localedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LocaleDescriptor(LocaleDescriptorId, Id, ChangeVersion) + SELECT OLD.LocaleDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LocaleDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.localedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: localeducationagency_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.localeducationagency_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LocalEducationAgency(LocalEducationAgencyId, Id, ChangeVersion) + SELECT OLD.LocalEducationAgencyId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.LocalEducationAgencyId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.localeducationagency_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: localeducationagencycategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.localeducationagencycategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.LocalEducationAgencyCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.LocalEducationAgencyCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.localeducationagencycategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: location_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.location_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Location(ClassroomIdentificationCode, SchoolId, Id, ChangeVersion) + VALUES (OLD.ClassroomIdentificationCode, OLD.SchoolId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.location_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.MagnetSpecialProgramEmphasisSchoolDescriptor(MagnetSpecialProgramEmphasisSchoolDescriptorId, Id, ChangeVersion) + SELECT OLD.MagnetSpecialProgramEmphasisSchoolDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.MagnetSpecialProgramEmphasisSchoolDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: mediumofinstructiondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.mediumofinstructiondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.MediumOfInstructionDescriptor(MediumOfInstructionDescriptorId, Id, ChangeVersion) + SELECT OLD.MediumOfInstructionDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.MediumOfInstructionDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.mediumofinstructiondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: methodcreditearneddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.methodcreditearneddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.MethodCreditEarnedDescriptor(MethodCreditEarnedDescriptorId, Id, ChangeVersion) + SELECT OLD.MethodCreditEarnedDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.MethodCreditEarnedDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.methodcreditearneddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: migranteducationprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.migranteducationprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.MigrantEducationProgramServiceDescriptor(MigrantEducationProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.MigrantEducationProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.MigrantEducationProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.migranteducationprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: monitoreddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.monitoreddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.MonitoredDescriptor(MonitoredDescriptorId, Id, ChangeVersion) + SELECT OLD.MonitoredDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.MonitoredDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.monitoreddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: neglectedordelinquentprogramdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.neglectedordelinquentprogramdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.NeglectedOrDelinquentProgramDescriptor(NeglectedOrDelinquentProgramDescriptorId, Id, ChangeVersion) + SELECT OLD.NeglectedOrDelinquentProgramDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.NeglectedOrDelinquentProgramDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.neglectedordelinquentprogramdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: neglectedordelinquentprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.NeglectedOrDelinquentProgramServiceDescriptor(NeglectedOrDelinquentProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.NeglectedOrDelinquentProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.NeglectedOrDelinquentProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: networkpurposedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.networkpurposedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.NetworkPurposeDescriptor(NetworkPurposeDescriptorId, Id, ChangeVersion) + SELECT OLD.NetworkPurposeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.NetworkPurposeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.networkpurposedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: objectiveassessment_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.objectiveassessment_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ObjectiveAssessment(AssessmentIdentifier, IdentificationCode, Namespace, Id, ChangeVersion) + VALUES (OLD.AssessmentIdentifier, OLD.IdentificationCode, OLD.Namespace, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.objectiveassessment_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: oldethnicitydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.oldethnicitydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId, Id, ChangeVersion) + SELECT OLD.OldEthnicityDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.OldEthnicityDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.oldethnicitydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: openstaffposition_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.openstaffposition_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.OpenStaffPosition(EducationOrganizationId, RequisitionNumber, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.RequisitionNumber, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.openstaffposition_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: operationalstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.operationalstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.OperationalStatusDescriptor(OperationalStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.OperationalStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.OperationalStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.operationalstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: organizationdepartment_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.organizationdepartment_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.OrganizationDepartment(OrganizationDepartmentId, Id, ChangeVersion) + SELECT OLD.OrganizationDepartmentId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.OrganizationDepartmentId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.organizationdepartment_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: othernametypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.othernametypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.OtherNameTypeDescriptor(OtherNameTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.OtherNameTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.OtherNameTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.othernametypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: parent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.parent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Parent(ParentUSI, Id, ChangeVersion) + VALUES (OLD.ParentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.parent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: participationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.participationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ParticipationDescriptor(ParticipationDescriptorId, Id, ChangeVersion) + SELECT OLD.ParticipationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ParticipationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.participationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: participationstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.participationstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ParticipationStatusDescriptor(ParticipationStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.ParticipationStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ParticipationStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.participationstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: payroll_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.payroll_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Payroll(AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear, StaffUSI, Id, ChangeVersion) + VALUES (OLD.AccountIdentifier, OLD.AsOfDate, OLD.EducationOrganizationId, OLD.FiscalYear, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.payroll_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: performancebaseconversiondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.performancebaseconversiondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PerformanceBaseConversionDescriptor(PerformanceBaseConversionDescriptorId, Id, ChangeVersion) + SELECT OLD.PerformanceBaseConversionDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PerformanceBaseConversionDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.performancebaseconversiondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: performanceleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.performanceleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.PerformanceLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PerformanceLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.performanceleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: person_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.person_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Person(PersonId, SourceSystemDescriptorId, Id, ChangeVersion) + VALUES (OLD.PersonId, OLD.SourceSystemDescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.person_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: personalinformationverificationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.personalinformationverificationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PersonalInformationVerificationDescriptor(PersonalInformationVerificationDescriptorId, Id, ChangeVersion) + SELECT OLD.PersonalInformationVerificationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PersonalInformationVerificationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.personalinformationverificationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: platformtypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.platformtypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PlatformTypeDescriptor(PlatformTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.PlatformTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PlatformTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.platformtypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: populationserveddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.populationserveddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PopulationServedDescriptor(PopulationServedDescriptorId, Id, ChangeVersion) + SELECT OLD.PopulationServedDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PopulationServedDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.populationserveddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: postingresultdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.postingresultdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PostingResultDescriptor(PostingResultDescriptorId, Id, ChangeVersion) + SELECT OLD.PostingResultDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PostingResultDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.postingresultdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: postsecondaryevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.postsecondaryevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PostSecondaryEvent(EventDate, PostSecondaryEventCategoryDescriptorId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.EventDate, OLD.PostSecondaryEventCategoryDescriptorId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.postsecondaryevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: postsecondaryeventcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.postsecondaryeventcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PostSecondaryEventCategoryDescriptor(PostSecondaryEventCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.PostSecondaryEventCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PostSecondaryEventCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.postsecondaryeventcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: postsecondaryinstitution_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.postsecondaryinstitution_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PostSecondaryInstitution(PostSecondaryInstitutionId, Id, ChangeVersion) + SELECT OLD.PostSecondaryInstitutionId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.PostSecondaryInstitutionId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.postsecondaryinstitution_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: postsecondaryinstitutionleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PostSecondaryInstitutionLevelDescriptor(PostSecondaryInstitutionLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.PostSecondaryInstitutionLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PostSecondaryInstitutionLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: primarylearningdeviceaccessdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.primarylearningdeviceaccessdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PrimaryLearningDeviceAccessDescriptor(PrimaryLearningDeviceAccessDescriptorId, Id, ChangeVersion) + SELECT OLD.PrimaryLearningDeviceAccessDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PrimaryLearningDeviceAccessDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.primarylearningdeviceaccessdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PrimaryLearningDeviceAwayFromSchoolDescriptor(PrimaryLearningDeviceAwayFromSchoolDescriptorId, Id, ChangeVersion) + SELECT OLD.PrimaryLearningDeviceAwayFromSchoolDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PrimaryLearningDeviceAwayFromSchoolDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: primarylearningdeviceproviderdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.primarylearningdeviceproviderdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PrimaryLearningDeviceProviderDescriptor(PrimaryLearningDeviceProviderDescriptorId, Id, ChangeVersion) + SELECT OLD.PrimaryLearningDeviceProviderDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PrimaryLearningDeviceProviderDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.primarylearningdeviceproviderdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: proficiencydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.proficiencydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProficiencyDescriptor(ProficiencyDescriptorId, Id, ChangeVersion) + SELECT OLD.ProficiencyDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProficiencyDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.proficiencydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: program_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.program_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Program(EducationOrganizationId, ProgramName, ProgramTypeDescriptorId, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.program_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: programassignmentdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.programassignmentdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProgramAssignmentDescriptor(ProgramAssignmentDescriptorId, Id, ChangeVersion) + SELECT OLD.ProgramAssignmentDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProgramAssignmentDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.programassignmentdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: programcharacteristicdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.programcharacteristicdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProgramCharacteristicDescriptor(ProgramCharacteristicDescriptorId, Id, ChangeVersion) + SELECT OLD.ProgramCharacteristicDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProgramCharacteristicDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.programcharacteristicdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: programsponsordescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.programsponsordescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProgramSponsorDescriptor(ProgramSponsorDescriptorId, Id, ChangeVersion) + SELECT OLD.ProgramSponsorDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProgramSponsorDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.programsponsordescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: programtypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.programtypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.ProgramTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProgramTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.programtypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: progressdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.progressdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProgressDescriptor(ProgressDescriptorId, Id, ChangeVersion) + SELECT OLD.ProgressDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProgressDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.progressdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: progressleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.progressleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProgressLevelDescriptor(ProgressLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.ProgressLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProgressLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.progressleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: providercategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.providercategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProviderCategoryDescriptor(ProviderCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.ProviderCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProviderCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.providercategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: providerprofitabilitydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.providerprofitabilitydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProviderProfitabilityDescriptor(ProviderProfitabilityDescriptorId, Id, ChangeVersion) + SELECT OLD.ProviderProfitabilityDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProviderProfitabilityDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.providerprofitabilitydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: providerstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.providerstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ProviderStatusDescriptor(ProviderStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.ProviderStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ProviderStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.providerstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: publicationstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.publicationstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.PublicationStatusDescriptor(PublicationStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.PublicationStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.PublicationStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.publicationstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: questionformdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.questionformdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.QuestionFormDescriptor(QuestionFormDescriptorId, Id, ChangeVersion) + SELECT OLD.QuestionFormDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.QuestionFormDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.questionformdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: racedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.racedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RaceDescriptor(RaceDescriptorId, Id, ChangeVersion) + SELECT OLD.RaceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.RaceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.racedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: reasonexiteddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.reasonexiteddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ReasonExitedDescriptor(ReasonExitedDescriptorId, Id, ChangeVersion) + SELECT OLD.ReasonExitedDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ReasonExitedDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.reasonexiteddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: reasonnottesteddescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.reasonnottesteddescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ReasonNotTestedDescriptor(ReasonNotTestedDescriptorId, Id, ChangeVersion) + SELECT OLD.ReasonNotTestedDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ReasonNotTestedDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.reasonnottesteddescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: recognitiontypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.recognitiontypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RecognitionTypeDescriptor(RecognitionTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.RecognitionTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.RecognitionTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.recognitiontypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: relationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.relationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RelationDescriptor(RelationDescriptorId, Id, ChangeVersion) + SELECT OLD.RelationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.RelationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.relationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: repeatidentifierdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.repeatidentifierdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RepeatIdentifierDescriptor(RepeatIdentifierDescriptorId, Id, ChangeVersion) + SELECT OLD.RepeatIdentifierDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.RepeatIdentifierDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.repeatidentifierdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: reportcard_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.reportcard_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ReportCard(EducationOrganizationId, GradingPeriodDescriptorId, GradingPeriodSchoolId, GradingPeriodSchoolYear, GradingPeriodSequence, StudentUSI, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.GradingPeriodDescriptorId, OLD.GradingPeriodSchoolId, OLD.GradingPeriodSchoolYear, OLD.GradingPeriodSequence, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.reportcard_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: reporterdescriptiondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.reporterdescriptiondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ReporterDescriptionDescriptor(ReporterDescriptionDescriptorId, Id, ChangeVersion) + SELECT OLD.ReporterDescriptionDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ReporterDescriptionDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.reporterdescriptiondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: residencystatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.residencystatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ResidencyStatusDescriptor(ResidencyStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.ResidencyStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ResidencyStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.residencystatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: responseindicatordescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.responseindicatordescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ResponseIndicatorDescriptor(ResponseIndicatorDescriptorId, Id, ChangeVersion) + SELECT OLD.ResponseIndicatorDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ResponseIndicatorDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.responseindicatordescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: responsibilitydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.responsibilitydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ResponsibilityDescriptor(ResponsibilityDescriptorId, Id, ChangeVersion) + SELECT OLD.ResponsibilityDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ResponsibilityDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.responsibilitydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: restraintevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.restraintevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RestraintEvent(RestraintEventIdentifier, SchoolId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.RestraintEventIdentifier, OLD.SchoolId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.restraintevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: restrainteventreasondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.restrainteventreasondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RestraintEventReasonDescriptor(RestraintEventReasonDescriptorId, Id, ChangeVersion) + SELECT OLD.RestraintEventReasonDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.RestraintEventReasonDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.restrainteventreasondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: resultdatatypetypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.resultdatatypetypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.ResultDatatypeTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ResultDatatypeTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.resultdatatypetypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: retestindicatordescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.retestindicatordescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.RetestIndicatorDescriptor(RetestIndicatorDescriptorId, Id, ChangeVersion) + SELECT OLD.RetestIndicatorDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.RetestIndicatorDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.retestindicatordescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: school_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.school_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.School(SchoolId, Id, ChangeVersion) + SELECT OLD.SchoolId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.SchoolId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.school_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: schoolcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.schoolcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SchoolCategoryDescriptor(SchoolCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.SchoolCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SchoolCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.schoolcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: schoolchoiceimplementstatusdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SchoolChoiceImplementStatusDescriptor(SchoolChoiceImplementStatusDescriptorId, Id, ChangeVersion) + SELECT OLD.SchoolChoiceImplementStatusDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SchoolChoiceImplementStatusDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: schoolfoodserviceprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SchoolFoodServiceProgramServiceDescriptor(SchoolFoodServiceProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.SchoolFoodServiceProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SchoolFoodServiceProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: schooltypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.schooltypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.SchoolTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SchoolTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.schooltypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: section_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.section_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Section(LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, Id, ChangeVersion) + VALUES (OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.section_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: sectionattendancetakenevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.sectionattendancetakenevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SectionAttendanceTakenEvent(CalendarCode, Date, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, Id, ChangeVersion) + VALUES (OLD.CalendarCode, OLD.Date, OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.sectionattendancetakenevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: sectioncharacteristicdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.sectioncharacteristicdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SectionCharacteristicDescriptor(SectionCharacteristicDescriptorId, Id, ChangeVersion) + SELECT OLD.SectionCharacteristicDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SectionCharacteristicDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.sectioncharacteristicdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: separationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.separationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SeparationDescriptor(SeparationDescriptorId, Id, ChangeVersion) + SELECT OLD.SeparationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SeparationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.separationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: separationreasondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.separationreasondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SeparationReasonDescriptor(SeparationReasonDescriptorId, Id, ChangeVersion) + SELECT OLD.SeparationReasonDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SeparationReasonDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.separationreasondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: servicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.servicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.ServiceDescriptor(ServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.ServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.ServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.servicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: session_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.session_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Session(SchoolId, SchoolYear, SessionName, Id, ChangeVersion) + VALUES (OLD.SchoolId, OLD.SchoolYear, OLD.SessionName, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.session_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: sexdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.sexdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SexDescriptor(SexDescriptorId, Id, ChangeVersion) + SELECT OLD.SexDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SexDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.sexdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: sourcesystemdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.sourcesystemdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SourceSystemDescriptor(SourceSystemDescriptorId, Id, ChangeVersion) + SELECT OLD.SourceSystemDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SourceSystemDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.sourcesystemdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: specialeducationprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.specialeducationprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SpecialEducationProgramServiceDescriptor(SpecialEducationProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.SpecialEducationProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SpecialEducationProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.specialeducationprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: specialeducationsettingdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.specialeducationsettingdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SpecialEducationSettingDescriptor(SpecialEducationSettingDescriptorId, Id, ChangeVersion) + SELECT OLD.SpecialEducationSettingDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SpecialEducationSettingDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.specialeducationsettingdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staff_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staff_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Staff(StaffUSI, Id, ChangeVersion) + VALUES (OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staff_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffabsenceevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffabsenceevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffAbsenceEvent(AbsenceEventCategoryDescriptorId, EventDate, StaffUSI, Id, ChangeVersion) + VALUES (OLD.AbsenceEventCategoryDescriptorId, OLD.EventDate, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffabsenceevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffclassificationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffclassificationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId, Id, ChangeVersion) + SELECT OLD.StaffClassificationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StaffClassificationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffclassificationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffcohortassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffcohortassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffCohortAssociation(BeginDate, CohortIdentifier, EducationOrganizationId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.CohortIdentifier, OLD.EducationOrganizationId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffcohortassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffdisciplineincidentassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffdisciplineincidentassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffDisciplineIncidentAssociation(IncidentIdentifier, SchoolId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.IncidentIdentifier, OLD.SchoolId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffdisciplineincidentassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffeducationorganizationassignmentassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffeducationorganizationassignmentassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffEducationOrganizationAssignmentAssociation(BeginDate, EducationOrganizationId, StaffClassificationDescriptorId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.EducationOrganizationId, OLD.StaffClassificationDescriptorId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffeducationorganizationassignmentassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffeducationorganizationcontactassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffeducationorganizationcontactassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffEducationOrganizationContactAssociation(ContactTitle, EducationOrganizationId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.ContactTitle, OLD.EducationOrganizationId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffeducationorganizationcontactassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffeducationorganizationemploymentassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffeducationorganizationemploymentassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffEducationOrganizationEmploymentAssociation(EducationOrganizationId, EmploymentStatusDescriptorId, HireDate, StaffUSI, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.EmploymentStatusDescriptorId, OLD.HireDate, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffeducationorganizationemploymentassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffidentificationsystemdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffidentificationsystemdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffIdentificationSystemDescriptor(StaffIdentificationSystemDescriptorId, Id, ChangeVersion) + SELECT OLD.StaffIdentificationSystemDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StaffIdentificationSystemDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffidentificationsystemdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffleave_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffleave_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffLeave(BeginDate, StaffLeaveEventCategoryDescriptorId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.StaffLeaveEventCategoryDescriptorId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffleave_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffleaveeventcategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffleaveeventcategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffLeaveEventCategoryDescriptor(StaffLeaveEventCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.StaffLeaveEventCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StaffLeaveEventCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffleaveeventcategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffProgramAssociation(BeginDate, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffschoolassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffschoolassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffSchoolAssociation(ProgramAssignmentDescriptorId, SchoolId, StaffUSI, Id, ChangeVersion) + VALUES (OLD.ProgramAssignmentDescriptorId, OLD.SchoolId, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffschoolassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: staffsectionassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.staffsectionassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StaffSectionAssociation(LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StaffUSI, Id, ChangeVersion) + VALUES (OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.StaffUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.staffsectionassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: stateabbreviationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.stateabbreviationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId, Id, ChangeVersion) + SELECT OLD.StateAbbreviationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StateAbbreviationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.stateabbreviationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: stateeducationagency_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.stateeducationagency_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StateEducationAgency(StateEducationAgencyId, Id, ChangeVersion) + SELECT OLD.StateEducationAgencyId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.EducationOrganization WHERE EducationOrganizationId = OLD.StateEducationAgencyId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.stateeducationagency_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: student_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.student_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Student(StudentUSI, Id, ChangeVersion) + VALUES (OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.student_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentacademicrecord_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentacademicrecord_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentAcademicRecord(EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.SchoolYear, OLD.StudentUSI, OLD.TermDescriptorId, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentacademicrecord_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentassessment_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentassessment_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentAssessment(AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, Id, ChangeVersion) + VALUES (OLD.AssessmentIdentifier, OLD.Namespace, OLD.StudentAssessmentIdentifier, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentassessment_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentcharacteristicdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentcharacteristicdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId, Id, ChangeVersion) + SELECT OLD.StudentCharacteristicDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StudentCharacteristicDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentcharacteristicdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentcohortassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentcohortassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentCohortAssociation(BeginDate, CohortIdentifier, EducationOrganizationId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.CohortIdentifier, OLD.EducationOrganizationId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentcohortassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentcompetencyobjective_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentcompetencyobjective_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentCompetencyObjective(GradingPeriodDescriptorId, GradingPeriodSchoolId, GradingPeriodSchoolYear, GradingPeriodSequence, Objective, ObjectiveEducationOrganizationId, ObjectiveGradeLevelDescriptorId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.GradingPeriodDescriptorId, OLD.GradingPeriodSchoolId, OLD.GradingPeriodSchoolYear, OLD.GradingPeriodSequence, OLD.Objective, OLD.ObjectiveEducationOrganizationId, OLD.ObjectiveGradeLevelDescriptorId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentcompetencyobjective_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentcteprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentcteprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentCTEProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentcteprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentdisciplineincidentassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentdisciplineincidentassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentDisciplineIncidentAssociation(IncidentIdentifier, SchoolId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.IncidentIdentifier, OLD.SchoolId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentdisciplineincidentassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentdisciplineincidentbehaviorassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentDisciplineIncidentBehaviorAssociation(BehaviorDescriptorId, IncidentIdentifier, SchoolId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BehaviorDescriptorId, OLD.IncidentIdentifier, OLD.SchoolId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentdisciplineincidentnonoffenderassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentDisciplineIncidentNonOffenderAssociation(IncidentIdentifier, SchoolId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.IncidentIdentifier, OLD.SchoolId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studenteducationorganizationassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studenteducationorganizationassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentEducationOrganizationAssociation(EducationOrganizationId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studenteducationorganizationassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studenteducationorganizationresponsibilityass_42aa64_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studenteducationorganizationresponsibilityass_42aa64_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentEducationOrganizationResponsibilityAssociation(BeginDate, EducationOrganizationId, ResponsibilityDescriptorId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.EducationOrganizationId, OLD.ResponsibilityDescriptorId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studenteducationorganizationresponsibilityass_42aa64_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentgradebookentry_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentgradebookentry_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentGradebookEntry(BeginDate, DateAssigned, GradebookEntryTitle, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.DateAssigned, OLD.GradebookEntryTitle, OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentgradebookentry_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studenthomelessprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studenthomelessprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentHomelessProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studenthomelessprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentidentificationsystemdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentidentificationsystemdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentIdentificationSystemDescriptor(StudentIdentificationSystemDescriptorId, Id, ChangeVersion) + SELECT OLD.StudentIdentificationSystemDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StudentIdentificationSystemDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentidentificationsystemdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentinterventionassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentinterventionassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentInterventionAssociation(EducationOrganizationId, InterventionIdentificationCode, StudentUSI, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.InterventionIdentificationCode, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentinterventionassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentinterventionattendanceevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentinterventionattendanceevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentInterventionAttendanceEvent(AttendanceEventCategoryDescriptorId, EducationOrganizationId, EventDate, InterventionIdentificationCode, StudentUSI, Id, ChangeVersion) + VALUES (OLD.AttendanceEventCategoryDescriptorId, OLD.EducationOrganizationId, OLD.EventDate, OLD.InterventionIdentificationCode, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentinterventionattendanceevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentlanguageinstructionprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentlanguageinstructionprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentLanguageInstructionProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentlanguageinstructionprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentlearningobjective_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentlearningobjective_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentLearningObjective(GradingPeriodDescriptorId, GradingPeriodSchoolId, GradingPeriodSchoolYear, GradingPeriodSequence, LearningObjectiveId, Namespace, StudentUSI, Id, ChangeVersion) + VALUES (OLD.GradingPeriodDescriptorId, OLD.GradingPeriodSchoolId, OLD.GradingPeriodSchoolYear, OLD.GradingPeriodSequence, OLD.LearningObjectiveId, OLD.Namespace, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentlearningobjective_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentmigranteducationprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentmigranteducationprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentMigrantEducationProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentmigranteducationprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentneglectedordelinquentprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentneglectedordelinquentprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentNeglectedOrDelinquentProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentneglectedordelinquentprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentparentassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentparentassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentParentAssociation(ParentUSI, StudentUSI, Id, ChangeVersion) + VALUES (OLD.ParentUSI, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentparentassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentparticipationcodedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentparticipationcodedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId, Id, ChangeVersion) + SELECT OLD.StudentParticipationCodeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.StudentParticipationCodeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentparticipationcodedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentprogramattendanceevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentprogramattendanceevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentProgramAttendanceEvent(AttendanceEventCategoryDescriptorId, EducationOrganizationId, EventDate, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.AttendanceEventCategoryDescriptorId, OLD.EducationOrganizationId, OLD.EventDate, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentprogramattendanceevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentschoolassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentschoolassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentSchoolAssociation(EntryDate, SchoolId, StudentUSI, Id, ChangeVersion) + VALUES (OLD.EntryDate, OLD.SchoolId, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentschoolassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentschoolattendanceevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentschoolattendanceevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentSchoolAttendanceEvent(AttendanceEventCategoryDescriptorId, EventDate, SchoolId, SchoolYear, SessionName, StudentUSI, Id, ChangeVersion) + VALUES (OLD.AttendanceEventCategoryDescriptorId, OLD.EventDate, OLD.SchoolId, OLD.SchoolYear, OLD.SessionName, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentschoolattendanceevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentschoolfoodserviceprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentschoolfoodserviceprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentSchoolFoodServiceProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentschoolfoodserviceprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentsectionassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentsectionassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentSectionAssociation(BeginDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI, Id, ChangeVersion) + VALUES (OLD.BeginDate, OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentsectionassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentsectionattendanceevent_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentsectionattendanceevent_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId, EventDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI, Id, ChangeVersion) + VALUES (OLD.AttendanceEventCategoryDescriptorId, OLD.EventDate, OLD.LocalCourseCode, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.StudentUSI, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentsectionattendanceevent_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studentspecialeducationprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studentspecialeducationprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentSpecialEducationProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studentspecialeducationprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: studenttitleipartaprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.studenttitleipartaprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.StudentTitleIPartAProgramAssociation(BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, Id, ChangeVersion) + SELECT OLD.BeginDate, OLD.EducationOrganizationId, OLD.ProgramEducationOrganizationId, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.StudentUSI, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = OLD.BeginDate AND EducationOrganizationId = OLD.EducationOrganizationId AND ProgramEducationOrganizationId = OLD.ProgramEducationOrganizationId AND ProgramName = OLD.ProgramName AND ProgramTypeDescriptorId = OLD.ProgramTypeDescriptorId AND StudentUSI = OLD.StudentUSI; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.studenttitleipartaprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: survey_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.survey_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.Survey(Namespace, SurveyIdentifier, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.SurveyIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.survey_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveycategorydescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveycategorydescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyCategoryDescriptor(SurveyCategoryDescriptorId, Id, ChangeVersion) + SELECT OLD.SurveyCategoryDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SurveyCategoryDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveycategorydescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveycourseassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveycourseassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyCourseAssociation(CourseCode, EducationOrganizationId, Namespace, SurveyIdentifier, Id, ChangeVersion) + VALUES (OLD.CourseCode, OLD.EducationOrganizationId, OLD.Namespace, OLD.SurveyIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveycourseassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyleveldescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyleveldescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyLevelDescriptor(SurveyLevelDescriptorId, Id, ChangeVersion) + SELECT OLD.SurveyLevelDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.SurveyLevelDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyleveldescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyprogramassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyprogramassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyProgramAssociation(EducationOrganizationId, Namespace, ProgramName, ProgramTypeDescriptorId, SurveyIdentifier, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.Namespace, OLD.ProgramName, OLD.ProgramTypeDescriptorId, OLD.SurveyIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyprogramassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyquestion_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyquestion_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyQuestion(Namespace, QuestionCode, SurveyIdentifier, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.QuestionCode, OLD.SurveyIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyquestion_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyquestionresponse_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyquestionresponse_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyQuestionResponse(Namespace, QuestionCode, SurveyIdentifier, SurveyResponseIdentifier, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.QuestionCode, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyquestionresponse_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyresponse_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyresponse_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyResponse(Namespace, SurveyIdentifier, SurveyResponseIdentifier, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyresponse_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyresponseeducationorganizationtargetassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyResponseEducationOrganizationTargetAssociation(EducationOrganizationId, Namespace, SurveyIdentifier, SurveyResponseIdentifier, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.Namespace, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveyresponsestafftargetassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveyresponsestafftargetassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveyResponseStaffTargetAssociation(Namespace, StaffUSI, SurveyIdentifier, SurveyResponseIdentifier, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.StaffUSI, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveyresponsestafftargetassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveysection_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveysection_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveySection(Namespace, SurveyIdentifier, SurveySectionTitle, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.SurveyIdentifier, OLD.SurveySectionTitle, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveysection_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveysectionassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveysectionassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveySectionAssociation(LocalCourseCode, Namespace, SchoolId, SchoolYear, SectionIdentifier, SessionName, SurveyIdentifier, Id, ChangeVersion) + VALUES (OLD.LocalCourseCode, OLD.Namespace, OLD.SchoolId, OLD.SchoolYear, OLD.SectionIdentifier, OLD.SessionName, OLD.SurveyIdentifier, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveysectionassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveysectionresponse_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveysectionresponse_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveySectionResponse(Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.SurveySectionTitle, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveysectionresponse_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveysectionresponseeducationorganizationtar_730be1_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveysectionresponseeducationorganizationtar_730be1_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveySectionResponseEducationOrganizationTargetAssociation(EducationOrganizationId, Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle, Id, ChangeVersion) + VALUES (OLD.EducationOrganizationId, OLD.Namespace, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.SurveySectionTitle, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveysectionresponseeducationorganizationtar_730be1_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: surveysectionresponsestafftargetassociation_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.surveysectionresponsestafftargetassociation_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.SurveySectionResponseStaffTargetAssociation(Namespace, StaffUSI, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle, Id, ChangeVersion) + VALUES (OLD.Namespace, OLD.StaffUSI, OLD.SurveyIdentifier, OLD.SurveyResponseIdentifier, OLD.SurveySectionTitle, OLD.Id, nextval('changes.ChangeVersionSequence')); + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.surveysectionresponsestafftargetassociation_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: teachingcredentialbasisdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.teachingcredentialbasisdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TeachingCredentialBasisDescriptor(TeachingCredentialBasisDescriptorId, Id, ChangeVersion) + SELECT OLD.TeachingCredentialBasisDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TeachingCredentialBasisDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.teachingcredentialbasisdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: teachingcredentialdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.teachingcredentialdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TeachingCredentialDescriptor(TeachingCredentialDescriptorId, Id, ChangeVersion) + SELECT OLD.TeachingCredentialDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TeachingCredentialDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.teachingcredentialdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: technicalskillsassessmentdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.technicalskillsassessmentdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TechnicalSkillsAssessmentDescriptor(TechnicalSkillsAssessmentDescriptorId, Id, ChangeVersion) + SELECT OLD.TechnicalSkillsAssessmentDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TechnicalSkillsAssessmentDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.technicalskillsassessmentdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: telephonenumbertypedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.telephonenumbertypedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId, Id, ChangeVersion) + SELECT OLD.TelephoneNumberTypeDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TelephoneNumberTypeDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.telephonenumbertypedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: termdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.termdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TermDescriptor(TermDescriptorId, Id, ChangeVersion) + SELECT OLD.TermDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TermDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.termdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: titleipartaparticipantdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.titleipartaparticipantdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TitleIPartAParticipantDescriptor(TitleIPartAParticipantDescriptorId, Id, ChangeVersion) + SELECT OLD.TitleIPartAParticipantDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TitleIPartAParticipantDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.titleipartaparticipantdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: titleipartaprogramservicedescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.titleipartaprogramservicedescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TitleIPartAProgramServiceDescriptor(TitleIPartAProgramServiceDescriptorId, Id, ChangeVersion) + SELECT OLD.TitleIPartAProgramServiceDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TitleIPartAProgramServiceDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.titleipartaprogramservicedescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: titleipartaschooldesignationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.titleipartaschooldesignationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TitleIPartASchoolDesignationDescriptor(TitleIPartASchoolDesignationDescriptorId, Id, ChangeVersion) + SELECT OLD.TitleIPartASchoolDesignationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TitleIPartASchoolDesignationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.titleipartaschooldesignationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: tribalaffiliationdescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.tribalaffiliationdescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId, Id, ChangeVersion) + SELECT OLD.TribalAffiliationDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.TribalAffiliationDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.tribalaffiliationdescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: visadescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.visadescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.VisaDescriptor(VisaDescriptorId, Id, ChangeVersion) + SELECT OLD.VisaDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.VisaDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.visadescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: weapondescriptor_tr_deltrkg(); Type: FUNCTION; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE FUNCTION tracked_deletes_edfi.weapondescriptor_tr_deltrkg() RETURNS trigger + LANGUAGE plpgsql + AS $$ +BEGIN + INSERT INTO tracked_deletes_edfi.WeaponDescriptor(WeaponDescriptorId, Id, ChangeVersion) + SELECT OLD.WeaponDescriptorId, Id, nextval('changes.ChangeVersionSequence') + FROM edfi.Descriptor WHERE DescriptorId = OLD.WeaponDescriptorId; + RETURN NULL; +END; +$$; + + +ALTER FUNCTION tracked_deletes_edfi.weapondescriptor_tr_deltrkg() OWNER TO postgres; + +-- +-- Name: getedfiodsversion(); Type: FUNCTION; Schema: util; Owner: postgres +-- + +CREATE FUNCTION util.getedfiodsversion() RETURNS character varying + LANGUAGE plpgsql + AS $$ +BEGIN + RETURN '5.3'; +END; +$$; + + +ALTER FUNCTION util.getedfiodsversion() OWNER TO postgres; + +SET default_tablespace = ''; + +-- +-- Name: educationorganizationidtoeducationorganizationid; Type: TABLE; Schema: auth; Owner: postgres +-- + +CREATE TABLE auth.educationorganizationidtoeducationorganizationid ( + sourceeducationorganizationid integer NOT NULL, + targeteducationorganizationid integer NOT NULL +); + + +ALTER TABLE auth.educationorganizationidtoeducationorganizationid OWNER TO postgres; + +-- +-- Name: changeversionsequence; Type: SEQUENCE; Schema: changes; Owner: postgres +-- + +CREATE SEQUENCE changes.changeversionsequence + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE changes.changeversionsequence OWNER TO postgres; + +-- +-- Name: studentparentassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentparentassociation ( + parentusi integer NOT NULL, + studentusi integer NOT NULL, + relationdescriptorid integer, + primarycontactstatus boolean, + liveswith boolean, + emergencycontactstatus boolean, + contactpriority integer, + contactrestrictions character varying(250), + legalguardian boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentparentassociation OWNER TO postgres; + +-- +-- Name: TABLE studentparentassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentparentassociation IS 'This association relates students to their parents, guardians, or caretakers.'; + + +-- +-- Name: COLUMN studentparentassociation.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN studentparentassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentparentassociation.relationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.relationdescriptorid IS 'The nature of an individual''s relationship to a student, primarily used to capture family relationships.'; + + +-- +-- Name: COLUMN studentparentassociation.primarycontactstatus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.primarycontactstatus IS 'Indicator of whether the person is a primary parental contact for the Student.'; + + +-- +-- Name: COLUMN studentparentassociation.liveswith; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.liveswith IS 'Indicator of whether the Student lives with the associated parent.'; + + +-- +-- Name: COLUMN studentparentassociation.emergencycontactstatus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.emergencycontactstatus IS 'Indicator of whether the person is a designated emergency contact for the Student.'; + + +-- +-- Name: COLUMN studentparentassociation.contactpriority; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.contactpriority IS 'The numeric order of the preferred sequence or priority of contact.'; + + +-- +-- Name: COLUMN studentparentassociation.contactrestrictions; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.contactrestrictions IS 'Restrictions for student and/or teacher contact with the individual (e.g., the student may not be picked up by the individual).'; + + +-- +-- Name: COLUMN studentparentassociation.legalguardian; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparentassociation.legalguardian IS 'Indicator of whether the person is a legal guardian for the Student.'; + + +-- +-- Name: studentschoolassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentschoolassociation ( + entrydate date NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + primaryschool boolean, + entrygradeleveldescriptorid integer NOT NULL, + entrygradelevelreasondescriptorid integer, + entrytypedescriptorid integer, + repeatgradeindicator boolean, + classofschoolyear smallint, + schoolchoicetransfer boolean, + exitwithdrawdate date, + exitwithdrawtypedescriptorid integer, + residencystatusdescriptorid integer, + graduationplantypedescriptorid integer, + educationorganizationid integer, + graduationschoolyear smallint, + employedwhileenrolled boolean, + calendarcode character varying(60), + schoolyear smallint, + fulltimeequivalency numeric(5,4), + termcompletionindicator boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentschoolassociation OWNER TO postgres; + +-- +-- Name: TABLE studentschoolassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentschoolassociation IS 'This association represents the School in which a student is enrolled. The semantics of enrollment may differ slightly by state. Non-enrollment relationships between a student and an education organization may be described using the StudentEducationOrganizationAssociation.'; + + +-- +-- Name: COLUMN studentschoolassociation.entrydate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.entrydate IS 'The month, day, and year on which an individual enters and begins to receive instructional services in a school.'; + + +-- +-- Name: COLUMN studentschoolassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentschoolassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentschoolassociation.primaryschool; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.primaryschool IS 'Indicates if a given enrollment record should be considered the primary record for a student.'; + + +-- +-- Name: COLUMN studentschoolassociation.entrygradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.entrygradeleveldescriptorid IS 'The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session.'; + + +-- +-- Name: COLUMN studentschoolassociation.entrygradelevelreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.entrygradelevelreasondescriptorid IS 'The primary reason as to why a staff member determined that a student should be promoted or not (or be demoted) at the end of a given school term.'; + + +-- +-- Name: COLUMN studentschoolassociation.entrytypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.entrytypedescriptorid IS 'The process by which a student enters a school during a given academic session.'; + + +-- +-- Name: COLUMN studentschoolassociation.repeatgradeindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.repeatgradeindicator IS 'An indicator of whether the student is enrolling to repeat a grade level, either by failure or an agreement to hold the student back.'; + + +-- +-- Name: COLUMN studentschoolassociation.classofschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.classofschoolyear IS 'Projected High School graduation year.'; + + +-- +-- Name: COLUMN studentschoolassociation.schoolchoicetransfer; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.schoolchoicetransfer IS 'An indication of whether students transferred in or out of the school did so during the school year under the provisions for public school choice in accordance with Title I, Part A, Section 1116.'; + + +-- +-- Name: COLUMN studentschoolassociation.exitwithdrawdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.exitwithdrawdate IS 'The recorded exit or withdraw date for the student.'; + + +-- +-- Name: COLUMN studentschoolassociation.exitwithdrawtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.exitwithdrawtypedescriptorid IS 'The circumstances under which the student exited from membership in an educational institution.'; + + +-- +-- Name: COLUMN studentschoolassociation.residencystatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.residencystatusdescriptorid IS 'An indication of the location of a persons legal residence relative to (within or outside of) the boundaries of the public school attended and its administrative unit.'; + + +-- +-- Name: COLUMN studentschoolassociation.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN studentschoolassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentschoolassociation.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN studentschoolassociation.employedwhileenrolled; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.employedwhileenrolled IS 'An individual who is a paid employee or works in his or her own business, profession, or farm and at the same time is enrolled in secondary, postsecondary, or adult education.'; + + +-- +-- Name: COLUMN studentschoolassociation.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN studentschoolassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.schoolyear IS 'The school year associated with the student''s enrollment.'; + + +-- +-- Name: COLUMN studentschoolassociation.fulltimeequivalency; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.fulltimeequivalency IS 'The full-time equivalent ratio for the student’s assignment to a school for services or instruction. For example, a full-time student would have an FTE value of 1 while a half-time student would have an FTE value of 0.5.'; + + +-- +-- Name: COLUMN studentschoolassociation.termcompletionindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociation.termcompletionindicator IS 'Idicates whether or not a student completed the most recent school term.'; + + +-- +-- Name: educationorganizationidtoparentusi; Type: VIEW; Schema: auth; Owner: postgres +-- + +CREATE VIEW auth.educationorganizationidtoparentusi AS + SELECT edorgs.sourceeducationorganizationid, + spa.parentusi + FROM ((auth.educationorganizationidtoeducationorganizationid edorgs + JOIN edfi.studentschoolassociation ssa ON ((edorgs.targeteducationorganizationid = ssa.schoolid))) + JOIN edfi.studentparentassociation spa ON ((ssa.studentusi = spa.studentusi))) + GROUP BY edorgs.sourceeducationorganizationid, spa.parentusi; + + +ALTER TABLE auth.educationorganizationidtoparentusi OWNER TO postgres; + +-- +-- Name: staffeducationorganizationassignmentassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffeducationorganizationassignmentassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + staffclassificationdescriptorid integer NOT NULL, + staffusi integer NOT NULL, + positiontitle character varying(100), + enddate date, + orderofassignment integer, + employmenteducationorganizationid integer, + employmentstatusdescriptorid integer, + employmenthiredate date, + credentialidentifier character varying(60), + stateofissuestateabbreviationdescriptorid integer, + fulltimeequivalency numeric(5,4), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffeducationorganizationassignmentassociation OWNER TO postgres; + +-- +-- Name: TABLE staffeducationorganizationassignmentassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffeducationorganizationassignmentassociation IS 'This association indicates the education organization to which a staff member provides services.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.begindate IS 'Month, day, and year of the start or effective date of a staff member''s employment, contract, or relationship with the education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.staffclassificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.staffclassificationdescriptorid IS 'The titles of employment, official status, or rank of education staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.positiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.positiontitle IS 'The descriptive name of an individual''s position.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.enddate IS 'Month, day, and year of the end or termination date of a staff member''s employment, contract, or relationship with the education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.orderofassignment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.orderofassignment IS 'Describes whether the assignment is this the staff member''s primary assignment, secondary assignment, etc.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.employmenteducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.employmenteducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.employmentstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.employmentstatusdescriptorid IS 'Reflects the type of employment or contract; for example: + Probationary + Contractual + Substitute/temporary + Tenured or permanent + Volunteer/no contract + ...'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.employmenthiredate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.employmenthiredate IS 'The month, day, and year on which an individual was hired for a position.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: COLUMN staffeducationorganizationassignmentassociation.fulltimeequivalency; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationassignmentassociation.fulltimeequivalency IS 'The ratio between the hours of work expected in a position and the hours of work normally expected in a full-time position in the same setting.'; + + +-- +-- Name: staffeducationorganizationemploymentassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffeducationorganizationemploymentassociation ( + educationorganizationid integer NOT NULL, + employmentstatusdescriptorid integer NOT NULL, + hiredate date NOT NULL, + staffusi integer NOT NULL, + enddate date, + separationdescriptorid integer, + separationreasondescriptorid integer, + department character varying(60), + fulltimeequivalency numeric(5,4), + offerdate date, + hourlywage money, + credentialidentifier character varying(60), + stateofissuestateabbreviationdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffeducationorganizationemploymentassociation OWNER TO postgres; + +-- +-- Name: TABLE staffeducationorganizationemploymentassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffeducationorganizationemploymentassociation IS 'This association indicates the EducationOrganization an employee, contractor, volunteer, or other service provider is formally associated with typically indicated by which organization the staff member has a services contract with or receives compensation from.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.employmentstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.employmentstatusdescriptorid IS 'Reflects the type of employment or contract; for example: + Probationary + Contractual + Substitute/temporary + Tenured or permanent + Volunteer/no contract + ...'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.hiredate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.hiredate IS 'The month, day, and year on which an individual was hired for a position.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.enddate IS 'The month, day, and year on which a contract between an individual and a governing authority ends or is terminated under the provisions of the contract (or the date on which the agreement is made invalid).'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.separationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.separationdescriptorid IS 'Type of employment separation; for example: Voluntary separation, Involuntary separation, + Mutual agreement + Other, etc.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.separationreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.separationreasondescriptorid IS 'Reason for terminating the employment; for example: + Employment in education + Employment outside of education + Retirement + Family/personal relocation + Change of assignment.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.department; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.department IS 'The department or suborganization the employee/contractor is associated with in the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.fulltimeequivalency; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.fulltimeequivalency IS 'The ratio between the hours of work expected in a position and the hours of work normally expected in a full-time position in the same setting.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.offerdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.offerdate IS 'Date at which the staff member was made an official offer for this employment.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.hourlywage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.hourlywage IS 'Hourly wage associated with the employment position being reported.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN staffeducationorganizationemploymentassociation.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationemploymentassociation.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: educationorganizationidtostaffusi; Type: VIEW; Schema: auth; Owner: postgres +-- + +CREATE VIEW auth.educationorganizationidtostaffusi AS + SELECT edorgs.sourceeducationorganizationid, + seo_assign.staffusi + FROM (auth.educationorganizationidtoeducationorganizationid edorgs + JOIN edfi.staffeducationorganizationassignmentassociation seo_assign ON ((edorgs.targeteducationorganizationid = seo_assign.educationorganizationid))) +UNION + SELECT edorgs.sourceeducationorganizationid, + seo_empl.staffusi + FROM (auth.educationorganizationidtoeducationorganizationid edorgs + JOIN edfi.staffeducationorganizationemploymentassociation seo_empl ON ((edorgs.targeteducationorganizationid = seo_empl.educationorganizationid))); + + +ALTER TABLE auth.educationorganizationidtostaffusi OWNER TO postgres; + +-- +-- Name: educationorganizationidtostudentusi; Type: VIEW; Schema: auth; Owner: postgres +-- + +CREATE VIEW auth.educationorganizationidtostudentusi AS + SELECT edorgs.sourceeducationorganizationid, + ssa.studentusi + FROM (auth.educationorganizationidtoeducationorganizationid edorgs + JOIN edfi.studentschoolassociation ssa ON ((edorgs.targeteducationorganizationid = ssa.schoolid))) + GROUP BY edorgs.sourceeducationorganizationid, ssa.studentusi; + + +ALTER TABLE auth.educationorganizationidtostudentusi OWNER TO postgres; + +-- +-- Name: studenteducationorganizationresponsibilityassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationresponsibilityassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + responsibilitydescriptorid integer NOT NULL, + studentusi integer NOT NULL, + enddate date, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationresponsibilityassociation OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationresponsibilityassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationresponsibilityassociation IS 'This association indicates a relationship between a student and an education organization other than an enrollment relationship, and generally indicating some kind of responsibility of the education organization for the student. Enrollment relationship semantics are covered by StudentSchoolAssociation.'; + + +-- +-- Name: COLUMN studenteducationorganizationresponsibilityassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationresponsibilityassociation.begindate IS 'Month, day, and year of the start date of an education organization''s responsibility for a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationresponsibilityassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationresponsibilityassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationresponsibilityassociation.responsibilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationresponsibilityassociation.responsibilitydescriptorid IS 'Indications of an education organization''s responsibility for a student, such as accountability, attendance, funding, etc.'; + + +-- +-- Name: COLUMN studenteducationorganizationresponsibilityassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationresponsibilityassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationresponsibilityassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationresponsibilityassociation.enddate IS 'Month, day, and year of the end date of an education organization''s responsibility for a student.'; + + +-- +-- Name: educationorganizationidtostudentusithroughresponsibility; Type: VIEW; Schema: auth; Owner: postgres +-- + +CREATE VIEW auth.educationorganizationidtostudentusithroughresponsibility AS + SELECT edorgs.sourceeducationorganizationid, + seora.studentusi + FROM (auth.educationorganizationidtoeducationorganizationid edorgs + JOIN edfi.studenteducationorganizationresponsibilityassociation seora ON ((edorgs.targeteducationorganizationid = seora.educationorganizationid))) + GROUP BY edorgs.sourceeducationorganizationid, seora.studentusi; + + +ALTER TABLE auth.educationorganizationidtostudentusithroughresponsibility OWNER TO postgres; + +-- +-- Name: snapshot; Type: TABLE; Schema: changes; Owner: postgres +-- + +CREATE TABLE changes.snapshot ( + snapshotidentifier character varying(32) NOT NULL, + snapshotdatetime timestamp without time zone NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL +); + + +ALTER TABLE changes.snapshot OWNER TO postgres; + +-- +-- Name: TABLE snapshot; Type: COMMENT; Schema: changes; Owner: postgres +-- + +COMMENT ON TABLE changes.snapshot IS 'Contains information about a snapshot used to create isolation from ongoing changes for API client synchronization.'; + + +-- +-- Name: COLUMN snapshot.snapshotidentifier; Type: COMMENT; Schema: changes; Owner: postgres +-- + +COMMENT ON COLUMN changes.snapshot.snapshotidentifier IS 'The unique identifier of the snapshot.'; + + +-- +-- Name: COLUMN snapshot.snapshotdatetime; Type: COMMENT; Schema: changes; Owner: postgres +-- + +COMMENT ON COLUMN changes.snapshot.snapshotdatetime IS 'The date and time that the snapshot was initiated.'; + + +-- +-- Name: absenceeventcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.absenceeventcategorydescriptor ( + absenceeventcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.absenceeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE absenceeventcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.absenceeventcategorydescriptor IS 'This descriptor describes the type of absence'; + + +-- +-- Name: COLUMN absenceeventcategorydescriptor.absenceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.absenceeventcategorydescriptor.absenceeventcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: academichonorcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.academichonorcategorydescriptor ( + academichonorcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.academichonorcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE academichonorcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.academichonorcategorydescriptor IS 'A designation of the type of academic distinctions earned by or awarded to the student.'; + + +-- +-- Name: COLUMN academichonorcategorydescriptor.academichonorcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academichonorcategorydescriptor.academichonorcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: academicsubjectdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.academicsubjectdescriptor ( + academicsubjectdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.academicsubjectdescriptor OWNER TO postgres; + +-- +-- Name: TABLE academicsubjectdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.academicsubjectdescriptor IS 'This descriptor holds the description of the content or subject area (e.g., arts, mathematics, reading, stenography, or a foreign language).'; + + +-- +-- Name: COLUMN academicsubjectdescriptor.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academicsubjectdescriptor.academicsubjectdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: academicweek; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.academicweek ( + schoolid integer NOT NULL, + weekidentifier character varying(80) NOT NULL, + begindate date NOT NULL, + enddate date NOT NULL, + totalinstructionaldays integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.academicweek OWNER TO postgres; + +-- +-- Name: TABLE academicweek; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.academicweek IS 'This entity represents the academic weeks for a school year, optionally captured to support analyses.'; + + +-- +-- Name: COLUMN academicweek.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academicweek.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN academicweek.weekidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academicweek.weekidentifier IS 'The school label for the week.'; + + +-- +-- Name: COLUMN academicweek.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academicweek.begindate IS 'The start date for the academic week.'; + + +-- +-- Name: COLUMN academicweek.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academicweek.enddate IS 'The end date for the academic week.'; + + +-- +-- Name: COLUMN academicweek.totalinstructionaldays; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.academicweek.totalinstructionaldays IS 'The total instructional days during the academic week.'; + + +-- +-- Name: accommodationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.accommodationdescriptor ( + accommodationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.accommodationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE accommodationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.accommodationdescriptor IS 'This descriptor defines variations used in how an assessment is presented or taken.'; + + +-- +-- Name: COLUMN accommodationdescriptor.accommodationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accommodationdescriptor.accommodationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: account; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.account ( + accountidentifier character varying(50) NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + accountname character varying(100), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.account OWNER TO postgres; + +-- +-- Name: TABLE account; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.account IS 'This financial entity represents a funding source combined with its purpose and type of transaction. It provides a formal record of the debits and credits relating to the specific account.'; + + +-- +-- Name: COLUMN account.accountidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.account.accountidentifier IS 'The alphanumeric string that identifies the account.'; + + +-- +-- Name: COLUMN account.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.account.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN account.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.account.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: COLUMN account.accountname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.account.accountname IS 'A descriptive name for the account.'; + + +-- +-- Name: accountabilityrating; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.accountabilityrating ( + educationorganizationid integer NOT NULL, + ratingtitle character varying(60) NOT NULL, + schoolyear smallint NOT NULL, + rating character varying(35) NOT NULL, + ratingdate date, + ratingorganization character varying(35), + ratingprogram character varying(30), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.accountabilityrating OWNER TO postgres; + +-- +-- Name: TABLE accountabilityrating; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.accountabilityrating IS 'An accountability rating for a school or district.'; + + +-- +-- Name: COLUMN accountabilityrating.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN accountabilityrating.ratingtitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.ratingtitle IS 'The title of the rating (e.g., School Rating, Safety Score).'; + + +-- +-- Name: COLUMN accountabilityrating.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.schoolyear IS 'The school year for which the AccountabilityRating is assessed.'; + + +-- +-- Name: COLUMN accountabilityrating.rating; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.rating IS 'An accountability rating level, designation, or assessment.'; + + +-- +-- Name: COLUMN accountabilityrating.ratingdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.ratingdate IS 'The date the rating was awarded.'; + + +-- +-- Name: COLUMN accountabilityrating.ratingorganization; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.ratingorganization IS 'The organization that assessed the rating.'; + + +-- +-- Name: COLUMN accountabilityrating.ratingprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountabilityrating.ratingprogram IS 'The program associated with the AccountabilityRating (e.g., NCLB, AEIS).'; + + +-- +-- Name: accountaccountcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.accountaccountcode ( + accountclassificationdescriptorid integer NOT NULL, + accountcodenumber character varying(50) NOT NULL, + accountidentifier character varying(50) NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.accountaccountcode OWNER TO postgres; + +-- +-- Name: TABLE accountaccountcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.accountaccountcode IS 'The set of account codes defined for the education accounting system organized by account code type (e.g., fund, function, object) that map to the account.'; + + +-- +-- Name: COLUMN accountaccountcode.accountclassificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountaccountcode.accountclassificationdescriptorid IS 'The type of account code associated with the account.'; + + +-- +-- Name: COLUMN accountaccountcode.accountcodenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountaccountcode.accountcodenumber IS 'An account code defined for the education accounting system by the education organization.'; + + +-- +-- Name: COLUMN accountaccountcode.accountidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountaccountcode.accountidentifier IS 'The alphanumeric string that identifies the account.'; + + +-- +-- Name: COLUMN accountaccountcode.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountaccountcode.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN accountaccountcode.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountaccountcode.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: accountclassificationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.accountclassificationdescriptor ( + accountclassificationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.accountclassificationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE accountclassificationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.accountclassificationdescriptor IS 'This descriptor holds the set of account code categories defined for the education accounting system organized by account code type (e.g., fund, function, object).'; + + +-- +-- Name: COLUMN accountclassificationdescriptor.accountclassificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountclassificationdescriptor.accountclassificationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: accountcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.accountcode ( + accountclassificationdescriptorid integer NOT NULL, + accountcodenumber character varying(50) NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + accountcodedescription character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.accountcode OWNER TO postgres; + +-- +-- Name: TABLE accountcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.accountcode IS 'The set of account codes defined by an education organization for a fiscal year.'; + + +-- +-- Name: COLUMN accountcode.accountclassificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountcode.accountclassificationdescriptorid IS 'The type of account code associated with the account.'; + + +-- +-- Name: COLUMN accountcode.accountcodenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountcode.accountcodenumber IS 'An account code defined for the education accounting system by the education organization.'; + + +-- +-- Name: COLUMN accountcode.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountcode.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN accountcode.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountcode.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: COLUMN accountcode.accountcodedescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.accountcode.accountcodedescription IS 'A description of the account code.'; + + +-- +-- Name: achievementcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.achievementcategorydescriptor ( + achievementcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.achievementcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE achievementcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.achievementcategorydescriptor IS 'This descriptor defines the category of achievement attributed to the learner.'; + + +-- +-- Name: COLUMN achievementcategorydescriptor.achievementcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.achievementcategorydescriptor.achievementcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: actual; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.actual ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + amounttodate money NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.actual OWNER TO postgres; + +-- +-- Name: TABLE actual; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.actual IS 'This financial entity represents the sum of the financial transactions to date relating to a specific account.'; + + +-- +-- Name: COLUMN actual.accountidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.actual.accountidentifier IS 'The alphanumeric string that identifies the account.'; + + +-- +-- Name: COLUMN actual.asofdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.actual.asofdate IS 'The date of the reported actual element.'; + + +-- +-- Name: COLUMN actual.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.actual.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN actual.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.actual.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: COLUMN actual.amounttodate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.actual.amounttodate IS 'Current balance for the account.'; + + +-- +-- Name: additionalcredittypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.additionalcredittypedescriptor ( + additionalcredittypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.additionalcredittypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE additionalcredittypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.additionalcredittypedescriptor IS 'The type of additional credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN additionalcredittypedescriptor.additionalcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.additionalcredittypedescriptor.additionalcredittypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: addresstypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.addresstypedescriptor ( + addresstypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.addresstypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE addresstypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.addresstypedescriptor IS 'The type of address listed for an individual or organization.'; + + +-- +-- Name: COLUMN addresstypedescriptor.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.addresstypedescriptor.addresstypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: administrationenvironmentdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.administrationenvironmentdescriptor ( + administrationenvironmentdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.administrationenvironmentdescriptor OWNER TO postgres; + +-- +-- Name: TABLE administrationenvironmentdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.administrationenvironmentdescriptor IS 'The environment in which the test was administered.'; + + +-- +-- Name: COLUMN administrationenvironmentdescriptor.administrationenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.administrationenvironmentdescriptor.administrationenvironmentdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: administrativefundingcontroldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.administrativefundingcontroldescriptor ( + administrativefundingcontroldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.administrativefundingcontroldescriptor OWNER TO postgres; + +-- +-- Name: TABLE administrativefundingcontroldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.administrativefundingcontroldescriptor IS 'This descriptor holds the type of education institution as classified by its funding source (e.g., public or private).'; + + +-- +-- Name: COLUMN administrativefundingcontroldescriptor.administrativefundingcontroldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.administrativefundingcontroldescriptor.administrativefundingcontroldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: ancestryethnicorigindescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.ancestryethnicorigindescriptor ( + ancestryethnicorigindescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.ancestryethnicorigindescriptor OWNER TO postgres; + +-- +-- Name: TABLE ancestryethnicorigindescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.ancestryethnicorigindescriptor IS 'The original peoples or cultures with which the individual identifies.'; + + +-- +-- Name: COLUMN ancestryethnicorigindescriptor.ancestryethnicorigindescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.ancestryethnicorigindescriptor.ancestryethnicorigindescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessment; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessment ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + assessmenttitle character varying(100) NOT NULL, + assessmentcategorydescriptorid integer, + assessmentform character varying(60), + assessmentversion integer, + revisiondate date, + maxrawscore numeric(15,5), + nomenclature character varying(35), + assessmentfamily character varying(60), + educationorganizationid integer, + adaptiveassessment boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.assessment OWNER TO postgres; + +-- +-- Name: TABLE assessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessment IS 'This entity represents a tool, instrument, process, or exhibition composed of a systematic sampling of behavior for measuring a student''s competence, knowledge, skills, or behavior. An assessment can be used to measure differences in individuals or groups and changes in performance from one occasion to the next.'; + + +-- +-- Name: COLUMN assessment.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessment.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessment.assessmenttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.assessmenttitle IS 'The title or name of the Assessment.'; + + +-- +-- Name: COLUMN assessment.assessmentcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.assessmentcategorydescriptorid IS 'The category of an assessment based on format and content. For example: + Achievement test + Advanced placement test + Alternate assessment/grade-level standards + Attitudinal test + Cognitive and perceptual skills test + ...'; + + +-- +-- Name: COLUMN assessment.assessmentform; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.assessmentform IS 'Identifies the form of the assessment, for example a regular versus makeup form, multiple choice versus constructed response, etc.'; + + +-- +-- Name: COLUMN assessment.assessmentversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.assessmentversion IS 'The version identifier for the assessment.'; + + +-- +-- Name: COLUMN assessment.revisiondate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.revisiondate IS 'The month, day, and year that the conceptual design for the assessment was most recently revised substantially.'; + + +-- +-- Name: COLUMN assessment.maxrawscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.maxrawscore IS 'The maximum raw score achievable across all assessment items that are correct and scored at the maximum.'; + + +-- +-- Name: COLUMN assessment.nomenclature; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.nomenclature IS 'Reflects the specific nomenclature used for Assessment.'; + + +-- +-- Name: COLUMN assessment.assessmentfamily; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.assessmentfamily IS 'The AssessmentFamily this Assessment is a member of.'; + + +-- +-- Name: COLUMN assessment.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN assessment.adaptiveassessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessment.adaptiveassessment IS 'Indicates that the assessment is adaptive.'; + + +-- +-- Name: assessmentacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE assessmentacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentacademicsubject IS 'The description of the content or subject area (e.g., arts, mathematics, reading, stenography, or a foreign language) of an assessment.'; + + +-- +-- Name: COLUMN assessmentacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentacademicsubject.academicsubjectdescriptorid IS 'The description of the content or subject area (e.g., arts, mathematics, reading, stenography, or a foreign language) of an assessment.'; + + +-- +-- Name: COLUMN assessmentacademicsubject.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentacademicsubject.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentacademicsubject.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentacademicsubject.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: assessmentassessedgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentassessedgradelevel ( + assessmentidentifier character varying(60) NOT NULL, + gradeleveldescriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentassessedgradelevel OWNER TO postgres; + +-- +-- Name: TABLE assessmentassessedgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentassessedgradelevel IS 'The grade level(s) for which an assessment is designed. The semantics of null is assumed to mean that the assessment is not associated with any grade level.'; + + +-- +-- Name: COLUMN assessmentassessedgradelevel.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentassessedgradelevel.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentassessedgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentassessedgradelevel.gradeleveldescriptorid IS 'The grade level(s) for which an assessment is designed. The semantics of null is assumed to mean that the assessment is not associated with any grade level.'; + + +-- +-- Name: COLUMN assessmentassessedgradelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentassessedgradelevel.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: assessmentcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentcategorydescriptor ( + assessmentcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.assessmentcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE assessmentcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentcategorydescriptor IS 'This descriptor holds the category of an assessment based on format and content.'; + + +-- +-- Name: COLUMN assessmentcategorydescriptor.assessmentcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcategorydescriptor.assessmentcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessmentcontentstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentcontentstandard ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + title character varying(75) NOT NULL, + version character varying(50), + uri character varying(255), + publicationdate date, + publicationyear smallint, + publicationstatusdescriptorid integer, + mandatingeducationorganizationid integer, + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentcontentstandard OWNER TO postgres; + +-- +-- Name: TABLE assessmentcontentstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentcontentstandard IS 'An indication as to whether an assessment conforms to a standard (e.g., local standard, statewide standard, regional standard, association standard).'; + + +-- +-- Name: COLUMN assessmentcontentstandard.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.title; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.title IS 'The name of the content standard, for example Common Core.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.version; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.version IS 'The version identifier for the content.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.uri IS 'An unambiguous reference to the standards using a network-resolvable URI.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.publicationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.publicationdate IS 'The date on which this content was first published.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.publicationyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.publicationyear IS 'The year at which this content was first published.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.publicationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.publicationstatusdescriptorid IS 'The publication status of the document (i.e., Adopted, Draft, Published, Deprecated, Unknown).'; + + +-- +-- Name: COLUMN assessmentcontentstandard.mandatingeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.mandatingeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.begindate IS 'The beginning of the period during which this learning standard document is intended for use.'; + + +-- +-- Name: COLUMN assessmentcontentstandard.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandard.enddate IS 'The end of the period during which this learning standard document is intended for use.'; + + +-- +-- Name: assessmentcontentstandardauthor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentcontentstandardauthor ( + assessmentidentifier character varying(60) NOT NULL, + author character varying(100) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentcontentstandardauthor OWNER TO postgres; + +-- +-- Name: TABLE assessmentcontentstandardauthor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentcontentstandardauthor IS 'The person or organization chiefly responsible for the intellectual content of the standard.'; + + +-- +-- Name: COLUMN assessmentcontentstandardauthor.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandardauthor.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentcontentstandardauthor.author; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandardauthor.author IS 'The person or organization chiefly responsible for the intellectual content of the standard.'; + + +-- +-- Name: COLUMN assessmentcontentstandardauthor.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentcontentstandardauthor.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: assessmentidentificationcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentidentificationcode ( + assessmentidentificationsystemdescriptorid integer NOT NULL, + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + identificationcode character varying(60) NOT NULL, + assigningorganizationidentificationcode character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentidentificationcode OWNER TO postgres; + +-- +-- Name: TABLE assessmentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentidentificationcode IS 'A unique number or alphanumeric code assigned to an assessment by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN assessmentidentificationcode.assessmentidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentidentificationcode.assessmentidentificationsystemdescriptorid IS 'A coding scheme that is used for identification and record-keeping purposes by schools, social services, or other agencies to refer to an assessment.'; + + +-- +-- Name: COLUMN assessmentidentificationcode.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentidentificationcode.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentidentificationcode.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentidentificationcode.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentidentificationcode.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentidentificationcode.identificationcode IS 'A unique number or alphanumeric code assigned to an assessment by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN assessmentidentificationcode.assigningorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentidentificationcode.assigningorganizationidentificationcode IS 'The organization code or name assigning the assessment identification code.'; + + +-- +-- Name: assessmentidentificationsystemdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentidentificationsystemdescriptor ( + assessmentidentificationsystemdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.assessmentidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: TABLE assessmentidentificationsystemdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentidentificationsystemdescriptor IS 'This descriptor holds a coding scheme that is used for identification and record-keeping purposes by schools, social services or other agencies to refer to an assessment.'; + + +-- +-- Name: COLUMN assessmentidentificationsystemdescriptor.assessmentidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentidentificationsystemdescriptor.assessmentidentificationsystemdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessmentitem; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentitem ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + assessmentitemcategorydescriptorid integer, + maxrawscore numeric(15,5), + itemtext character varying(1024), + correctresponse character varying(20), + expectedtimeassessed character varying(30), + nomenclature character varying(35), + assessmentitemuri character varying(255), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.assessmentitem OWNER TO postgres; + +-- +-- Name: TABLE assessmentitem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentitem IS 'This entity represents one of many single measures that make up an assessment.'; + + +-- +-- Name: COLUMN assessmentitem.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentitem.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN assessmentitem.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentitem.assessmentitemcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.assessmentitemcategorydescriptorid IS 'Category or type of the AssessmentItem. For example: + Multiple choice + Analytic + Prose + ...'; + + +-- +-- Name: COLUMN assessmentitem.maxrawscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.maxrawscore IS 'The maximum raw score achievable across all assessment items that are correct and scored at the maximum.'; + + +-- +-- Name: COLUMN assessmentitem.itemtext; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.itemtext IS 'The text of the item.'; + + +-- +-- Name: COLUMN assessmentitem.correctresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.correctresponse IS 'The correct response for the AssessmentItem.'; + + +-- +-- Name: COLUMN assessmentitem.expectedtimeassessed; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.expectedtimeassessed IS 'The duration of time allotted for the AssessmentItem.'; + + +-- +-- Name: COLUMN assessmentitem.nomenclature; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.nomenclature IS 'Reflects the specific nomenclature used for AssessmentItem.'; + + +-- +-- Name: COLUMN assessmentitem.assessmentitemuri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitem.assessmentitemuri IS 'The URI (typical a URL) pointing to the entry in an assessment item bank, which describes this content item.'; + + +-- +-- Name: assessmentitemcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentitemcategorydescriptor ( + assessmentitemcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.assessmentitemcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE assessmentitemcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentitemcategorydescriptor IS 'Category or type of the assessment item (e.g., Multiple Choice, Analytic, Prose).'; + + +-- +-- Name: COLUMN assessmentitemcategorydescriptor.assessmentitemcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitemcategorydescriptor.assessmentitemcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessmentitemlearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentitemlearningstandard ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + learningstandardid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentitemlearningstandard OWNER TO postgres; + +-- +-- Name: TABLE assessmentitemlearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentitemlearningstandard IS 'LearningStandard tested by this item.'; + + +-- +-- Name: COLUMN assessmentitemlearningstandard.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitemlearningstandard.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentitemlearningstandard.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitemlearningstandard.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN assessmentitemlearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitemlearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN assessmentitemlearningstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitemlearningstandard.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: assessmentitempossibleresponse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentitempossibleresponse ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + responsevalue character varying(60) NOT NULL, + responsedescription character varying(1024), + correctresponse boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentitempossibleresponse OWNER TO postgres; + +-- +-- Name: TABLE assessmentitempossibleresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentitempossibleresponse IS 'A possible response to an assessment item.'; + + +-- +-- Name: COLUMN assessmentitempossibleresponse.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitempossibleresponse.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentitempossibleresponse.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitempossibleresponse.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN assessmentitempossibleresponse.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitempossibleresponse.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentitempossibleresponse.responsevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitempossibleresponse.responsevalue IS 'The response value, often an option number or code value (e.g., 1, 2, A, B, true, false).'; + + +-- +-- Name: COLUMN assessmentitempossibleresponse.responsedescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitempossibleresponse.responsedescription IS 'Additional text provided to define the response value.'; + + +-- +-- Name: COLUMN assessmentitempossibleresponse.correctresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitempossibleresponse.correctresponse IS 'Indicates the response is correct.'; + + +-- +-- Name: assessmentitemresultdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentitemresultdescriptor ( + assessmentitemresultdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.assessmentitemresultdescriptor OWNER TO postgres; + +-- +-- Name: TABLE assessmentitemresultdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentitemresultdescriptor IS 'The analyzed result of a student''s response to an assessment item.. For example: + Correct + Incorrect + Met standard + ...'; + + +-- +-- Name: COLUMN assessmentitemresultdescriptor.assessmentitemresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentitemresultdescriptor.assessmentitemresultdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessmentlanguage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentlanguage ( + assessmentidentifier character varying(60) NOT NULL, + languagedescriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentlanguage OWNER TO postgres; + +-- +-- Name: TABLE assessmentlanguage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentlanguage IS 'An indication of the languages in which the assessment is designed.'; + + +-- +-- Name: COLUMN assessmentlanguage.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentlanguage.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentlanguage.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentlanguage.languagedescriptorid IS 'An indication of the languages in which the assessment is designed.'; + + +-- +-- Name: COLUMN assessmentlanguage.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentlanguage.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: assessmentperformancelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentperformancelevel ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + performanceleveldescriptorid integer NOT NULL, + minimumscore character varying(35), + maximumscore character varying(35), + resultdatatypetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentperformancelevel OWNER TO postgres; + +-- +-- Name: TABLE assessmentperformancelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentperformancelevel IS 'Definition of the performance levels and the associated cut scores. Three styles are supported: + 1. Specification of performance level by minimum and maximum score + 2. Specification of performance level by cut score, using only minimum score + 3. Specification of performance level without any mapping to scores.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.assessmentreportingmethoddescriptorid IS 'The method that the instructor of the class uses to report the performance and achievement of all students. It may be a qualitative method such as individualized teacher comments or a quantitative method such as a letter or numerical grade. In some cases, more than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.performanceleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.performanceleveldescriptorid IS 'The performance level(s) defined for the assessment.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.minimumscore IS 'The minimum score required to make the indicated level of performance.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.maximumscore IS 'The maximum score to make the indicated level of performance.'; + + +-- +-- Name: COLUMN assessmentperformancelevel.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperformancelevel.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: assessmentperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentperiod ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + assessmentperioddescriptorid integer NOT NULL, + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentperiod OWNER TO postgres; + +-- +-- Name: TABLE assessmentperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentperiod IS 'The period or window in which an assessment is supposed to be administered.'; + + +-- +-- Name: COLUMN assessmentperiod.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperiod.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentperiod.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperiod.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentperiod.assessmentperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperiod.assessmentperioddescriptorid IS 'The period of time in which an assessment is supposed to be administered (e.g., Beginning of Year, Middle of Year, End of Year).'; + + +-- +-- Name: COLUMN assessmentperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperiod.begindate IS 'The first date the assessment is to be administered.'; + + +-- +-- Name: COLUMN assessmentperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperiod.enddate IS 'The last date the assessment is to be administered.'; + + +-- +-- Name: assessmentperioddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentperioddescriptor ( + assessmentperioddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.assessmentperioddescriptor OWNER TO postgres; + +-- +-- Name: TABLE assessmentperioddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentperioddescriptor IS 'This descriptor holds the period of time window in which an assessment is supposed to be administered (e.g., Beginning of Year, Middle of Year, End of Year).'; + + +-- +-- Name: COLUMN assessmentperioddescriptor.assessmentperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentperioddescriptor.assessmentperioddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessmentplatformtype; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentplatformtype ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + platformtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentplatformtype OWNER TO postgres; + +-- +-- Name: TABLE assessmentplatformtype; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentplatformtype IS 'The platforms with which the assessment may be delivered.'; + + +-- +-- Name: COLUMN assessmentplatformtype.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentplatformtype.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentplatformtype.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentplatformtype.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentplatformtype.platformtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentplatformtype.platformtypedescriptorid IS 'The platforms with which the assessment may be delivered.'; + + +-- +-- Name: assessmentprogram; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentprogram ( + assessmentidentifier character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentprogram OWNER TO postgres; + +-- +-- Name: TABLE assessmentprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentprogram IS 'The programs associated with the Assessment.'; + + +-- +-- Name: COLUMN assessmentprogram.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentprogram.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentprogram.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentprogram.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN assessmentprogram.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentprogram.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentprogram.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentprogram.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN assessmentprogram.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentprogram.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: assessmentreportingmethoddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentreportingmethoddescriptor ( + assessmentreportingmethoddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.assessmentreportingmethoddescriptor OWNER TO postgres; + +-- +-- Name: TABLE assessmentreportingmethoddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentreportingmethoddescriptor IS 'This descriptor defines the method that the instructor of the class uses to report the performance and achievement of all students. It may be a qualitative method such as individualized teacher comments or a quantitative method such as a letter or a numerical grade.'; + + +-- +-- Name: COLUMN assessmentreportingmethoddescriptor.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentreportingmethoddescriptor.assessmentreportingmethoddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: assessmentscore; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentscore ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + minimumscore character varying(35), + maximumscore character varying(35), + resultdatatypetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentscore OWNER TO postgres; + +-- +-- Name: TABLE assessmentscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentscore IS 'Definition of the scores to be expected from this assessment.'; + + +-- +-- Name: COLUMN assessmentscore.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscore.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentscore.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscore.assessmentreportingmethoddescriptorid IS 'The method that the administrator of the assessment uses to report the performance and achievement of all students. It may be a qualitative method such as performance level descriptors or a quantitative method such as a numerical grade or cut score. More than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN assessmentscore.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscore.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentscore.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscore.minimumscore IS 'The minimum score possible on the assessment.'; + + +-- +-- Name: COLUMN assessmentscore.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscore.maximumscore IS 'The maximum score possible on the assessment.'; + + +-- +-- Name: COLUMN assessmentscore.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscore.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: assessmentscorerangelearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentscorerangelearningstandard ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + scorerangeid character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer, + minimumscore character varying(35) NOT NULL, + maximumscore character varying(35) NOT NULL, + identificationcode character varying(60), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.assessmentscorerangelearningstandard OWNER TO postgres; + +-- +-- Name: TABLE assessmentscorerangelearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentscorerangelearningstandard IS 'Score ranges of an assessment associated with one or more learning standards.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.scorerangeid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.scorerangeid IS 'A unique number or alphanumeric code assigned to the score range associated with one or more learning standards.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.assessmentreportingmethoddescriptorid IS 'The assessment reporting method defined (e.g., scale score, RIT scale score) associated with the referenced learning standard(s).'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.minimumscore IS 'The minimum score in the score range.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.maximumscore IS 'The maximum score in the score range.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandard.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandard.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: assessmentscorerangelearningstandardlearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentscorerangelearningstandardlearningstandard ( + assessmentidentifier character varying(60) NOT NULL, + learningstandardid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + scorerangeid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentscorerangelearningstandardlearningstandard OWNER TO postgres; + +-- +-- Name: TABLE assessmentscorerangelearningstandardlearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentscorerangelearningstandardlearningstandard IS 'LearningStandard associated with the score range.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandardlearningstandard.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandardlearningstandard.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandardlearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandardlearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandardlearningstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandardlearningstandard.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentscorerangelearningstandardlearningstandard.scorerangeid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentscorerangelearningstandardlearningstandard.scorerangeid IS 'A unique number or alphanumeric code assigned to the score range associated with one or more learning standards.'; + + +-- +-- Name: assessmentsection; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.assessmentsection ( + assessmentidentifier character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.assessmentsection OWNER TO postgres; + +-- +-- Name: TABLE assessmentsection; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.assessmentsection IS 'The Section(s) to which the Assessment is associated.'; + + +-- +-- Name: COLUMN assessmentsection.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN assessmentsection.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN assessmentsection.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN assessmentsection.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN assessmentsection.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN assessmentsection.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN assessmentsection.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.assessmentsection.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: attemptstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.attemptstatusdescriptor ( + attemptstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.attemptstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE attemptstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.attemptstatusdescriptor IS 'This descriptor describes a student''s completion status for a section.'; + + +-- +-- Name: COLUMN attemptstatusdescriptor.attemptstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.attemptstatusdescriptor.attemptstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: attendanceeventcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.attendanceeventcategorydescriptor ( + attendanceeventcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.attendanceeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE attendanceeventcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.attendanceeventcategorydescriptor IS 'This descriptor holds the category of the attendance event (e.g., tardy). The map to known enumeration values is required.'; + + +-- +-- Name: COLUMN attendanceeventcategorydescriptor.attendanceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.attendanceeventcategorydescriptor.attendanceeventcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: barriertointernetaccessinresidencedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.barriertointernetaccessinresidencedescriptor ( + barriertointernetaccessinresidencedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.barriertointernetaccessinresidencedescriptor OWNER TO postgres; + +-- +-- Name: TABLE barriertointernetaccessinresidencedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.barriertointernetaccessinresidencedescriptor IS 'An indication of the barrier to having internet access in the student’s primary place of residence.'; + + +-- +-- Name: COLUMN barriertointernetaccessinresidencedescriptor.barriertointernetaccessinresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.barriertointernetaccessinresidencedescriptor.barriertointernetaccessinresidencedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: behaviordescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.behaviordescriptor ( + behaviordescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.behaviordescriptor OWNER TO postgres; + +-- +-- Name: TABLE behaviordescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.behaviordescriptor IS 'This descriptor holds the categories of behavior describing a discipline incident.'; + + +-- +-- Name: COLUMN behaviordescriptor.behaviordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.behaviordescriptor.behaviordescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: bellschedule; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.bellschedule ( + bellschedulename character varying(60) NOT NULL, + schoolid integer NOT NULL, + alternatedayname character varying(20), + starttime time without time zone, + endtime time without time zone, + totalinstructionaltime integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.bellschedule OWNER TO postgres; + +-- +-- Name: TABLE bellschedule; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.bellschedule IS 'This entity represents the schedule of class period meeting times.'; + + +-- +-- Name: COLUMN bellschedule.bellschedulename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedule.bellschedulename IS 'Name or title of the BellSchedule.'; + + +-- +-- Name: COLUMN bellschedule.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedule.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN bellschedule.alternatedayname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedule.alternatedayname IS 'An alternate name for the day (e.g., Red, Blue).'; + + +-- +-- Name: COLUMN bellschedule.starttime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedule.starttime IS 'An indication of the time of day the bell schedule begins.'; + + +-- +-- Name: COLUMN bellschedule.endtime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedule.endtime IS 'An indication of the time of day the bell schedule ends.'; + + +-- +-- Name: COLUMN bellschedule.totalinstructionaltime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedule.totalinstructionaltime IS 'The total instructional time in minutes per day for the bell schedule.'; + + +-- +-- Name: bellscheduleclassperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.bellscheduleclassperiod ( + bellschedulename character varying(60) NOT NULL, + classperiodname character varying(60) NOT NULL, + schoolid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.bellscheduleclassperiod OWNER TO postgres; + +-- +-- Name: TABLE bellscheduleclassperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.bellscheduleclassperiod IS 'The class periods that compose this BellSchedule.'; + + +-- +-- Name: COLUMN bellscheduleclassperiod.bellschedulename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellscheduleclassperiod.bellschedulename IS 'Name or title of the BellSchedule.'; + + +-- +-- Name: COLUMN bellscheduleclassperiod.classperiodname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellscheduleclassperiod.classperiodname IS 'An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules).'; + + +-- +-- Name: COLUMN bellscheduleclassperiod.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellscheduleclassperiod.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: bellscheduledate; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.bellscheduledate ( + bellschedulename character varying(60) NOT NULL, + date date NOT NULL, + schoolid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.bellscheduledate OWNER TO postgres; + +-- +-- Name: TABLE bellscheduledate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.bellscheduledate IS 'The dates for which the BellSchedule applies.'; + + +-- +-- Name: COLUMN bellscheduledate.bellschedulename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellscheduledate.bellschedulename IS 'Name or title of the BellSchedule.'; + + +-- +-- Name: COLUMN bellscheduledate.date; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellscheduledate.date IS 'The dates for which the BellSchedule applies.'; + + +-- +-- Name: COLUMN bellscheduledate.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellscheduledate.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: bellschedulegradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.bellschedulegradelevel ( + bellschedulename character varying(60) NOT NULL, + gradeleveldescriptorid integer NOT NULL, + schoolid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.bellschedulegradelevel OWNER TO postgres; + +-- +-- Name: TABLE bellschedulegradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.bellschedulegradelevel IS 'The grade levels the particular BellSchedule applies to.'; + + +-- +-- Name: COLUMN bellschedulegradelevel.bellschedulename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedulegradelevel.bellschedulename IS 'Name or title of the BellSchedule.'; + + +-- +-- Name: COLUMN bellschedulegradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedulegradelevel.gradeleveldescriptorid IS 'The grade levels the particular BellSchedule applies to.'; + + +-- +-- Name: COLUMN bellschedulegradelevel.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.bellschedulegradelevel.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: budget; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.budget ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + amount money NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.budget OWNER TO postgres; + +-- +-- Name: TABLE budget; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.budget IS 'This financial entity represents the amount of monies allocated to be spent or received by an education organization as related to a specific account.'; + + +-- +-- Name: COLUMN budget.accountidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.budget.accountidentifier IS 'The alphanumeric string that identifies the account.'; + + +-- +-- Name: COLUMN budget.asofdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.budget.asofdate IS 'The date of the reported budget element.'; + + +-- +-- Name: COLUMN budget.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.budget.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN budget.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.budget.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: COLUMN budget.amount; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.budget.amount IS 'Amount budgeted for the account for this fiscal year.'; + + +-- +-- Name: calendar; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.calendar ( + calendarcode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + calendartypedescriptorid integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.calendar OWNER TO postgres; + +-- +-- Name: TABLE calendar; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.calendar IS 'A set of dates associated with an organization.'; + + +-- +-- Name: COLUMN calendar.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendar.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN calendar.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendar.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN calendar.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendar.schoolyear IS 'The identifier for the school year associated with the Calendar.'; + + +-- +-- Name: COLUMN calendar.calendartypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendar.calendartypedescriptorid IS 'Indicates the type of Calendar.'; + + +-- +-- Name: calendardate; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.calendardate ( + calendarcode character varying(60) NOT NULL, + date date NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.calendardate OWNER TO postgres; + +-- +-- Name: TABLE calendardate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.calendardate IS 'The type of scheduled or unscheduled event for the day.'; + + +-- +-- Name: COLUMN calendardate.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardate.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN calendardate.date; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardate.date IS 'The month, day, and year of the CalendarEvent.'; + + +-- +-- Name: COLUMN calendardate.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardate.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN calendardate.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardate.schoolyear IS 'The identifier for the school year associated with the Calendar.'; + + +-- +-- Name: calendardatecalendarevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.calendardatecalendarevent ( + calendarcode character varying(60) NOT NULL, + calendareventdescriptorid integer NOT NULL, + date date NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.calendardatecalendarevent OWNER TO postgres; + +-- +-- Name: TABLE calendardatecalendarevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.calendardatecalendarevent IS 'The type of scheduled or unscheduled event for the day.'; + + +-- +-- Name: COLUMN calendardatecalendarevent.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardatecalendarevent.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN calendardatecalendarevent.calendareventdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardatecalendarevent.calendareventdescriptorid IS 'The type of scheduled or unscheduled event for the day.'; + + +-- +-- Name: COLUMN calendardatecalendarevent.date; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardatecalendarevent.date IS 'The month, day, and year of the CalendarEvent.'; + + +-- +-- Name: COLUMN calendardatecalendarevent.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardatecalendarevent.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN calendardatecalendarevent.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendardatecalendarevent.schoolyear IS 'The identifier for the school year associated with the Calendar.'; + + +-- +-- Name: calendareventdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.calendareventdescriptor ( + calendareventdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.calendareventdescriptor OWNER TO postgres; + +-- +-- Name: TABLE calendareventdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.calendareventdescriptor IS 'This descriptor holds the types of scheduled or unscheduled event for the day (e.g., Instructional day, Teacher only day, Holiday, Make-up day, Weather day, Student late arrival/early dismissal day).'; + + +-- +-- Name: COLUMN calendareventdescriptor.calendareventdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendareventdescriptor.calendareventdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: calendargradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.calendargradelevel ( + calendarcode character varying(60) NOT NULL, + gradeleveldescriptorid integer NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.calendargradelevel OWNER TO postgres; + +-- +-- Name: TABLE calendargradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.calendargradelevel IS 'Indicates the GradeLevel associated with the Calendar.'; + + +-- +-- Name: COLUMN calendargradelevel.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendargradelevel.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN calendargradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendargradelevel.gradeleveldescriptorid IS 'Indicates the GradeLevel associated with the Calendar.'; + + +-- +-- Name: COLUMN calendargradelevel.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendargradelevel.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN calendargradelevel.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendargradelevel.schoolyear IS 'The identifier for the school year associated with the Calendar.'; + + +-- +-- Name: calendartypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.calendartypedescriptor ( + calendartypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.calendartypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE calendartypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.calendartypedescriptor IS 'This descriptor defines the calendar types.'; + + +-- +-- Name: COLUMN calendartypedescriptor.calendartypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.calendartypedescriptor.calendartypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: careerpathwaydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.careerpathwaydescriptor ( + careerpathwaydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.careerpathwaydescriptor OWNER TO postgres; + +-- +-- Name: TABLE careerpathwaydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.careerpathwaydescriptor IS 'The career cluster or pathway representing the career path of the Vocational/Career Tech concentrator.'; + + +-- +-- Name: COLUMN careerpathwaydescriptor.careerpathwaydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.careerpathwaydescriptor.careerpathwaydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: charterapprovalagencytypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.charterapprovalagencytypedescriptor ( + charterapprovalagencytypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.charterapprovalagencytypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE charterapprovalagencytypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.charterapprovalagencytypedescriptor IS 'The type of agency that approved the establishment or continuation of a charter school.'; + + +-- +-- Name: COLUMN charterapprovalagencytypedescriptor.charterapprovalagencytypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.charterapprovalagencytypedescriptor.charterapprovalagencytypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: charterstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.charterstatusdescriptor ( + charterstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.charterstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE charterstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.charterstatusdescriptor IS 'The category of charter school. For example: School Charter, Open Enrollment Charter.'; + + +-- +-- Name: COLUMN charterstatusdescriptor.charterstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.charterstatusdescriptor.charterstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: citizenshipstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.citizenshipstatusdescriptor ( + citizenshipstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.citizenshipstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE citizenshipstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.citizenshipstatusdescriptor IS 'An indicator of whether or not the person is a U.S. citizen.'; + + +-- +-- Name: COLUMN citizenshipstatusdescriptor.citizenshipstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.citizenshipstatusdescriptor.citizenshipstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: classperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.classperiod ( + classperiodname character varying(60) NOT NULL, + schoolid integer NOT NULL, + officialattendanceperiod boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.classperiod OWNER TO postgres; + +-- +-- Name: TABLE classperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.classperiod IS 'This entity represents the designation of a regularly scheduled series of class meetings at designated times and days of the week.'; + + +-- +-- Name: COLUMN classperiod.classperiodname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiod.classperiodname IS 'An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules).'; + + +-- +-- Name: COLUMN classperiod.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiod.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN classperiod.officialattendanceperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiod.officialattendanceperiod IS 'Indicator of whether this class period is used for official daily attendance. Alternatively, official daily attendance may be tied to a Section.'; + + +-- +-- Name: classperiodmeetingtime; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.classperiodmeetingtime ( + classperiodname character varying(60) NOT NULL, + endtime time without time zone NOT NULL, + schoolid integer NOT NULL, + starttime time without time zone NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.classperiodmeetingtime OWNER TO postgres; + +-- +-- Name: TABLE classperiodmeetingtime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.classperiodmeetingtime IS 'The meeting time(s) for a class period.'; + + +-- +-- Name: COLUMN classperiodmeetingtime.classperiodname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiodmeetingtime.classperiodname IS 'An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules).'; + + +-- +-- Name: COLUMN classperiodmeetingtime.endtime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiodmeetingtime.endtime IS 'An indication of the time of day the meeting time ends.'; + + +-- +-- Name: COLUMN classperiodmeetingtime.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiodmeetingtime.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN classperiodmeetingtime.starttime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classperiodmeetingtime.starttime IS 'An indication of the time of day the meeting time begins.'; + + +-- +-- Name: classroompositiondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.classroompositiondescriptor ( + classroompositiondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.classroompositiondescriptor OWNER TO postgres; + +-- +-- Name: TABLE classroompositiondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.classroompositiondescriptor IS 'This descriptor defines the type of position the staff member holds in a specific class/section.'; + + +-- +-- Name: COLUMN classroompositiondescriptor.classroompositiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.classroompositiondescriptor.classroompositiondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: cohort; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.cohort ( + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + cohortdescription character varying(1024), + cohorttypedescriptorid integer NOT NULL, + cohortscopedescriptorid integer, + academicsubjectdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.cohort OWNER TO postgres; + +-- +-- Name: TABLE cohort; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.cohort IS 'This entity represents any type of list of designated students for tracking, analysis, or intervention.'; + + +-- +-- Name: COLUMN cohort.cohortidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohort.cohortidentifier IS 'The name or ID for the Cohort.'; + + +-- +-- Name: COLUMN cohort.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohort.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN cohort.cohortdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohort.cohortdescription IS 'The description of the Cohort and its purpose.'; + + +-- +-- Name: COLUMN cohort.cohorttypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohort.cohorttypedescriptorid IS 'The type of cohort (e.g., academic intervention, classroom breakout).'; + + +-- +-- Name: COLUMN cohort.cohortscopedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohort.cohortscopedescriptorid IS 'The scope of cohort (e.g., school, district, classroom).'; + + +-- +-- Name: COLUMN cohort.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohort.academicsubjectdescriptorid IS 'The academic subject associated with an academic intervention.'; + + +-- +-- Name: cohortprogram; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.cohortprogram ( + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.cohortprogram OWNER TO postgres; + +-- +-- Name: TABLE cohortprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.cohortprogram IS 'The (optional) program associated with this Cohort (e.g., special education).'; + + +-- +-- Name: COLUMN cohortprogram.cohortidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortprogram.cohortidentifier IS 'The name or ID for the Cohort.'; + + +-- +-- Name: COLUMN cohortprogram.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortprogram.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN cohortprogram.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortprogram.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN cohortprogram.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortprogram.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN cohortprogram.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortprogram.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: cohortscopedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.cohortscopedescriptor ( + cohortscopedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.cohortscopedescriptor OWNER TO postgres; + +-- +-- Name: TABLE cohortscopedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.cohortscopedescriptor IS 'The scope of cohort (e.g., school, district, classroom).'; + + +-- +-- Name: COLUMN cohortscopedescriptor.cohortscopedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortscopedescriptor.cohortscopedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: cohorttypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.cohorttypedescriptor ( + cohorttypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.cohorttypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE cohorttypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.cohorttypedescriptor IS 'The type of the cohort (e.g., academic intervention, classroom breakout).'; + + +-- +-- Name: COLUMN cohorttypedescriptor.cohorttypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohorttypedescriptor.cohorttypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: cohortyeartypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.cohortyeartypedescriptor ( + cohortyeartypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.cohortyeartypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE cohortyeartypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.cohortyeartypedescriptor IS 'The enumeration items for the set of cohort years.'; + + +-- +-- Name: COLUMN cohortyeartypedescriptor.cohortyeartypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cohortyeartypedescriptor.cohortyeartypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: communityorganization; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.communityorganization ( + communityorganizationid integer NOT NULL +); + + +ALTER TABLE edfi.communityorganization OWNER TO postgres; + +-- +-- Name: TABLE communityorganization; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.communityorganization IS 'This entity represents an administrative unit at the state level which exists primarily to operate local community providers.'; + + +-- +-- Name: COLUMN communityorganization.communityorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityorganization.communityorganizationid IS 'The identifier assigned to a CommunityOrganization.'; + + +-- +-- Name: communityprovider; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.communityprovider ( + communityproviderid integer NOT NULL, + communityorganizationid integer, + providerprofitabilitydescriptorid integer, + providerstatusdescriptorid integer NOT NULL, + providercategorydescriptorid integer NOT NULL, + schoolindicator boolean, + licenseexemptindicator boolean +); + + +ALTER TABLE edfi.communityprovider OWNER TO postgres; + +-- +-- Name: TABLE communityprovider; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.communityprovider IS 'This entity represents an educational organization that includes staff and students who participate in classes and educational activity groups.'; + + +-- +-- Name: COLUMN communityprovider.communityproviderid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.communityproviderid IS 'The identifier assigned to a CommunityProvider.'; + + +-- +-- Name: COLUMN communityprovider.communityorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.communityorganizationid IS 'The identifier assigned to a CommunityOrganization.'; + + +-- +-- Name: COLUMN communityprovider.providerprofitabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.providerprofitabilitydescriptorid IS 'Indicates the profitability status of the provider.'; + + +-- +-- Name: COLUMN communityprovider.providerstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.providerstatusdescriptorid IS 'Indicates the status of the provider.'; + + +-- +-- Name: COLUMN communityprovider.providercategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.providercategorydescriptorid IS 'Indicates the category of the provider.'; + + +-- +-- Name: COLUMN communityprovider.schoolindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.schoolindicator IS 'An indication of whether the community provider is a school.'; + + +-- +-- Name: COLUMN communityprovider.licenseexemptindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityprovider.licenseexemptindicator IS 'An indication of whether the provider is exempt from having a license.'; + + +-- +-- Name: communityproviderlicense; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.communityproviderlicense ( + communityproviderid integer NOT NULL, + licenseidentifier character varying(20) NOT NULL, + licensingorganization character varying(75) NOT NULL, + licenseeffectivedate date NOT NULL, + licenseexpirationdate date, + licenseissuedate date, + licensestatusdescriptorid integer, + licensetypedescriptorid integer NOT NULL, + authorizedfacilitycapacity integer, + oldestageauthorizedtoserve integer, + youngestageauthorizedtoserve integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.communityproviderlicense OWNER TO postgres; + +-- +-- Name: TABLE communityproviderlicense; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.communityproviderlicense IS 'The legal document held by the CommunityProvider that authorizes the holder to perform certain functions and or services.'; + + +-- +-- Name: COLUMN communityproviderlicense.communityproviderid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.communityproviderid IS 'The identifier assigned to a CommunityProvider.'; + + +-- +-- Name: COLUMN communityproviderlicense.licenseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licenseidentifier IS 'The unique identifier issued by the licensing organization.'; + + +-- +-- Name: COLUMN communityproviderlicense.licensingorganization; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licensingorganization IS 'The organization issuing the license.'; + + +-- +-- Name: COLUMN communityproviderlicense.licenseeffectivedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licenseeffectivedate IS 'The month, day, and year on which a license is active or becomes effective.'; + + +-- +-- Name: COLUMN communityproviderlicense.licenseexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licenseexpirationdate IS 'The month, day, and year on which a license will expire.'; + + +-- +-- Name: COLUMN communityproviderlicense.licenseissuedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licenseissuedate IS 'The month, day, and year on which an active license was issued.'; + + +-- +-- Name: COLUMN communityproviderlicense.licensestatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licensestatusdescriptorid IS 'An indication of the status of the license.'; + + +-- +-- Name: COLUMN communityproviderlicense.licensetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.licensetypedescriptorid IS 'An indication of the category of the license.'; + + +-- +-- Name: COLUMN communityproviderlicense.authorizedfacilitycapacity; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.authorizedfacilitycapacity IS 'The maximum number that can be contained or accommodated which a provider is authorized or licensed to serve.'; + + +-- +-- Name: COLUMN communityproviderlicense.oldestageauthorizedtoserve; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.oldestageauthorizedtoserve IS 'The oldest age of children a provider is authorized or licensed to serve.'; + + +-- +-- Name: COLUMN communityproviderlicense.youngestageauthorizedtoserve; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.communityproviderlicense.youngestageauthorizedtoserve IS 'The youngest age of children a provider is authorized or licensed to serve.'; + + +-- +-- Name: competencyleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.competencyleveldescriptor ( + competencyleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.competencyleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE competencyleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.competencyleveldescriptor IS 'This descriptor defines various levels for assessed competencies.'; + + +-- +-- Name: COLUMN competencyleveldescriptor.competencyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyleveldescriptor.competencyleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: competencyobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.competencyobjective ( + educationorganizationid integer NOT NULL, + objective character varying(60) NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + competencyobjectiveid character varying(60), + description character varying(1024), + successcriteria character varying(150), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.competencyobjective OWNER TO postgres; + +-- +-- Name: TABLE competencyobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.competencyobjective IS 'This entity holds additional competencies for student achievement that are not associated with specific learning objectives (e.g., paying attention in class).'; + + +-- +-- Name: COLUMN competencyobjective.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyobjective.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN competencyobjective.objective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyobjective.objective IS 'The designated title of the CompetencyObjective.'; + + +-- +-- Name: COLUMN competencyobjective.objectivegradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyobjective.objectivegradeleveldescriptorid IS 'The grade level for which the CompetencyObjective is targeted.'; + + +-- +-- Name: COLUMN competencyobjective.competencyobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyobjective.competencyobjectiveid IS 'The Identifier for the CompetencyObjective.'; + + +-- +-- Name: COLUMN competencyobjective.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyobjective.description IS 'The description of the student competency objective.'; + + +-- +-- Name: COLUMN competencyobjective.successcriteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.competencyobjective.successcriteria IS 'One or more statements that describes the criteria used by teachers and students to check for attainment of a competency objective. This criteria gives clear indications as to the degree to which learning is moving through the Zone or Proximal Development toward independent achievement of the CompetencyObjective.'; + + +-- +-- Name: contacttypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.contacttypedescriptor ( + contacttypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.contacttypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE contacttypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.contacttypedescriptor IS 'This descriptor defines the set of contact types.'; + + +-- +-- Name: COLUMN contacttypedescriptor.contacttypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contacttypedescriptor.contacttypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: contentclassdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.contentclassdescriptor ( + contentclassdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.contentclassdescriptor OWNER TO postgres; + +-- +-- Name: TABLE contentclassdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.contentclassdescriptor IS 'The predominate type or kind characterizing the learning resource.'; + + +-- +-- Name: COLUMN contentclassdescriptor.contentclassdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contentclassdescriptor.contentclassdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: continuationofservicesreasondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.continuationofservicesreasondescriptor ( + continuationofservicesreasondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.continuationofservicesreasondescriptor OWNER TO postgres; + +-- +-- Name: TABLE continuationofservicesreasondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.continuationofservicesreasondescriptor IS 'In the Migrant Education program, a provision allows continuation of services after a child is no longer considered migratory for certain reasons. This descriptor holds the reasons prescribed in the statute. The mapping of descriptor values to known Ed-Fi enumeration values is required.'; + + +-- +-- Name: COLUMN continuationofservicesreasondescriptor.continuationofservicesreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.continuationofservicesreasondescriptor.continuationofservicesreasondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: contractedstaff; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.contractedstaff ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + staffusi integer NOT NULL, + amounttodate money NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.contractedstaff OWNER TO postgres; + +-- +-- Name: TABLE contractedstaff; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.contractedstaff IS 'This financial entity represents the sum of the financial transactions to date for contracted staff. ContractedStaff includes "contractors" or "consultants" who perform services for an agreed upon fee, or an employee of a management service contracted to work on site.'; + + +-- +-- Name: COLUMN contractedstaff.accountidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contractedstaff.accountidentifier IS 'The alphanumeric string that identifies the account.'; + + +-- +-- Name: COLUMN contractedstaff.asofdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contractedstaff.asofdate IS 'The date of the reported contracted staff element.'; + + +-- +-- Name: COLUMN contractedstaff.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contractedstaff.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN contractedstaff.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contractedstaff.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: COLUMN contractedstaff.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contractedstaff.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN contractedstaff.amounttodate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.contractedstaff.amounttodate IS 'Current balance (amount paid to contractor) for account for the fiscal year.'; + + +-- +-- Name: costratedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.costratedescriptor ( + costratedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.costratedescriptor OWNER TO postgres; + +-- +-- Name: TABLE costratedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.costratedescriptor IS 'The rate by which a cost applies (e.g. $1 per student).'; + + +-- +-- Name: COLUMN costratedescriptor.costratedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.costratedescriptor.costratedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: countrydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.countrydescriptor ( + countrydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.countrydescriptor OWNER TO postgres; + +-- +-- Name: TABLE countrydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.countrydescriptor IS 'This descriptor defines the name and code of the country. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: COLUMN countrydescriptor.countrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.countrydescriptor.countrydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: course; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.course ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + coursetitle character varying(60) NOT NULL, + numberofparts integer NOT NULL, + academicsubjectdescriptorid integer, + coursedescription character varying(1024), + timerequiredforcompletion integer, + datecourseadopted date, + highschoolcourserequirement boolean, + coursegpaapplicabilitydescriptorid integer, + coursedefinedbydescriptorid integer, + minimumavailablecredits numeric(9,3), + minimumavailablecredittypedescriptorid integer, + minimumavailablecreditconversion numeric(9,2), + maximumavailablecredits numeric(9,3), + maximumavailablecredittypedescriptorid integer, + maximumavailablecreditconversion numeric(9,2), + careerpathwaydescriptorid integer, + maxcompletionsforcredit integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.course OWNER TO postgres; + +-- +-- Name: TABLE course; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.course IS 'This educational entity represents the organization of subject matter and related learning experiences provided for the instruction of students on a regular or systematic basis.'; + + +-- +-- Name: COLUMN course.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN course.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN course.coursetitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.coursetitle IS 'The descriptive name given to a course of study offered in a school or other institution or organization. In departmentalized classes at the elementary, secondary, and postsecondary levels (and for staff development activities), this refers to the name by which a course is identified (e.g., American History, English III). For elementary and other non-departmentalized classes, it refers to any portion of the instruction for which a grade or report is assigned (e.g., reading, composition, spelling, and language arts).'; + + +-- +-- Name: COLUMN course.numberofparts; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.numberofparts IS 'The number of parts identified for a course.'; + + +-- +-- Name: COLUMN course.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.academicsubjectdescriptorid IS 'The intended major subject area of the course.'; + + +-- +-- Name: COLUMN course.coursedescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.coursedescription IS 'A description of the content standards and goals covered in the course. Reference may be made to state or national content standards.'; + + +-- +-- Name: COLUMN course.timerequiredforcompletion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.timerequiredforcompletion IS 'The actual or estimated number of clock minutes required for class completion. This number is especially important for career and technical education classes and may represent (in minutes) the clock hour requirement of the class.'; + + +-- +-- Name: COLUMN course.datecourseadopted; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.datecourseadopted IS 'Date the course was adopted by the education agency.'; + + +-- +-- Name: COLUMN course.highschoolcourserequirement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.highschoolcourserequirement IS 'An indication that this course may satisfy high school graduation requirements in the course''s subject area.'; + + +-- +-- Name: COLUMN course.coursegpaapplicabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.coursegpaapplicabilitydescriptorid IS 'An indicator of whether or not the course being described is included in the computation of the student''s Grade Point Average, and if so, if it is weighted differently from regular courses.'; + + +-- +-- Name: COLUMN course.coursedefinedbydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.coursedefinedbydescriptorid IS 'Specifies whether the course was defined by the SEA, LEA, School, or national organization.'; + + +-- +-- Name: COLUMN course.minimumavailablecredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.minimumavailablecredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN course.minimumavailablecredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.minimumavailablecredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN course.minimumavailablecreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.minimumavailablecreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN course.maximumavailablecredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.maximumavailablecredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN course.maximumavailablecredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.maximumavailablecredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN course.maximumavailablecreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.maximumavailablecreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN course.careerpathwaydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.careerpathwaydescriptorid IS 'Indicates the career cluster or pathway the course is associated with as part of a CTE curriculum.'; + + +-- +-- Name: COLUMN course.maxcompletionsforcredit; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.course.maxcompletionsforcredit IS 'Designates how many times the course may be taken with credit received by the student.'; + + +-- +-- Name: courseattemptresultdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseattemptresultdescriptor ( + courseattemptresultdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.courseattemptresultdescriptor OWNER TO postgres; + +-- +-- Name: TABLE courseattemptresultdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseattemptresultdescriptor IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn'; + + +-- +-- Name: COLUMN courseattemptresultdescriptor.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseattemptresultdescriptor.courseattemptresultdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: coursecompetencylevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursecompetencylevel ( + competencyleveldescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.coursecompetencylevel OWNER TO postgres; + +-- +-- Name: TABLE coursecompetencylevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursecompetencylevel IS 'The competency levels defined to rate the student for the course.'; + + +-- +-- Name: COLUMN coursecompetencylevel.competencyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursecompetencylevel.competencyleveldescriptorid IS 'The competency levels defined to rate the student for the course.'; + + +-- +-- Name: COLUMN coursecompetencylevel.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursecompetencylevel.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursecompetencylevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursecompetencylevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: coursedefinedbydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursedefinedbydescriptor ( + coursedefinedbydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.coursedefinedbydescriptor OWNER TO postgres; + +-- +-- Name: TABLE coursedefinedbydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursedefinedbydescriptor IS 'Specifies whether the course was defined by the state education agency, local education agency, school, or national organization.'; + + +-- +-- Name: COLUMN coursedefinedbydescriptor.coursedefinedbydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursedefinedbydescriptor.coursedefinedbydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: coursegpaapplicabilitydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursegpaapplicabilitydescriptor ( + coursegpaapplicabilitydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.coursegpaapplicabilitydescriptor OWNER TO postgres; + +-- +-- Name: TABLE coursegpaapplicabilitydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursegpaapplicabilitydescriptor IS 'An indicator of whether or not this course being described is included in the computation of the student''s Grade Point Average, and if so, if it is weighted differently than regular courses.'; + + +-- +-- Name: COLUMN coursegpaapplicabilitydescriptor.coursegpaapplicabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursegpaapplicabilitydescriptor.coursegpaapplicabilitydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: courseidentificationcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseidentificationcode ( + coursecode character varying(60) NOT NULL, + courseidentificationsystemdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + assigningorganizationidentificationcode character varying(60), + coursecatalogurl character varying(255), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courseidentificationcode OWNER TO postgres; + +-- +-- Name: TABLE courseidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseidentificationcode IS 'The code that identifies the organization of subject matter and related learning experiences provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseidentificationcode.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationcode.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN courseidentificationcode.courseidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationcode.courseidentificationsystemdescriptorid IS 'A system that is used to identify the organization of subject matter and related learning experiences provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseidentificationcode.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationcode.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN courseidentificationcode.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationcode.identificationcode IS 'A unique number or alphanumeric code assigned to a course by a school, school system, state, or other agency or entity. For multi-part course codes, concatenate the parts separated by a "/". For example, consider the following SCED code- subject = 20 Math course = 272 Geometry level = G General credits = 1.00 course sequence 1 of 1- would be entered as 20/272/G/1.00/1 of 1.'; + + +-- +-- Name: COLUMN courseidentificationcode.assigningorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationcode.assigningorganizationidentificationcode IS 'The organization code or name assigning the Identification Code.'; + + +-- +-- Name: COLUMN courseidentificationcode.coursecatalogurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationcode.coursecatalogurl IS 'The URL for the course catalog that defines the course identification code.'; + + +-- +-- Name: courseidentificationsystemdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseidentificationsystemdescriptor ( + courseidentificationsystemdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.courseidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: TABLE courseidentificationsystemdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseidentificationsystemdescriptor IS 'This descriptor defines a standard code that identifies the organization of subject matter and related learning experiences provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseidentificationsystemdescriptor.courseidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseidentificationsystemdescriptor.courseidentificationsystemdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: courselearningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courselearningobjective ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courselearningobjective OWNER TO postgres; + +-- +-- Name: TABLE courselearningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courselearningobjective IS 'Learning Objectives to be mastered in the course.'; + + +-- +-- Name: COLUMN courselearningobjective.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningobjective.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN courselearningobjective.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningobjective.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN courselearningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN courselearningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningobjective.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: courselearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courselearningstandard ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + learningstandardid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courselearningstandard OWNER TO postgres; + +-- +-- Name: TABLE courselearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courselearningstandard IS 'Learning Standard(s) to be taught by the course.'; + + +-- +-- Name: COLUMN courselearningstandard.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningstandard.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN courselearningstandard.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningstandard.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN courselearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: courselevelcharacteristic; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courselevelcharacteristic ( + coursecode character varying(60) NOT NULL, + courselevelcharacteristicdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courselevelcharacteristic OWNER TO postgres; + +-- +-- Name: TABLE courselevelcharacteristic; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courselevelcharacteristic IS 'The type of specific program or designation with which the course is associated (e.g., AP, IB, Dual Credit, CTE).'; + + +-- +-- Name: COLUMN courselevelcharacteristic.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselevelcharacteristic.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN courselevelcharacteristic.courselevelcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselevelcharacteristic.courselevelcharacteristicdescriptorid IS 'The type of specific program or designation with which the course is associated (e.g., AP, IB, Dual Credit, CTE).'; + + +-- +-- Name: COLUMN courselevelcharacteristic.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselevelcharacteristic.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: courselevelcharacteristicdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courselevelcharacteristicdescriptor ( + courselevelcharacteristicdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.courselevelcharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: TABLE courselevelcharacteristicdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courselevelcharacteristicdescriptor IS 'The item for indication of the nature and difficulty of instruction: Remedial, Basic, Honors, Ap, IB, Dual Credit, CTE. etc.'; + + +-- +-- Name: COLUMN courselevelcharacteristicdescriptor.courselevelcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courselevelcharacteristicdescriptor.courselevelcharacteristicdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: courseofferedgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseofferedgradelevel ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courseofferedgradelevel OWNER TO postgres; + +-- +-- Name: TABLE courseofferedgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseofferedgradelevel IS 'The grade levels in which the course is offered.'; + + +-- +-- Name: COLUMN courseofferedgradelevel.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferedgradelevel.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN courseofferedgradelevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferedgradelevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN courseofferedgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferedgradelevel.gradeleveldescriptorid IS 'The grade levels in which the course is offered.'; + + +-- +-- Name: courseoffering; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseoffering ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + localcoursetitle character varying(60), + instructionaltimeplanned integer, + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.courseoffering OWNER TO postgres; + +-- +-- Name: TABLE courseoffering; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseoffering IS 'This entity represents an entry in the course catalog of available courses offered by the school during a session.'; + + +-- +-- Name: COLUMN courseoffering.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseoffering.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN courseoffering.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN courseoffering.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN courseoffering.localcoursetitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.localcoursetitle IS 'The descriptive name given to a course of study offered in the school, if different from the CourseTitle.'; + + +-- +-- Name: COLUMN courseoffering.instructionaltimeplanned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.instructionaltimeplanned IS 'The planned total number of clock minutes of instruction for this course offering. Generally, this should be at least as many minutes as is required for completion by the related state- or district-defined course.'; + + +-- +-- Name: COLUMN courseoffering.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN courseoffering.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseoffering.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: courseofferingcourselevelcharacteristic; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseofferingcourselevelcharacteristic ( + courselevelcharacteristicdescriptorid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courseofferingcourselevelcharacteristic OWNER TO postgres; + +-- +-- Name: TABLE courseofferingcourselevelcharacteristic; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseofferingcourselevelcharacteristic IS 'The type of specific program or designation with which the course offering is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course level.'; + + +-- +-- Name: COLUMN courseofferingcourselevelcharacteristic.courselevelcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcourselevelcharacteristic.courselevelcharacteristicdescriptorid IS 'The type of specific program or designation with which the course offering is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course level.'; + + +-- +-- Name: COLUMN courseofferingcourselevelcharacteristic.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcourselevelcharacteristic.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseofferingcourselevelcharacteristic.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcourselevelcharacteristic.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN courseofferingcourselevelcharacteristic.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcourselevelcharacteristic.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN courseofferingcourselevelcharacteristic.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcourselevelcharacteristic.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: courseofferingcurriculumused; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseofferingcurriculumused ( + curriculumuseddescriptorid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courseofferingcurriculumused OWNER TO postgres; + +-- +-- Name: TABLE courseofferingcurriculumused; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseofferingcurriculumused IS 'The type of curriculum used in an early learning classroom or group.'; + + +-- +-- Name: COLUMN courseofferingcurriculumused.curriculumuseddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcurriculumused.curriculumuseddescriptorid IS 'The type of curriculum used in an early learning classroom or group.'; + + +-- +-- Name: COLUMN courseofferingcurriculumused.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcurriculumused.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseofferingcurriculumused.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcurriculumused.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN courseofferingcurriculumused.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcurriculumused.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN courseofferingcurriculumused.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingcurriculumused.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: courseofferingofferedgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courseofferingofferedgradelevel ( + gradeleveldescriptorid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.courseofferingofferedgradelevel OWNER TO postgres; + +-- +-- Name: TABLE courseofferingofferedgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courseofferingofferedgradelevel IS 'The grade levels in which the course is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course level.'; + + +-- +-- Name: COLUMN courseofferingofferedgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingofferedgradelevel.gradeleveldescriptorid IS 'The grade levels in which the course is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course level.'; + + +-- +-- Name: COLUMN courseofferingofferedgradelevel.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingofferedgradelevel.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN courseofferingofferedgradelevel.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingofferedgradelevel.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN courseofferingofferedgradelevel.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingofferedgradelevel.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN courseofferingofferedgradelevel.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courseofferingofferedgradelevel.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: courserepeatcodedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.courserepeatcodedescriptor ( + courserepeatcodedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.courserepeatcodedescriptor OWNER TO postgres; + +-- +-- Name: TABLE courserepeatcodedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.courserepeatcodedescriptor IS 'Indicates that an academic course has been repeated by a student and how that repeat is to be computed in the student''s academic grade average.'; + + +-- +-- Name: COLUMN courserepeatcodedescriptor.courserepeatcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.courserepeatcodedescriptor.courserepeatcodedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: coursetranscript; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursetranscript ( + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + attemptedcredits numeric(9,3), + attemptedcredittypedescriptorid integer, + attemptedcreditconversion numeric(9,2), + earnedcredits numeric(9,3) NOT NULL, + earnedcredittypedescriptorid integer, + earnedcreditconversion numeric(9,2), + whentakengradeleveldescriptorid integer, + methodcreditearneddescriptorid integer, + finallettergradeearned character varying(20), + finalnumericgradeearned numeric(9,2), + courserepeatcodedescriptorid integer, + coursetitle character varying(60), + alternativecoursetitle character varying(60), + alternativecoursecode character varying(60), + externaleducationorganizationid integer, + externaleducationorganizationnameofinstitution character varying(75), + assigningorganizationidentificationcode character varying(60), + coursecatalogurl character varying(255), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.coursetranscript OWNER TO postgres; + +-- +-- Name: TABLE coursetranscript; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursetranscript IS 'This entity is the final record of a student''s performance in their courses at the end of a semester or school year.'; + + +-- +-- Name: COLUMN coursetranscript.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.courseattemptresultdescriptorid IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn.'; + + +-- +-- Name: COLUMN coursetranscript.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursetranscript.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscript.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscript.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN coursetranscript.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN coursetranscript.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN coursetranscript.attemptedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.attemptedcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN coursetranscript.attemptedcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.attemptedcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN coursetranscript.attemptedcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.attemptedcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN coursetranscript.earnedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.earnedcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN coursetranscript.earnedcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.earnedcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN coursetranscript.earnedcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.earnedcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN coursetranscript.whentakengradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.whentakengradeleveldescriptorid IS 'Student''s grade level at time of course.'; + + +-- +-- Name: COLUMN coursetranscript.methodcreditearneddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.methodcreditearneddescriptorid IS 'The method the credits were earned (e.g., Classroom, Examination, Transfer).'; + + +-- +-- Name: COLUMN coursetranscript.finallettergradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.finallettergradeearned IS 'The final indicator of student performance in a class as submitted by the instructor.'; + + +-- +-- Name: COLUMN coursetranscript.finalnumericgradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.finalnumericgradeearned IS 'The final indicator of student performance in a class as submitted by the instructor.'; + + +-- +-- Name: COLUMN coursetranscript.courserepeatcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.courserepeatcodedescriptorid IS 'Indicates that an academic course has been repeated by a student and how that repeat is to be computed in the student''s academic grade average.'; + + +-- +-- Name: COLUMN coursetranscript.coursetitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.coursetitle IS 'The descriptive name given to a course of study offered in a school or other institution or organization. In departmentalized classes at the elementary, secondary, and postsecondary levels (and for staff development activities), this refers to the name by which a course is identified (e.g., American History, English III). For elementary and other non-departmentalized classes, it refers to any portion of the instruction for which a grade or report is assigned (e.g., reading, composition, spelling, language arts).'; + + +-- +-- Name: COLUMN coursetranscript.alternativecoursetitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.alternativecoursetitle IS 'The descriptive name given to a course of study offered in the school, if different from the CourseTitle.'; + + +-- +-- Name: COLUMN coursetranscript.alternativecoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.alternativecoursecode IS 'The local code assigned by the school that identifies the course offering, the code from an external educational organization, or other alternate course code.'; + + +-- +-- Name: COLUMN coursetranscript.externaleducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.externaleducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscript.externaleducationorganizationnameofinstitution; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.externaleducationorganizationnameofinstitution IS 'Name of the external institution where the student completed the course; to be used only when the reference ExternalEducationOrganization is not available.'; + + +-- +-- Name: COLUMN coursetranscript.assigningorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.assigningorganizationidentificationcode IS 'The organization code or name assigning the course identification code.'; + + +-- +-- Name: COLUMN coursetranscript.coursecatalogurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscript.coursecatalogurl IS 'The URL for the course catalog that defines the course identification code.'; + + +-- +-- Name: coursetranscriptacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursetranscriptacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.coursetranscriptacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE coursetranscriptacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursetranscriptacademicsubject IS 'The subject area for the course transcript credits awarded in the course transcript.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.academicsubjectdescriptorid IS 'The subject area for the course transcript credits awarded in the course transcript.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.courseattemptresultdescriptorid IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN coursetranscriptacademicsubject.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptacademicsubject.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: coursetranscriptalternativecourseidentificationcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursetranscriptalternativecourseidentificationcode ( + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + courseidentificationsystemdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + assigningorganizationidentificationcode character varying(60), + coursecatalogurl character varying(255), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.coursetranscriptalternativecourseidentificationcode OWNER TO postgres; + +-- +-- Name: TABLE coursetranscriptalternativecourseidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursetranscriptalternativecourseidentificationcode IS 'The code that identifies the course, course offering, the code from an external educational organization, or other alternate course code.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.courseattemptresultdescriptorid IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.courseidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.courseidentificationsystemdescriptorid IS 'A system that is used to identify the organization of subject matter and related learning experiences provided for the instruction of students.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.identificationcode IS 'A unique number or alphanumeric code assigned to a course by a school, school system, state, or other agency or entity. For multi-part course codes, concatenate the parts separated by a "/". For example, consider the following SCED code- subject = 20 Math course = 272 Geometry level = G General credits = 1.00 course sequence 1 of 1- would be entered as 20/272/G/1.00/1 of 1.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.assigningorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.assigningorganizationidentificationcode IS 'The organization code or name assigning the Identification Code.'; + + +-- +-- Name: COLUMN coursetranscriptalternativecourseidentificationcode.coursecatalogurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptalternativecourseidentificationcode.coursecatalogurl IS 'The URL for the course catalog that defines the course identification code.'; + + +-- +-- Name: coursetranscriptcreditcategory; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursetranscriptcreditcategory ( + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + creditcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.coursetranscriptcreditcategory OWNER TO postgres; + +-- +-- Name: TABLE coursetranscriptcreditcategory; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursetranscriptcreditcategory IS 'A categorization for the course transcript credits awarded in the course transcript.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.courseattemptresultdescriptorid IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.creditcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.creditcategorydescriptorid IS 'A categorization for the course transcript credits awarded in the course transcript.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN coursetranscriptcreditcategory.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptcreditcategory.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: coursetranscriptearnedadditionalcredits; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursetranscriptearnedadditionalcredits ( + additionalcredittypedescriptorid integer NOT NULL, + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + credits numeric(9,3) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.coursetranscriptearnedadditionalcredits OWNER TO postgres; + +-- +-- Name: TABLE coursetranscriptearnedadditionalcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursetranscriptearnedadditionalcredits IS 'The number of additional credits a student attempted and could earn for successfully completing a given course (e.g., dual credit, AP, IB).'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.additionalcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.additionalcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.courseattemptresultdescriptorid IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN coursetranscriptearnedadditionalcredits.credits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptearnedadditionalcredits.credits IS 'The value of credits or units of value awarded for the completion of a course'; + + +-- +-- Name: coursetranscriptpartialcoursetranscriptawards; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.coursetranscriptpartialcoursetranscriptawards ( + awarddate date NOT NULL, + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + earnedcredits numeric(9,3) NOT NULL, + methodcreditearneddescriptorid integer, + lettergradeearned character varying(20), + numericgradeearned character varying(20), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.coursetranscriptpartialcoursetranscriptawards OWNER TO postgres; + +-- +-- Name: TABLE coursetranscriptpartialcoursetranscriptawards; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.coursetranscriptpartialcoursetranscriptawards IS 'A collection of partial credits and/or grades a student earned against the course over the session, used when awards of credit are incremental.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.awarddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.awarddate IS 'The date the partial credits and/or grades were awarded or earned.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.courseattemptresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.courseattemptresultdescriptorid IS 'The result from the student''s attempt to take the course, for example: + Pass + Fail + Incomplete + Withdrawn.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.earnedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.earnedcredits IS 'The number of credits a student earned for completing a given course.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.methodcreditearneddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.methodcreditearneddescriptorid IS 'The method the credits were earned.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.lettergradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.lettergradeearned IS 'The indicator of student performance as submitted by the instructor.'; + + +-- +-- Name: COLUMN coursetranscriptpartialcoursetranscriptawards.numericgradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.coursetranscriptpartialcoursetranscriptawards.numericgradeearned IS 'The indicator of student performance as submitted by the instructor.'; + + +-- +-- Name: credential; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credential ( + credentialidentifier character varying(60) NOT NULL, + stateofissuestateabbreviationdescriptorid integer NOT NULL, + effectivedate date, + expirationdate date, + credentialfielddescriptorid integer, + issuancedate date NOT NULL, + credentialtypedescriptorid integer NOT NULL, + teachingcredentialdescriptorid integer, + teachingcredentialbasisdescriptorid integer, + namespace character varying(255) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.credential OWNER TO postgres; + +-- +-- Name: TABLE credential; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credential IS 'The legal document giving authorization to perform teaching assignment services.'; + + +-- +-- Name: COLUMN credential.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN credential.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: COLUMN credential.effectivedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.effectivedate IS 'The year, month and day on which an active credential held by an individual was issued.'; + + +-- +-- Name: COLUMN credential.expirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.expirationdate IS 'The month, day, and year on which an active credential held by an individual will expire.'; + + +-- +-- Name: COLUMN credential.credentialfielddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.credentialfielddescriptorid IS 'The field of certification for the certificate (e.g., Mathematics, Music).'; + + +-- +-- Name: COLUMN credential.issuancedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.issuancedate IS 'The month, day, and year on which an active credential was issued to an individual.'; + + +-- +-- Name: COLUMN credential.credentialtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.credentialtypedescriptorid IS 'An indication of the category of credential an individual holds.'; + + +-- +-- Name: COLUMN credential.teachingcredentialdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.teachingcredentialdescriptorid IS 'An indication of the category of a legal document giving authorization to perform teaching assignment services.'; + + +-- +-- Name: COLUMN credential.teachingcredentialbasisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.teachingcredentialbasisdescriptorid IS 'An indication of the pre-determined criteria for granting the teaching credential that an individual holds.'; + + +-- +-- Name: COLUMN credential.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credential.namespace IS 'Namespace for the Credential.'; + + +-- +-- Name: credentialacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credentialacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + credentialidentifier character varying(60) NOT NULL, + stateofissuestateabbreviationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.credentialacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE credentialacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credentialacademicsubject IS 'The academic subjects to which the credential pertains.'; + + +-- +-- Name: COLUMN credentialacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialacademicsubject.academicsubjectdescriptorid IS 'The academic subjects to which the credential pertains.'; + + +-- +-- Name: COLUMN credentialacademicsubject.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialacademicsubject.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN credentialacademicsubject.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialacademicsubject.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: credentialendorsement; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credentialendorsement ( + credentialendorsement character varying(255) NOT NULL, + credentialidentifier character varying(60) NOT NULL, + stateofissuestateabbreviationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.credentialendorsement OWNER TO postgres; + +-- +-- Name: TABLE credentialendorsement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credentialendorsement IS 'Endorsements are attachments to teaching certificates and indicate areas of specialization.'; + + +-- +-- Name: COLUMN credentialendorsement.credentialendorsement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialendorsement.credentialendorsement IS 'Endorsements are attachments to teaching certificates and indicate areas of specialization.'; + + +-- +-- Name: COLUMN credentialendorsement.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialendorsement.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN credentialendorsement.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialendorsement.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: credentialfielddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credentialfielddescriptor ( + credentialfielddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.credentialfielddescriptor OWNER TO postgres; + +-- +-- Name: TABLE credentialfielddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credentialfielddescriptor IS 'This descriptor defines the fields of certification that the state education agency offers to teachers.'; + + +-- +-- Name: COLUMN credentialfielddescriptor.credentialfielddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialfielddescriptor.credentialfielddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: credentialgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credentialgradelevel ( + credentialidentifier character varying(60) NOT NULL, + gradeleveldescriptorid integer NOT NULL, + stateofissuestateabbreviationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.credentialgradelevel OWNER TO postgres; + +-- +-- Name: TABLE credentialgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credentialgradelevel IS 'The grade level(s) certified for teaching.'; + + +-- +-- Name: COLUMN credentialgradelevel.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialgradelevel.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN credentialgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialgradelevel.gradeleveldescriptorid IS 'The grade level(s) certified for teaching.'; + + +-- +-- Name: COLUMN credentialgradelevel.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialgradelevel.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: credentialtypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credentialtypedescriptor ( + credentialtypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.credentialtypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE credentialtypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credentialtypedescriptor IS 'An indication of the category of credential an individual holds.'; + + +-- +-- Name: COLUMN credentialtypedescriptor.credentialtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credentialtypedescriptor.credentialtypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: creditcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.creditcategorydescriptor ( + creditcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.creditcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE creditcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.creditcategorydescriptor IS 'A categorization for the course transcript credits.'; + + +-- +-- Name: COLUMN creditcategorydescriptor.creditcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.creditcategorydescriptor.creditcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: credittypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.credittypedescriptor ( + credittypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.credittypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE credittypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.credittypedescriptor IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN credittypedescriptor.credittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.credittypedescriptor.credittypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: cteprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.cteprogramservicedescriptor ( + cteprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.cteprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE cteprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.cteprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a CTE program.'; + + +-- +-- Name: COLUMN cteprogramservicedescriptor.cteprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.cteprogramservicedescriptor.cteprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: curriculumuseddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.curriculumuseddescriptor ( + curriculumuseddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.curriculumuseddescriptor OWNER TO postgres; + +-- +-- Name: TABLE curriculumuseddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.curriculumuseddescriptor IS 'The type of curriculum used in an early learning classroom or group.'; + + +-- +-- Name: COLUMN curriculumuseddescriptor.curriculumuseddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.curriculumuseddescriptor.curriculumuseddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: deliverymethoddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.deliverymethoddescriptor ( + deliverymethoddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.deliverymethoddescriptor OWNER TO postgres; + +-- +-- Name: TABLE deliverymethoddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.deliverymethoddescriptor IS 'The way in which an intervention was implemented: individual, small group, whole class, or whole school.'; + + +-- +-- Name: COLUMN deliverymethoddescriptor.deliverymethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.deliverymethoddescriptor.deliverymethoddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: descriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.descriptor ( + descriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + codevalue character varying(50) NOT NULL, + shortdescription character varying(75) NOT NULL, + description character varying(1024), + priordescriptorid integer, + effectivebegindate date, + effectiveenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.descriptor OWNER TO postgres; + +-- +-- Name: TABLE descriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.descriptor IS 'This is the base entity for the descriptor pattern.'; + + +-- +-- Name: COLUMN descriptor.descriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.descriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: COLUMN descriptor.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.namespace IS 'A globally unique namespace that identifies this descriptor set. Author is strongly encouraged to use the Universal Resource Identifier (http, ftp, file, etc.) for the source of the descriptor definition. Best practice is for this source to be the descriptor file itself, so that it can be machine-readable and be fetched in real-time, if necessary.'; + + +-- +-- Name: COLUMN descriptor.codevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.codevalue IS 'A code or abbreviation that is used to refer to the descriptor.'; + + +-- +-- Name: COLUMN descriptor.shortdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.shortdescription IS 'A shortened description for the descriptor.'; + + +-- +-- Name: COLUMN descriptor.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.description IS 'The description of the descriptor.'; + + +-- +-- Name: COLUMN descriptor.priordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.priordescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: COLUMN descriptor.effectivebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.effectivebegindate IS 'The beginning date of the period when the descriptor is in effect. If omitted, the default is immediate effectiveness.'; + + +-- +-- Name: COLUMN descriptor.effectiveenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.descriptor.effectiveenddate IS 'The end date of the period when the descriptor is in effect.'; + + +-- +-- Name: descriptor_descriptorid_seq; Type: SEQUENCE; Schema: edfi; Owner: postgres +-- + +CREATE SEQUENCE edfi.descriptor_descriptorid_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE edfi.descriptor_descriptorid_seq OWNER TO postgres; + +-- +-- Name: descriptor_descriptorid_seq; Type: SEQUENCE OWNED BY; Schema: edfi; Owner: postgres +-- + +ALTER SEQUENCE edfi.descriptor_descriptorid_seq OWNED BY edfi.descriptor.descriptorid; + + +-- +-- Name: diagnosisdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.diagnosisdescriptor ( + diagnosisdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.diagnosisdescriptor OWNER TO postgres; + +-- +-- Name: TABLE diagnosisdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.diagnosisdescriptor IS 'This descriptor defines diagnoses that interventions are intended to target.'; + + +-- +-- Name: COLUMN diagnosisdescriptor.diagnosisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.diagnosisdescriptor.diagnosisdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: diplomaleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.diplomaleveldescriptor ( + diplomaleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.diplomaleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE diplomaleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.diplomaleveldescriptor IS 'The level of diploma/credential that is awarded to a student in recognition of his/her completion of the curricular requirements.'; + + +-- +-- Name: COLUMN diplomaleveldescriptor.diplomaleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.diplomaleveldescriptor.diplomaleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: diplomatypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.diplomatypedescriptor ( + diplomatypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.diplomatypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE diplomatypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.diplomatypedescriptor IS 'The type of diploma/credential that is awarded to a student in recognition of his/her completion of the curricular requirements.'; + + +-- +-- Name: COLUMN diplomatypedescriptor.diplomatypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.diplomatypedescriptor.diplomatypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disabilitydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disabilitydescriptor ( + disabilitydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.disabilitydescriptor OWNER TO postgres; + +-- +-- Name: TABLE disabilitydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disabilitydescriptor IS 'This descriptor defines a student''s impairment.'; + + +-- +-- Name: COLUMN disabilitydescriptor.disabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disabilitydescriptor.disabilitydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disabilitydesignationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disabilitydesignationdescriptor ( + disabilitydesignationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.disabilitydesignationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE disabilitydesignationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disabilitydesignationdescriptor IS 'The type of disability designation (e.g., IDEA, Section 504).'; + + +-- +-- Name: COLUMN disabilitydesignationdescriptor.disabilitydesignationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disabilitydesignationdescriptor.disabilitydesignationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disabilitydeterminationsourcetypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disabilitydeterminationsourcetypedescriptor ( + disabilitydeterminationsourcetypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.disabilitydeterminationsourcetypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE disabilitydeterminationsourcetypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disabilitydeterminationsourcetypedescriptor IS 'The source that provided the disability determination.'; + + +-- +-- Name: COLUMN disabilitydeterminationsourcetypedescriptor.disabilitydeterminationsourcetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disabilitydeterminationsourcetypedescriptor.disabilitydeterminationsourcetypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disciplineaction; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineaction ( + disciplineactionidentifier character varying(20) NOT NULL, + disciplinedate date NOT NULL, + studentusi integer NOT NULL, + disciplineactionlength numeric(5,2), + actualdisciplineactionlength numeric(5,2), + disciplineactionlengthdifferencereasondescriptorid integer, + relatedtozerotolerancepolicy boolean, + responsibilityschoolid integer NOT NULL, + assignmentschoolid integer, + receivededucationservicesduringexpulsion boolean, + iepplacementmeetingindicator boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.disciplineaction OWNER TO postgres; + +-- +-- Name: TABLE disciplineaction; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineaction IS 'This event entity represents actions taken by an education organization after a disruptive event that is recorded as a discipline incident.'; + + +-- +-- Name: COLUMN disciplineaction.disciplineactionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.disciplineactionidentifier IS 'Identifier assigned by the education organization to the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineaction.disciplinedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.disciplinedate IS 'The date of the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineaction.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN disciplineaction.disciplineactionlength; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.disciplineactionlength IS 'The length of time in school days for the DisciplineAction (e.g. removal, detention), if applicable.'; + + +-- +-- Name: COLUMN disciplineaction.actualdisciplineactionlength; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.actualdisciplineactionlength IS 'Indicates the actual length in school days of a student''s disciplinary assignment.'; + + +-- +-- Name: COLUMN disciplineaction.disciplineactionlengthdifferencereasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.disciplineactionlengthdifferencereasondescriptorid IS 'Indicates the reason for the difference, if any, between the official and actual lengths of a student''s disciplinary assignment.'; + + +-- +-- Name: COLUMN disciplineaction.relatedtozerotolerancepolicy; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.relatedtozerotolerancepolicy IS 'An indication of whether or not this disciplinary action taken against a student was imposed as a consequence of state or local zero tolerance policies.'; + + +-- +-- Name: COLUMN disciplineaction.responsibilityschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.responsibilityschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineaction.assignmentschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.assignmentschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineaction.receivededucationservicesduringexpulsion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.receivededucationservicesduringexpulsion IS 'An indication of whether the student received educational services when removed from the regular school program for disciplinary reasons.'; + + +-- +-- Name: COLUMN disciplineaction.iepplacementmeetingindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineaction.iepplacementmeetingindicator IS 'An indication as to whether an offense and/or disciplinary action resulted in a meeting of a student''s Individualized Education Program (IEP) team to determine appropriate placement.'; + + +-- +-- Name: disciplineactiondiscipline; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineactiondiscipline ( + disciplineactionidentifier character varying(20) NOT NULL, + disciplinedate date NOT NULL, + disciplinedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineactiondiscipline OWNER TO postgres; + +-- +-- Name: TABLE disciplineactiondiscipline; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineactiondiscipline IS 'Type of action, such as removal from the classroom, used to discipline the student involved as a perpetrator in a discipline incident.'; + + +-- +-- Name: COLUMN disciplineactiondiscipline.disciplineactionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactiondiscipline.disciplineactionidentifier IS 'Identifier assigned by the education organization to the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactiondiscipline.disciplinedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactiondiscipline.disciplinedate IS 'The date of the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactiondiscipline.disciplinedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactiondiscipline.disciplinedescriptorid IS 'Type of action, such as removal from the classroom, used to discipline the student involved as a perpetrator in a discipline incident.'; + + +-- +-- Name: COLUMN disciplineactiondiscipline.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactiondiscipline.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineactionlengthdifferencereasondescriptor ( + disciplineactionlengthdifferencereasondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.disciplineactionlengthdifferencereasondescriptor OWNER TO postgres; + +-- +-- Name: TABLE disciplineactionlengthdifferencereasondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineactionlengthdifferencereasondescriptor IS 'Indicates the reason for the difference, if any, between the official and actual lengths of a student''s disciplinary assignment.'; + + +-- +-- Name: COLUMN disciplineactionlengthdifferencereasondescriptor.disciplineactionlengthdifferencereasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionlengthdifferencereasondescriptor.disciplineactionlengthdifferencereasondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disciplineactionstaff; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineactionstaff ( + disciplineactionidentifier character varying(20) NOT NULL, + disciplinedate date NOT NULL, + staffusi integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineactionstaff OWNER TO postgres; + +-- +-- Name: TABLE disciplineactionstaff; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineactionstaff IS 'The staff responsible for enforcing the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstaff.disciplineactionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstaff.disciplineactionidentifier IS 'Identifier assigned by the education organization to the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstaff.disciplinedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstaff.disciplinedate IS 'The date of the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstaff.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstaff.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN disciplineactionstaff.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstaff.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: disciplineactionstudentdisciplineincidentassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineactionstudentdisciplineincidentassociation ( + disciplineactionidentifier character varying(20) NOT NULL, + disciplinedate date NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineactionstudentdisciplineincidentassociation OWNER TO postgres; + +-- +-- Name: TABLE disciplineactionstudentdisciplineincidentassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineactionstudentdisciplineincidentassociation IS 'Reference to the DisciplineIncident associated with the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentassociation.disciplineactionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentassociation.disciplineactionidentifier IS 'Identifier assigned by the education organization to the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentassociation.disciplinedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentassociation.disciplinedate IS 'The date of the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentassociation.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentassociation.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: disciplineactionstudentdisciplineincidentbehaviorassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineactionstudentdisciplineincidentbehaviorassociation ( + behaviordescriptorid integer NOT NULL, + disciplineactionidentifier character varying(20) NOT NULL, + disciplinedate date NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineactionstudentdisciplineincidentbehaviorassociation OWNER TO postgres; + +-- +-- Name: TABLE disciplineactionstudentdisciplineincidentbehaviorassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineactionstudentdisciplineincidentbehaviorassociation IS 'A reference to the behavior(s) by the student that led or contributed to this specific action.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentbehaviorassociation.behaviordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentbehaviorassociation.behaviordescriptorid IS 'Describes behavior by category.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentbehaviorassociation.disciplineactionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentbehaviorassociation.disciplineactionidentifier IS 'Identifier assigned by the education organization to the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentbehaviorassociation.disciplinedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentbehaviorassociation.disciplinedate IS 'The date of the DisciplineAction.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentbehaviorassociation.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentbehaviorassociation.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentbehaviorassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentbehaviorassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineactionstudentdisciplineincidentbehaviorassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineactionstudentdisciplineincidentbehaviorassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: disciplinedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplinedescriptor ( + disciplinedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.disciplinedescriptor OWNER TO postgres; + +-- +-- Name: TABLE disciplinedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplinedescriptor IS 'This descriptor defines the type of action or removal from the classroom used to discipline the student involved as a perpetrator in a discipline incident.'; + + +-- +-- Name: COLUMN disciplinedescriptor.disciplinedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplinedescriptor.disciplinedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disciplineincident; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineincident ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + incidentdate date NOT NULL, + incidenttime time without time zone, + incidentlocationdescriptorid integer, + incidentdescription character varying(1024), + reporterdescriptiondescriptorid integer, + reportername character varying(75), + reportedtolawenforcement boolean, + casenumber character varying(20), + incidentcost money, + staffusi integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.disciplineincident OWNER TO postgres; + +-- +-- Name: TABLE disciplineincident; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineincident IS 'This event entity represents an occurrence of an infraction ranging from a minor behavioral problem that disrupts the orderly functioning of a school or classroom (such as tardiness) to a criminal act that results in the involvement of a law enforcement official (such as robbery). A single event (e.g., a fight) is one incident regardless of how many perpetrators or victims are involved. Discipline incidents are events classified as warranting discipline action.'; + + +-- +-- Name: COLUMN disciplineincident.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN disciplineincident.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineincident.incidentdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.incidentdate IS 'The month, day, and year on which the DisciplineIncident occurred.'; + + +-- +-- Name: COLUMN disciplineincident.incidenttime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.incidenttime IS 'An indication of the time of day the incident took place.'; + + +-- +-- Name: COLUMN disciplineincident.incidentlocationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.incidentlocationdescriptorid IS 'Identifies where the DisciplineIncident occurred and whether or not it occurred on school, for example: + On school + Administrative offices area + Cafeteria area + Classroom + Hallway or stairs + ...'; + + +-- +-- Name: COLUMN disciplineincident.incidentdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.incidentdescription IS 'The description for an incident.'; + + +-- +-- Name: COLUMN disciplineincident.reporterdescriptiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.reporterdescriptiondescriptorid IS 'Information on the type of individual who reported the DisciplineIncident. When known and/or if useful, use a more specific option code (e.g., "Counselor" rather than "Professional Staff"); for example: + Student + Parent/guardian + Law enforcement officer + Nonschool personnel + Representative of visiting school + ...'; + + +-- +-- Name: COLUMN disciplineincident.reportername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.reportername IS 'Identifies the reporter of the DisciplineIncident by name.'; + + +-- +-- Name: COLUMN disciplineincident.reportedtolawenforcement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.reportedtolawenforcement IS 'Indicator of whether the incident was reported to law enforcement.'; + + +-- +-- Name: COLUMN disciplineincident.casenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.casenumber IS 'The case number assigned to the DisciplineIncident by law enforcement or other organization.'; + + +-- +-- Name: COLUMN disciplineincident.incidentcost; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.incidentcost IS 'The value of any quantifiable monetary loss directly resulting from the DisciplineIncident. Examples include the value of repairs necessitated by vandalism of a school facility, or the value of personnel resources used for repairs or consumed by the incident.'; + + +-- +-- Name: COLUMN disciplineincident.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincident.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: disciplineincidentbehavior; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineincidentbehavior ( + behaviordescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + behaviordetaileddescription character varying(1024), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineincidentbehavior OWNER TO postgres; + +-- +-- Name: TABLE disciplineincidentbehavior; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineincidentbehavior IS 'Describes behavior by category and provides a detailed description.'; + + +-- +-- Name: COLUMN disciplineincidentbehavior.behaviordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentbehavior.behaviordescriptorid IS 'Describes behavior by category and provides a detailed description.'; + + +-- +-- Name: COLUMN disciplineincidentbehavior.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentbehavior.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN disciplineincidentbehavior.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentbehavior.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineincidentbehavior.behaviordetaileddescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentbehavior.behaviordetaileddescription IS 'Specifies a more granular level of detail of a behavior involved in the incident.'; + + +-- +-- Name: disciplineincidentexternalparticipant; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineincidentexternalparticipant ( + disciplineincidentparticipationcodedescriptorid integer NOT NULL, + firstname character varying(75) NOT NULL, + incidentidentifier character varying(20) NOT NULL, + lastsurname character varying(75) NOT NULL, + schoolid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineincidentexternalparticipant OWNER TO postgres; + +-- +-- Name: TABLE disciplineincidentexternalparticipant; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineincidentexternalparticipant IS 'Information on an individual involved in the Discipline Incident.'; + + +-- +-- Name: COLUMN disciplineincidentexternalparticipant.disciplineincidentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentexternalparticipant.disciplineincidentparticipationcodedescriptorid IS 'The role or type of participation of a student in a discipline incident; for example: Victim, Perpetrator, Witness, Reporter.'; + + +-- +-- Name: COLUMN disciplineincidentexternalparticipant.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentexternalparticipant.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN disciplineincidentexternalparticipant.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentexternalparticipant.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN disciplineincidentexternalparticipant.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentexternalparticipant.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN disciplineincidentexternalparticipant.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentexternalparticipant.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: disciplineincidentparticipationcodedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineincidentparticipationcodedescriptor ( + disciplineincidentparticipationcodedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.disciplineincidentparticipationcodedescriptor OWNER TO postgres; + +-- +-- Name: TABLE disciplineincidentparticipationcodedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineincidentparticipationcodedescriptor IS 'The role or type of participation of a person in a discipline incident; for example: Victim, Perpetrator, Witness, Reporter.'; + + +-- +-- Name: COLUMN disciplineincidentparticipationcodedescriptor.disciplineincidentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentparticipationcodedescriptor.disciplineincidentparticipationcodedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: disciplineincidentweapon; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.disciplineincidentweapon ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + weapondescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.disciplineincidentweapon OWNER TO postgres; + +-- +-- Name: TABLE disciplineincidentweapon; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.disciplineincidentweapon IS 'Identifies the type of weapon used during an incident. The Federal Gun-Free Schools Act requires states to report the number of students expelled for bringing firearms to school by type of firearm.'; + + +-- +-- Name: COLUMN disciplineincidentweapon.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentweapon.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN disciplineincidentweapon.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentweapon.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN disciplineincidentweapon.weapondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.disciplineincidentweapon.weapondescriptorid IS 'Identifies the type of weapon used during an incident. The Federal Gun-Free Schools Act requires states to report the number of students expelled for bringing firearms to school by type of firearm.'; + + +-- +-- Name: educationalenvironmentdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationalenvironmentdescriptor ( + educationalenvironmentdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.educationalenvironmentdescriptor OWNER TO postgres; + +-- +-- Name: TABLE educationalenvironmentdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationalenvironmentdescriptor IS 'The setting in which a child receives education and related services.'; + + +-- +-- Name: COLUMN educationalenvironmentdescriptor.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationalenvironmentdescriptor.educationalenvironmentdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: educationcontent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontent ( + contentidentifier character varying(225) NOT NULL, + learningresourcemetadatauri character varying(255), + shortdescription character varying(75), + description character varying(1024), + additionalauthorsindicator boolean, + publisher character varying(50), + timerequired character varying(30), + interactivitystyledescriptorid integer, + contentclassdescriptorid integer, + userightsurl character varying(255), + publicationdate date, + publicationyear smallint, + version character varying(10), + learningstandardid character varying(60), + cost money, + costratedescriptorid integer, + namespace character varying(255) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.educationcontent OWNER TO postgres; + +-- +-- Name: TABLE educationcontent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontent IS 'This entity represents materials for students or teachers that can be used for teaching, learning, research, and more. Education content includes full courses, course materials, modules, intervention descriptions, textbooks, streaming videos, tests, software, and any other tools, materials, or techniques used to support access to knowledge.'; + + +-- +-- Name: COLUMN educationcontent.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontent.learningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.learningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: COLUMN educationcontent.shortdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.shortdescription IS 'A short description or name of the entity.'; + + +-- +-- Name: COLUMN educationcontent.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.description IS 'An extended written representation of the education content.'; + + +-- +-- Name: COLUMN educationcontent.additionalauthorsindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.additionalauthorsindicator IS 'Indicates whether there are additional un-named authors. In a research report, this is often marked by the abbreviation "et al".'; + + +-- +-- Name: COLUMN educationcontent.publisher; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.publisher IS 'The organization credited with publishing the resource.'; + + +-- +-- Name: COLUMN educationcontent.timerequired; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.timerequired IS 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience.'; + + +-- +-- Name: COLUMN educationcontent.interactivitystyledescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.interactivitystyledescriptorid IS 'The predominate mode of learning supported by the learning resource. Acceptable values are active, expositive, or mixed.'; + + +-- +-- Name: COLUMN educationcontent.contentclassdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.contentclassdescriptorid IS 'The predominate type or kind characterizing the learning resource.'; + + +-- +-- Name: COLUMN educationcontent.userightsurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.userightsurl IS 'The URL where the owner specifies permissions for using the resource.'; + + +-- +-- Name: COLUMN educationcontent.publicationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.publicationdate IS 'The date on which this content was first published.'; + + +-- +-- Name: COLUMN educationcontent.publicationyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.publicationyear IS 'The year at which this content was first published.'; + + +-- +-- Name: COLUMN educationcontent.version; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.version IS 'The version identifier for the content.'; + + +-- +-- Name: COLUMN educationcontent.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN educationcontent.cost; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.cost IS 'An amount that has to be paid or spent to buy or obtain the EducationContent.'; + + +-- +-- Name: COLUMN educationcontent.costratedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.costratedescriptorid IS 'The rate by which the cost applies.'; + + +-- +-- Name: COLUMN educationcontent.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontent.namespace IS 'Namespace for the EducationContent.'; + + +-- +-- Name: educationcontentappropriategradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentappropriategradelevel ( + contentidentifier character varying(225) NOT NULL, + gradeleveldescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentappropriategradelevel OWNER TO postgres; + +-- +-- Name: TABLE educationcontentappropriategradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentappropriategradelevel IS 'Grade levels for which this education content is applicable-if omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN educationcontentappropriategradelevel.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentappropriategradelevel.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontentappropriategradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentappropriategradelevel.gradeleveldescriptorid IS 'Grade levels for which this education content is applicable-if omitted, considered generally applicable.'; + + +-- +-- Name: educationcontentappropriatesex; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentappropriatesex ( + contentidentifier character varying(225) NOT NULL, + sexdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentappropriatesex OWNER TO postgres; + +-- +-- Name: TABLE educationcontentappropriatesex; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentappropriatesex IS 'Sexes for which this education content is applicable. If omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN educationcontentappropriatesex.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentappropriatesex.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontentappropriatesex.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentappropriatesex.sexdescriptorid IS 'Sexes for which this education content is applicable. If omitted, considered generally applicable.'; + + +-- +-- Name: educationcontentauthor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentauthor ( + author character varying(100) NOT NULL, + contentidentifier character varying(225) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentauthor OWNER TO postgres; + +-- +-- Name: TABLE educationcontentauthor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentauthor IS 'The individual credited with the creation of the resource.'; + + +-- +-- Name: COLUMN educationcontentauthor.author; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentauthor.author IS 'The individual credited with the creation of the resource.'; + + +-- +-- Name: COLUMN educationcontentauthor.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentauthor.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: educationcontentderivativesourceeducationcontent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentderivativesourceeducationcontent ( + contentidentifier character varying(225) NOT NULL, + derivativesourcecontentidentifier character varying(225) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentderivativesourceeducationcontent OWNER TO postgres; + +-- +-- Name: TABLE educationcontentderivativesourceeducationcontent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentderivativesourceeducationcontent IS 'Relates the education content source to the education content.'; + + +-- +-- Name: COLUMN educationcontentderivativesourceeducationcontent.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentderivativesourceeducationcontent.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontentderivativesourceeducationcontent.derivativesourcecontentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentderivativesourceeducationcontent.derivativesourcecontentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: educationcontentderivativesourcelearningresourcemetadatauri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentderivativesourcelearningresourcemetadatauri ( + contentidentifier character varying(225) NOT NULL, + derivativesourcelearningresourcemetadatauri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentderivativesourcelearningresourcemetadatauri OWNER TO postgres; + +-- +-- Name: TABLE educationcontentderivativesourcelearningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentderivativesourcelearningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: COLUMN educationcontentderivativesourcelearningresourcemetadatauri.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentderivativesourcelearningresourcemetadatauri.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontentderivativesourcelearningresourcemetadatauri.derivativesourcelearningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentderivativesourcelearningresourcemetadatauri.derivativesourcelearningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: educationcontentderivativesourceuri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentderivativesourceuri ( + contentidentifier character varying(225) NOT NULL, + derivativesourceuri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentderivativesourceuri OWNER TO postgres; + +-- +-- Name: TABLE educationcontentderivativesourceuri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentderivativesourceuri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: COLUMN educationcontentderivativesourceuri.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentderivativesourceuri.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontentderivativesourceuri.derivativesourceuri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentderivativesourceuri.derivativesourceuri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: educationcontentlanguage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationcontentlanguage ( + contentidentifier character varying(225) NOT NULL, + languagedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationcontentlanguage OWNER TO postgres; + +-- +-- Name: TABLE educationcontentlanguage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationcontentlanguage IS 'An indication of the languages in which the Education Content is designed.'; + + +-- +-- Name: COLUMN educationcontentlanguage.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentlanguage.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN educationcontentlanguage.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationcontentlanguage.languagedescriptorid IS 'An indication of the languages in which the Education Content is designed.'; + + +-- +-- Name: educationorganization; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganization ( + educationorganizationid integer NOT NULL, + nameofinstitution character varying(75) NOT NULL, + shortnameofinstitution character varying(75), + website character varying(255), + operationalstatusdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.educationorganization OWNER TO postgres; + +-- +-- Name: TABLE educationorganization; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganization IS 'This entity represents any public or private institution, organization, or agency that provides instructional or support services to students or staff at any level.'; + + +-- +-- Name: COLUMN educationorganization.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganization.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganization.nameofinstitution; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganization.nameofinstitution IS 'The full, legally accepted name of the institution.'; + + +-- +-- Name: COLUMN educationorganization.shortnameofinstitution; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganization.shortnameofinstitution IS 'A short name for the institution.'; + + +-- +-- Name: COLUMN educationorganization.website; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganization.website IS 'The public web site address (URL) for the EducationOrganization.'; + + +-- +-- Name: COLUMN educationorganization.operationalstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganization.operationalstatusdescriptorid IS 'The current operational status of the EducationOrganization (e.g., active, inactive).'; + + +-- +-- Name: educationorganizationaddress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationaddress ( + addresstypedescriptorid integer NOT NULL, + city character varying(30) NOT NULL, + educationorganizationid integer NOT NULL, + postalcode character varying(17) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + apartmentroomsuitenumber character varying(50), + buildingsitenumber character varying(20), + nameofcounty character varying(30), + countyfipscode character varying(5), + latitude character varying(20), + longitude character varying(20), + donotpublishindicator boolean, + congressionaldistrict character varying(30), + localedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationaddress OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationaddress IS 'The set of elements that describes an address for the education entity, including the street address, city, state, ZIP code, and ZIP code + 4.'; + + +-- +-- Name: COLUMN educationorganizationaddress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN educationorganizationaddress.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN educationorganizationaddress.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationaddress.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN educationorganizationaddress.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN educationorganizationaddress.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN educationorganizationaddress.apartmentroomsuitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.apartmentroomsuitenumber IS 'The apartment, room, or suite number of an address.'; + + +-- +-- Name: COLUMN educationorganizationaddress.buildingsitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.buildingsitenumber IS 'The number of the building on the site, if more than one building shares the same address.'; + + +-- +-- Name: COLUMN educationorganizationaddress.nameofcounty; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.nameofcounty IS 'The name of the county, parish, borough, or comparable unit (within a state) in + ''which an address is located.'; + + +-- +-- Name: COLUMN educationorganizationaddress.countyfipscode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.countyfipscode IS 'The Federal Information Processing Standards (FIPS) numeric code for the county issued by the National Institute of Standards and Technology (NIST). Counties are considered to be the "first-order subdivisions" of each State and statistically equivalent entity, regardless of their local designations (county, parish, borough, etc.) Counties in different States will have the same code. A unique county number is created when combined with the 2-digit FIPS State Code.'; + + +-- +-- Name: COLUMN educationorganizationaddress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN educationorganizationaddress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN educationorganizationaddress.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.donotpublishindicator IS 'An indication that the address should not be published.'; + + +-- +-- Name: COLUMN educationorganizationaddress.congressionaldistrict; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.congressionaldistrict IS 'The congressional district in which an address is located.'; + + +-- +-- Name: COLUMN educationorganizationaddress.localedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddress.localedescriptorid IS 'A general geographic indicator that categorizes U.S. territory (e.g., City, Suburban).'; + + +-- +-- Name: educationorganizationaddressperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationaddressperiod ( + addresstypedescriptorid integer NOT NULL, + begindate date NOT NULL, + city character varying(30) NOT NULL, + educationorganizationid integer NOT NULL, + postalcode character varying(17) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationaddressperiod OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationaddressperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationaddressperiod IS 'The time periods for which the address is valid. For physical addresses, the periods in which the person lived at that address.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN educationorganizationaddressperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationaddressperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: educationorganizationcategory; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationcategory ( + educationorganizationcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationcategory OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationcategory; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationcategory IS 'The classification of the education agency within the geographic boundaries of a state according to the level of administrative and operational control granted by the state.'; + + +-- +-- Name: COLUMN educationorganizationcategory.educationorganizationcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationcategory.educationorganizationcategorydescriptorid IS 'The classification of the education agency within the geographic boundaries of a state according to the level of administrative and operational control granted by the state.'; + + +-- +-- Name: COLUMN educationorganizationcategory.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationcategory.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: educationorganizationcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationcategorydescriptor ( + educationorganizationcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.educationorganizationcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationcategorydescriptor IS 'The classification of the education agency within the geographic boundaries of a state according to the level of administrative and operational control granted by the state.'; + + +-- +-- Name: COLUMN educationorganizationcategorydescriptor.educationorganizationcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationcategorydescriptor.educationorganizationcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: educationorganizationidentificationcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationidentificationcode ( + educationorganizationid integer NOT NULL, + educationorganizationidentificationsystemdescriptorid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationidentificationcode OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationidentificationcode IS 'A unique number or alphanumeric code assigned to an education organization by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN educationorganizationidentificationcode.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationidentificationcode.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationidentificationcode.educationorganizationidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationidentificationcode.educationorganizationidentificationsystemdescriptorid IS 'The school system, state, or agency assigning the identification code.'; + + +-- +-- Name: COLUMN educationorganizationidentificationcode.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationidentificationcode.identificationcode IS 'A unique number or alphanumeric code that is assigned to an education organization by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: educationorganizationidentificationsystemdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationidentificationsystemdescriptor ( + educationorganizationidentificationsystemdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.educationorganizationidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationidentificationsystemdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationidentificationsystemdescriptor IS 'This descriptor defines the originating record system and code that is used for record-keeping purposes by education organizations.'; + + +-- +-- Name: COLUMN educationorganizationidentificationsystemdescriptor.educationorganizationidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationidentificationsystemdescriptor.educationorganizationidentificationsystemdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: educationorganizationindicator; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationindicator ( + educationorganizationid integer NOT NULL, + indicatordescriptorid integer NOT NULL, + designatedby character varying(60), + indicatorvalue character varying(60), + indicatorleveldescriptorid integer, + indicatorgroupdescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationindicator OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationindicator IS 'An indicator or metric of an Education Organization.'; + + +-- +-- Name: COLUMN educationorganizationindicator.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicator.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationindicator.indicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicator.indicatordescriptorid IS 'The name or code for the indicator or metric.'; + + +-- +-- Name: COLUMN educationorganizationindicator.designatedby; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicator.designatedby IS 'The person, organization, or department that defined the metric.'; + + +-- +-- Name: COLUMN educationorganizationindicator.indicatorvalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicator.indicatorvalue IS 'The value of the indicator or metric. The semantics of an empty value is "not submitted."'; + + +-- +-- Name: COLUMN educationorganizationindicator.indicatorleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicator.indicatorleveldescriptorid IS 'The value of the indicator or metric, as a value from a controlled vocabulary. The semantics of an empty value is "not submitted."'; + + +-- +-- Name: COLUMN educationorganizationindicator.indicatorgroupdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicator.indicatorgroupdescriptorid IS 'The name for a group of indicators.'; + + +-- +-- Name: educationorganizationindicatorperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationindicatorperiod ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + indicatordescriptorid integer NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationindicatorperiod OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationindicatorperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationindicatorperiod IS 'The time period or as-of date for the indicator.'; + + +-- +-- Name: COLUMN educationorganizationindicatorperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicatorperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN educationorganizationindicatorperiod.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicatorperiod.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationindicatorperiod.indicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicatorperiod.indicatordescriptorid IS 'The name or code for the indicator or metric.'; + + +-- +-- Name: COLUMN educationorganizationindicatorperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationindicatorperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: educationorganizationinstitutiontelephone; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationinstitutiontelephone ( + educationorganizationid integer NOT NULL, + institutiontelephonenumbertypedescriptorid integer NOT NULL, + telephonenumber character varying(24) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationinstitutiontelephone OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationinstitutiontelephone; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationinstitutiontelephone IS 'The 10-digit telephone number, including the area code, for the education entity.'; + + +-- +-- Name: COLUMN educationorganizationinstitutiontelephone.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinstitutiontelephone.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationinstitutiontelephone.institutiontelephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinstitutiontelephone.institutiontelephonenumbertypedescriptorid IS 'The type of communication number listed for an individual or organization.'; + + +-- +-- Name: COLUMN educationorganizationinstitutiontelephone.telephonenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinstitutiontelephone.telephonenumber IS 'The telephone number including the area code, and extension, if applicable.'; + + +-- +-- Name: educationorganizationinternationaladdress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationinternationaladdress ( + addresstypedescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + addressline1 character varying(150) NOT NULL, + addressline2 character varying(150), + addressline3 character varying(150), + addressline4 character varying(150), + countrydescriptorid integer NOT NULL, + latitude character varying(20), + longitude character varying(20), + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.educationorganizationinternationaladdress OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationinternationaladdress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationinternationaladdress IS 'The set of elements that describes the international physical location of the education entity.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.addressline1; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.addressline1 IS 'The first line of the address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.addressline2; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.addressline2 IS 'The second line of the address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.addressline3; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.addressline3 IS 'The third line of the address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.addressline4; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.addressline4 IS 'The fourth line of the address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.countrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.countrydescriptorid IS 'The name of the country. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.begindate IS 'The first date the address is valid. For physical addresses, the date the person moved to that address.'; + + +-- +-- Name: COLUMN educationorganizationinternationaladdress.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinternationaladdress.enddate IS 'The last date the address is valid. For physical addresses, this would be the date the person moved from that address.'; + + +-- +-- Name: educationorganizationinterventionprescriptionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationinterventionprescriptionassociation ( + educationorganizationid integer NOT NULL, + interventionprescriptioneducationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + begindate date, + enddate date, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.educationorganizationinterventionprescriptionassociation OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationinterventionprescriptionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationinterventionprescriptionassociation IS 'This association indicates interventions made available by an education organization. Often, a district-level education organization purchases a set of intervention prescriptions and makes them available to its schools for use on demand.'; + + +-- +-- Name: COLUMN educationorganizationinterventionprescriptionassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinterventionprescriptionassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationinterventionprescriptionassociation.interventionprescriptioneducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinterventionprescriptionassociation.interventionprescriptioneducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationinterventionprescriptionassociation.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinterventionprescriptionassociation.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN educationorganizationinterventionprescriptionassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinterventionprescriptionassociation.begindate IS 'The begin date of the period during which the InterventionPrescription is available.'; + + +-- +-- Name: COLUMN educationorganizationinterventionprescriptionassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationinterventionprescriptionassociation.enddate IS 'The end date of the period during which the InterventionPrescription is available.'; + + +-- +-- Name: educationorganizationnetwork; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationnetwork ( + educationorganizationnetworkid integer NOT NULL, + networkpurposedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.educationorganizationnetwork OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationnetwork; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationnetwork IS 'This entity is a self-organized membership network of peer-level education organizations intended to provide shared services or collective procurement.'; + + +-- +-- Name: COLUMN educationorganizationnetwork.educationorganizationnetworkid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationnetwork.educationorganizationnetworkid IS 'The identifier assigned to a network of education organizations.'; + + +-- +-- Name: COLUMN educationorganizationnetwork.networkpurposedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationnetwork.networkpurposedescriptorid IS 'The purpose(s) of the network (e.g., shared services, collective procurement).'; + + +-- +-- Name: educationorganizationnetworkassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationnetworkassociation ( + educationorganizationnetworkid integer NOT NULL, + membereducationorganizationid integer NOT NULL, + begindate date, + enddate date, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.educationorganizationnetworkassociation OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationnetworkassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationnetworkassociation IS 'Properties of the association between the EducationOrganization and its network(s).'; + + +-- +-- Name: COLUMN educationorganizationnetworkassociation.educationorganizationnetworkid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationnetworkassociation.educationorganizationnetworkid IS 'The identifier assigned to a network of education organizations.'; + + +-- +-- Name: COLUMN educationorganizationnetworkassociation.membereducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationnetworkassociation.membereducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationnetworkassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationnetworkassociation.begindate IS 'The date on which the EducationOrganization joined this network.'; + + +-- +-- Name: COLUMN educationorganizationnetworkassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationnetworkassociation.enddate IS 'The date on which the EducationOrganization left this network.'; + + +-- +-- Name: educationorganizationpeerassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationorganizationpeerassociation ( + educationorganizationid integer NOT NULL, + peereducationorganizationid integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.educationorganizationpeerassociation OWNER TO postgres; + +-- +-- Name: TABLE educationorganizationpeerassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationorganizationpeerassociation IS 'The association from an education organization to its peers.'; + + +-- +-- Name: COLUMN educationorganizationpeerassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationpeerassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN educationorganizationpeerassociation.peereducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationorganizationpeerassociation.peereducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: educationplandescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationplandescriptor ( + educationplandescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.educationplandescriptor OWNER TO postgres; + +-- +-- Name: TABLE educationplandescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationplandescriptor IS 'The type of education plan(s) the student is following, if appropriate.'; + + +-- +-- Name: COLUMN educationplandescriptor.educationplandescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationplandescriptor.educationplandescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: educationservicecenter; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.educationservicecenter ( + educationservicecenterid integer NOT NULL, + stateeducationagencyid integer +); + + +ALTER TABLE edfi.educationservicecenter OWNER TO postgres; + +-- +-- Name: TABLE educationservicecenter; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.educationservicecenter IS 'This entity represents a regional, multi-services public agency authorized by state law to develop, manage and provide services, programs, or other support options (e.g., construction, food services, and technology services) to LEAs.'; + + +-- +-- Name: COLUMN educationservicecenter.educationservicecenterid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationservicecenter.educationservicecenterid IS 'The identifier assigned to an education service center.'; + + +-- +-- Name: COLUMN educationservicecenter.stateeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.educationservicecenter.stateeducationagencyid IS 'The identifier assigned to a state education agency.'; + + +-- +-- Name: electronicmailtypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.electronicmailtypedescriptor ( + electronicmailtypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.electronicmailtypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE electronicmailtypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.electronicmailtypedescriptor IS 'The type of email listed for an individual or organization.'; + + +-- +-- Name: COLUMN electronicmailtypedescriptor.electronicmailtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.electronicmailtypedescriptor.electronicmailtypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: employmentstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.employmentstatusdescriptor ( + employmentstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.employmentstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE employmentstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.employmentstatusdescriptor IS 'This descriptor defines the type of employment or contract.'; + + +-- +-- Name: COLUMN employmentstatusdescriptor.employmentstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.employmentstatusdescriptor.employmentstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: entrygradelevelreasondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.entrygradelevelreasondescriptor ( + entrygradelevelreasondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.entrygradelevelreasondescriptor OWNER TO postgres; + +-- +-- Name: TABLE entrygradelevelreasondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.entrygradelevelreasondescriptor IS 'The primary reason as to why a staff member determined that a student should be promoted or not (or be demoted) at the end of a given school term.'; + + +-- +-- Name: COLUMN entrygradelevelreasondescriptor.entrygradelevelreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.entrygradelevelreasondescriptor.entrygradelevelreasondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: entrytypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.entrytypedescriptor ( + entrytypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.entrytypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE entrytypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.entrytypedescriptor IS 'This descriptor defines the process by which a student enters a school during a given academic session.'; + + +-- +-- Name: COLUMN entrytypedescriptor.entrytypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.entrytypedescriptor.entrytypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: eventcircumstancedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.eventcircumstancedescriptor ( + eventcircumstancedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.eventcircumstancedescriptor OWNER TO postgres; + +-- +-- Name: TABLE eventcircumstancedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.eventcircumstancedescriptor IS 'An unusual event occurred during the administration of the assessment. This could include fire alarm, student became ill, etc.'; + + +-- +-- Name: COLUMN eventcircumstancedescriptor.eventcircumstancedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.eventcircumstancedescriptor.eventcircumstancedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: exitwithdrawtypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.exitwithdrawtypedescriptor ( + exitwithdrawtypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.exitwithdrawtypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE exitwithdrawtypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.exitwithdrawtypedescriptor IS 'This descriptor defines the circumstances under which the student exited from membership in an educational institution.'; + + +-- +-- Name: COLUMN exitwithdrawtypedescriptor.exitwithdrawtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.exitwithdrawtypedescriptor.exitwithdrawtypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: feederschoolassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.feederschoolassociation ( + begindate date NOT NULL, + feederschoolid integer NOT NULL, + schoolid integer NOT NULL, + enddate date, + feederrelationshipdescription character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.feederschoolassociation OWNER TO postgres; + +-- +-- Name: TABLE feederschoolassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.feederschoolassociation IS 'The association from feeder school to the receiving school.'; + + +-- +-- Name: COLUMN feederschoolassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.feederschoolassociation.begindate IS 'The month, day, and year of the first day of the feeder school association.'; + + +-- +-- Name: COLUMN feederschoolassociation.feederschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.feederschoolassociation.feederschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN feederschoolassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.feederschoolassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN feederschoolassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.feederschoolassociation.enddate IS 'The month, day, and year of the last day of the feeder school association.'; + + +-- +-- Name: COLUMN feederschoolassociation.feederrelationshipdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.feederschoolassociation.feederrelationshipdescription IS 'Describes the relationship from the feeder school to the receiving school, for example by program emphasis, such as special education, language immersion, science, or performing art.'; + + +-- +-- Name: generalstudentprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.generalstudentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + enddate date, + reasonexiteddescriptorid integer, + servedoutsideofregularsession boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.generalstudentprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE generalstudentprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.generalstudentprogramassociation IS 'This association base class represents the basic relationship between students and programs.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.enddate IS 'The month, day, and year on which the Student exited the Program or stopped receiving services.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.reasonexiteddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.reasonexiteddescriptorid IS 'The reason the child left the Program within a school or district.'; + + +-- +-- Name: COLUMN generalstudentprogramassociation.servedoutsideofregularsession; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociation.servedoutsideofregularsession IS 'Indicates whether the Student received services during the summer session or between sessions.'; + + +-- +-- Name: generalstudentprogramassociationparticipationstatus; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.generalstudentprogramassociationparticipationstatus ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + participationstatusdescriptorid integer NOT NULL, + statusbegindate date, + statusenddate date, + designatedby character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.generalstudentprogramassociationparticipationstatus OWNER TO postgres; + +-- +-- Name: TABLE generalstudentprogramassociationparticipationstatus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.generalstudentprogramassociationparticipationstatus IS 'The status of the student''s program participation.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.participationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.participationstatusdescriptorid IS 'The student''s program participation status.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.statusbegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.statusbegindate IS 'The date the student''s program participation status began.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.statusenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.statusenddate IS 'The date the student''s program participation status ended.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationparticipationstatus.designatedby; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationparticipationstatus.designatedby IS 'The person, organization, or department that designated the participation status.'; + + +-- +-- Name: generalstudentprogramassociationprogramparticipationstatus; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.generalstudentprogramassociationprogramparticipationstatus ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + participationstatusdescriptorid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + statusbegindate date NOT NULL, + studentusi integer NOT NULL, + statusenddate date, + designatedby character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.generalstudentprogramassociationprogramparticipationstatus OWNER TO postgres; + +-- +-- Name: TABLE generalstudentprogramassociationprogramparticipationstatus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.generalstudentprogramassociationprogramparticipationstatus IS 'The status of the student''s program participation.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.participationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.participationstatusdescriptorid IS 'The student''s program participation status.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.statusbegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.statusbegindate IS 'The date the student''s program participation status began.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.statusenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.statusenddate IS 'The date the student''s program participation status ended.'; + + +-- +-- Name: COLUMN generalstudentprogramassociationprogramparticipationstatus.designatedby; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.generalstudentprogramassociationprogramparticipationstatus.designatedby IS 'The person, organization, or department that designated the participation status.'; + + +-- +-- Name: grade; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.grade ( + begindate date NOT NULL, + gradetypedescriptorid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + lettergradeearned character varying(20), + numericgradeearned numeric(9,2), + diagnosticstatement character varying(1024), + performancebaseconversiondescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.grade OWNER TO postgres; + +-- +-- Name: TABLE grade; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.grade IS 'This educational entity represents an overall score or assessment tied to a course over a period of time (i.e., the grading period). Student grades are usually a compilation of marks and other scores.'; + + +-- +-- Name: COLUMN grade.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN grade.gradetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.gradetypedescriptorid IS 'The type of grade reported (e.g., Exam, Final, Grading Period).'; + + +-- +-- Name: COLUMN grade.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN grade.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN grade.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN grade.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN grade.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN grade.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN grade.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN grade.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN grade.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN grade.lettergradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.lettergradeearned IS 'A final or interim (grading period) indicator of student performance in a class as submitted by the instructor.'; + + +-- +-- Name: COLUMN grade.numericgradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.numericgradeearned IS 'A final or interim (grading period) indicator of student performance in a class as submitted by the instructor.'; + + +-- +-- Name: COLUMN grade.diagnosticstatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.diagnosticstatement IS 'A statement provided by the teacher that provides information in addition to the grade or assessment score.'; + + +-- +-- Name: COLUMN grade.performancebaseconversiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.grade.performancebaseconversiondescriptorid IS 'A conversion of the level to a standard set of performance levels.'; + + +-- +-- Name: gradebookentry; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradebookentry ( + dateassigned date NOT NULL, + gradebookentrytitle character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + gradebookentrytypedescriptorid integer, + description character varying(1024), + gradingperioddescriptorid integer, + periodsequence integer, + duedate date, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.gradebookentry OWNER TO postgres; + +-- +-- Name: TABLE gradebookentry; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradebookentry IS 'This entity represents an assignment, homework, or classroom assessment to be recorded in a gradebook.'; + + +-- +-- Name: COLUMN gradebookentry.dateassigned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.dateassigned IS 'The date the assignment, homework, or assessment was assigned or executed.'; + + +-- +-- Name: COLUMN gradebookentry.gradebookentrytitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.gradebookentrytitle IS 'The name or title of the activity to be recorded in the GradebookEntry.'; + + +-- +-- Name: COLUMN gradebookentry.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN gradebookentry.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN gradebookentry.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN gradebookentry.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN gradebookentry.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN gradebookentry.gradebookentrytypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.gradebookentrytypedescriptorid IS 'The type of the GradebookEntry; for example, homework, assignment, quiz, unit test, oral presentation, etc.'; + + +-- +-- Name: COLUMN gradebookentry.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.description IS 'A description of the assignment, homework, or classroom assessment.'; + + +-- +-- Name: COLUMN gradebookentry.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN gradebookentry.periodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.periodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN gradebookentry.duedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentry.duedate IS 'The date the assignment, homework, or assessment is due.'; + + +-- +-- Name: gradebookentrylearningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradebookentrylearningobjective ( + dateassigned date NOT NULL, + gradebookentrytitle character varying(60) NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.gradebookentrylearningobjective OWNER TO postgres; + +-- +-- Name: TABLE gradebookentrylearningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradebookentrylearningobjective IS 'LearningObjectives associated with the GradebookEntry.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.dateassigned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.dateassigned IS 'The date the assignment, homework, or assessment was assigned or executed.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.gradebookentrytitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.gradebookentrytitle IS 'The name or title of the activity to be recorded in the GradebookEntry.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN gradebookentrylearningobjective.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningobjective.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: gradebookentrylearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradebookentrylearningstandard ( + dateassigned date NOT NULL, + gradebookentrytitle character varying(60) NOT NULL, + learningstandardid character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.gradebookentrylearningstandard OWNER TO postgres; + +-- +-- Name: TABLE gradebookentrylearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradebookentrylearningstandard IS 'LearningStandard(s) associated with the GradebookEntry.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.dateassigned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.dateassigned IS 'The date the assignment, homework, or assessment was assigned or executed.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.gradebookentrytitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.gradebookentrytitle IS 'The name or title of the activity to be recorded in the GradebookEntry.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN gradebookentrylearningstandard.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrylearningstandard.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: gradebookentrytypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradebookentrytypedescriptor ( + gradebookentrytypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.gradebookentrytypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE gradebookentrytypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradebookentrytypedescriptor IS 'The type of the gradebook entry; for example, homework, assignment, quiz, unit test, oral presentation, etc.'; + + +-- +-- Name: COLUMN gradebookentrytypedescriptor.gradebookentrytypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradebookentrytypedescriptor.gradebookentrytypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: gradelearningstandardgrade; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradelearningstandardgrade ( + begindate date NOT NULL, + gradetypedescriptorid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + learningstandardid character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + lettergradeearned character varying(20), + numericgradeearned numeric(9,2), + diagnosticstatement character varying(1024), + performancebaseconversiondescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.gradelearningstandardgrade OWNER TO postgres; + +-- +-- Name: TABLE gradelearningstandardgrade; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradelearningstandardgrade IS 'A collection of learning standards associated with the grade.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.gradetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.gradetypedescriptorid IS 'The type of grade reported (e.g., Exam, Final, Grading Period).'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.lettergradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.lettergradeearned IS 'A final or interim (grading period) indicator of student performance for a learning standard as submitted by the instructor.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.numericgradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.numericgradeearned IS 'A final or interim (grading period) indicator of student performance for a learning standard as submitted by the instructor.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.diagnosticstatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.diagnosticstatement IS 'A statement provided by the teacher that provides information in addition to the grade or assessment score.'; + + +-- +-- Name: COLUMN gradelearningstandardgrade.performancebaseconversiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradelearningstandardgrade.performancebaseconversiondescriptorid IS 'A performance level that describes the student proficiency.'; + + +-- +-- Name: gradeleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradeleveldescriptor ( + gradeleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.gradeleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE gradeleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradeleveldescriptor IS 'This descriptor defines the set of grade levels. The map to known Ed-Fi enumeration values is required.'; + + +-- +-- Name: COLUMN gradeleveldescriptor.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradeleveldescriptor.gradeleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: gradepointaveragetypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradepointaveragetypedescriptor ( + gradepointaveragetypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.gradepointaveragetypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE gradepointaveragetypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradepointaveragetypedescriptor IS 'The system used for calculating the grade point average for an individual.'; + + +-- +-- Name: COLUMN gradepointaveragetypedescriptor.gradepointaveragetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradepointaveragetypedescriptor.gradepointaveragetypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: gradetypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradetypedescriptor ( + gradetypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.gradetypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE gradetypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradetypedescriptor IS 'The type of grade in a report card or transcript (e.g., Final, Exam, Grading Period).'; + + +-- +-- Name: COLUMN gradetypedescriptor.gradetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradetypedescriptor.gradetypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: gradingperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradingperiod ( + gradingperioddescriptorid integer NOT NULL, + periodsequence integer NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + begindate date NOT NULL, + enddate date NOT NULL, + totalinstructionaldays integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.gradingperiod OWNER TO postgres; + +-- +-- Name: TABLE gradingperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradingperiod IS 'This entity represents the time span for which grades are reported.'; + + +-- +-- Name: COLUMN gradingperiod.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN gradingperiod.periodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.periodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN gradingperiod.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN gradingperiod.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.schoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN gradingperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.begindate IS 'Month, day, and year of the first day of the GradingPeriod.'; + + +-- +-- Name: COLUMN gradingperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.enddate IS 'Month, day, and year of the last day of the GradingPeriod.'; + + +-- +-- Name: COLUMN gradingperiod.totalinstructionaldays; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperiod.totalinstructionaldays IS 'Total days available for educational instruction during the GradingPeriod.'; + + +-- +-- Name: gradingperioddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gradingperioddescriptor ( + gradingperioddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.gradingperioddescriptor OWNER TO postgres; + +-- +-- Name: TABLE gradingperioddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gradingperioddescriptor IS 'This descriptor defines the name of the period for which grades are reported. The mapping of descriptor values to known Ed-Fi enumeration values is required.'; + + +-- +-- Name: COLUMN gradingperioddescriptor.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gradingperioddescriptor.gradingperioddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: graduationplan; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplan ( + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + individualplan boolean, + totalrequiredcredits numeric(9,3) NOT NULL, + totalrequiredcredittypedescriptorid integer, + totalrequiredcreditconversion numeric(9,2), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.graduationplan OWNER TO postgres; + +-- +-- Name: TABLE graduationplan; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplan IS 'This entity is a plan outlining the required credits, credits by subject, credits by course, and other criteria required for graduation. A graduation plan may be one or more standard plans defined by an education organization and/or individual plans for some or all students.'; + + +-- +-- Name: COLUMN graduationplan.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplan.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplan.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplan.individualplan; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.individualplan IS 'An indicator of whether the GraduationPlan is tailored for an individual.'; + + +-- +-- Name: COLUMN graduationplan.totalrequiredcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.totalrequiredcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplan.totalrequiredcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.totalrequiredcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplan.totalrequiredcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplan.totalrequiredcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: graduationplancreditsbycourse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplancreditsbycourse ( + coursesetname character varying(120) NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + credits numeric(9,3) NOT NULL, + credittypedescriptorid integer, + creditconversion numeric(9,2), + whentakengradeleveldescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplancreditsbycourse OWNER TO postgres; + +-- +-- Name: TABLE graduationplancreditsbycourse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplancreditsbycourse IS 'The total credits required for graduation by taking a specific course, or by taking one or more from a set of courses.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.coursesetname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.coursesetname IS 'Identifying name given to a collection of courses.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.credits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.credits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.credittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.credittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.creditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.creditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN graduationplancreditsbycourse.whentakengradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycourse.whentakengradeleveldescriptorid IS 'The grade level when the student is planned to take the course.'; + + +-- +-- Name: graduationplancreditsbycoursecourse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplancreditsbycoursecourse ( + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + coursesetname character varying(120) NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplancreditsbycoursecourse OWNER TO postgres; + +-- +-- Name: TABLE graduationplancreditsbycoursecourse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplancreditsbycoursecourse IS 'The course reference that identifies the organization of subject matter and related learning experiences provided for the instruction of students.'; + + +-- +-- Name: COLUMN graduationplancreditsbycoursecourse.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycoursecourse.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbycoursecourse.courseeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycoursecourse.courseeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplancreditsbycoursecourse.coursesetname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycoursecourse.coursesetname IS 'Identifying name given to a collection of courses.'; + + +-- +-- Name: COLUMN graduationplancreditsbycoursecourse.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycoursecourse.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplancreditsbycoursecourse.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycoursecourse.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplancreditsbycoursecourse.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycoursecourse.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: graduationplancreditsbycreditcategory; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplancreditsbycreditcategory ( + creditcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + credits numeric(9,3) NOT NULL, + credittypedescriptorid integer, + creditconversion numeric(9,2), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplancreditsbycreditcategory OWNER TO postgres; + +-- +-- Name: TABLE graduationplancreditsbycreditcategory; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplancreditsbycreditcategory IS 'The total credits required for graduation based on the credit category.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.creditcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.creditcategorydescriptorid IS 'A categorization for the course transcript credits awarded in the course transcript.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.credits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.credits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.credittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.credittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbycreditcategory.creditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbycreditcategory.creditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: graduationplancreditsbysubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplancreditsbysubject ( + academicsubjectdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + credits numeric(9,3) NOT NULL, + credittypedescriptorid integer, + creditconversion numeric(9,2), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplancreditsbysubject OWNER TO postgres; + +-- +-- Name: TABLE graduationplancreditsbysubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplancreditsbysubject IS 'The total credits required in subject to graduate. Only those courses identified as a high school course requirement are eligible to meet subject credit requirements.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.academicsubjectdescriptorid IS 'The intended major subject area of the graduation requirement.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.credits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.credits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.credittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.credittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN graduationplancreditsbysubject.creditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplancreditsbysubject.creditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: graduationplanrequiredassessment; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplanrequiredassessment ( + assessmentidentifier character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplanrequiredassessment OWNER TO postgres; + +-- +-- Name: TABLE graduationplanrequiredassessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplanrequiredassessment IS 'The assessments and associated required score and performance level needed to satisfy graduation requirements.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessment.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessment.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessment.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessment.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessment.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessment.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessment.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessment.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessment.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessment.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: graduationplanrequiredassessmentperformancelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplanrequiredassessmentperformancelevel ( + assessmentidentifier character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + namespace character varying(255) NOT NULL, + performanceleveldescriptorid integer NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + minimumscore character varying(35), + maximumscore character varying(35), + resultdatatypetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplanrequiredassessmentperformancelevel OWNER TO postgres; + +-- +-- Name: TABLE graduationplanrequiredassessmentperformancelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplanrequiredassessmentperformancelevel IS 'Performance level required to be met or exceeded.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.performanceleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.performanceleveldescriptorid IS 'The performance level(s) defined for the assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.assessmentreportingmethoddescriptorid IS 'The method that the instructor of the class uses to report the performance and achievement of all students. It may be a qualitative method such as individualized teacher comments or a quantitative method such as a letter or numerical grade. In some cases, more than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.minimumscore IS 'The minimum score required to make the indicated level of performance.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.maximumscore IS 'The maximum score to make the indicated level of performance.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentperformancelevel.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentperformancelevel.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: graduationplanrequiredassessmentscore; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplanrequiredassessmentscore ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + namespace character varying(255) NOT NULL, + minimumscore character varying(35), + maximumscore character varying(35), + resultdatatypetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.graduationplanrequiredassessmentscore OWNER TO postgres; + +-- +-- Name: TABLE graduationplanrequiredassessmentscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplanrequiredassessmentscore IS 'Score required to be met or exceeded.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.assessmentreportingmethoddescriptorid IS 'The method that the administrator of the assessment uses to report the performance and achievement of all students. It may be a qualitative method such as performance level descriptors or a quantitative method such as a numerical grade or cut score. More than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.graduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.graduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.graduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.minimumscore IS 'The minimum score possible on the assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.maximumscore IS 'The maximum score possible on the assessment.'; + + +-- +-- Name: COLUMN graduationplanrequiredassessmentscore.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplanrequiredassessmentscore.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: graduationplantypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.graduationplantypedescriptor ( + graduationplantypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.graduationplantypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE graduationplantypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.graduationplantypedescriptor IS 'This descriptor defines the set of graduation plan types.'; + + +-- +-- Name: COLUMN graduationplantypedescriptor.graduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.graduationplantypedescriptor.graduationplantypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.gunfreeschoolsactreportingstatusdescriptor ( + gunfreeschoolsactreportingstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.gunfreeschoolsactreportingstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE gunfreeschoolsactreportingstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.gunfreeschoolsactreportingstatusdescriptor IS 'An indication of whether the school or local education agency (LEA) submitted a Gun-Free Schools Act (GFSA) of 1994 report to the state, as defined by Title 18, Section 921.'; + + +-- +-- Name: COLUMN gunfreeschoolsactreportingstatusdescriptor.gunfreeschoolsactreportingstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.gunfreeschoolsactreportingstatusdescriptor.gunfreeschoolsactreportingstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: homelessprimarynighttimeresidencedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.homelessprimarynighttimeresidencedescriptor ( + homelessprimarynighttimeresidencedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.homelessprimarynighttimeresidencedescriptor OWNER TO postgres; + +-- +-- Name: TABLE homelessprimarynighttimeresidencedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.homelessprimarynighttimeresidencedescriptor IS 'The primary nighttime residence of the student at the time the student is identified as homeless.'; + + +-- +-- Name: COLUMN homelessprimarynighttimeresidencedescriptor.homelessprimarynighttimeresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.homelessprimarynighttimeresidencedescriptor.homelessprimarynighttimeresidencedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: homelessprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.homelessprogramservicedescriptor ( + homelessprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.homelessprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE homelessprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.homelessprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a homeless program.'; + + +-- +-- Name: COLUMN homelessprogramservicedescriptor.homelessprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.homelessprogramservicedescriptor.homelessprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: identificationdocumentusedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.identificationdocumentusedescriptor ( + identificationdocumentusedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.identificationdocumentusedescriptor OWNER TO postgres; + +-- +-- Name: TABLE identificationdocumentusedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.identificationdocumentusedescriptor IS 'Identifies the type of use given to an identification document.'; + + +-- +-- Name: COLUMN identificationdocumentusedescriptor.identificationdocumentusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.identificationdocumentusedescriptor.identificationdocumentusedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: incidentlocationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.incidentlocationdescriptor ( + incidentlocationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.incidentlocationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE incidentlocationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.incidentlocationdescriptor IS 'Identifies where the incident occurred and whether or not it occurred on school property.'; + + +-- +-- Name: COLUMN incidentlocationdescriptor.incidentlocationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.incidentlocationdescriptor.incidentlocationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: indicatordescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.indicatordescriptor ( + indicatordescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.indicatordescriptor OWNER TO postgres; + +-- +-- Name: TABLE indicatordescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.indicatordescriptor IS 'The name or code for the indicator or metric.'; + + +-- +-- Name: COLUMN indicatordescriptor.indicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.indicatordescriptor.indicatordescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: indicatorgroupdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.indicatorgroupdescriptor ( + indicatorgroupdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.indicatorgroupdescriptor OWNER TO postgres; + +-- +-- Name: TABLE indicatorgroupdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.indicatorgroupdescriptor IS 'The name for a group of indicators.'; + + +-- +-- Name: COLUMN indicatorgroupdescriptor.indicatorgroupdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.indicatorgroupdescriptor.indicatorgroupdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: indicatorleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.indicatorleveldescriptor ( + indicatorleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.indicatorleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE indicatorleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.indicatorleveldescriptor IS 'The value of the indicator or metric, as a value from a controlled vocabulary. The semantics of an empty value is "not submitted."'; + + +-- +-- Name: COLUMN indicatorleveldescriptor.indicatorleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.indicatorleveldescriptor.indicatorleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: institutiontelephonenumbertypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.institutiontelephonenumbertypedescriptor ( + institutiontelephonenumbertypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.institutiontelephonenumbertypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE institutiontelephonenumbertypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.institutiontelephonenumbertypedescriptor IS 'The type of communication number listed for an organization.'; + + +-- +-- Name: COLUMN institutiontelephonenumbertypedescriptor.institutiontelephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.institutiontelephonenumbertypedescriptor.institutiontelephonenumbertypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: interactivitystyledescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interactivitystyledescriptor ( + interactivitystyledescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.interactivitystyledescriptor OWNER TO postgres; + +-- +-- Name: TABLE interactivitystyledescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interactivitystyledescriptor IS 'The predominate mode of learning supported by the learning resource. Acceptable values are active, expositive, or mixed.'; + + +-- +-- Name: COLUMN interactivitystyledescriptor.interactivitystyledescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interactivitystyledescriptor.interactivitystyledescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: internetaccessdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.internetaccessdescriptor ( + internetaccessdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.internetaccessdescriptor OWNER TO postgres; + +-- +-- Name: TABLE internetaccessdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.internetaccessdescriptor IS 'The type of Internet access available.'; + + +-- +-- Name: COLUMN internetaccessdescriptor.internetaccessdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.internetaccessdescriptor.internetaccessdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: internetaccesstypeinresidencedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.internetaccesstypeinresidencedescriptor ( + internetaccesstypeinresidencedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.internetaccesstypeinresidencedescriptor OWNER TO postgres; + +-- +-- Name: TABLE internetaccesstypeinresidencedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.internetaccesstypeinresidencedescriptor IS 'The primary type of internet service used in the student’s primary place of residence.'; + + +-- +-- Name: COLUMN internetaccesstypeinresidencedescriptor.internetaccesstypeinresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.internetaccesstypeinresidencedescriptor.internetaccesstypeinresidencedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: internetperformanceinresidencedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.internetperformanceinresidencedescriptor ( + internetperformanceinresidencedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.internetperformanceinresidencedescriptor OWNER TO postgres; + +-- +-- Name: TABLE internetperformanceinresidencedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.internetperformanceinresidencedescriptor IS 'An indication of whether the student can complete the full range of learning activities, including video streaming and assignment upload, without interruptions caused by poor internet performance in their primary place of residence.'; + + +-- +-- Name: COLUMN internetperformanceinresidencedescriptor.internetperformanceinresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.internetperformanceinresidencedescriptor.internetperformanceinresidencedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: intervention; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.intervention ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + interventionclassdescriptorid integer NOT NULL, + deliverymethoddescriptorid integer NOT NULL, + begindate date NOT NULL, + enddate date, + mindosage integer, + maxdosage integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.intervention OWNER TO postgres; + +-- +-- Name: TABLE intervention; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.intervention IS 'An implementation of an instructional approach focusing on the specific techniques and materials used to teach a given subject.'; + + +-- +-- Name: COLUMN intervention.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN intervention.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN intervention.interventionclassdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.interventionclassdescriptorid IS 'The way in which an intervention is used: curriculum, supplement, or practice.'; + + +-- +-- Name: COLUMN intervention.deliverymethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.deliverymethoddescriptorid IS 'The way in which an intervention was implemented: individual, small group, whole class, or whole school.'; + + +-- +-- Name: COLUMN intervention.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.begindate IS 'The start date for the intervention implementation.'; + + +-- +-- Name: COLUMN intervention.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.enddate IS 'The end date for the intervention implementation.'; + + +-- +-- Name: COLUMN intervention.mindosage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.mindosage IS 'The minimum duration of time in minutes that may be assigned for the intervention.'; + + +-- +-- Name: COLUMN intervention.maxdosage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.intervention.maxdosage IS 'The maximum duration of time in minutes that may be assigned for the intervention.'; + + +-- +-- Name: interventionappropriategradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionappropriategradelevel ( + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionappropriategradelevel OWNER TO postgres; + +-- +-- Name: TABLE interventionappropriategradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionappropriategradelevel IS 'Grade levels for the Intervention-if omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionappropriategradelevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionappropriategradelevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionappropriategradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionappropriategradelevel.gradeleveldescriptorid IS 'Grade levels for the Intervention-if omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionappropriategradelevel.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionappropriategradelevel.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: interventionappropriatesex; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionappropriatesex ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + sexdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionappropriatesex OWNER TO postgres; + +-- +-- Name: TABLE interventionappropriatesex; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionappropriatesex IS 'Sexes for the Intervention. If omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionappropriatesex.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionappropriatesex.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionappropriatesex.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionappropriatesex.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventionappropriatesex.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionappropriatesex.sexdescriptorid IS 'Sexes for the Intervention. If omitted, considered generally applicable.'; + + +-- +-- Name: interventionclassdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionclassdescriptor ( + interventionclassdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.interventionclassdescriptor OWNER TO postgres; + +-- +-- Name: TABLE interventionclassdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionclassdescriptor IS 'The way in which an intervention is used: curriculum, supplement, or practice.'; + + +-- +-- Name: COLUMN interventionclassdescriptor.interventionclassdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionclassdescriptor.interventionclassdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: interventiondiagnosis; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventiondiagnosis ( + diagnosisdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventiondiagnosis OWNER TO postgres; + +-- +-- Name: TABLE interventiondiagnosis; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventiondiagnosis IS 'Targeted purpose of the Intervention (e.g., attendance issue, dropout risk).'; + + +-- +-- Name: COLUMN interventiondiagnosis.diagnosisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventiondiagnosis.diagnosisdescriptorid IS 'Targeted purpose of the Intervention (e.g., attendance issue, dropout risk).'; + + +-- +-- Name: COLUMN interventiondiagnosis.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventiondiagnosis.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventiondiagnosis.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventiondiagnosis.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: interventioneducationcontent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventioneducationcontent ( + contentidentifier character varying(225) NOT NULL, + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventioneducationcontent OWNER TO postgres; + +-- +-- Name: TABLE interventioneducationcontent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventioneducationcontent IS 'Relates the education content source to the education content.'; + + +-- +-- Name: COLUMN interventioneducationcontent.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioneducationcontent.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN interventioneducationcontent.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioneducationcontent.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventioneducationcontent.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioneducationcontent.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: interventioneffectivenessratingdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventioneffectivenessratingdescriptor ( + interventioneffectivenessratingdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.interventioneffectivenessratingdescriptor OWNER TO postgres; + +-- +-- Name: TABLE interventioneffectivenessratingdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventioneffectivenessratingdescriptor IS 'An intervention demonstrates effectiveness if the research has shown that the program caused an improvement in outcomes. Rating Values: positive effects, potentially positive effects, mixed effects, potentially negative effects, negative effects, and no discernible effects.'; + + +-- +-- Name: COLUMN interventioneffectivenessratingdescriptor.interventioneffectivenessratingdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioneffectivenessratingdescriptor.interventioneffectivenessratingdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: interventioninterventionprescription; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventioninterventionprescription ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + interventionprescriptioneducationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventioninterventionprescription OWNER TO postgres; + +-- +-- Name: TABLE interventioninterventionprescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventioninterventionprescription IS 'The reference to the intervention prescription being followed in this intervention implementation.'; + + +-- +-- Name: COLUMN interventioninterventionprescription.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioninterventionprescription.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventioninterventionprescription.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioninterventionprescription.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventioninterventionprescription.interventionprescriptioneducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioninterventionprescription.interventionprescriptioneducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventioninterventionprescription.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventioninterventionprescription.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: interventionlearningresourcemetadatauri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionlearningresourcemetadatauri ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + learningresourcemetadatauri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionlearningresourcemetadatauri OWNER TO postgres; + +-- +-- Name: TABLE interventionlearningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionlearningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: COLUMN interventionlearningresourcemetadatauri.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionlearningresourcemetadatauri.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionlearningresourcemetadatauri.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionlearningresourcemetadatauri.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventionlearningresourcemetadatauri.learningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionlearningresourcemetadatauri.learningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: interventionmeetingtime; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionmeetingtime ( + educationorganizationid integer NOT NULL, + endtime time without time zone NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + starttime time without time zone NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionmeetingtime OWNER TO postgres; + +-- +-- Name: TABLE interventionmeetingtime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionmeetingtime IS 'The times at which this intervention is scheduled to meet.'; + + +-- +-- Name: COLUMN interventionmeetingtime.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionmeetingtime.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionmeetingtime.endtime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionmeetingtime.endtime IS 'An indication of the time of day the meeting time ends.'; + + +-- +-- Name: COLUMN interventionmeetingtime.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionmeetingtime.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventionmeetingtime.starttime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionmeetingtime.starttime IS 'An indication of the time of day the meeting time begins.'; + + +-- +-- Name: interventionpopulationserved; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionpopulationserved ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + populationserveddescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionpopulationserved OWNER TO postgres; + +-- +-- Name: TABLE interventionpopulationserved; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionpopulationserved IS 'A subset of students that are the focus of the Intervention.'; + + +-- +-- Name: COLUMN interventionpopulationserved.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionpopulationserved.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionpopulationserved.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionpopulationserved.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventionpopulationserved.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionpopulationserved.populationserveddescriptorid IS 'A subset of students that are the focus of the Intervention.'; + + +-- +-- Name: interventionprescription; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescription ( + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + interventionclassdescriptorid integer NOT NULL, + deliverymethoddescriptorid integer NOT NULL, + mindosage integer, + maxdosage integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.interventionprescription OWNER TO postgres; + +-- +-- Name: TABLE interventionprescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescription IS 'This entity represents a formal prescription of an instructional approach focusing on the specific techniques and materials used to teach a given subject. This can be prescribed by academic research, an interventions vendor, or another entity.'; + + +-- +-- Name: COLUMN interventionprescription.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescription.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescription.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescription.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN interventionprescription.interventionclassdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescription.interventionclassdescriptorid IS 'The way in which an intervention is used: curriculum, supplement, or practice.'; + + +-- +-- Name: COLUMN interventionprescription.deliverymethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescription.deliverymethoddescriptorid IS 'The way in which an intervention was implemented: individual, small group, whole class, or whole school.'; + + +-- +-- Name: COLUMN interventionprescription.mindosage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescription.mindosage IS 'The minimum duration of time in minutes that is recommended for the intervention.'; + + +-- +-- Name: COLUMN interventionprescription.maxdosage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescription.maxdosage IS 'The maximum duration of time in minutes that is recommended for the intervention.'; + + +-- +-- Name: interventionprescriptionappropriategradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptionappropriategradelevel ( + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptionappropriategradelevel OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptionappropriategradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptionappropriategradelevel IS 'Grade levels for the prescribed intervention. If omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionprescriptionappropriategradelevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionappropriategradelevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptionappropriategradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionappropriategradelevel.gradeleveldescriptorid IS 'Grade levels for the prescribed intervention. If omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionprescriptionappropriategradelevel.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionappropriategradelevel.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: interventionprescriptionappropriatesex; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptionappropriatesex ( + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + sexdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptionappropriatesex OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptionappropriatesex; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptionappropriatesex IS 'Sexes for the InterventionPrescription. If omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionprescriptionappropriatesex.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionappropriatesex.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptionappropriatesex.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionappropriatesex.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN interventionprescriptionappropriatesex.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionappropriatesex.sexdescriptorid IS 'Sexes for the InterventionPrescription. If omitted, considered generally applicable.'; + + +-- +-- Name: interventionprescriptiondiagnosis; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptiondiagnosis ( + diagnosisdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptiondiagnosis OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptiondiagnosis; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptiondiagnosis IS 'Targeted purpose of the InterventionPrescription (e.g., attendance issue, dropout risk).'; + + +-- +-- Name: COLUMN interventionprescriptiondiagnosis.diagnosisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptiondiagnosis.diagnosisdescriptorid IS 'Targeted purpose of the InterventionPrescription (e.g., attendance issue, dropout risk).'; + + +-- +-- Name: COLUMN interventionprescriptiondiagnosis.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptiondiagnosis.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptiondiagnosis.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptiondiagnosis.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: interventionprescriptioneducationcontent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptioneducationcontent ( + contentidentifier character varying(225) NOT NULL, + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptioneducationcontent OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptioneducationcontent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptioneducationcontent IS 'Relates the education content source to the education content.'; + + +-- +-- Name: COLUMN interventionprescriptioneducationcontent.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptioneducationcontent.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN interventionprescriptioneducationcontent.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptioneducationcontent.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptioneducationcontent.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptioneducationcontent.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: interventionprescriptionlearningresourcemetadatauri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptionlearningresourcemetadatauri ( + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + learningresourcemetadatauri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptionlearningresourcemetadatauri OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptionlearningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptionlearningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: COLUMN interventionprescriptionlearningresourcemetadatauri.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionlearningresourcemetadatauri.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptionlearningresourcemetadatauri.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionlearningresourcemetadatauri.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN interventionprescriptionlearningresourcemetadatauri.learningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionlearningresourcemetadatauri.learningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: interventionprescriptionpopulationserved; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptionpopulationserved ( + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + populationserveddescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptionpopulationserved OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptionpopulationserved; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptionpopulationserved IS 'A subset of students that are the focus of the InterventionPrescription.'; + + +-- +-- Name: COLUMN interventionprescriptionpopulationserved.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionpopulationserved.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptionpopulationserved.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionpopulationserved.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN interventionprescriptionpopulationserved.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionpopulationserved.populationserveddescriptorid IS 'A subset of students that are the focus of the InterventionPrescription.'; + + +-- +-- Name: interventionprescriptionuri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionprescriptionuri ( + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + uri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionprescriptionuri OWNER TO postgres; + +-- +-- Name: TABLE interventionprescriptionuri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionprescriptionuri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: COLUMN interventionprescriptionuri.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionuri.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionprescriptionuri.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionuri.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN interventionprescriptionuri.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionprescriptionuri.uri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: interventionstaff; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstaff ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstaff OWNER TO postgres; + +-- +-- Name: TABLE interventionstaff; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstaff IS 'Relates the staff member associated with the Intervention.'; + + +-- +-- Name: COLUMN interventionstaff.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstaff.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstaff.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstaff.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventionstaff.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstaff.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: interventionstudy; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudy ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + interventionprescriptioneducationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + participants integer NOT NULL, + deliverymethoddescriptorid integer NOT NULL, + interventionclassdescriptorid integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.interventionstudy OWNER TO postgres; + +-- +-- Name: TABLE interventionstudy; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudy IS 'An experimental or quasi-experimental study of an intervention technique.'; + + +-- +-- Name: COLUMN interventionstudy.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudy.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudy.interventionprescriptioneducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.interventionprescriptioneducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudy.interventionprescriptionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.interventionprescriptionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention prescription.'; + + +-- +-- Name: COLUMN interventionstudy.participants; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.participants IS 'The number of participants observed in the study.'; + + +-- +-- Name: COLUMN interventionstudy.deliverymethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.deliverymethoddescriptorid IS 'The way in which an intervention was implemented: individual, small group, whole class, or whole school.'; + + +-- +-- Name: COLUMN interventionstudy.interventionclassdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudy.interventionclassdescriptorid IS 'The way in which an intervention is used: curriculum, supplement, or practice.'; + + +-- +-- Name: interventionstudyappropriategradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudyappropriategradelevel ( + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudyappropriategradelevel OWNER TO postgres; + +-- +-- Name: TABLE interventionstudyappropriategradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudyappropriategradelevel IS 'Grade levels participating in this study.'; + + +-- +-- Name: COLUMN interventionstudyappropriategradelevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyappropriategradelevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudyappropriategradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyappropriategradelevel.gradeleveldescriptorid IS 'Grade levels participating in this study.'; + + +-- +-- Name: COLUMN interventionstudyappropriategradelevel.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyappropriategradelevel.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: interventionstudyappropriatesex; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudyappropriatesex ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + sexdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudyappropriatesex OWNER TO postgres; + +-- +-- Name: TABLE interventionstudyappropriatesex; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudyappropriatesex IS 'Sexes participating in this study. If omitted, considered generally applicable.'; + + +-- +-- Name: COLUMN interventionstudyappropriatesex.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyappropriatesex.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudyappropriatesex.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyappropriatesex.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudyappropriatesex.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyappropriatesex.sexdescriptorid IS 'Sexes participating in this study. If omitted, considered generally applicable.'; + + +-- +-- Name: interventionstudyeducationcontent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudyeducationcontent ( + contentidentifier character varying(225) NOT NULL, + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudyeducationcontent OWNER TO postgres; + +-- +-- Name: TABLE interventionstudyeducationcontent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudyeducationcontent IS 'Relates the education content source to the education content.'; + + +-- +-- Name: COLUMN interventionstudyeducationcontent.contentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyeducationcontent.contentidentifier IS 'A unique identifier for the EducationContent.'; + + +-- +-- Name: COLUMN interventionstudyeducationcontent.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyeducationcontent.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudyeducationcontent.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyeducationcontent.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: interventionstudyinterventioneffectiveness; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudyinterventioneffectiveness ( + diagnosisdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + populationserveddescriptorid integer NOT NULL, + improvementindex integer, + interventioneffectivenessratingdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudyinterventioneffectiveness OWNER TO postgres; + +-- +-- Name: TABLE interventionstudyinterventioneffectiveness; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudyinterventioneffectiveness IS 'Measurement of the effectiveness of the InterventionStudy per diagnosis.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.diagnosisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.diagnosisdescriptorid IS 'Targeted purpose of the intervention (e.g., attendance issue, dropout risk) for which the effectiveness is measured.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.gradeleveldescriptorid IS 'Grade level for which effectiveness is measured.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.populationserveddescriptorid IS 'Population for which effectiveness is measured.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.improvementindex; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.improvementindex IS 'Along a percentile distribution of students, the improvement index represents the change in an average student''s percentile rank that is considered to be due to the intervention.'; + + +-- +-- Name: COLUMN interventionstudyinterventioneffectiveness.interventioneffectivenessratingdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyinterventioneffectiveness.interventioneffectivenessratingdescriptorid IS 'An intervention demonstrates effectiveness if the research has shown that the program caused an improvement in outcomes. Values: positive effects, potentially positive effects, mixed effects, potentially negative effects, negative effects, and no discernible effects.'; + + +-- +-- Name: interventionstudylearningresourcemetadatauri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudylearningresourcemetadatauri ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + learningresourcemetadatauri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudylearningresourcemetadatauri OWNER TO postgres; + +-- +-- Name: TABLE interventionstudylearningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudylearningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: COLUMN interventionstudylearningresourcemetadatauri.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudylearningresourcemetadatauri.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudylearningresourcemetadatauri.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudylearningresourcemetadatauri.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudylearningresourcemetadatauri.learningresourcemetadatauri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudylearningresourcemetadatauri.learningresourcemetadatauri IS 'The URI (typical a URL) pointing to the metadata entry in a LRMI metadata repository, which describes this content item.'; + + +-- +-- Name: interventionstudypopulationserved; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudypopulationserved ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + populationserveddescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudypopulationserved OWNER TO postgres; + +-- +-- Name: TABLE interventionstudypopulationserved; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudypopulationserved IS 'A subset of students that are the focus of the InterventionStudy.'; + + +-- +-- Name: COLUMN interventionstudypopulationserved.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudypopulationserved.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudypopulationserved.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudypopulationserved.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudypopulationserved.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudypopulationserved.populationserveddescriptorid IS 'A subset of students that are the focus of the InterventionStudy.'; + + +-- +-- Name: interventionstudystateabbreviation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudystateabbreviation ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudystateabbreviation OWNER TO postgres; + +-- +-- Name: TABLE interventionstudystateabbreviation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudystateabbreviation IS 'The abbreviation for the state (within the United States) or outlying area, the school system of which the participants of the study are considered to be a part.'; + + +-- +-- Name: COLUMN interventionstudystateabbreviation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudystateabbreviation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudystateabbreviation.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudystateabbreviation.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudystateabbreviation.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudystateabbreviation.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area, the school system of which the participants of the study are considered to be a part.'; + + +-- +-- Name: interventionstudyuri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionstudyuri ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + uri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionstudyuri OWNER TO postgres; + +-- +-- Name: TABLE interventionstudyuri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionstudyuri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: COLUMN interventionstudyuri.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyuri.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionstudyuri.interventionstudyidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyuri.interventionstudyidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention study.'; + + +-- +-- Name: COLUMN interventionstudyuri.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionstudyuri.uri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: interventionuri; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.interventionuri ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + uri character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.interventionuri OWNER TO postgres; + +-- +-- Name: TABLE interventionuri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.interventionuri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: COLUMN interventionuri.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionuri.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN interventionuri.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionuri.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN interventionuri.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.interventionuri.uri IS 'The URI (typical a URL) pointing to an education content item.'; + + +-- +-- Name: languagedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.languagedescriptor ( + languagedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.languagedescriptor OWNER TO postgres; + +-- +-- Name: TABLE languagedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.languagedescriptor IS 'This descriptor defines the language(s) that are spoken or written. It is strongly recommended that entries use only ISO 639-2 language codes: for CodeValue, use the 3 character code; for ShortDescription and Description use the full language name.'; + + +-- +-- Name: COLUMN languagedescriptor.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.languagedescriptor.languagedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: languageinstructionprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.languageinstructionprogramservicedescriptor ( + languageinstructionprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.languageinstructionprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE languageinstructionprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.languageinstructionprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a language instruction program.'; + + +-- +-- Name: COLUMN languageinstructionprogramservicedescriptor.languageinstructionprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.languageinstructionprogramservicedescriptor.languageinstructionprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: languageusedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.languageusedescriptor ( + languageusedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.languageusedescriptor OWNER TO postgres; + +-- +-- Name: TABLE languageusedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.languageusedescriptor IS 'The category denoting how a language is used.'; + + +-- +-- Name: COLUMN languageusedescriptor.languageusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.languageusedescriptor.languageusedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: learningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningobjective ( + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + objective character varying(60) NOT NULL, + description character varying(1024), + nomenclature character varying(35), + successcriteria character varying(150), + parentlearningobjectiveid character varying(60), + parentnamespace character varying(255), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.learningobjective OWNER TO postgres; + +-- +-- Name: TABLE learningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningobjective IS 'This entity represents identified learning objectives for courses in specific grades.'; + + +-- +-- Name: COLUMN learningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN learningobjective.objective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.objective IS 'The designated title of the LearningObjective.'; + + +-- +-- Name: COLUMN learningobjective.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.description IS 'The description of the LearningObjective.'; + + +-- +-- Name: COLUMN learningobjective.nomenclature; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.nomenclature IS 'Reflects the specific nomenclature used for the LearningObjective.'; + + +-- +-- Name: COLUMN learningobjective.successcriteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.successcriteria IS 'One or more statements that describes the criteria used by teachers and students to check for attainment of a learning objective. This criteria gives clear indications as to the degree to which learning is moving through the Zone or Proximal Development toward independent achievement of the LearningObjective.'; + + +-- +-- Name: COLUMN learningobjective.parentlearningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.parentlearningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjective.parentnamespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjective.parentnamespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: learningobjectiveacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningobjectiveacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningobjectiveacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE learningobjectiveacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningobjectiveacademicsubject IS 'The description of the content or subject area (e.g., arts, mathematics, reading, stenography, or a foreign language) of an assessment.'; + + +-- +-- Name: COLUMN learningobjectiveacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectiveacademicsubject.academicsubjectdescriptorid IS 'The description of the content or subject area (e.g., arts, mathematics, reading, stenography, or a foreign language) of an assessment.'; + + +-- +-- Name: COLUMN learningobjectiveacademicsubject.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectiveacademicsubject.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjectiveacademicsubject.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectiveacademicsubject.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: learningobjectivecontentstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningobjectivecontentstandard ( + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + title character varying(75) NOT NULL, + version character varying(50), + uri character varying(255), + publicationdate date, + publicationyear smallint, + publicationstatusdescriptorid integer, + mandatingeducationorganizationid integer, + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningobjectivecontentstandard OWNER TO postgres; + +-- +-- Name: TABLE learningobjectivecontentstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningobjectivecontentstandard IS 'A reference to the type of content standard (e.g., state, national)'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.title; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.title IS 'The name of the content standard, for example Common Core.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.version; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.version IS 'The version identifier for the content.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.uri IS 'An unambiguous reference to the standards using a network-resolvable URI.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.publicationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.publicationdate IS 'The date on which this content was first published.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.publicationyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.publicationyear IS 'The year at which this content was first published.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.publicationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.publicationstatusdescriptorid IS 'The publication status of the document (i.e., Adopted, Draft, Published, Deprecated, Unknown).'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.mandatingeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.mandatingeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.begindate IS 'The beginning of the period during which this learning standard document is intended for use.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandard.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandard.enddate IS 'The end of the period during which this learning standard document is intended for use.'; + + +-- +-- Name: learningobjectivecontentstandardauthor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningobjectivecontentstandardauthor ( + author character varying(100) NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningobjectivecontentstandardauthor OWNER TO postgres; + +-- +-- Name: TABLE learningobjectivecontentstandardauthor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningobjectivecontentstandardauthor IS 'The person or organization chiefly responsible for the intellectual content of the standard.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandardauthor.author; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandardauthor.author IS 'The person or organization chiefly responsible for the intellectual content of the standard.'; + + +-- +-- Name: COLUMN learningobjectivecontentstandardauthor.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandardauthor.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjectivecontentstandardauthor.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivecontentstandardauthor.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: learningobjectivegradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningobjectivegradelevel ( + gradeleveldescriptorid integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningobjectivegradelevel OWNER TO postgres; + +-- +-- Name: TABLE learningobjectivegradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningobjectivegradelevel IS 'The grade level for which the LearningObjective is targeted. The semantics of null is assumed to mean that the learning objective is not associated with any grade level.'; + + +-- +-- Name: COLUMN learningobjectivegradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivegradelevel.gradeleveldescriptorid IS 'The grade level for which the LearningObjective is targeted. The semantics of null is assumed to mean that the learning objective is not associated with any grade level.'; + + +-- +-- Name: COLUMN learningobjectivegradelevel.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivegradelevel.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjectivegradelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivegradelevel.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: learningobjectivelearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningobjectivelearningstandard ( + learningobjectiveid character varying(60) NOT NULL, + learningstandardid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningobjectivelearningstandard OWNER TO postgres; + +-- +-- Name: TABLE learningobjectivelearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningobjectivelearningstandard IS 'LearningStandard(s) included in this objective.'; + + +-- +-- Name: COLUMN learningobjectivelearningstandard.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivelearningstandard.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjectivelearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivelearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningobjectivelearningstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningobjectivelearningstandard.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: learningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandard ( + learningstandardid character varying(60) NOT NULL, + description character varying(1024) NOT NULL, + learningstandarditemcode character varying(60), + uri character varying(255), + coursetitle character varying(60), + successcriteria character varying(150), + parentlearningstandardid character varying(60), + namespace character varying(255) NOT NULL, + learningstandardcategorydescriptorid integer, + learningstandardscopedescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.learningstandard OWNER TO postgres; + +-- +-- Name: TABLE learningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandard IS 'A statement that describes a specific competency or academic standard.'; + + +-- +-- Name: COLUMN learningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningstandard.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.description IS 'The text of the statement. The textual content that either describes a specific competency such as "Apply the Pythagorean Theorem to determine unknown side lengths in right triangles in real-world and mathematical problems in two and three dimensions." or describes a less granular group of competencies within the taxonomy of the standards document, e.g. "Understand and apply the Pythagorean Theorem," or "Geometry".'; + + +-- +-- Name: COLUMN learningstandard.learningstandarditemcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.learningstandarditemcode IS 'A code designated by the promulgating body to identify the statement, e.g. 1.N.3 (usually not globally unique).'; + + +-- +-- Name: COLUMN learningstandard.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.uri IS 'An unambiguous reference to the statement using a network-resolvable URI.'; + + +-- +-- Name: COLUMN learningstandard.coursetitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.coursetitle IS 'The official Course Title with which this learning standard is associated.'; + + +-- +-- Name: COLUMN learningstandard.successcriteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.successcriteria IS 'One or more statements that describes the criteria used by teachers and students to check for attainment of a learning standard. This criteria gives clear indications as to the degree to which learning is moving through the Zone or Proximal Development toward independent achievement of the LearningStandard.'; + + +-- +-- Name: COLUMN learningstandard.parentlearningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.parentlearningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.namespace IS 'The namespace of the organization or entity who governs the standard. It is recommended the namespaces observe a URI format and begin with a domain name under the governing organization or entity control.'; + + +-- +-- Name: COLUMN learningstandard.learningstandardcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.learningstandardcategorydescriptorid IS 'An additional classification of the type of a specific learning standard.'; + + +-- +-- Name: COLUMN learningstandard.learningstandardscopedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandard.learningstandardscopedescriptorid IS 'Signals the scope of usage the standard. Does not necessarily relate the standard to the governing body.'; + + +-- +-- Name: learningstandardacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + learningstandardid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningstandardacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE learningstandardacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardacademicsubject IS 'Subject area for the LearningStandard.'; + + +-- +-- Name: COLUMN learningstandardacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardacademicsubject.academicsubjectdescriptorid IS 'Subject area for the LearningStandard.'; + + +-- +-- Name: COLUMN learningstandardacademicsubject.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardacademicsubject.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: learningstandardcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardcategorydescriptor ( + learningstandardcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.learningstandardcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE learningstandardcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardcategorydescriptor IS 'An additional classification of the type of a specific learning standard.'; + + +-- +-- Name: COLUMN learningstandardcategorydescriptor.learningstandardcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcategorydescriptor.learningstandardcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: learningstandardcontentstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardcontentstandard ( + learningstandardid character varying(60) NOT NULL, + title character varying(75) NOT NULL, + version character varying(50), + uri character varying(255), + publicationdate date, + publicationyear smallint, + publicationstatusdescriptorid integer, + mandatingeducationorganizationid integer, + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningstandardcontentstandard OWNER TO postgres; + +-- +-- Name: TABLE learningstandardcontentstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardcontentstandard IS 'The content standard from which the LearningStandard was derived.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.title; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.title IS 'The name of the content standard, for example Common Core.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.version; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.version IS 'The version identifier for the content.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.uri; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.uri IS 'An unambiguous reference to the standards using a network-resolvable URI.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.publicationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.publicationdate IS 'The date on which this content was first published.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.publicationyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.publicationyear IS 'The year at which this content was first published.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.publicationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.publicationstatusdescriptorid IS 'The publication status of the document (i.e., Adopted, Draft, Published, Deprecated, Unknown).'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.mandatingeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.mandatingeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.begindate IS 'The beginning of the period during which this learning standard document is intended for use.'; + + +-- +-- Name: COLUMN learningstandardcontentstandard.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandard.enddate IS 'The end of the period during which this learning standard document is intended for use.'; + + +-- +-- Name: learningstandardcontentstandardauthor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardcontentstandardauthor ( + author character varying(100) NOT NULL, + learningstandardid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningstandardcontentstandardauthor OWNER TO postgres; + +-- +-- Name: TABLE learningstandardcontentstandardauthor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardcontentstandardauthor IS 'The person or organization chiefly responsible for the intellectual content of the standard.'; + + +-- +-- Name: COLUMN learningstandardcontentstandardauthor.author; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandardauthor.author IS 'The person or organization chiefly responsible for the intellectual content of the standard.'; + + +-- +-- Name: COLUMN learningstandardcontentstandardauthor.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardcontentstandardauthor.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: learningstandardequivalenceassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardequivalenceassociation ( + namespace character varying(255) NOT NULL, + sourcelearningstandardid character varying(60) NOT NULL, + targetlearningstandardid character varying(60) NOT NULL, + effectivedate date, + learningstandardequivalencestrengthdescriptorid integer, + learningstandardequivalencestrengthdescription character varying(255), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.learningstandardequivalenceassociation OWNER TO postgres; + +-- +-- Name: TABLE learningstandardequivalenceassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardequivalenceassociation IS 'Indicates a directional association of equivalence from a source to a target learning standard.'; + + +-- +-- Name: COLUMN learningstandardequivalenceassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalenceassociation.namespace IS 'The namespace of the organization that has created and owns the association.'; + + +-- +-- Name: COLUMN learningstandardequivalenceassociation.sourcelearningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalenceassociation.sourcelearningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningstandardequivalenceassociation.targetlearningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalenceassociation.targetlearningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningstandardequivalenceassociation.effectivedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalenceassociation.effectivedate IS 'The date that the association is considered to be applicable or effective.'; + + +-- +-- Name: COLUMN learningstandardequivalenceassociation.learningstandardequivalencestrengthdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalenceassociation.learningstandardequivalencestrengthdescriptorid IS 'A measure that indicates the strength or quality of the equivalence relationship.'; + + +-- +-- Name: COLUMN learningstandardequivalenceassociation.learningstandardequivalencestrengthdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalenceassociation.learningstandardequivalencestrengthdescription IS 'Captures supplemental information on the relationship. Recommended for use only when the match is partial.'; + + +-- +-- Name: learningstandardequivalencestrengthdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardequivalencestrengthdescriptor ( + learningstandardequivalencestrengthdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.learningstandardequivalencestrengthdescriptor OWNER TO postgres; + +-- +-- Name: TABLE learningstandardequivalencestrengthdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardequivalencestrengthdescriptor IS 'A measure that indicates the strength or quality of the equivalence relationship.'; + + +-- +-- Name: COLUMN learningstandardequivalencestrengthdescriptor.learningstandardequivalencestrengthdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardequivalencestrengthdescriptor.learningstandardequivalencestrengthdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: learningstandardgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardgradelevel ( + gradeleveldescriptorid integer NOT NULL, + learningstandardid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningstandardgradelevel OWNER TO postgres; + +-- +-- Name: TABLE learningstandardgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardgradelevel IS 'The grade levels for the specific learning standard.'; + + +-- +-- Name: COLUMN learningstandardgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardgradelevel.gradeleveldescriptorid IS 'The grade levels for the specific learning standard.'; + + +-- +-- Name: COLUMN learningstandardgradelevel.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardgradelevel.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: learningstandardidentificationcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardidentificationcode ( + contentstandardname character varying(65) NOT NULL, + identificationcode character varying(60) NOT NULL, + learningstandardid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningstandardidentificationcode OWNER TO postgres; + +-- +-- Name: TABLE learningstandardidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardidentificationcode IS 'A coding scheme that is used for identification and record-keeping purposes by schools, social services, or other agencies to refer to a learning standard.'; + + +-- +-- Name: COLUMN learningstandardidentificationcode.contentstandardname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardidentificationcode.contentstandardname IS 'The name of the content standard, for example Common Core.'; + + +-- +-- Name: COLUMN learningstandardidentificationcode.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardidentificationcode.identificationcode IS 'A unique number or alphanumeric code assigned to a Learning Standard.'; + + +-- +-- Name: COLUMN learningstandardidentificationcode.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardidentificationcode.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: learningstandardprerequisitelearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardprerequisitelearningstandard ( + learningstandardid character varying(60) NOT NULL, + prerequisitelearningstandardid character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.learningstandardprerequisitelearningstandard OWNER TO postgres; + +-- +-- Name: TABLE learningstandardprerequisitelearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardprerequisitelearningstandard IS 'The unique identifier of a prerequisite learning standard item, a competency needed prior to learning this one. (Some items may have no prerequisites others may have one or more prerequisites. This should only be used to represent the immediate predecessors in a competency-based pathway, i.e. not prerequisites of prerequisites).'; + + +-- +-- Name: COLUMN learningstandardprerequisitelearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardprerequisitelearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN learningstandardprerequisitelearningstandard.prerequisitelearningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardprerequisitelearningstandard.prerequisitelearningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: learningstandardscopedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.learningstandardscopedescriptor ( + learningstandardscopedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.learningstandardscopedescriptor OWNER TO postgres; + +-- +-- Name: TABLE learningstandardscopedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.learningstandardscopedescriptor IS 'Signals the scope of usage the standard. Does not necessarily relate the standard to the governing body.'; + + +-- +-- Name: COLUMN learningstandardscopedescriptor.learningstandardscopedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.learningstandardscopedescriptor.learningstandardscopedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: levelofeducationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.levelofeducationdescriptor ( + levelofeducationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.levelofeducationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE levelofeducationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.levelofeducationdescriptor IS 'This descriptor defines the different levels of education achievable.'; + + +-- +-- Name: COLUMN levelofeducationdescriptor.levelofeducationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.levelofeducationdescriptor.levelofeducationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: licensestatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.licensestatusdescriptor ( + licensestatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.licensestatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE licensestatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.licensestatusdescriptor IS 'This descriptor defines the license statuses.'; + + +-- +-- Name: COLUMN licensestatusdescriptor.licensestatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.licensestatusdescriptor.licensestatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: licensetypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.licensetypedescriptor ( + licensetypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.licensetypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE licensetypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.licensetypedescriptor IS 'This descriptor defines the type of a license.'; + + +-- +-- Name: COLUMN licensetypedescriptor.licensetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.licensetypedescriptor.licensetypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: limitedenglishproficiencydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.limitedenglishproficiencydescriptor ( + limitedenglishproficiencydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.limitedenglishproficiencydescriptor OWNER TO postgres; + +-- +-- Name: TABLE limitedenglishproficiencydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.limitedenglishproficiencydescriptor IS 'This descriptor defines the indications that the student has been identified as limited English proficient by the Language Proficiency Assessment Committee (LPAC), or English proficient. The mapping of descriptor values to known Ed-Fi enumeration values is required.'; + + +-- +-- Name: COLUMN limitedenglishproficiencydescriptor.limitedenglishproficiencydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.limitedenglishproficiencydescriptor.limitedenglishproficiencydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: localedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.localedescriptor ( + localedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.localedescriptor OWNER TO postgres; + +-- +-- Name: TABLE localedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.localedescriptor IS 'A general geographic indicator that categorizes U.S. territory (e.g., City, Suburban).'; + + +-- +-- Name: COLUMN localedescriptor.localedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localedescriptor.localedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: localeducationagency; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.localeducationagency ( + localeducationagencyid integer NOT NULL, + localeducationagencycategorydescriptorid integer NOT NULL, + charterstatusdescriptorid integer, + parentlocaleducationagencyid integer, + educationservicecenterid integer, + stateeducationagencyid integer +); + + +ALTER TABLE edfi.localeducationagency OWNER TO postgres; + +-- +-- Name: TABLE localeducationagency; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.localeducationagency IS 'This entity represents an administrative unit at the local level which exists primarily to operate schools or to contract for educational services. It includes school districts, charter schools, charter management organizations, or other local administrative organizations.'; + + +-- +-- Name: COLUMN localeducationagency.localeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagency.localeducationagencyid IS 'The identifier assigned to a local education agency.'; + + +-- +-- Name: COLUMN localeducationagency.localeducationagencycategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagency.localeducationagencycategorydescriptorid IS 'The category of local education agency/district. For example: Independent or Charter.'; + + +-- +-- Name: COLUMN localeducationagency.charterstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagency.charterstatusdescriptorid IS 'A school or agency providing free public elementary or secondary education to eligible students under a specific charter granted by the state legislature or other appropriate authority and designated by such authority to be a charter school.'; + + +-- +-- Name: COLUMN localeducationagency.parentlocaleducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagency.parentlocaleducationagencyid IS 'The identifier assigned to a local education agency.'; + + +-- +-- Name: COLUMN localeducationagency.educationservicecenterid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagency.educationservicecenterid IS 'The identifier assigned to an education service center.'; + + +-- +-- Name: COLUMN localeducationagency.stateeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagency.stateeducationagencyid IS 'The identifier assigned to a state education agency.'; + + +-- +-- Name: localeducationagencyaccountability; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.localeducationagencyaccountability ( + localeducationagencyid integer NOT NULL, + schoolyear smallint NOT NULL, + gunfreeschoolsactreportingstatusdescriptorid integer, + schoolchoiceimplementstatusdescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.localeducationagencyaccountability OWNER TO postgres; + +-- +-- Name: TABLE localeducationagencyaccountability; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.localeducationagencyaccountability IS 'This entity maintains information about federal reporting and accountability for local education agencies.'; + + +-- +-- Name: COLUMN localeducationagencyaccountability.localeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyaccountability.localeducationagencyid IS 'The identifier assigned to a local education agency.'; + + +-- +-- Name: COLUMN localeducationagencyaccountability.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyaccountability.schoolyear IS 'The school year for which the accountability is reported.'; + + +-- +-- Name: COLUMN localeducationagencyaccountability.gunfreeschoolsactreportingstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyaccountability.gunfreeschoolsactreportingstatusdescriptorid IS 'An indication of whether the school or Local Education Agency (LEA) submitted a Gun-Free Schools Act (GFSA) of 1994 report to the state, as defined by Title 18, Section 921.'; + + +-- +-- Name: COLUMN localeducationagencyaccountability.schoolchoiceimplementstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyaccountability.schoolchoiceimplementstatusdescriptorid IS 'An indication of whether the LEA was able to implement the provisions for public school choice under Title I, Part A, Section 1116 of ESEA as amended.'; + + +-- +-- Name: localeducationagencycategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.localeducationagencycategorydescriptor ( + localeducationagencycategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.localeducationagencycategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE localeducationagencycategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.localeducationagencycategorydescriptor IS 'The category of local education agency/district. For example: Independent or Charter.'; + + +-- +-- Name: COLUMN localeducationagencycategorydescriptor.localeducationagencycategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencycategorydescriptor.localeducationagencycategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: localeducationagencyfederalfunds; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.localeducationagencyfederalfunds ( + fiscalyear integer NOT NULL, + localeducationagencyid integer NOT NULL, + innovativedollarsspent money, + innovativedollarsspentstrategicpriorities money, + innovativeprogramsfundsreceived money, + schoolimprovementallocation money, + schoolimprovementreservedfundspercentage numeric(5,4), + supplementaleducationalservicesfundsspent money, + supplementaleducationalservicesperpupilexpenditure money, + stateassessmentadministrationfunding numeric(5,4), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.localeducationagencyfederalfunds OWNER TO postgres; + +-- +-- Name: TABLE localeducationagencyfederalfunds; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.localeducationagencyfederalfunds IS 'Contains the information about the reception and use of federal funds for reporting purposes.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.fiscalyear IS 'The fiscal year for which the federal funds are received.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.localeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.localeducationagencyid IS 'The identifier assigned to a local education agency.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.innovativedollarsspent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.innovativedollarsspent IS 'The total Title V, Part A funds expended by LEAs.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.innovativedollarsspentstrategicpriorities; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.innovativedollarsspentstrategicpriorities IS 'The total amount of Title V, Part A funds expended by LEAs for the four strategic priorities.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.innovativeprogramsfundsreceived; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.innovativeprogramsfundsreceived IS 'The total Title V, Part A funds received by LEAs.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.schoolimprovementallocation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.schoolimprovementallocation IS 'The amount of Section 1003(a) and 1003(g) allocations to LEAs.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.schoolimprovementreservedfundspercentage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.schoolimprovementreservedfundspercentage IS 'An indication of the percentage of the Title I, Part A allocation that the SEA reserved in accordance with Section 1003(a) of ESEA and 200.100(a) of ED''s regulations governing the reservation of funds for school improvement under Section 1003(a) of ESEA.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.supplementaleducationalservicesfundsspent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.supplementaleducationalservicesfundsspent IS 'The dollar amount spent on supplemental educational services during the school year under Title I, Part A, Section 1116 of ESEA as amended.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.supplementaleducationalservicesperpupilexpenditure; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.supplementaleducationalservicesperpupilexpenditure IS 'The maximum dollar amount that may be spent per child for expenditures related to supplemental educational services under Title I of the ESEA.'; + + +-- +-- Name: COLUMN localeducationagencyfederalfunds.stateassessmentadministrationfunding; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.localeducationagencyfederalfunds.stateassessmentadministrationfunding IS 'The percentage of funds used to administer assessments required by Section 1111(b) or to carry out other activities described in Section 6111 and other activities related to ensuring that the state''s schools and LEAs are held accountable for results.'; + + +-- +-- Name: location; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.location ( + classroomidentificationcode character varying(60) NOT NULL, + schoolid integer NOT NULL, + maximumnumberofseats integer, + optimalnumberofseats integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.location OWNER TO postgres; + +-- +-- Name: TABLE location; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.location IS 'This entity represents the physical space where students gather for a particular class/section. The Location may be an indoor or outdoor area designated for the purpose of meeting the educational needs of students.'; + + +-- +-- Name: COLUMN location.classroomidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.location.classroomidentificationcode IS 'A unique number or alphanumeric code assigned to a room by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN location.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.location.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN location.maximumnumberofseats; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.location.maximumnumberofseats IS 'The most number of seats the class can maintain.'; + + +-- +-- Name: COLUMN location.optimalnumberofseats; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.location.optimalnumberofseats IS 'The number of seats that is most favorable to the class.'; + + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.magnetspecialprogramemphasisschooldescriptor ( + magnetspecialprogramemphasisschooldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.magnetspecialprogramemphasisschooldescriptor OWNER TO postgres; + +-- +-- Name: TABLE magnetspecialprogramemphasisschooldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.magnetspecialprogramemphasisschooldescriptor IS 'A school that has been designed to attract students of different racial/ethnic backgrounds for the purpose of reducing, preventing or eliminating racial isolation; and/or to provide an academic or social focus on a particular theme (e.g., science/math, performing arts, gifted/talented, or foreign language).'; + + +-- +-- Name: COLUMN magnetspecialprogramemphasisschooldescriptor.magnetspecialprogramemphasisschooldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.magnetspecialprogramemphasisschooldescriptor.magnetspecialprogramemphasisschooldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: mediumofinstructiondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.mediumofinstructiondescriptor ( + mediumofinstructiondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.mediumofinstructiondescriptor OWNER TO postgres; + +-- +-- Name: TABLE mediumofinstructiondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.mediumofinstructiondescriptor IS 'The media through which teachers provide instruction to students and students and teachers communicate about instructional matters.'; + + +-- +-- Name: COLUMN mediumofinstructiondescriptor.mediumofinstructiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.mediumofinstructiondescriptor.mediumofinstructiondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: methodcreditearneddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.methodcreditearneddescriptor ( + methodcreditearneddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.methodcreditearneddescriptor OWNER TO postgres; + +-- +-- Name: TABLE methodcreditearneddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.methodcreditearneddescriptor IS 'The method the credits were earned, for example: Classroom, Examination, Transfer.'; + + +-- +-- Name: COLUMN methodcreditearneddescriptor.methodcreditearneddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.methodcreditearneddescriptor.methodcreditearneddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: migranteducationprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.migranteducationprogramservicedescriptor ( + migranteducationprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.migranteducationprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE migranteducationprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.migranteducationprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a migrant education program.'; + + +-- +-- Name: COLUMN migranteducationprogramservicedescriptor.migranteducationprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.migranteducationprogramservicedescriptor.migranteducationprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: monitoreddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.monitoreddescriptor ( + monitoreddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.monitoreddescriptor OWNER TO postgres; + +-- +-- Name: TABLE monitoreddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.monitoreddescriptor IS 'This descriptor defines monitorization statuses for students who are no longer receiving language instruction program services.'; + + +-- +-- Name: COLUMN monitoreddescriptor.monitoreddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.monitoreddescriptor.monitoreddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: neglectedordelinquentprogramdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.neglectedordelinquentprogramdescriptor ( + neglectedordelinquentprogramdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.neglectedordelinquentprogramdescriptor OWNER TO postgres; + +-- +-- Name: TABLE neglectedordelinquentprogramdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.neglectedordelinquentprogramdescriptor IS 'This descriptor defines the type of program under ESEA Title I, Part D, Subpart 1 (state programs) or Subpart 2 (LEA).'; + + +-- +-- Name: COLUMN neglectedordelinquentprogramdescriptor.neglectedordelinquentprogramdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.neglectedordelinquentprogramdescriptor.neglectedordelinquentprogramdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: neglectedordelinquentprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.neglectedordelinquentprogramservicedescriptor ( + neglectedordelinquentprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.neglectedordelinquentprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE neglectedordelinquentprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.neglectedordelinquentprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a neglected or delinquent program.'; + + +-- +-- Name: COLUMN neglectedordelinquentprogramservicedescriptor.neglectedordelinquentprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.neglectedordelinquentprogramservicedescriptor.neglectedordelinquentprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: networkpurposedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.networkpurposedescriptor ( + networkpurposedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.networkpurposedescriptor OWNER TO postgres; + +-- +-- Name: TABLE networkpurposedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.networkpurposedescriptor IS 'The purpose(s) of the network, e.g. shared services, collective procurement, etc.'; + + +-- +-- Name: COLUMN networkpurposedescriptor.networkpurposedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.networkpurposedescriptor.networkpurposedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: objectiveassessment; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.objectiveassessment ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + maxrawscore numeric(15,5), + percentofassessment numeric(5,4), + nomenclature character varying(35), + description character varying(1024), + parentidentificationcode character varying(60), + academicsubjectdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.objectiveassessment OWNER TO postgres; + +-- +-- Name: TABLE objectiveassessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.objectiveassessment IS 'This entity represents subtests that assess specific learning objectives.'; + + +-- +-- Name: COLUMN objectiveassessment.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN objectiveassessment.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessment.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN objectiveassessment.maxrawscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.maxrawscore IS 'The maximum raw score achievable across all assessment items that are correct and scored at the maximum.'; + + +-- +-- Name: COLUMN objectiveassessment.percentofassessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.percentofassessment IS 'The percentage of the Assessment that tests this objective.'; + + +-- +-- Name: COLUMN objectiveassessment.nomenclature; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.nomenclature IS 'Reflects the specific nomenclature used for this level of ObjectiveAssessment.'; + + +-- +-- Name: COLUMN objectiveassessment.description; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.description IS 'The description of the ObjectiveAssessment (e.g., vocabulary, measurement, or geometry).'; + + +-- +-- Name: COLUMN objectiveassessment.parentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.parentidentificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessment.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessment.academicsubjectdescriptorid IS 'The subject area of the objective assessment.'; + + +-- +-- Name: objectiveassessmentassessmentitem; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.objectiveassessmentassessmentitem ( + assessmentidentifier character varying(60) NOT NULL, + assessmentitemidentificationcode character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.objectiveassessmentassessmentitem OWNER TO postgres; + +-- +-- Name: TABLE objectiveassessmentassessmentitem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.objectiveassessmentassessmentitem IS 'References individual test items, if appropriate.'; + + +-- +-- Name: COLUMN objectiveassessmentassessmentitem.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentassessmentitem.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentassessmentitem.assessmentitemidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentassessmentitem.assessmentitemidentificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessmentassessmentitem.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentassessmentitem.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessmentassessmentitem.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentassessmentitem.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: objectiveassessmentlearningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.objectiveassessmentlearningobjective ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + learningobjectivenamespace character varying(255) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.objectiveassessmentlearningobjective OWNER TO postgres; + +-- +-- Name: TABLE objectiveassessmentlearningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.objectiveassessmentlearningobjective IS 'References the LearningObjective(s) the ObjectiveAssessment tests.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningobjective.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningobjective.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningobjective.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningobjective.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN objectiveassessmentlearningobjective.learningobjectivenamespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningobjective.learningobjectivenamespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningobjective.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: objectiveassessmentlearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.objectiveassessmentlearningstandard ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + learningstandardid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.objectiveassessmentlearningstandard OWNER TO postgres; + +-- +-- Name: TABLE objectiveassessmentlearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.objectiveassessmentlearningstandard IS 'LearningStandard tested by this ObjectiveAssessment.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningstandard.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningstandard.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningstandard.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningstandard.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessmentlearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN objectiveassessmentlearningstandard.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentlearningstandard.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: objectiveassessmentperformancelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.objectiveassessmentperformancelevel ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + performanceleveldescriptorid integer NOT NULL, + minimumscore character varying(35), + maximumscore character varying(35), + resultdatatypetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.objectiveassessmentperformancelevel OWNER TO postgres; + +-- +-- Name: TABLE objectiveassessmentperformancelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.objectiveassessmentperformancelevel IS 'Definition of the performance levels and the associated cut scores. Three styles are supported: + 1. Specification of performance level by minimum and maximum score + 2. Specification of performance level by cut score, using only minimum score + 3. Specification of performance level without any mapping to scores'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.assessmentreportingmethoddescriptorid IS 'The method that the instructor of the class uses to report the performance and achievement of all students. It may be a qualitative method such as individualized teacher comments or a quantitative method such as a letter or numerical grade. In some cases, more than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.performanceleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.performanceleveldescriptorid IS 'The performance level(s) defined for the assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.minimumscore IS 'The minimum score required to make the indicated level of performance.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.maximumscore IS 'The maximum score to make the indicated level of performance.'; + + +-- +-- Name: COLUMN objectiveassessmentperformancelevel.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentperformancelevel.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: objectiveassessmentscore; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.objectiveassessmentscore ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + minimumscore character varying(35), + maximumscore character varying(35), + resultdatatypetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.objectiveassessmentscore OWNER TO postgres; + +-- +-- Name: TABLE objectiveassessmentscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.objectiveassessmentscore IS 'Definition of the scores to be expected from this objective assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.assessmentreportingmethoddescriptorid IS 'The method that the administrator of the assessment uses to report the performance and achievement of all students. It may be a qualitative method such as performance level descriptors or a quantitative method such as a numerical grade or cut score. More than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.minimumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.minimumscore IS 'The minimum score possible on the assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.maximumscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.maximumscore IS 'The maximum score possible on the assessment.'; + + +-- +-- Name: COLUMN objectiveassessmentscore.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.objectiveassessmentscore.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: oldethnicitydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.oldethnicitydescriptor ( + oldethnicitydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.oldethnicitydescriptor OWNER TO postgres; + +-- +-- Name: TABLE oldethnicitydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.oldethnicitydescriptor IS 'Previous definition of Ethnicity combining Hispanic/Latino and Race.'; + + +-- +-- Name: COLUMN oldethnicitydescriptor.oldethnicitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.oldethnicitydescriptor.oldethnicitydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: openstaffposition; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.openstaffposition ( + educationorganizationid integer NOT NULL, + requisitionnumber character varying(20) NOT NULL, + employmentstatusdescriptorid integer NOT NULL, + staffclassificationdescriptorid integer NOT NULL, + positiontitle character varying(100), + programassignmentdescriptorid integer, + dateposted date NOT NULL, + datepostingremoved date, + postingresultdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.openstaffposition OWNER TO postgres; + +-- +-- Name: TABLE openstaffposition; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.openstaffposition IS 'This entity represents an open staff position that the education organization is seeking to fill.'; + + +-- +-- Name: COLUMN openstaffposition.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN openstaffposition.requisitionnumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.requisitionnumber IS 'The number or identifier assigned to an open staff position, typically a requisition number assigned by Human Resources.'; + + +-- +-- Name: COLUMN openstaffposition.employmentstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.employmentstatusdescriptorid IS 'Reflects the type of employment or contract desired for the position; for example: + Probationary + Contractual + Substitute/temporary + Tenured or permanent + Volunteer/no contract + ...'; + + +-- +-- Name: COLUMN openstaffposition.staffclassificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.staffclassificationdescriptorid IS 'The titles of employment, official status, or rank of education staff.'; + + +-- +-- Name: COLUMN openstaffposition.positiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.positiontitle IS 'The descriptive name of an individual''s position.'; + + +-- +-- Name: COLUMN openstaffposition.programassignmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.programassignmentdescriptorid IS 'The name of the program for which the OpenStaffPosition will be assigned; for example: + Regular education + Title I-Academic + Title I-Non-Academic + Special Education'' + Bilingual/English as a Second Language.'; + + +-- +-- Name: COLUMN openstaffposition.dateposted; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.dateposted IS 'Date the OpenStaffPosition was posted.'; + + +-- +-- Name: COLUMN openstaffposition.datepostingremoved; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.datepostingremoved IS 'The date the posting was removed or filled.'; + + +-- +-- Name: COLUMN openstaffposition.postingresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffposition.postingresultdescriptorid IS 'Indication of whether the OpenStaffPosition was filled or retired without filling.'; + + +-- +-- Name: openstaffpositionacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.openstaffpositionacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + requisitionnumber character varying(20) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.openstaffpositionacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE openstaffpositionacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.openstaffpositionacademicsubject IS 'The teaching field required for the OpenStaffPosition, for example English/Language Arts, Reading, Mathematics, Science, Social Sciences, etc.'; + + +-- +-- Name: COLUMN openstaffpositionacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffpositionacademicsubject.academicsubjectdescriptorid IS 'The teaching field required for the OpenStaffPosition, for example English/Language Arts, Reading, Mathematics, Science, Social Sciences, etc.'; + + +-- +-- Name: COLUMN openstaffpositionacademicsubject.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffpositionacademicsubject.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN openstaffpositionacademicsubject.requisitionnumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffpositionacademicsubject.requisitionnumber IS 'The number or identifier assigned to an open staff position, typically a requisition number assigned by Human Resources.'; + + +-- +-- Name: openstaffpositioninstructionalgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.openstaffpositioninstructionalgradelevel ( + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + requisitionnumber character varying(20) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.openstaffpositioninstructionalgradelevel OWNER TO postgres; + +-- +-- Name: TABLE openstaffpositioninstructionalgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.openstaffpositioninstructionalgradelevel IS 'The set of grade levels for which the position''s assignment is responsible.'; + + +-- +-- Name: COLUMN openstaffpositioninstructionalgradelevel.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffpositioninstructionalgradelevel.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN openstaffpositioninstructionalgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffpositioninstructionalgradelevel.gradeleveldescriptorid IS 'The set of grade levels for which the position''s assignment is responsible.'; + + +-- +-- Name: COLUMN openstaffpositioninstructionalgradelevel.requisitionnumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.openstaffpositioninstructionalgradelevel.requisitionnumber IS 'The number or identifier assigned to an open staff position, typically a requisition number assigned by Human Resources.'; + + +-- +-- Name: operationalstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.operationalstatusdescriptor ( + operationalstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.operationalstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE operationalstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.operationalstatusdescriptor IS 'The current operational status of the education organization (e.g., active, inactive).'; + + +-- +-- Name: COLUMN operationalstatusdescriptor.operationalstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.operationalstatusdescriptor.operationalstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: organizationdepartment; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.organizationdepartment ( + organizationdepartmentid integer NOT NULL, + academicsubjectdescriptorid integer, + parenteducationorganizationid integer +); + + +ALTER TABLE edfi.organizationdepartment OWNER TO postgres; + +-- +-- Name: TABLE organizationdepartment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.organizationdepartment IS 'An organizational unit of another education organization, often devoted to a particular academic discipline, area of study, or organization function.'; + + +-- +-- Name: COLUMN organizationdepartment.organizationdepartmentid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.organizationdepartment.organizationdepartmentid IS 'The unique identification code for the OrganizationDepartment.'; + + +-- +-- Name: COLUMN organizationdepartment.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.organizationdepartment.academicsubjectdescriptorid IS 'The intended major subject area of the department.'; + + +-- +-- Name: COLUMN organizationdepartment.parenteducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.organizationdepartment.parenteducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: othernametypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.othernametypedescriptor ( + othernametypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.othernametypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE othernametypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.othernametypedescriptor IS 'The types of alternate names for a person.'; + + +-- +-- Name: COLUMN othernametypedescriptor.othernametypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.othernametypedescriptor.othernametypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: parent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parent ( + parentusi integer NOT NULL, + personaltitleprefix character varying(30), + firstname character varying(75) NOT NULL, + middlename character varying(75), + lastsurname character varying(75) NOT NULL, + generationcodesuffix character varying(10), + maidenname character varying(75), + sexdescriptorid integer, + loginid character varying(60), + personid character varying(32), + sourcesystemdescriptorid integer, + highestcompletedlevelofeducationdescriptorid integer, + parentuniqueid character varying(32) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.parent OWNER TO postgres; + +-- +-- Name: TABLE parent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parent IS 'This entity represents a parent or guardian of a student, such as mother, father, or caretaker.'; + + +-- +-- Name: COLUMN parent.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parent.personaltitleprefix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.personaltitleprefix IS 'A prefix used to denote the title, degree, position, or seniority of the person.'; + + +-- +-- Name: COLUMN parent.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN parent.middlename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.middlename IS 'A secondary name given to an individual at birth, baptism, or during another naming ceremony.'; + + +-- +-- Name: COLUMN parent.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN parent.generationcodesuffix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.generationcodesuffix IS 'An appendage, if any, used to denote an individual''s generation in his family (e.g., Jr., Sr., III).'; + + +-- +-- Name: COLUMN parent.maidenname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.maidenname IS 'The person''s maiden name.'; + + +-- +-- Name: COLUMN parent.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.sexdescriptorid IS 'A person''s gender.'; + + +-- +-- Name: COLUMN parent.loginid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.loginid IS 'The login ID for the user; used for security access control interface.'; + + +-- +-- Name: COLUMN parent.personid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.personid IS 'A unique alphanumeric code assigned to a person.'; + + +-- +-- Name: COLUMN parent.sourcesystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.sourcesystemdescriptorid IS 'This descriptor defines the originating record source system for the person.'; + + +-- +-- Name: COLUMN parent.highestcompletedlevelofeducationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.highestcompletedlevelofeducationdescriptorid IS 'The extent of formal instruction an individual has received (e.g., the highest grade in school completed or its equivalent or the highest degree received).'; + + +-- +-- Name: COLUMN parent.parentuniqueid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parent.parentuniqueid IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: parent_parentusi_seq; Type: SEQUENCE; Schema: edfi; Owner: postgres +-- + +CREATE SEQUENCE edfi.parent_parentusi_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE edfi.parent_parentusi_seq OWNER TO postgres; + +-- +-- Name: parent_parentusi_seq; Type: SEQUENCE OWNED BY; Schema: edfi; Owner: postgres +-- + +ALTER SEQUENCE edfi.parent_parentusi_seq OWNED BY edfi.parent.parentusi; + + +-- +-- Name: parentaddress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentaddress ( + addresstypedescriptorid integer NOT NULL, + city character varying(30) NOT NULL, + parentusi integer NOT NULL, + postalcode character varying(17) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + apartmentroomsuitenumber character varying(50), + buildingsitenumber character varying(20), + nameofcounty character varying(30), + countyfipscode character varying(5), + latitude character varying(20), + longitude character varying(20), + donotpublishindicator boolean, + congressionaldistrict character varying(30), + localedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentaddress OWNER TO postgres; + +-- +-- Name: TABLE parentaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentaddress IS 'Parent''s address, if different from the student address.'; + + +-- +-- Name: COLUMN parentaddress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN parentaddress.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN parentaddress.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parentaddress.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN parentaddress.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN parentaddress.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN parentaddress.apartmentroomsuitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.apartmentroomsuitenumber IS 'The apartment, room, or suite number of an address.'; + + +-- +-- Name: COLUMN parentaddress.buildingsitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.buildingsitenumber IS 'The number of the building on the site, if more than one building shares the same address.'; + + +-- +-- Name: COLUMN parentaddress.nameofcounty; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.nameofcounty IS 'The name of the county, parish, borough, or comparable unit (within a state) in + ''which an address is located.'; + + +-- +-- Name: COLUMN parentaddress.countyfipscode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.countyfipscode IS 'The Federal Information Processing Standards (FIPS) numeric code for the county issued by the National Institute of Standards and Technology (NIST). Counties are considered to be the "first-order subdivisions" of each State and statistically equivalent entity, regardless of their local designations (county, parish, borough, etc.) Counties in different States will have the same code. A unique county number is created when combined with the 2-digit FIPS State Code.'; + + +-- +-- Name: COLUMN parentaddress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN parentaddress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN parentaddress.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.donotpublishindicator IS 'An indication that the address should not be published.'; + + +-- +-- Name: COLUMN parentaddress.congressionaldistrict; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.congressionaldistrict IS 'The congressional district in which an address is located.'; + + +-- +-- Name: COLUMN parentaddress.localedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddress.localedescriptorid IS 'A general geographic indicator that categorizes U.S. territory (e.g., City, Suburban).'; + + +-- +-- Name: parentaddressperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentaddressperiod ( + addresstypedescriptorid integer NOT NULL, + begindate date NOT NULL, + city character varying(30) NOT NULL, + parentusi integer NOT NULL, + postalcode character varying(17) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentaddressperiod OWNER TO postgres; + +-- +-- Name: TABLE parentaddressperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentaddressperiod IS 'The time periods for which the address is valid. For physical addresses, the periods in which the person lived at that address.'; + + +-- +-- Name: COLUMN parentaddressperiod.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN parentaddressperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN parentaddressperiod.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN parentaddressperiod.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parentaddressperiod.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN parentaddressperiod.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN parentaddressperiod.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN parentaddressperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentaddressperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: parentelectronicmail; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentelectronicmail ( + electronicmailaddress character varying(128) NOT NULL, + electronicmailtypedescriptorid integer NOT NULL, + parentusi integer NOT NULL, + primaryemailaddressindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentelectronicmail OWNER TO postgres; + +-- +-- Name: TABLE parentelectronicmail; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentelectronicmail IS 'The numbers, letters, and symbols used to identify an electronic mail (e-mail) user within the network to which the individual or organization belongs.'; + + +-- +-- Name: COLUMN parentelectronicmail.electronicmailaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentelectronicmail.electronicmailaddress IS 'The electronic mail (e-mail) address listed for an individual or organization.'; + + +-- +-- Name: COLUMN parentelectronicmail.electronicmailtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentelectronicmail.electronicmailtypedescriptorid IS 'The type of email listed for an individual or organization. For example: Home/Personal, Work, etc.)'; + + +-- +-- Name: COLUMN parentelectronicmail.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentelectronicmail.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parentelectronicmail.primaryemailaddressindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentelectronicmail.primaryemailaddressindicator IS 'An indication that the electronic mail address should be used as the principal electronic mail address for an individual or organization.'; + + +-- +-- Name: COLUMN parentelectronicmail.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentelectronicmail.donotpublishindicator IS 'An indication that the electronic email address should not be published.'; + + +-- +-- Name: parentinternationaladdress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentinternationaladdress ( + addresstypedescriptorid integer NOT NULL, + parentusi integer NOT NULL, + addressline1 character varying(150) NOT NULL, + addressline2 character varying(150), + addressline3 character varying(150), + addressline4 character varying(150), + countrydescriptorid integer NOT NULL, + latitude character varying(20), + longitude character varying(20), + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentinternationaladdress OWNER TO postgres; + +-- +-- Name: TABLE parentinternationaladdress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentinternationaladdress IS 'The set of elements that describes an international address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN parentinternationaladdress.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parentinternationaladdress.addressline1; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.addressline1 IS 'The first line of the address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.addressline2; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.addressline2 IS 'The second line of the address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.addressline3; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.addressline3 IS 'The third line of the address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.addressline4; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.addressline4 IS 'The fourth line of the address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.countrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.countrydescriptorid IS 'The name of the country. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: COLUMN parentinternationaladdress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.begindate IS 'The first date the address is valid. For physical addresses, the date the person moved to that address.'; + + +-- +-- Name: COLUMN parentinternationaladdress.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentinternationaladdress.enddate IS 'The last date the address is valid. For physical addresses, this would be the date the person moved from that address.'; + + +-- +-- Name: parentlanguage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentlanguage ( + languagedescriptorid integer NOT NULL, + parentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentlanguage OWNER TO postgres; + +-- +-- Name: TABLE parentlanguage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentlanguage IS 'The language(s) the individual uses to communicate. It is strongly recommended that entries use only ISO 639-2 language codes.'; + + +-- +-- Name: COLUMN parentlanguage.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentlanguage.languagedescriptorid IS 'A specification of which written or spoken communication is being used.'; + + +-- +-- Name: COLUMN parentlanguage.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentlanguage.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: parentlanguageuse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentlanguageuse ( + languagedescriptorid integer NOT NULL, + languageusedescriptorid integer NOT NULL, + parentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentlanguageuse OWNER TO postgres; + +-- +-- Name: TABLE parentlanguageuse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentlanguageuse IS 'A description of how the language is used (e.g. Home Language, Native Language, Spoken Language).'; + + +-- +-- Name: COLUMN parentlanguageuse.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentlanguageuse.languagedescriptorid IS 'A specification of which written or spoken communication is being used.'; + + +-- +-- Name: COLUMN parentlanguageuse.languageusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentlanguageuse.languageusedescriptorid IS 'A description of how the language is used (e.g. Home Language, Native Language, Spoken Language).'; + + +-- +-- Name: COLUMN parentlanguageuse.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentlanguageuse.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: parentothername; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentothername ( + othernametypedescriptorid integer NOT NULL, + parentusi integer NOT NULL, + personaltitleprefix character varying(30), + firstname character varying(75) NOT NULL, + middlename character varying(75), + lastsurname character varying(75) NOT NULL, + generationcodesuffix character varying(10), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentothername OWNER TO postgres; + +-- +-- Name: TABLE parentothername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentothername IS 'Other names (e.g., alias, nickname, previous legal name) associated with a person.'; + + +-- +-- Name: COLUMN parentothername.othernametypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.othernametypedescriptorid IS 'The types of alternate names for a person.'; + + +-- +-- Name: COLUMN parentothername.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parentothername.personaltitleprefix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.personaltitleprefix IS 'A prefix used to denote the title, degree, position, or seniority of the person.'; + + +-- +-- Name: COLUMN parentothername.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN parentothername.middlename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.middlename IS 'A secondary name given to an individual at birth, baptism, or during another naming ceremony.'; + + +-- +-- Name: COLUMN parentothername.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN parentothername.generationcodesuffix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentothername.generationcodesuffix IS 'An appendage, if any, used to denote an individual''s generation in his family (e.g., Jr., Sr., III).'; + + +-- +-- Name: parentpersonalidentificationdocument; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parentpersonalidentificationdocument ( + identificationdocumentusedescriptorid integer NOT NULL, + parentusi integer NOT NULL, + personalinformationverificationdescriptorid integer NOT NULL, + documenttitle character varying(60), + documentexpirationdate date, + issuerdocumentidentificationcode character varying(60), + issuername character varying(150), + issuercountrydescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parentpersonalidentificationdocument OWNER TO postgres; + +-- +-- Name: TABLE parentpersonalidentificationdocument; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parentpersonalidentificationdocument IS 'The documents presented as evident to verify one''s personal identity; for example: drivers license, passport, birth certificate, etc.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.identificationdocumentusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.identificationdocumentusedescriptorid IS 'The primary function of the document used for establishing identity.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.personalinformationverificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.personalinformationverificationdescriptorid IS 'The category of the document relative to its purpose.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.documenttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.documenttitle IS 'The title of the document given by the issuer.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.documentexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.documentexpirationdate IS 'The day when the document expires, if null then never expires.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.issuerdocumentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.issuerdocumentidentificationcode IS 'The unique identifier on the issuer''s identification system.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.issuername IS 'Name of the entity or institution that issued the document.'; + + +-- +-- Name: COLUMN parentpersonalidentificationdocument.issuercountrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parentpersonalidentificationdocument.issuercountrydescriptorid IS 'Country of origin of the document. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: parenttelephone; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.parenttelephone ( + parentusi integer NOT NULL, + telephonenumber character varying(24) NOT NULL, + telephonenumbertypedescriptorid integer NOT NULL, + orderofpriority integer, + textmessagecapabilityindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.parenttelephone OWNER TO postgres; + +-- +-- Name: TABLE parenttelephone; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.parenttelephone IS 'The 10-digit telephone number, including the area code, for the person.'; + + +-- +-- Name: COLUMN parenttelephone.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parenttelephone.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN parenttelephone.telephonenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parenttelephone.telephonenumber IS 'The telephone number including the area code, and extension, if applicable.'; + + +-- +-- Name: COLUMN parenttelephone.telephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parenttelephone.telephonenumbertypedescriptorid IS 'The type of communication number listed for an individual or organization.'; + + +-- +-- Name: COLUMN parenttelephone.orderofpriority; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parenttelephone.orderofpriority IS 'The order of priority assigned to telephone numbers to define which number to attempt first, second, etc.'; + + +-- +-- Name: COLUMN parenttelephone.textmessagecapabilityindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parenttelephone.textmessagecapabilityindicator IS 'An indication that the telephone number is technically capable of sending and receiving Short Message Service (SMS) text messages.'; + + +-- +-- Name: COLUMN parenttelephone.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.parenttelephone.donotpublishindicator IS 'An indication that the telephone number should not be published.'; + + +-- +-- Name: participationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.participationdescriptor ( + participationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.participationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE participationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.participationdescriptor IS 'This descriptor defines participation in a yearly English language assessment.'; + + +-- +-- Name: COLUMN participationdescriptor.participationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.participationdescriptor.participationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: participationstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.participationstatusdescriptor ( + participationstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.participationstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE participationstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.participationstatusdescriptor IS 'The student''s program participation status.'; + + +-- +-- Name: COLUMN participationstatusdescriptor.participationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.participationstatusdescriptor.participationstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: payroll; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.payroll ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + staffusi integer NOT NULL, + amounttodate money NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.payroll OWNER TO postgres; + +-- +-- Name: TABLE payroll; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.payroll IS 'This financial entity represents the sum of the financial transactions to date for employee compensation. An "employee" who performs services under the direction of the employing institution or agency, is compensated for such services by the employer and is eligible for employee benefits and wage or salary tax withholdings.'; + + +-- +-- Name: COLUMN payroll.accountidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.payroll.accountidentifier IS 'The alphanumeric string that identifies the account.'; + + +-- +-- Name: COLUMN payroll.asofdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.payroll.asofdate IS 'The date of the reported payroll element.'; + + +-- +-- Name: COLUMN payroll.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.payroll.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN payroll.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.payroll.fiscalyear IS 'The financial accounting year.'; + + +-- +-- Name: COLUMN payroll.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.payroll.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN payroll.amounttodate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.payroll.amounttodate IS 'Current balance (amount paid to employee) for account for the fiscal year.'; + + +-- +-- Name: performancebaseconversiondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.performancebaseconversiondescriptor ( + performancebaseconversiondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.performancebaseconversiondescriptor OWNER TO postgres; + +-- +-- Name: TABLE performancebaseconversiondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.performancebaseconversiondescriptor IS 'Defines standard levels of competency or performance that can be used for dashboard visualizations: advanced, proficient, basic, and below basic.'; + + +-- +-- Name: COLUMN performancebaseconversiondescriptor.performancebaseconversiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.performancebaseconversiondescriptor.performancebaseconversiondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: performanceleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.performanceleveldescriptor ( + performanceleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.performanceleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE performanceleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.performanceleveldescriptor IS 'This descriptor defines various levels or thresholds for performance on the assessment.'; + + +-- +-- Name: COLUMN performanceleveldescriptor.performanceleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.performanceleveldescriptor.performanceleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: person; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.person ( + personid character varying(32) NOT NULL, + sourcesystemdescriptorid integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.person OWNER TO postgres; + +-- +-- Name: TABLE person; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.person IS 'This entity represents a human being.'; + + +-- +-- Name: COLUMN person.personid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.person.personid IS 'A unique alphanumeric code assigned to a person.'; + + +-- +-- Name: COLUMN person.sourcesystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.person.sourcesystemdescriptorid IS 'This descriptor defines the originating record source system for the person.'; + + +-- +-- Name: personalinformationverificationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.personalinformationverificationdescriptor ( + personalinformationverificationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.personalinformationverificationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE personalinformationverificationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.personalinformationverificationdescriptor IS 'The evidence presented to verify one''s personal identity; for example: driver''s license, passport, birth certificate, etc.'; + + +-- +-- Name: COLUMN personalinformationverificationdescriptor.personalinformationverificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.personalinformationverificationdescriptor.personalinformationverificationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: platformtypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.platformtypedescriptor ( + platformtypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.platformtypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE platformtypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.platformtypedescriptor IS 'The platforms with which an assessment may be delivered.'; + + +-- +-- Name: COLUMN platformtypedescriptor.platformtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.platformtypedescriptor.platformtypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: populationserveddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.populationserveddescriptor ( + populationserveddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.populationserveddescriptor OWNER TO postgres; + +-- +-- Name: TABLE populationserveddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.populationserveddescriptor IS 'The type of students the Section is offered and tailored to.'; + + +-- +-- Name: COLUMN populationserveddescriptor.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.populationserveddescriptor.populationserveddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: postingresultdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.postingresultdescriptor ( + postingresultdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.postingresultdescriptor OWNER TO postgres; + +-- +-- Name: TABLE postingresultdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.postingresultdescriptor IS 'Indication of whether the position was filled or retired without filling.'; + + +-- +-- Name: COLUMN postingresultdescriptor.postingresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postingresultdescriptor.postingresultdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: postsecondaryevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.postsecondaryevent ( + eventdate date NOT NULL, + postsecondaryeventcategorydescriptorid integer NOT NULL, + studentusi integer NOT NULL, + postsecondaryinstitutionid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.postsecondaryevent OWNER TO postgres; + +-- +-- Name: TABLE postsecondaryevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.postsecondaryevent IS 'This entity captures significant postsecondary events during a student''s high school tenure (e.g., FAFSA application or college application, acceptance, and enrollment) or during a student''s enrollment at a post-secondary institution.'; + + +-- +-- Name: COLUMN postsecondaryevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryevent.eventdate IS 'The date the event occurred or was recorded.'; + + +-- +-- Name: COLUMN postsecondaryevent.postsecondaryeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryevent.postsecondaryeventcategorydescriptorid IS 'The PostSecondaryEvent that is logged (e.g., FAFSA application, college application, college acceptance).'; + + +-- +-- Name: COLUMN postsecondaryevent.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryevent.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN postsecondaryevent.postsecondaryinstitutionid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryevent.postsecondaryinstitutionid IS 'The ID of the post secondary institution.'; + + +-- +-- Name: postsecondaryeventcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.postsecondaryeventcategorydescriptor ( + postsecondaryeventcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.postsecondaryeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE postsecondaryeventcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.postsecondaryeventcategorydescriptor IS 'A code describing the type of post-secondary event (e.g., college application or acceptance).'; + + +-- +-- Name: COLUMN postsecondaryeventcategorydescriptor.postsecondaryeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryeventcategorydescriptor.postsecondaryeventcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: postsecondaryinstitution; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.postsecondaryinstitution ( + postsecondaryinstitutionid integer NOT NULL, + postsecondaryinstitutionleveldescriptorid integer, + administrativefundingcontroldescriptorid integer +); + + +ALTER TABLE edfi.postsecondaryinstitution OWNER TO postgres; + +-- +-- Name: TABLE postsecondaryinstitution; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.postsecondaryinstitution IS 'An organization that provides educational programs for individuals who have completed or otherwise left educational programs in secondary school(s).'; + + +-- +-- Name: COLUMN postsecondaryinstitution.postsecondaryinstitutionid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryinstitution.postsecondaryinstitutionid IS 'The ID of the post secondary institution.'; + + +-- +-- Name: COLUMN postsecondaryinstitution.postsecondaryinstitutionleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryinstitution.postsecondaryinstitutionleveldescriptorid IS 'A classification of whether a post secondary institution''s highest level of offering is a program of 4-years or higher (4 year), 2-but-less-than 4-years (2 year), or less than 2-years.'; + + +-- +-- Name: COLUMN postsecondaryinstitution.administrativefundingcontroldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryinstitution.administrativefundingcontroldescriptorid IS 'A classification of whether a postsecondary institution is operated by publicly elected or appointed officials (public control) or by privately elected or appointed officials and derives its major source of funds from private sources (private control).'; + + +-- +-- Name: postsecondaryinstitutionleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.postsecondaryinstitutionleveldescriptor ( + postsecondaryinstitutionleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.postsecondaryinstitutionleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE postsecondaryinstitutionleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.postsecondaryinstitutionleveldescriptor IS 'A classification of whether a post-secondary institution''s highest level of offering is a program of 4 years or higher (4 year), 2 but less than 4 years (2 year) or less than 2 years.'; + + +-- +-- Name: COLUMN postsecondaryinstitutionleveldescriptor.postsecondaryinstitutionleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryinstitutionleveldescriptor.postsecondaryinstitutionleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: postsecondaryinstitutionmediumofinstruction; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.postsecondaryinstitutionmediumofinstruction ( + mediumofinstructiondescriptorid integer NOT NULL, + postsecondaryinstitutionid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.postsecondaryinstitutionmediumofinstruction OWNER TO postgres; + +-- +-- Name: TABLE postsecondaryinstitutionmediumofinstruction; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.postsecondaryinstitutionmediumofinstruction IS 'The categories in which an institution serves the students.'; + + +-- +-- Name: COLUMN postsecondaryinstitutionmediumofinstruction.mediumofinstructiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryinstitutionmediumofinstruction.mediumofinstructiondescriptorid IS 'The categories in which an institution serves the students.'; + + +-- +-- Name: COLUMN postsecondaryinstitutionmediumofinstruction.postsecondaryinstitutionid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.postsecondaryinstitutionmediumofinstruction.postsecondaryinstitutionid IS 'The ID of the post secondary institution.'; + + +-- +-- Name: primarylearningdeviceaccessdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.primarylearningdeviceaccessdescriptor ( + primarylearningdeviceaccessdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.primarylearningdeviceaccessdescriptor OWNER TO postgres; + +-- +-- Name: TABLE primarylearningdeviceaccessdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.primarylearningdeviceaccessdescriptor IS 'An indication of whether the primary learning device is shared or not shared with another individual.'; + + +-- +-- Name: COLUMN primarylearningdeviceaccessdescriptor.primarylearningdeviceaccessdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.primarylearningdeviceaccessdescriptor.primarylearningdeviceaccessdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.primarylearningdeviceawayfromschooldescriptor ( + primarylearningdeviceawayfromschooldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.primarylearningdeviceawayfromschooldescriptor OWNER TO postgres; + +-- +-- Name: TABLE primarylearningdeviceawayfromschooldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.primarylearningdeviceawayfromschooldescriptor IS 'The type of device the student uses most often to complete learning activities away from school.'; + + +-- +-- Name: COLUMN primarylearningdeviceawayfromschooldescriptor.primarylearningdeviceawayfromschooldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.primarylearningdeviceawayfromschooldescriptor.primarylearningdeviceawayfromschooldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: primarylearningdeviceproviderdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.primarylearningdeviceproviderdescriptor ( + primarylearningdeviceproviderdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.primarylearningdeviceproviderdescriptor OWNER TO postgres; + +-- +-- Name: TABLE primarylearningdeviceproviderdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.primarylearningdeviceproviderdescriptor IS 'The provider of the primary learning device.'; + + +-- +-- Name: COLUMN primarylearningdeviceproviderdescriptor.primarylearningdeviceproviderdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.primarylearningdeviceproviderdescriptor.primarylearningdeviceproviderdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: proficiencydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.proficiencydescriptor ( + proficiencydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.proficiencydescriptor OWNER TO postgres; + +-- +-- Name: TABLE proficiencydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.proficiencydescriptor IS 'This descriptor defines proficiency levels for a yearly English language assessment.'; + + +-- +-- Name: COLUMN proficiencydescriptor.proficiencydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.proficiencydescriptor.proficiencydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: program; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.program ( + educationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + programid character varying(20), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.program OWNER TO postgres; + +-- +-- Name: TABLE program; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.program IS 'This entity represents any program designed to work in conjunction with, or as a supplement to, the main academic program. Programs may provide instruction, training, services, or benefits through federal, state, or local agencies. Programs may also include organized extracurricular activities for students.'; + + +-- +-- Name: COLUMN program.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.program.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN program.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.program.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN program.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.program.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN program.programid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.program.programid IS 'A unique number or alphanumeric code assigned to a program by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: programassignmentdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programassignmentdescriptor ( + programassignmentdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.programassignmentdescriptor OWNER TO postgres; + +-- +-- Name: TABLE programassignmentdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programassignmentdescriptor IS 'This descriptor defines the name of the education program for which a teacher is assigned to a school.'; + + +-- +-- Name: COLUMN programassignmentdescriptor.programassignmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programassignmentdescriptor.programassignmentdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: programcharacteristic; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programcharacteristic ( + educationorganizationid integer NOT NULL, + programcharacteristicdescriptorid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.programcharacteristic OWNER TO postgres; + +-- +-- Name: TABLE programcharacteristic; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programcharacteristic IS 'Reflects important characteristics of the Program, such as categories or particular indications.'; + + +-- +-- Name: COLUMN programcharacteristic.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programcharacteristic.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN programcharacteristic.programcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programcharacteristic.programcharacteristicdescriptorid IS 'Reflects important characteristics of the Program, such as categories or particular indications.'; + + +-- +-- Name: COLUMN programcharacteristic.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programcharacteristic.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN programcharacteristic.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programcharacteristic.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: programcharacteristicdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programcharacteristicdescriptor ( + programcharacteristicdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.programcharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: TABLE programcharacteristicdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programcharacteristicdescriptor IS 'This descriptor defines important characteristics of the Program, such as categories or particular indications.'; + + +-- +-- Name: COLUMN programcharacteristicdescriptor.programcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programcharacteristicdescriptor.programcharacteristicdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: programlearningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programlearningobjective ( + educationorganizationid integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.programlearningobjective OWNER TO postgres; + +-- +-- Name: TABLE programlearningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programlearningobjective IS 'References the LearningObjective(s) with which the Program is associated.'; + + +-- +-- Name: COLUMN programlearningobjective.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningobjective.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN programlearningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN programlearningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningobjective.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN programlearningobjective.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningobjective.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN programlearningobjective.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningobjective.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: programlearningstandard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programlearningstandard ( + educationorganizationid integer NOT NULL, + learningstandardid character varying(60) NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.programlearningstandard OWNER TO postgres; + +-- +-- Name: TABLE programlearningstandard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programlearningstandard IS 'LearningStandard followed by this program.'; + + +-- +-- Name: COLUMN programlearningstandard.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningstandard.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN programlearningstandard.learningstandardid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningstandard.learningstandardid IS 'The identifier for the specific learning standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN programlearningstandard.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningstandard.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN programlearningstandard.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programlearningstandard.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: programservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programservice ( + educationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + servicedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.programservice OWNER TO postgres; + +-- +-- Name: TABLE programservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programservice IS 'Defines the services this program provides to students.'; + + +-- +-- Name: COLUMN programservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN programservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN programservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN programservice.servicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programservice.servicedescriptorid IS 'Defines the services this program provides to students.'; + + +-- +-- Name: programsponsor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programsponsor ( + educationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programsponsordescriptorid integer NOT NULL, + programtypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.programsponsor OWNER TO postgres; + +-- +-- Name: TABLE programsponsor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programsponsor IS 'Ultimate and intermediate providers of funds for a particular educational or service program or activity, or for an individual''s participation in the program or activity (e.g., Federal, State, ESC, District, School, Private Organization).'; + + +-- +-- Name: COLUMN programsponsor.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programsponsor.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN programsponsor.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programsponsor.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN programsponsor.programsponsordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programsponsor.programsponsordescriptorid IS 'Ultimate and intermediate providers of funds for a particular educational or service program or activity, or for an individual''s participation in the program or activity (e.g., Federal, State, ESC, District, School, Private Organization).'; + + +-- +-- Name: COLUMN programsponsor.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programsponsor.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: programsponsordescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programsponsordescriptor ( + programsponsordescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.programsponsordescriptor OWNER TO postgres; + +-- +-- Name: TABLE programsponsordescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programsponsordescriptor IS 'Ultimate and intermediate providers of funds for a particular educational or service program or activity or for an individual''s participation in the program or activity (e.g., Federal, State, ESC, District, School, Private Org).'; + + +-- +-- Name: COLUMN programsponsordescriptor.programsponsordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programsponsordescriptor.programsponsordescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: programtypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.programtypedescriptor ( + programtypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.programtypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE programtypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.programtypedescriptor IS 'The formal name of the program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN programtypedescriptor.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.programtypedescriptor.programtypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: progressdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.progressdescriptor ( + progressdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.progressdescriptor OWNER TO postgres; + +-- +-- Name: TABLE progressdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.progressdescriptor IS 'This descriptor defines yearly progress or growth from last year''s assessment.'; + + +-- +-- Name: COLUMN progressdescriptor.progressdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.progressdescriptor.progressdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: progressleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.progressleveldescriptor ( + progressleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.progressleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE progressleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.progressleveldescriptor IS 'This descriptor defines progress measured from pre- to post-test.'; + + +-- +-- Name: COLUMN progressleveldescriptor.progressleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.progressleveldescriptor.progressleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: providercategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.providercategorydescriptor ( + providercategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.providercategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE providercategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.providercategorydescriptor IS 'This descriptor holds the category of the provider.'; + + +-- +-- Name: COLUMN providercategorydescriptor.providercategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.providercategorydescriptor.providercategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: providerprofitabilitydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.providerprofitabilitydescriptor ( + providerprofitabilitydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.providerprofitabilitydescriptor OWNER TO postgres; + +-- +-- Name: TABLE providerprofitabilitydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.providerprofitabilitydescriptor IS 'This descriptor indicates the profitability status of the provider.'; + + +-- +-- Name: COLUMN providerprofitabilitydescriptor.providerprofitabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.providerprofitabilitydescriptor.providerprofitabilitydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: providerstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.providerstatusdescriptor ( + providerstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.providerstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE providerstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.providerstatusdescriptor IS 'This descriptor defines the status of the provider.'; + + +-- +-- Name: COLUMN providerstatusdescriptor.providerstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.providerstatusdescriptor.providerstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: publicationstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.publicationstatusdescriptor ( + publicationstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.publicationstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE publicationstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.publicationstatusdescriptor IS 'The publication status of the document (i.e., Adopted, Draft, Published, Deprecated, Unknown).'; + + +-- +-- Name: COLUMN publicationstatusdescriptor.publicationstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.publicationstatusdescriptor.publicationstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: questionformdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.questionformdescriptor ( + questionformdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.questionformdescriptor OWNER TO postgres; + +-- +-- Name: TABLE questionformdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.questionformdescriptor IS 'The form or type of question.'; + + +-- +-- Name: COLUMN questionformdescriptor.questionformdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.questionformdescriptor.questionformdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: racedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.racedescriptor ( + racedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.racedescriptor OWNER TO postgres; + +-- +-- Name: TABLE racedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.racedescriptor IS 'The enumeration items defining the racial categories which most clearly reflects the individual''s recognition of his or her community or with which the individual most identifies.'; + + +-- +-- Name: COLUMN racedescriptor.racedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.racedescriptor.racedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: reasonexiteddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reasonexiteddescriptor ( + reasonexiteddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.reasonexiteddescriptor OWNER TO postgres; + +-- +-- Name: TABLE reasonexiteddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reasonexiteddescriptor IS 'This descriptor defines the reason a student exited a program.'; + + +-- +-- Name: COLUMN reasonexiteddescriptor.reasonexiteddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reasonexiteddescriptor.reasonexiteddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: reasonnottesteddescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reasonnottesteddescriptor ( + reasonnottesteddescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.reasonnottesteddescriptor OWNER TO postgres; + +-- +-- Name: TABLE reasonnottesteddescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reasonnottesteddescriptor IS 'The primary reason student is not tested. For example: + Absent + Refusal by parent + Refusal by student + Medical waiver + Illness + Disruptive behavior + LEP Exempt + ''...'; + + +-- +-- Name: COLUMN reasonnottesteddescriptor.reasonnottesteddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reasonnottesteddescriptor.reasonnottesteddescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: recognitiontypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.recognitiontypedescriptor ( + recognitiontypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.recognitiontypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE recognitiontypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.recognitiontypedescriptor IS 'The nature of recognition given to the student for accomplishments in a co-curricular, or extra-curricular activity.'; + + +-- +-- Name: COLUMN recognitiontypedescriptor.recognitiontypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.recognitiontypedescriptor.recognitiontypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: relationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.relationdescriptor ( + relationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.relationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE relationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.relationdescriptor IS 'The nature of an individual''s relationship to a student.'; + + +-- +-- Name: COLUMN relationdescriptor.relationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.relationdescriptor.relationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: repeatidentifierdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.repeatidentifierdescriptor ( + repeatidentifierdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.repeatidentifierdescriptor OWNER TO postgres; + +-- +-- Name: TABLE repeatidentifierdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.repeatidentifierdescriptor IS 'An indication as to whether a student has previously taken a given course.'; + + +-- +-- Name: COLUMN repeatidentifierdescriptor.repeatidentifierdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.repeatidentifierdescriptor.repeatidentifierdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: reportcard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reportcard ( + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + studentusi integer NOT NULL, + gpagivengradingperiod numeric(18,4), + gpacumulative numeric(18,4), + numberofdaysabsent numeric(18,4), + numberofdaysinattendance numeric(18,4), + numberofdaystardy integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.reportcard OWNER TO postgres; + +-- +-- Name: TABLE reportcard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reportcard IS 'This educational entity represents the collection of student grades for courses taken during a grading period.'; + + +-- +-- Name: COLUMN reportcard.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN reportcard.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN reportcard.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN reportcard.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN reportcard.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN reportcard.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN reportcard.gpagivengradingperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.gpagivengradingperiod IS 'A measure of average performance in all courses taken by an individual for the current grading period.'; + + +-- +-- Name: COLUMN reportcard.gpacumulative; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.gpacumulative IS 'A measure of cumulative average performance in all courses taken by an individual from the beginning of the school year through the current grading period.'; + + +-- +-- Name: COLUMN reportcard.numberofdaysabsent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.numberofdaysabsent IS 'The number of days an individual is absent when school is in session during a given reporting period.'; + + +-- +-- Name: COLUMN reportcard.numberofdaysinattendance; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.numberofdaysinattendance IS 'The number of days an individual is present when school is in session during a given reporting period.'; + + +-- +-- Name: COLUMN reportcard.numberofdaystardy; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcard.numberofdaystardy IS 'The number of days an individual is tardy during a given reporting period.'; + + +-- +-- Name: reportcardgrade; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reportcardgrade ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + gradetypedescriptorid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.reportcardgrade OWNER TO postgres; + +-- +-- Name: TABLE reportcardgrade; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reportcardgrade IS 'Grades for the classes attended by the Student for this grading period.'; + + +-- +-- Name: COLUMN reportcardgrade.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN reportcardgrade.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN reportcardgrade.gradetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.gradetypedescriptorid IS 'The type of grade reported (e.g., Exam, Final, Grading Period).'; + + +-- +-- Name: COLUMN reportcardgrade.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN reportcardgrade.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN reportcardgrade.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN reportcardgrade.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN reportcardgrade.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN reportcardgrade.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN reportcardgrade.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN reportcardgrade.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN reportcardgrade.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN reportcardgrade.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgrade.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: reportcardgradepointaverage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reportcardgradepointaverage ( + educationorganizationid integer NOT NULL, + gradepointaveragetypedescriptorid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + studentusi integer NOT NULL, + iscumulative boolean, + gradepointaveragevalue numeric(18,4) NOT NULL, + maxgradepointaveragevalue numeric(18,4), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.reportcardgradepointaverage OWNER TO postgres; + +-- +-- Name: TABLE reportcardgradepointaverage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reportcardgradepointaverage IS 'A measure of average performance for courses taken by an individual.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.gradepointaveragetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.gradepointaveragetypedescriptorid IS 'The system used for calculating the grade point average for an individual.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.iscumulative; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.iscumulative IS 'Indicator of whether or not the Grade Point Average value is cumulative.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.gradepointaveragevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.gradepointaveragevalue IS 'The value of the grade points earned divided by the number of credits attempted.'; + + +-- +-- Name: COLUMN reportcardgradepointaverage.maxgradepointaveragevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardgradepointaverage.maxgradepointaveragevalue IS 'The maximum value for the grade point average.'; + + +-- +-- Name: reportcardstudentcompetencyobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reportcardstudentcompetencyobjective ( + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + objective character varying(60) NOT NULL, + objectiveeducationorganizationid integer NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.reportcardstudentcompetencyobjective OWNER TO postgres; + +-- +-- Name: TABLE reportcardstudentcompetencyobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reportcardstudentcompetencyobjective IS 'The Student competency evaluations associated for this grading period.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.objective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.objective IS 'The designated title of the CompetencyObjective.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.objectiveeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.objectiveeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.objectivegradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.objectivegradeleveldescriptorid IS 'The grade level for which the CompetencyObjective is targeted.'; + + +-- +-- Name: COLUMN reportcardstudentcompetencyobjective.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentcompetencyobjective.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: reportcardstudentlearningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reportcardstudentlearningobjective ( + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.reportcardstudentlearningobjective OWNER TO postgres; + +-- +-- Name: TABLE reportcardstudentlearningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reportcardstudentlearningobjective IS 'The StudentLearningObjective evaluations associated for this grading period.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN reportcardstudentlearningobjective.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reportcardstudentlearningobjective.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: reporterdescriptiondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.reporterdescriptiondescriptor ( + reporterdescriptiondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.reporterdescriptiondescriptor OWNER TO postgres; + +-- +-- Name: TABLE reporterdescriptiondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.reporterdescriptiondescriptor IS 'This descriptor defines the type of individual who reported an incident.'; + + +-- +-- Name: COLUMN reporterdescriptiondescriptor.reporterdescriptiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.reporterdescriptiondescriptor.reporterdescriptiondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: residencystatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.residencystatusdescriptor ( + residencystatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.residencystatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE residencystatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.residencystatusdescriptor IS 'This descriptor defines indications of the location of a person''s legal residence relative to (within or outside of) the boundaries of the public school attended and its administrative unit.'; + + +-- +-- Name: COLUMN residencystatusdescriptor.residencystatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.residencystatusdescriptor.residencystatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: responseindicatordescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.responseindicatordescriptor ( + responseindicatordescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.responseindicatordescriptor OWNER TO postgres; + +-- +-- Name: TABLE responseindicatordescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.responseindicatordescriptor IS 'Indicator of the response. For example: + Nonscorable response + Ineffective response + Effective response + Partial response + ...'; + + +-- +-- Name: COLUMN responseindicatordescriptor.responseindicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.responseindicatordescriptor.responseindicatordescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: responsibilitydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.responsibilitydescriptor ( + responsibilitydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.responsibilitydescriptor OWNER TO postgres; + +-- +-- Name: TABLE responsibilitydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.responsibilitydescriptor IS 'This descriptor defines types of responsibility an education organization may have for a student (e.g., accountability, attendance, funding).'; + + +-- +-- Name: COLUMN responsibilitydescriptor.responsibilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.responsibilitydescriptor.responsibilitydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: restraintevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.restraintevent ( + restrainteventidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + eventdate date NOT NULL, + educationalenvironmentdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.restraintevent OWNER TO postgres; + +-- +-- Name: TABLE restraintevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.restraintevent IS 'This event entity represents the instances where a special education student was physically or mechanically restrained due to imminent serious physical harm to themselves or others, imminent serious property destruction or a combination of both imminent serious physical harm to themselves or others and imminent serious property destruction.'; + + +-- +-- Name: COLUMN restraintevent.restrainteventidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restraintevent.restrainteventidentifier IS 'A unique number or alphanumeric code assigned to a restraint event by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN restraintevent.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restraintevent.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN restraintevent.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restraintevent.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN restraintevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restraintevent.eventdate IS 'Month, day, and year of the RestraintEvent.'; + + +-- +-- Name: COLUMN restraintevent.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restraintevent.educationalenvironmentdescriptorid IS 'The setting where the RestraintEvent was exercised.'; + + +-- +-- Name: restrainteventprogram; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.restrainteventprogram ( + educationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + restrainteventidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.restrainteventprogram OWNER TO postgres; + +-- +-- Name: TABLE restrainteventprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.restrainteventprogram IS 'The special education program associated with the RestraintEvent.'; + + +-- +-- Name: COLUMN restrainteventprogram.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventprogram.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN restrainteventprogram.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventprogram.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN restrainteventprogram.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventprogram.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN restrainteventprogram.restrainteventidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventprogram.restrainteventidentifier IS 'A unique number or alphanumeric code assigned to a restraint event by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN restrainteventprogram.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventprogram.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN restrainteventprogram.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventprogram.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: restrainteventreason; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.restrainteventreason ( + restrainteventidentifier character varying(20) NOT NULL, + restrainteventreasondescriptorid integer NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.restrainteventreason OWNER TO postgres; + +-- +-- Name: TABLE restrainteventreason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.restrainteventreason IS 'A categorization of the circumstances or reason for the RestraintEvent.'; + + +-- +-- Name: COLUMN restrainteventreason.restrainteventidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventreason.restrainteventidentifier IS 'A unique number or alphanumeric code assigned to a restraint event by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN restrainteventreason.restrainteventreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventreason.restrainteventreasondescriptorid IS 'A categorization of the circumstances or reason for the RestraintEvent.'; + + +-- +-- Name: COLUMN restrainteventreason.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventreason.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN restrainteventreason.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventreason.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: restrainteventreasondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.restrainteventreasondescriptor ( + restrainteventreasondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.restrainteventreasondescriptor OWNER TO postgres; + +-- +-- Name: TABLE restrainteventreasondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.restrainteventreasondescriptor IS 'The items of categorization of the circumstances or reason for the restraint.'; + + +-- +-- Name: COLUMN restrainteventreasondescriptor.restrainteventreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.restrainteventreasondescriptor.restrainteventreasondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: resultdatatypetypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.resultdatatypetypedescriptor ( + resultdatatypetypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.resultdatatypetypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE resultdatatypetypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.resultdatatypetypedescriptor IS 'The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: COLUMN resultdatatypetypedescriptor.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.resultdatatypetypedescriptor.resultdatatypetypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: retestindicatordescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.retestindicatordescriptor ( + retestindicatordescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.retestindicatordescriptor OWNER TO postgres; + +-- +-- Name: TABLE retestindicatordescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.retestindicatordescriptor IS 'Indicator if the test was retaken. For example: + Primary administration + First retest + Second retest + ...'; + + +-- +-- Name: COLUMN retestindicatordescriptor.retestindicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.retestindicatordescriptor.retestindicatordescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: school; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.school ( + schoolid integer NOT NULL, + schooltypedescriptorid integer, + charterstatusdescriptorid integer, + titleipartaschooldesignationdescriptorid integer, + magnetspecialprogramemphasisschooldescriptorid integer, + administrativefundingcontroldescriptorid integer, + internetaccessdescriptorid integer, + localeducationagencyid integer, + charterapprovalagencytypedescriptorid integer, + charterapprovalschoolyear smallint +); + + +ALTER TABLE edfi.school OWNER TO postgres; + +-- +-- Name: TABLE school; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.school IS 'This entity represents an educational organization that includes staff and students who participate in classes and educational activity groups.'; + + +-- +-- Name: COLUMN school.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN school.schooltypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.schooltypedescriptorid IS 'The type of education institution as classified by its primary focus.'; + + +-- +-- Name: COLUMN school.charterstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.charterstatusdescriptorid IS 'A school or agency providing free public elementary or secondary education to eligible students under a specific charter granted by the state legislature or other appropriate authority and designated by such authority to be a charter school.'; + + +-- +-- Name: COLUMN school.titleipartaschooldesignationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.titleipartaschooldesignationdescriptorid IS 'Denotes the Title I Part A designation for the school.'; + + +-- +-- Name: COLUMN school.magnetspecialprogramemphasisschooldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.magnetspecialprogramemphasisschooldescriptorid IS 'A school that has been designed: 1) to attract students of different racial/ethnic backgrounds for the purpose of reducing, preventing, or eliminating racial isolation; and/or 2) to provide an academic or social focus on a particular theme (e.g., science/math, performing arts, gifted/talented, or foreign language).'; + + +-- +-- Name: COLUMN school.administrativefundingcontroldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.administrativefundingcontroldescriptorid IS 'The type of education institution as classified by its funding source, for example public or private.'; + + +-- +-- Name: COLUMN school.internetaccessdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.internetaccessdescriptorid IS 'The type of Internet access available.'; + + +-- +-- Name: COLUMN school.localeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.localeducationagencyid IS 'The identifier assigned to a local education agency.'; + + +-- +-- Name: COLUMN school.charterapprovalagencytypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.charterapprovalagencytypedescriptorid IS 'The type of agency that approved the establishment or continuation of a charter school.'; + + +-- +-- Name: COLUMN school.charterapprovalschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.school.charterapprovalschoolyear IS 'The school year in which a charter school was initially approved.'; + + +-- +-- Name: schoolcategory; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schoolcategory ( + schoolcategorydescriptorid integer NOT NULL, + schoolid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.schoolcategory OWNER TO postgres; + +-- +-- Name: TABLE schoolcategory; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schoolcategory IS 'The one or more categories of school. For example: High School, Middle School, and/or Elementary School.'; + + +-- +-- Name: COLUMN schoolcategory.schoolcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolcategory.schoolcategorydescriptorid IS 'The one or more categories of school. For example: High School, Middle School, and/or Elementary School.'; + + +-- +-- Name: COLUMN schoolcategory.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolcategory.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: schoolcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schoolcategorydescriptor ( + schoolcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.schoolcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE schoolcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schoolcategorydescriptor IS 'The category of school. For example: High School, Middle School, Elementary School.'; + + +-- +-- Name: COLUMN schoolcategorydescriptor.schoolcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolcategorydescriptor.schoolcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: schoolchoiceimplementstatusdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schoolchoiceimplementstatusdescriptor ( + schoolchoiceimplementstatusdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.schoolchoiceimplementstatusdescriptor OWNER TO postgres; + +-- +-- Name: TABLE schoolchoiceimplementstatusdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schoolchoiceimplementstatusdescriptor IS 'An indication of whether the LEA was able to implement the provisions for public school choice under Title I, Part A, Section 1116 of ESEA, as amended.'; + + +-- +-- Name: COLUMN schoolchoiceimplementstatusdescriptor.schoolchoiceimplementstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolchoiceimplementstatusdescriptor.schoolchoiceimplementstatusdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: schoolfoodserviceprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schoolfoodserviceprogramservicedescriptor ( + schoolfoodserviceprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.schoolfoodserviceprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE schoolfoodserviceprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schoolfoodserviceprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a school food service program.'; + + +-- +-- Name: COLUMN schoolfoodserviceprogramservicedescriptor.schoolfoodserviceprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolfoodserviceprogramservicedescriptor.schoolfoodserviceprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: schoolgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schoolgradelevel ( + gradeleveldescriptorid integer NOT NULL, + schoolid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.schoolgradelevel OWNER TO postgres; + +-- +-- Name: TABLE schoolgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schoolgradelevel IS 'The grade levels served at the school.'; + + +-- +-- Name: COLUMN schoolgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolgradelevel.gradeleveldescriptorid IS 'The grade levels served at the school.'; + + +-- +-- Name: COLUMN schoolgradelevel.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolgradelevel.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: schooltypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schooltypedescriptor ( + schooltypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.schooltypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE schooltypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schooltypedescriptor IS 'The type of education institution as classified by its primary focus.'; + + +-- +-- Name: COLUMN schooltypedescriptor.schooltypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schooltypedescriptor.schooltypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: schoolyeartype; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.schoolyeartype ( + schoolyear smallint NOT NULL, + schoolyeardescription character varying(50) NOT NULL, + currentschoolyear boolean NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.schoolyeartype OWNER TO postgres; + +-- +-- Name: TABLE schoolyeartype; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.schoolyeartype IS 'Identifier for a school year.'; + + +-- +-- Name: COLUMN schoolyeartype.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolyeartype.schoolyear IS 'Key for School Year'; + + +-- +-- Name: COLUMN schoolyeartype.schoolyeardescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolyeartype.schoolyeardescription IS 'The description for the SchoolYear type.'; + + +-- +-- Name: COLUMN schoolyeartype.currentschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.schoolyeartype.currentschoolyear IS 'The code for the current school year.'; + + +-- +-- Name: section; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.section ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + sequenceofcourse integer, + educationalenvironmentdescriptorid integer, + mediumofinstructiondescriptorid integer, + populationserveddescriptorid integer, + availablecredits numeric(9,3), + availablecredittypedescriptorid integer, + availablecreditconversion numeric(9,2), + instructionlanguagedescriptorid integer, + locationschoolid integer, + locationclassroomidentificationcode character varying(60), + officialattendanceperiod boolean, + sectionname character varying(100), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.section OWNER TO postgres; + +-- +-- Name: TABLE section; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.section IS 'This entity represents a setting in which organized instruction of course content is provided, in-person or otherwise, to one or more students for a given period of time. A course offering may be offered to more than one section.'; + + +-- +-- Name: COLUMN section.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN section.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN section.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN section.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN section.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN section.sequenceofcourse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.sequenceofcourse IS 'When a section is part of a sequence of parts for a course, the number of the sequence. If the course has only one part, the value of this section attribute should be 1.'; + + +-- +-- Name: COLUMN section.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.educationalenvironmentdescriptorid IS 'The setting in which a child receives education and related services; for example: + Center-based instruction + Home-based instruction + Hospital class + Mainstream + Residential care and treatment facility + ...'; + + +-- +-- Name: COLUMN section.mediumofinstructiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.mediumofinstructiondescriptorid IS 'The media through which teachers provide instruction to students and students and teachers communicate about instructional matters; for example: + Technology-based instruction in classroom + Correspondence instruction + Face-to-face instruction + Virtual/On-line Distance learning + Center-based instruction + ...'; + + +-- +-- Name: COLUMN section.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.populationserveddescriptorid IS 'The type of students the Section is offered and tailored to; for example: + Bilingual students + Remedial education students + Gifted and talented students + Career and Technical Education students + Special education students + ...'; + + +-- +-- Name: COLUMN section.availablecredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.availablecredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN section.availablecredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.availablecredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN section.availablecreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.availablecreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN section.instructionlanguagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.instructionlanguagedescriptorid IS 'The primary language of instruction, if omitted English is assumed.'; + + +-- +-- Name: COLUMN section.locationschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.locationschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN section.locationclassroomidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.locationclassroomidentificationcode IS 'A unique number or alphanumeric code assigned to a room by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN section.officialattendanceperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.officialattendanceperiod IS 'Indicator of whether this section is used for official daily attendance. Alternatively, official daily attendance may be tied to a Class Period.'; + + +-- +-- Name: COLUMN section.sectionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.section.sectionname IS 'A locally-defined name for the section, generally created to make the section more recognizable in informal contexts and generally distinct from the SectionIdentifier.'; + + +-- +-- Name: sectionattendancetakenevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectionattendancetakenevent ( + calendarcode character varying(60) NOT NULL, + date date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + eventdate date NOT NULL, + staffusi integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.sectionattendancetakenevent OWNER TO postgres; + +-- +-- Name: TABLE sectionattendancetakenevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectionattendancetakenevent IS 'Captures attendance taken event for given section.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.date; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.date IS 'The month, day, and year of the CalendarEvent.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.eventdate IS 'The date the SectionAttendanceTakenEvent was submitted, which could be a different date than the instructional day.'; + + +-- +-- Name: COLUMN sectionattendancetakenevent.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionattendancetakenevent.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: sectioncharacteristic; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectioncharacteristic ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectioncharacteristicdescriptorid integer NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sectioncharacteristic OWNER TO postgres; + +-- +-- Name: TABLE sectioncharacteristic; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectioncharacteristic IS 'Reflects important characteristics of the Section, such as whether or not attendance is taken and the Section is graded.'; + + +-- +-- Name: COLUMN sectioncharacteristic.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristic.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN sectioncharacteristic.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristic.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sectioncharacteristic.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristic.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sectioncharacteristic.sectioncharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristic.sectioncharacteristicdescriptorid IS 'Reflects important characteristics of the Section, such as whether or not attendance is taken and the Section is graded.'; + + +-- +-- Name: COLUMN sectioncharacteristic.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristic.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN sectioncharacteristic.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristic.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: sectioncharacteristicdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectioncharacteristicdescriptor ( + sectioncharacteristicdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.sectioncharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: TABLE sectioncharacteristicdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectioncharacteristicdescriptor IS 'This descriptor defines characteristics of a Section, such as whether attendance is taken and the Section is graded.'; + + +-- +-- Name: COLUMN sectioncharacteristicdescriptor.sectioncharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncharacteristicdescriptor.sectioncharacteristicdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: sectionclassperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectionclassperiod ( + classperiodname character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sectionclassperiod OWNER TO postgres; + +-- +-- Name: TABLE sectionclassperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectionclassperiod IS 'The class period during which the Section meets.'; + + +-- +-- Name: COLUMN sectionclassperiod.classperiodname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionclassperiod.classperiodname IS 'An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules).'; + + +-- +-- Name: COLUMN sectionclassperiod.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionclassperiod.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN sectionclassperiod.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionclassperiod.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sectionclassperiod.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionclassperiod.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sectionclassperiod.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionclassperiod.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN sectionclassperiod.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionclassperiod.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: sectioncourselevelcharacteristic; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectioncourselevelcharacteristic ( + courselevelcharacteristicdescriptorid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sectioncourselevelcharacteristic OWNER TO postgres; + +-- +-- Name: TABLE sectioncourselevelcharacteristic; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectioncourselevelcharacteristic IS 'The type of specific program or designation with which the section is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course Offering level.'; + + +-- +-- Name: COLUMN sectioncourselevelcharacteristic.courselevelcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncourselevelcharacteristic.courselevelcharacteristicdescriptorid IS 'The type of specific program or designation with which the section is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course Offering level.'; + + +-- +-- Name: COLUMN sectioncourselevelcharacteristic.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncourselevelcharacteristic.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN sectioncourselevelcharacteristic.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncourselevelcharacteristic.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sectioncourselevelcharacteristic.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncourselevelcharacteristic.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sectioncourselevelcharacteristic.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncourselevelcharacteristic.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN sectioncourselevelcharacteristic.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectioncourselevelcharacteristic.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: sectionofferedgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectionofferedgradelevel ( + gradeleveldescriptorid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sectionofferedgradelevel OWNER TO postgres; + +-- +-- Name: TABLE sectionofferedgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectionofferedgradelevel IS 'The grade levels in which the section is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course Offering level.'; + + +-- +-- Name: COLUMN sectionofferedgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionofferedgradelevel.gradeleveldescriptorid IS 'The grade levels in which the section is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course Offering level.'; + + +-- +-- Name: COLUMN sectionofferedgradelevel.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionofferedgradelevel.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN sectionofferedgradelevel.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionofferedgradelevel.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sectionofferedgradelevel.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionofferedgradelevel.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sectionofferedgradelevel.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionofferedgradelevel.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN sectionofferedgradelevel.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionofferedgradelevel.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: sectionprogram; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sectionprogram ( + educationorganizationid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sectionprogram OWNER TO postgres; + +-- +-- Name: TABLE sectionprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sectionprogram IS 'Optional reference to program (e.g., CTE) to which the Section is associated.'; + + +-- +-- Name: COLUMN sectionprogram.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN sectionprogram.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN sectionprogram.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN sectionprogram.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN sectionprogram.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sectionprogram.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sectionprogram.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN sectionprogram.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sectionprogram.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: separationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.separationdescriptor ( + separationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.separationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE separationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.separationdescriptor IS 'Type of employment separation; for example: Voluntary separation, Involuntary separation, Mutual agreement. Other, etc.'; + + +-- +-- Name: COLUMN separationdescriptor.separationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.separationdescriptor.separationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: separationreasondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.separationreasondescriptor ( + separationreasondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.separationreasondescriptor OWNER TO postgres; + +-- +-- Name: TABLE separationreasondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.separationreasondescriptor IS 'This descriptor defines the reasons for terminating the employment.'; + + +-- +-- Name: COLUMN separationreasondescriptor.separationreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.separationreasondescriptor.separationreasondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: servicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.servicedescriptor ( + servicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.servicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE servicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.servicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a program.'; + + +-- +-- Name: COLUMN servicedescriptor.servicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.servicedescriptor.servicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: session; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.session ( + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + begindate date NOT NULL, + enddate date NOT NULL, + termdescriptorid integer NOT NULL, + totalinstructionaldays integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.session OWNER TO postgres; + +-- +-- Name: TABLE session; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.session IS 'A term in the school year, generally a unit of time into which courses are scheduled, instruction occurs and by which credits are awarded. Sessions may be interrupted by vacations or other events.'; + + +-- +-- Name: COLUMN session.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN session.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN session.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN session.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.begindate IS 'Month, day, and year of the first day of the Session.'; + + +-- +-- Name: COLUMN session.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.enddate IS 'Month, day and year of the last day of the Session.'; + + +-- +-- Name: COLUMN session.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.termdescriptorid IS 'An descriptor value indicating the term (e.g. ''Semester'', ''Quarter'', etc.).'; + + +-- +-- Name: COLUMN session.totalinstructionaldays; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.session.totalinstructionaldays IS 'The total number of instructional days in the school calendar.'; + + +-- +-- Name: sessionacademicweek; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sessionacademicweek ( + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + weekidentifier character varying(80) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sessionacademicweek OWNER TO postgres; + +-- +-- Name: TABLE sessionacademicweek; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sessionacademicweek IS 'The academic weeks associated with the school year.'; + + +-- +-- Name: COLUMN sessionacademicweek.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessionacademicweek.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sessionacademicweek.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessionacademicweek.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sessionacademicweek.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessionacademicweek.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN sessionacademicweek.weekidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessionacademicweek.weekidentifier IS 'The school label for the week.'; + + +-- +-- Name: sessiongradingperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sessiongradingperiod ( + gradingperioddescriptorid integer NOT NULL, + periodsequence integer NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.sessiongradingperiod OWNER TO postgres; + +-- +-- Name: TABLE sessiongradingperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sessiongradingperiod IS 'Grading periods associated with the session.'; + + +-- +-- Name: COLUMN sessiongradingperiod.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessiongradingperiod.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN sessiongradingperiod.periodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessiongradingperiod.periodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN sessiongradingperiod.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessiongradingperiod.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN sessiongradingperiod.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessiongradingperiod.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN sessiongradingperiod.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sessiongradingperiod.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: sexdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sexdescriptor ( + sexdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.sexdescriptor OWNER TO postgres; + +-- +-- Name: TABLE sexdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sexdescriptor IS 'A person''s gender.'; + + +-- +-- Name: COLUMN sexdescriptor.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sexdescriptor.sexdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: sourcesystemdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.sourcesystemdescriptor ( + sourcesystemdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.sourcesystemdescriptor OWNER TO postgres; + +-- +-- Name: TABLE sourcesystemdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.sourcesystemdescriptor IS 'This descriptor defines the originating record source system.'; + + +-- +-- Name: COLUMN sourcesystemdescriptor.sourcesystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.sourcesystemdescriptor.sourcesystemdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: specialeducationprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.specialeducationprogramservicedescriptor ( + specialeducationprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.specialeducationprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE specialeducationprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.specialeducationprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a special education program.'; + + +-- +-- Name: COLUMN specialeducationprogramservicedescriptor.specialeducationprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.specialeducationprogramservicedescriptor.specialeducationprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: specialeducationsettingdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.specialeducationsettingdescriptor ( + specialeducationsettingdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.specialeducationsettingdescriptor OWNER TO postgres; + +-- +-- Name: TABLE specialeducationsettingdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.specialeducationsettingdescriptor IS 'This descriptor defines the major instructional setting (more than 50 percent of a student''s special education program).'; + + +-- +-- Name: COLUMN specialeducationsettingdescriptor.specialeducationsettingdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.specialeducationsettingdescriptor.specialeducationsettingdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: staff; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staff ( + staffusi integer NOT NULL, + personaltitleprefix character varying(30), + firstname character varying(75) NOT NULL, + middlename character varying(75), + lastsurname character varying(75) NOT NULL, + generationcodesuffix character varying(10), + maidenname character varying(75), + sexdescriptorid integer, + birthdate date, + hispaniclatinoethnicity boolean, + oldethnicitydescriptorid integer, + citizenshipstatusdescriptorid integer, + highestcompletedlevelofeducationdescriptorid integer, + yearsofpriorprofessionalexperience numeric(5,2), + yearsofpriorteachingexperience numeric(5,2), + loginid character varying(60), + highlyqualifiedteacher boolean, + personid character varying(32), + sourcesystemdescriptorid integer, + staffuniqueid character varying(32) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staff OWNER TO postgres; + +-- +-- Name: TABLE staff; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staff IS 'This entity represents an individual who performs specified activities for any public or private education institution or agency that provides instructional and/or support services to students or staff at the early childhood level through high school completion. For example, this includes: + 1. An "employee" who performs services under the direction of the employing institution or agency is compensated for such services by the employer and is eligible for employee benefits and wage or salary tax withholdings + 2. A "contractor" or "consultant" who performs services for an agreed upon fee or an employee of a management service contracted to work on site + 3. A "volunteer" who performs services on a voluntary and uncompensated basis + 4. An in-kind service provider + 5. An independent contractor or businessperson working at a school site.'; + + +-- +-- Name: COLUMN staff.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staff.personaltitleprefix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.personaltitleprefix IS 'A prefix used to denote the title, degree, position, or seniority of the person.'; + + +-- +-- Name: COLUMN staff.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN staff.middlename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.middlename IS 'A secondary name given to an individual at birth, baptism, or during another naming ceremony.'; + + +-- +-- Name: COLUMN staff.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN staff.generationcodesuffix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.generationcodesuffix IS 'An appendage, if any, used to denote an individual''s generation in his family (e.g., Jr., Sr., III).'; + + +-- +-- Name: COLUMN staff.maidenname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.maidenname IS 'The person''s maiden name.'; + + +-- +-- Name: COLUMN staff.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.sexdescriptorid IS 'A person''s gender.'; + + +-- +-- Name: COLUMN staff.birthdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.birthdate IS 'The month, day, and year on which an individual was born.'; + + +-- +-- Name: COLUMN staff.hispaniclatinoethnicity; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.hispaniclatinoethnicity IS 'An indication that the individual traces his or her origin or descent to Mexico, Puerto Rico, Cuba, Central, and South America, and other Spanish cultures, regardless of race. The term, "Spanish origin," can be used in addition to "Hispanic or Latino."'; + + +-- +-- Name: COLUMN staff.oldethnicitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.oldethnicitydescriptorid IS 'Previous definition of Ethnicity combining Hispanic/Latino and race: + 1 - American Indian or Alaskan Native + 2 - Asian or Pacific Islander + 3 - Black, not of Hispanic origin + 4 - Hispanic + 5 - White, not of Hispanic origin.'; + + +-- +-- Name: COLUMN staff.citizenshipstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.citizenshipstatusdescriptorid IS 'An indicator of whether or not the person is a U.S. citizen.'; + + +-- +-- Name: COLUMN staff.highestcompletedlevelofeducationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.highestcompletedlevelofeducationdescriptorid IS 'The extent of formal instruction an individual has received (e.g., the highest grade in school completed or its equivalent or the highest degree received).'; + + +-- +-- Name: COLUMN staff.yearsofpriorprofessionalexperience; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.yearsofpriorprofessionalexperience IS 'The total number of years that an individual has previously held a similar professional position in one or more education institutions.'; + + +-- +-- Name: COLUMN staff.yearsofpriorteachingexperience; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.yearsofpriorteachingexperience IS 'The total number of years that an individual has previously held a teaching position in one or more education institutions.'; + + +-- +-- Name: COLUMN staff.loginid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.loginid IS 'The login ID for the user; used for security access control interface.'; + + +-- +-- Name: COLUMN staff.highlyqualifiedteacher; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.highlyqualifiedteacher IS 'An indication of whether a teacher is classified as highly qualified for his/her assignment according to state definition. This attribute indicates the teacher is highly qualified for ALL Sections being taught.'; + + +-- +-- Name: COLUMN staff.personid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.personid IS 'A unique alphanumeric code assigned to a person.'; + + +-- +-- Name: COLUMN staff.sourcesystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.sourcesystemdescriptorid IS 'This descriptor defines the originating record source system for the person.'; + + +-- +-- Name: COLUMN staff.staffuniqueid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staff.staffuniqueid IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staff_staffusi_seq; Type: SEQUENCE; Schema: edfi; Owner: postgres +-- + +CREATE SEQUENCE edfi.staff_staffusi_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE edfi.staff_staffusi_seq OWNER TO postgres; + +-- +-- Name: staff_staffusi_seq; Type: SEQUENCE OWNED BY; Schema: edfi; Owner: postgres +-- + +ALTER SEQUENCE edfi.staff_staffusi_seq OWNED BY edfi.staff.staffusi; + + +-- +-- Name: staffabsenceevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffabsenceevent ( + absenceeventcategorydescriptorid integer NOT NULL, + eventdate date NOT NULL, + staffusi integer NOT NULL, + absenceeventreason character varying(40), + hoursabsent numeric(18,2), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffabsenceevent OWNER TO postgres; + +-- +-- Name: TABLE staffabsenceevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffabsenceevent IS 'This event entity represents the recording of the dates of staff absence.'; + + +-- +-- Name: COLUMN staffabsenceevent.absenceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffabsenceevent.absenceeventcategorydescriptorid IS 'The code describing the type of absence.'; + + +-- +-- Name: COLUMN staffabsenceevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffabsenceevent.eventdate IS 'Date for this leave event.'; + + +-- +-- Name: COLUMN staffabsenceevent.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffabsenceevent.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffabsenceevent.absenceeventreason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffabsenceevent.absenceeventreason IS 'Expanded reason for the staff absence.'; + + +-- +-- Name: COLUMN staffabsenceevent.hoursabsent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffabsenceevent.hoursabsent IS 'The hours the staff was absent, if not the entire working day.'; + + +-- +-- Name: staffaddress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffaddress ( + addresstypedescriptorid integer NOT NULL, + city character varying(30) NOT NULL, + postalcode character varying(17) NOT NULL, + staffusi integer NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + apartmentroomsuitenumber character varying(50), + buildingsitenumber character varying(20), + nameofcounty character varying(30), + countyfipscode character varying(5), + latitude character varying(20), + longitude character varying(20), + donotpublishindicator boolean, + congressionaldistrict character varying(30), + localedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffaddress OWNER TO postgres; + +-- +-- Name: TABLE staffaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffaddress IS 'The set of elements that describes an address, including the street address, city, state, and ZIP code.'; + + +-- +-- Name: COLUMN staffaddress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN staffaddress.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN staffaddress.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN staffaddress.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffaddress.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN staffaddress.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN staffaddress.apartmentroomsuitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.apartmentroomsuitenumber IS 'The apartment, room, or suite number of an address.'; + + +-- +-- Name: COLUMN staffaddress.buildingsitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.buildingsitenumber IS 'The number of the building on the site, if more than one building shares the same address.'; + + +-- +-- Name: COLUMN staffaddress.nameofcounty; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.nameofcounty IS 'The name of the county, parish, borough, or comparable unit (within a state) in + ''which an address is located.'; + + +-- +-- Name: COLUMN staffaddress.countyfipscode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.countyfipscode IS 'The Federal Information Processing Standards (FIPS) numeric code for the county issued by the National Institute of Standards and Technology (NIST). Counties are considered to be the "first-order subdivisions" of each State and statistically equivalent entity, regardless of their local designations (county, parish, borough, etc.) Counties in different States will have the same code. A unique county number is created when combined with the 2-digit FIPS State Code.'; + + +-- +-- Name: COLUMN staffaddress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN staffaddress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN staffaddress.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.donotpublishindicator IS 'An indication that the address should not be published.'; + + +-- +-- Name: COLUMN staffaddress.congressionaldistrict; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.congressionaldistrict IS 'The congressional district in which an address is located.'; + + +-- +-- Name: COLUMN staffaddress.localedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddress.localedescriptorid IS 'A general geographic indicator that categorizes U.S. territory (e.g., City, Suburban).'; + + +-- +-- Name: staffaddressperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffaddressperiod ( + addresstypedescriptorid integer NOT NULL, + begindate date NOT NULL, + city character varying(30) NOT NULL, + postalcode character varying(17) NOT NULL, + staffusi integer NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffaddressperiod OWNER TO postgres; + +-- +-- Name: TABLE staffaddressperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffaddressperiod IS 'The time periods for which the address is valid. For physical addresses, the periods in which the person lived at that address.'; + + +-- +-- Name: COLUMN staffaddressperiod.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN staffaddressperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN staffaddressperiod.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN staffaddressperiod.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN staffaddressperiod.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffaddressperiod.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN staffaddressperiod.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN staffaddressperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffaddressperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: staffancestryethnicorigin; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffancestryethnicorigin ( + ancestryethnicorigindescriptorid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffancestryethnicorigin OWNER TO postgres; + +-- +-- Name: TABLE staffancestryethnicorigin; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffancestryethnicorigin IS 'The original peoples or cultures with which the individual identifies.'; + + +-- +-- Name: COLUMN staffancestryethnicorigin.ancestryethnicorigindescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffancestryethnicorigin.ancestryethnicorigindescriptorid IS 'The original peoples or cultures with which the individual identifies.'; + + +-- +-- Name: COLUMN staffancestryethnicorigin.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffancestryethnicorigin.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffclassificationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffclassificationdescriptor ( + staffclassificationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.staffclassificationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE staffclassificationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffclassificationdescriptor IS 'This descriptor defines an individual''s title of employment, official status or rank.'; + + +-- +-- Name: COLUMN staffclassificationdescriptor.staffclassificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffclassificationdescriptor.staffclassificationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: staffcohortassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffcohortassociation ( + begindate date NOT NULL, + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + enddate date, + studentrecordaccess boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffcohortassociation OWNER TO postgres; + +-- +-- Name: TABLE staffcohortassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffcohortassociation IS 'This association indicates the Staff associated with a cohort of students.'; + + +-- +-- Name: COLUMN staffcohortassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcohortassociation.begindate IS 'Start date for the association of staff to this cohort.'; + + +-- +-- Name: COLUMN staffcohortassociation.cohortidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcohortassociation.cohortidentifier IS 'The name or ID for the Cohort.'; + + +-- +-- Name: COLUMN staffcohortassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcohortassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffcohortassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcohortassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffcohortassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcohortassociation.enddate IS 'End date for the association of staff to this cohort.'; + + +-- +-- Name: COLUMN staffcohortassociation.studentrecordaccess; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcohortassociation.studentrecordaccess IS 'Indicator of whether the staff has access to the student records of the cohort per district interpretation of FERPA and other privacy laws, regulations, and policies.'; + + +-- +-- Name: staffcredential; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffcredential ( + credentialidentifier character varying(60) NOT NULL, + staffusi integer NOT NULL, + stateofissuestateabbreviationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffcredential OWNER TO postgres; + +-- +-- Name: TABLE staffcredential; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffcredential IS 'The legal document giving authorization to perform teaching assignment services.'; + + +-- +-- Name: COLUMN staffcredential.credentialidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcredential.credentialidentifier IS 'Identifier or serial number assigned to the credential.'; + + +-- +-- Name: COLUMN staffcredential.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcredential.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffcredential.stateofissuestateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffcredential.stateofissuestateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which a license/credential was issued.'; + + +-- +-- Name: staffdisciplineincidentassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffdisciplineincidentassociation ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffdisciplineincidentassociation OWNER TO postgres; + +-- +-- Name: TABLE staffdisciplineincidentassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffdisciplineincidentassociation IS 'This association indicates those staff who were victims, perpetrators, witnesses, and reporters for a discipline incident.'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociation.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociation.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffdisciplineincidentassociationdisciplineincidentpart_7fa4be; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be ( + disciplineincidentparticipationcodedescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be OWNER TO postgres; + +-- +-- Name: TABLE staffdisciplineincidentassociationdisciplineincidentpart_7fa4be; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be IS 'The role or type of participation of a student in a discipline incident (e.g., Victim, Perpetrator, Witness, Reporter).'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.disciplineincidentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.disciplineincidentparticipationcodedescriptorid IS 'The role or type of participation of a student in a discipline incident (e.g., Victim, Perpetrator, Witness, Reporter).'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffeducationorganizationcontactassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffeducationorganizationcontactassociation ( + contacttitle character varying(75) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + contacttypedescriptorid integer, + electronicmailaddress character varying(128) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffeducationorganizationcontactassociation OWNER TO postgres; + +-- +-- Name: TABLE staffeducationorganizationcontactassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffeducationorganizationcontactassociation IS 'This association provides the contact information of the staff associated with the education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociation.contacttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociation.contacttitle IS 'The title of the contact in the context of the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociation.contacttypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociation.contacttypedescriptorid IS 'Indicates the type for the contact information.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociation.electronicmailaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociation.electronicmailaddress IS 'The email for the contact associated with the EducationOrganization.'; + + +-- +-- Name: staffeducationorganizationcontactassociationaddress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffeducationorganizationcontactassociationaddress ( + contacttitle character varying(75) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + apartmentroomsuitenumber character varying(50), + buildingsitenumber character varying(20), + city character varying(30) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + postalcode character varying(17) NOT NULL, + nameofcounty character varying(30), + countyfipscode character varying(5), + latitude character varying(20), + longitude character varying(20), + addresstypedescriptorid integer NOT NULL, + donotpublishindicator boolean, + congressionaldistrict character varying(30), + localedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffeducationorganizationcontactassociationaddress OWNER TO postgres; + +-- +-- Name: TABLE staffeducationorganizationcontactassociationaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffeducationorganizationcontactassociationaddress IS 'The optional address for the contact associated with the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.contacttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.contacttitle IS 'The title of the contact in the context of the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.apartmentroomsuitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.apartmentroomsuitenumber IS 'The apartment, room, or suite number of an address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.buildingsitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.buildingsitenumber IS 'The number of the building on the site, if more than one building shares the same address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.nameofcounty; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.nameofcounty IS 'The name of the county, parish, borough, or comparable unit (within a state) in + ''which an address is located.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.countyfipscode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.countyfipscode IS 'The Federal Information Processing Standards (FIPS) numeric code for the county issued by the National Institute of Standards and Technology (NIST). Counties are considered to be the "first-order subdivisions" of each State and statistically equivalent entity, regardless of their local designations (county, parish, borough, etc.) Counties in different States will have the same code. A unique county number is created when combined with the 2-digit FIPS State Code.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.donotpublishindicator IS 'An indication that the address should not be published.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.congressionaldistrict; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.congressionaldistrict IS 'The congressional district in which an address is located.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddress.localedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddress.localedescriptorid IS 'A general geographic indicator that categorizes U.S. territory (e.g., City, Suburban).'; + + +-- +-- Name: staffeducationorganizationcontactassociationaddressperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffeducationorganizationcontactassociationaddressperiod ( + begindate date NOT NULL, + contacttitle character varying(75) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffeducationorganizationcontactassociationaddressperiod OWNER TO postgres; + +-- +-- Name: TABLE staffeducationorganizationcontactassociationaddressperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffeducationorganizationcontactassociationaddressperiod IS 'The time periods for which the address is valid. For physical addresses, the periods in which the person lived at that address.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddressperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddressperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddressperiod.contacttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddressperiod.contacttitle IS 'The title of the contact in the context of the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddressperiod.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddressperiod.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddressperiod.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddressperiod.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationaddressperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationaddressperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: staffeducationorganizationcontactassociationtelephone; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffeducationorganizationcontactassociationtelephone ( + contacttitle character varying(75) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + telephonenumber character varying(24) NOT NULL, + telephonenumbertypedescriptorid integer NOT NULL, + orderofpriority integer, + textmessagecapabilityindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffeducationorganizationcontactassociationtelephone OWNER TO postgres; + +-- +-- Name: TABLE staffeducationorganizationcontactassociationtelephone; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffeducationorganizationcontactassociationtelephone IS 'The optional telephone for the contact associated with the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.contacttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.contacttitle IS 'The title of the contact in the context of the EducationOrganization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.telephonenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.telephonenumber IS 'The telephone number including the area code, and extension, if applicable.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.telephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.telephonenumbertypedescriptorid IS 'The type of communication number listed for an individual or organization.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.orderofpriority; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.orderofpriority IS 'The order of priority assigned to telephone numbers to define which number to attempt first, second, etc.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.textmessagecapabilityindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.textmessagecapabilityindicator IS 'An indication that the telephone number is technically capable of sending and receiving Short Message Service (SMS) text messages.'; + + +-- +-- Name: COLUMN staffeducationorganizationcontactassociationtelephone.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffeducationorganizationcontactassociationtelephone.donotpublishindicator IS 'An indication that the telephone number should not be published.'; + + +-- +-- Name: staffelectronicmail; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffelectronicmail ( + electronicmailaddress character varying(128) NOT NULL, + electronicmailtypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + primaryemailaddressindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffelectronicmail OWNER TO postgres; + +-- +-- Name: TABLE staffelectronicmail; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffelectronicmail IS 'The numbers, letters, and symbols used to identify an electronic mail (e-mail) user within the network to which the individual or organization belongs.'; + + +-- +-- Name: COLUMN staffelectronicmail.electronicmailaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffelectronicmail.electronicmailaddress IS 'The electronic mail (e-mail) address listed for an individual or organization.'; + + +-- +-- Name: COLUMN staffelectronicmail.electronicmailtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffelectronicmail.electronicmailtypedescriptorid IS 'The type of email listed for an individual or organization. For example: Home/Personal, Work, etc.)'; + + +-- +-- Name: COLUMN staffelectronicmail.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffelectronicmail.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffelectronicmail.primaryemailaddressindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffelectronicmail.primaryemailaddressindicator IS 'An indication that the electronic mail address should be used as the principal electronic mail address for an individual or organization.'; + + +-- +-- Name: COLUMN staffelectronicmail.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffelectronicmail.donotpublishindicator IS 'An indication that the electronic email address should not be published.'; + + +-- +-- Name: staffidentificationcode; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffidentificationcode ( + staffidentificationsystemdescriptorid integer NOT NULL, + staffusi integer NOT NULL, + identificationcode character varying(60) NOT NULL, + assigningorganizationidentificationcode character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffidentificationcode OWNER TO postgres; + +-- +-- Name: TABLE staffidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffidentificationcode IS 'A unique number or alphanumeric code assigned to a staff member by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN staffidentificationcode.staffidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationcode.staffidentificationsystemdescriptorid IS 'A coding scheme that is used for identification and record-keeping purposes by schools, social services, or other agencies to refer to a staff member.'; + + +-- +-- Name: COLUMN staffidentificationcode.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationcode.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffidentificationcode.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationcode.identificationcode IS 'A unique number or alphanumeric code assigned to a staff member by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN staffidentificationcode.assigningorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationcode.assigningorganizationidentificationcode IS 'The organization code or name assigning the staff Identification Code.'; + + +-- +-- Name: staffidentificationdocument; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffidentificationdocument ( + identificationdocumentusedescriptorid integer NOT NULL, + personalinformationverificationdescriptorid integer NOT NULL, + staffusi integer NOT NULL, + documenttitle character varying(60), + documentexpirationdate date, + issuerdocumentidentificationcode character varying(60), + issuername character varying(150), + issuercountrydescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffidentificationdocument OWNER TO postgres; + +-- +-- Name: TABLE staffidentificationdocument; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffidentificationdocument IS 'Describe the documentation of citizenship.'; + + +-- +-- Name: COLUMN staffidentificationdocument.identificationdocumentusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.identificationdocumentusedescriptorid IS 'The primary function of the document used for establishing identity.'; + + +-- +-- Name: COLUMN staffidentificationdocument.personalinformationverificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.personalinformationverificationdescriptorid IS 'The category of the document relative to its purpose.'; + + +-- +-- Name: COLUMN staffidentificationdocument.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffidentificationdocument.documenttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.documenttitle IS 'The title of the document given by the issuer.'; + + +-- +-- Name: COLUMN staffidentificationdocument.documentexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.documentexpirationdate IS 'The day when the document expires, if null then never expires.'; + + +-- +-- Name: COLUMN staffidentificationdocument.issuerdocumentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.issuerdocumentidentificationcode IS 'The unique identifier on the issuer''s identification system.'; + + +-- +-- Name: COLUMN staffidentificationdocument.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.issuername IS 'Name of the entity or institution that issued the document.'; + + +-- +-- Name: COLUMN staffidentificationdocument.issuercountrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationdocument.issuercountrydescriptorid IS 'Country of origin of the document. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: staffidentificationsystemdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffidentificationsystemdescriptor ( + staffidentificationsystemdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.staffidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: TABLE staffidentificationsystemdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffidentificationsystemdescriptor IS 'This descriptor defines the originating record system and code that is used for record-keeping purposes of the staff.'; + + +-- +-- Name: COLUMN staffidentificationsystemdescriptor.staffidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffidentificationsystemdescriptor.staffidentificationsystemdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: staffinternationaladdress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffinternationaladdress ( + addresstypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + addressline1 character varying(150) NOT NULL, + addressline2 character varying(150), + addressline3 character varying(150), + addressline4 character varying(150), + countrydescriptorid integer NOT NULL, + latitude character varying(20), + longitude character varying(20), + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffinternationaladdress OWNER TO postgres; + +-- +-- Name: TABLE staffinternationaladdress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffinternationaladdress IS 'The set of elements that describes an international address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN staffinternationaladdress.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffinternationaladdress.addressline1; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.addressline1 IS 'The first line of the address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.addressline2; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.addressline2 IS 'The second line of the address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.addressline3; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.addressline3 IS 'The third line of the address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.addressline4; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.addressline4 IS 'The fourth line of the address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.countrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.countrydescriptorid IS 'The name of the country. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: COLUMN staffinternationaladdress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.begindate IS 'The first date the address is valid. For physical addresses, the date the person moved to that address.'; + + +-- +-- Name: COLUMN staffinternationaladdress.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffinternationaladdress.enddate IS 'The last date the address is valid. For physical addresses, this would be the date the person moved from that address.'; + + +-- +-- Name: stafflanguage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stafflanguage ( + languagedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.stafflanguage OWNER TO postgres; + +-- +-- Name: TABLE stafflanguage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stafflanguage IS 'The language(s) the individual uses to communicate. It is strongly recommended that entries use only ISO 639-2 language codes.'; + + +-- +-- Name: COLUMN stafflanguage.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafflanguage.languagedescriptorid IS 'A specification of which written or spoken communication is being used.'; + + +-- +-- Name: COLUMN stafflanguage.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafflanguage.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: stafflanguageuse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stafflanguageuse ( + languagedescriptorid integer NOT NULL, + languageusedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.stafflanguageuse OWNER TO postgres; + +-- +-- Name: TABLE stafflanguageuse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stafflanguageuse IS 'A description of how the language is used (e.g. Home Language, Native Language, Spoken Language).'; + + +-- +-- Name: COLUMN stafflanguageuse.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafflanguageuse.languagedescriptorid IS 'A specification of which written or spoken communication is being used.'; + + +-- +-- Name: COLUMN stafflanguageuse.languageusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafflanguageuse.languageusedescriptorid IS 'A description of how the language is used (e.g. Home Language, Native Language, Spoken Language).'; + + +-- +-- Name: COLUMN stafflanguageuse.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafflanguageuse.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffleave; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffleave ( + begindate date NOT NULL, + staffleaveeventcategorydescriptorid integer NOT NULL, + staffusi integer NOT NULL, + enddate date, + reason character varying(40), + substituteassigned boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffleave OWNER TO postgres; + +-- +-- Name: TABLE staffleave; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffleave IS 'This entity represents the recording of the dates of staff leave (e.g., sick leave, personal time, vacation).'; + + +-- +-- Name: COLUMN staffleave.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleave.begindate IS 'The begin date of the staff leave.'; + + +-- +-- Name: COLUMN staffleave.staffleaveeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleave.staffleaveeventcategorydescriptorid IS 'The code describing the type of leave taken, for example: Sick, Personal, Vacation.'; + + +-- +-- Name: COLUMN staffleave.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleave.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffleave.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleave.enddate IS 'The end date of the staff leave.'; + + +-- +-- Name: COLUMN staffleave.reason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleave.reason IS 'Expanded reason for the staff leave.'; + + +-- +-- Name: COLUMN staffleave.substituteassigned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleave.substituteassigned IS 'Indicator of whether a substitute was assigned during the period of staff leave.'; + + +-- +-- Name: staffleaveeventcategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffleaveeventcategorydescriptor ( + staffleaveeventcategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.staffleaveeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE staffleaveeventcategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffleaveeventcategorydescriptor IS 'A code describing the type of the leave event.'; + + +-- +-- Name: COLUMN staffleaveeventcategorydescriptor.staffleaveeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffleaveeventcategorydescriptor.staffleaveeventcategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: staffothername; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffothername ( + othernametypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + personaltitleprefix character varying(30), + firstname character varying(75) NOT NULL, + middlename character varying(75), + lastsurname character varying(75) NOT NULL, + generationcodesuffix character varying(10), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffothername OWNER TO postgres; + +-- +-- Name: TABLE staffothername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffothername IS 'Other names (e.g., alias, nickname, previous legal name) associated with a person.'; + + +-- +-- Name: COLUMN staffothername.othernametypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.othernametypedescriptorid IS 'The types of alternate names for a person.'; + + +-- +-- Name: COLUMN staffothername.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffothername.personaltitleprefix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.personaltitleprefix IS 'A prefix used to denote the title, degree, position, or seniority of the person.'; + + +-- +-- Name: COLUMN staffothername.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN staffothername.middlename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.middlename IS 'A secondary name given to an individual at birth, baptism, or during another naming ceremony.'; + + +-- +-- Name: COLUMN staffothername.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN staffothername.generationcodesuffix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffothername.generationcodesuffix IS 'An appendage, if any, used to denote an individual''s generation in his family (e.g., Jr., Sr., III).'; + + +-- +-- Name: staffpersonalidentificationdocument; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffpersonalidentificationdocument ( + identificationdocumentusedescriptorid integer NOT NULL, + personalinformationverificationdescriptorid integer NOT NULL, + staffusi integer NOT NULL, + documenttitle character varying(60), + documentexpirationdate date, + issuerdocumentidentificationcode character varying(60), + issuername character varying(150), + issuercountrydescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffpersonalidentificationdocument OWNER TO postgres; + +-- +-- Name: TABLE staffpersonalidentificationdocument; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffpersonalidentificationdocument IS 'The documents presented as evident to verify one''s personal identity; for example: drivers license, passport, birth certificate, etc.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.identificationdocumentusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.identificationdocumentusedescriptorid IS 'The primary function of the document used for establishing identity.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.personalinformationverificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.personalinformationverificationdescriptorid IS 'The category of the document relative to its purpose.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.documenttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.documenttitle IS 'The title of the document given by the issuer.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.documentexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.documentexpirationdate IS 'The day when the document expires, if null then never expires.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.issuerdocumentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.issuerdocumentidentificationcode IS 'The unique identifier on the issuer''s identification system.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.issuername IS 'Name of the entity or institution that issued the document.'; + + +-- +-- Name: COLUMN staffpersonalidentificationdocument.issuercountrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffpersonalidentificationdocument.issuercountrydescriptorid IS 'Country of origin of the document. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: staffprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffprogramassociation ( + begindate date NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + enddate date, + studentrecordaccess boolean, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE staffprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffprogramassociation IS 'This association indicates the Staff associated with a program.'; + + +-- +-- Name: COLUMN staffprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.begindate IS 'Start date for the association of staff to this program.'; + + +-- +-- Name: COLUMN staffprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN staffprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN staffprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN staffprogramassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffprogramassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.enddate IS 'End date for the association of staff to this program.'; + + +-- +-- Name: COLUMN staffprogramassociation.studentrecordaccess; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffprogramassociation.studentrecordaccess IS 'Indicator of whether the staff has access to the student records of the program per district interpretation of FERPA and other privacy laws, regulations, and policies.'; + + +-- +-- Name: staffrace; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffrace ( + racedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffrace OWNER TO postgres; + +-- +-- Name: TABLE staffrace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffrace IS 'The general racial category which most clearly reflects the individual''s recognition of his or her community or with which the individual most identifies. The way this data element is listed, it must allow for multiple entries so that each individual can specify all appropriate races.'; + + +-- +-- Name: COLUMN staffrace.racedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrace.racedescriptorid IS 'The general racial category which most clearly reflects the individual''s recognition of his or her community or with which the individual most identifies. The way this data element is listed, it must allow for multiple entries so that each individual can specify all appropriate races.'; + + +-- +-- Name: COLUMN staffrace.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrace.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffrecognition; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffrecognition ( + recognitiontypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + achievementtitle character varying(60), + achievementcategorydescriptorid integer, + achievementcategorysystem character varying(60), + issuername character varying(150), + issueroriginurl character varying(255), + criteria character varying(150), + criteriaurl character varying(255), + evidencestatement character varying(150), + imageurl character varying(255), + recognitiondescription character varying(80), + recognitionawarddate date, + recognitionawardexpiresdate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffrecognition OWNER TO postgres; + +-- +-- Name: TABLE staffrecognition; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffrecognition IS 'Recognitions given to the staff for accomplishments in a co-curricular or extracurricular activity.'; + + +-- +-- Name: COLUMN staffrecognition.recognitiontypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.recognitiontypedescriptorid IS 'The nature of recognition given to the learner for accomplishments in a co-curricular, or extra-curricular activity.'; + + +-- +-- Name: COLUMN staffrecognition.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffrecognition.achievementtitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.achievementtitle IS 'The title assigned to the achievement.'; + + +-- +-- Name: COLUMN staffrecognition.achievementcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.achievementcategorydescriptorid IS 'The category of achievement attributed to the learner.'; + + +-- +-- Name: COLUMN staffrecognition.achievementcategorysystem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.achievementcategorysystem IS 'The system that defines the categories by which an achievement is attributed to the learner.'; + + +-- +-- Name: COLUMN staffrecognition.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.issuername IS 'The name of the agent, entity, or institution issuing the element.'; + + +-- +-- Name: COLUMN staffrecognition.issueroriginurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.issueroriginurl IS 'The Uniform Resource Locator (URL) from which the award was issued.'; + + +-- +-- Name: COLUMN staffrecognition.criteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.criteria IS 'The criteria for competency-based completion of the achievement/award.'; + + +-- +-- Name: COLUMN staffrecognition.criteriaurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.criteriaurl IS 'The Uniform Resource Locator (URL) for the unique address of a web page describing the competency-based completion criteria for the achievement/award.'; + + +-- +-- Name: COLUMN staffrecognition.evidencestatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.evidencestatement IS 'A statement or reference describing the evidence that the learner met the criteria for attainment of the Achievement.'; + + +-- +-- Name: COLUMN staffrecognition.imageurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.imageurl IS 'The Uniform Resource Locator (URL) for the unique address of an image representing an award or badge associated with the Achievement.'; + + +-- +-- Name: COLUMN staffrecognition.recognitiondescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.recognitiondescription IS 'A description of the type of academic distinctions earned by or awarded to the individual.'; + + +-- +-- Name: COLUMN staffrecognition.recognitionawarddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.recognitionawarddate IS 'The date the recognition was awarded or earned.'; + + +-- +-- Name: COLUMN staffrecognition.recognitionawardexpiresdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffrecognition.recognitionawardexpiresdate IS 'Date on which the award expires.'; + + +-- +-- Name: staffschoolassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffschoolassociation ( + programassignmentdescriptorid integer NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + calendarcode character varying(60), + schoolyear smallint, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffschoolassociation OWNER TO postgres; + +-- +-- Name: TABLE staffschoolassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffschoolassociation IS 'This association indicates the School(s) to which a staff member provides instructional services.'; + + +-- +-- Name: COLUMN staffschoolassociation.programassignmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociation.programassignmentdescriptorid IS 'The name of the program for which the individual is assigned; for example: + Regular education + Title I-Academic + Title I-Non-Academic + Special Education + Bilingual/English as a Second Language.'; + + +-- +-- Name: COLUMN staffschoolassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN staffschoolassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffschoolassociation.calendarcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociation.calendarcode IS 'The identifier for the Calendar.'; + + +-- +-- Name: COLUMN staffschoolassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociation.schoolyear IS 'Identifier for a school year.'; + + +-- +-- Name: staffschoolassociationacademicsubject; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffschoolassociationacademicsubject ( + academicsubjectdescriptorid integer NOT NULL, + programassignmentdescriptorid integer NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffschoolassociationacademicsubject OWNER TO postgres; + +-- +-- Name: TABLE staffschoolassociationacademicsubject; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffschoolassociationacademicsubject IS 'The academic subjects the individual is eligible to teach.'; + + +-- +-- Name: COLUMN staffschoolassociationacademicsubject.academicsubjectdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationacademicsubject.academicsubjectdescriptorid IS 'The academic subjects the individual is eligible to teach.'; + + +-- +-- Name: COLUMN staffschoolassociationacademicsubject.programassignmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationacademicsubject.programassignmentdescriptorid IS 'The name of the program for which the individual is assigned; for example: + Regular education + Title I-Academic + Title I-Non-Academic + Special Education + Bilingual/English as a Second Language.'; + + +-- +-- Name: COLUMN staffschoolassociationacademicsubject.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationacademicsubject.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN staffschoolassociationacademicsubject.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationacademicsubject.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffschoolassociationgradelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffschoolassociationgradelevel ( + gradeleveldescriptorid integer NOT NULL, + programassignmentdescriptorid integer NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffschoolassociationgradelevel OWNER TO postgres; + +-- +-- Name: TABLE staffschoolassociationgradelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffschoolassociationgradelevel IS 'The grade levels the individual is eligible to teach.'; + + +-- +-- Name: COLUMN staffschoolassociationgradelevel.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationgradelevel.gradeleveldescriptorid IS 'The grade levels the individual is eligible to teach.'; + + +-- +-- Name: COLUMN staffschoolassociationgradelevel.programassignmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationgradelevel.programassignmentdescriptorid IS 'The name of the program for which the individual is assigned; for example: + Regular education + Title I-Academic + Title I-Non-Academic + Special Education + Bilingual/English as a Second Language.'; + + +-- +-- Name: COLUMN staffschoolassociationgradelevel.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationgradelevel.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN staffschoolassociationgradelevel.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffschoolassociationgradelevel.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: staffsectionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffsectionassociation ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + staffusi integer NOT NULL, + classroompositiondescriptorid integer NOT NULL, + begindate date, + enddate date, + highlyqualifiedteacher boolean, + teacherstudentdatalinkexclusion boolean, + percentagecontribution numeric(5,4), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.staffsectionassociation OWNER TO postgres; + +-- +-- Name: TABLE staffsectionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffsectionassociation IS 'This association indicates the class sections to which a staff member is assigned.'; + + +-- +-- Name: COLUMN staffsectionassociation.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN staffsectionassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN staffsectionassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN staffsectionassociation.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN staffsectionassociation.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN staffsectionassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffsectionassociation.classroompositiondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.classroompositiondescriptorid IS 'The type of position the Staff member holds in the specific class/section; for example: + Teacher of Record, Assistant Teacher, Support Teacher, Substitute Teacher...'; + + +-- +-- Name: COLUMN staffsectionassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.begindate IS 'Month, day, and year of a teacher''s assignment to the Section. If blank, defaults to the first day of the first grading period for the Section.'; + + +-- +-- Name: COLUMN staffsectionassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.enddate IS 'Month, day, and year of the last day of a staff member''s assignment to the Section.'; + + +-- +-- Name: COLUMN staffsectionassociation.highlyqualifiedteacher; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.highlyqualifiedteacher IS 'An indication of whether a teacher is classified as highly qualified for his/her assignment according to state definition. This attribute indicates the teacher is highly qualified for this section being taught.'; + + +-- +-- Name: COLUMN staffsectionassociation.teacherstudentdatalinkexclusion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.teacherstudentdatalinkexclusion IS 'Indicates that the entire section is excluded from calculation of value-added or growth attribution calculations used for a particular teacher evaluation.'; + + +-- +-- Name: COLUMN staffsectionassociation.percentagecontribution; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffsectionassociation.percentagecontribution IS 'Indicates the percentage of the total scheduled course time, academic standards, and/or learning activities delivered in this section by this staff member. A teacher of record designation may be based solely or partially on this contribution percentage.'; + + +-- +-- Name: stafftelephone; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stafftelephone ( + staffusi integer NOT NULL, + telephonenumber character varying(24) NOT NULL, + telephonenumbertypedescriptorid integer NOT NULL, + orderofpriority integer, + textmessagecapabilityindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.stafftelephone OWNER TO postgres; + +-- +-- Name: TABLE stafftelephone; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stafftelephone IS 'The 10-digit telephone number, including the area code, for the person.'; + + +-- +-- Name: COLUMN stafftelephone.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftelephone.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN stafftelephone.telephonenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftelephone.telephonenumber IS 'The telephone number including the area code, and extension, if applicable.'; + + +-- +-- Name: COLUMN stafftelephone.telephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftelephone.telephonenumbertypedescriptorid IS 'The type of communication number listed for an individual or organization.'; + + +-- +-- Name: COLUMN stafftelephone.orderofpriority; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftelephone.orderofpriority IS 'The order of priority assigned to telephone numbers to define which number to attempt first, second, etc.'; + + +-- +-- Name: COLUMN stafftelephone.textmessagecapabilityindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftelephone.textmessagecapabilityindicator IS 'An indication that the telephone number is technically capable of sending and receiving Short Message Service (SMS) text messages.'; + + +-- +-- Name: COLUMN stafftelephone.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftelephone.donotpublishindicator IS 'An indication that the telephone number should not be published.'; + + +-- +-- Name: stafftribalaffiliation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stafftribalaffiliation ( + staffusi integer NOT NULL, + tribalaffiliationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.stafftribalaffiliation OWNER TO postgres; + +-- +-- Name: TABLE stafftribalaffiliation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stafftribalaffiliation IS 'An American Indian tribe with which the staff member is affiliated.'; + + +-- +-- Name: COLUMN stafftribalaffiliation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftribalaffiliation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN stafftribalaffiliation.tribalaffiliationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stafftribalaffiliation.tribalaffiliationdescriptorid IS 'An American Indian tribe with which the staff member is affiliated.'; + + +-- +-- Name: staffvisa; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.staffvisa ( + staffusi integer NOT NULL, + visadescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.staffvisa OWNER TO postgres; + +-- +-- Name: TABLE staffvisa; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.staffvisa IS 'An indicator of a non-US citizen''s Visa type.'; + + +-- +-- Name: COLUMN staffvisa.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffvisa.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN staffvisa.visadescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.staffvisa.visadescriptorid IS 'An indicator of a non-US citizen''s Visa type.'; + + +-- +-- Name: stateabbreviationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stateabbreviationdescriptor ( + stateabbreviationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.stateabbreviationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE stateabbreviationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stateabbreviationdescriptor IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN stateabbreviationdescriptor.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateabbreviationdescriptor.stateabbreviationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: stateeducationagency; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stateeducationagency ( + stateeducationagencyid integer NOT NULL +); + + +ALTER TABLE edfi.stateeducationagency OWNER TO postgres; + +-- +-- Name: TABLE stateeducationagency; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stateeducationagency IS 'This entity represents the agency of the state charged with the primary responsibility for coordinating and supervising public instruction, including the setting of standards for elementary and secondary instructional programs.'; + + +-- +-- Name: COLUMN stateeducationagency.stateeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagency.stateeducationagencyid IS 'The identifier assigned to a state education agency.'; + + +-- +-- Name: stateeducationagencyaccountability; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stateeducationagencyaccountability ( + schoolyear smallint NOT NULL, + stateeducationagencyid integer NOT NULL, + ctegraduationrateinclusion boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.stateeducationagencyaccountability OWNER TO postgres; + +-- +-- Name: TABLE stateeducationagencyaccountability; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stateeducationagencyaccountability IS 'This entity maintains information about federal reporting and accountability for state education agencies.'; + + +-- +-- Name: COLUMN stateeducationagencyaccountability.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagencyaccountability.schoolyear IS 'The school year for which the accountability is reported.'; + + +-- +-- Name: COLUMN stateeducationagencyaccountability.stateeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagencyaccountability.stateeducationagencyid IS 'The identifier assigned to a state education agency.'; + + +-- +-- Name: COLUMN stateeducationagencyaccountability.ctegraduationrateinclusion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagencyaccountability.ctegraduationrateinclusion IS 'An indication of whether CTE concentrators are included in the state''s computation of its graduation rate.'; + + +-- +-- Name: stateeducationagencyfederalfunds; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.stateeducationagencyfederalfunds ( + fiscalyear integer NOT NULL, + stateeducationagencyid integer NOT NULL, + federalprogramsfundingallocation money, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.stateeducationagencyfederalfunds OWNER TO postgres; + +-- +-- Name: TABLE stateeducationagencyfederalfunds; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.stateeducationagencyfederalfunds IS 'Contains the information about the reception and use of federal funds for reporting purposes.'; + + +-- +-- Name: COLUMN stateeducationagencyfederalfunds.fiscalyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagencyfederalfunds.fiscalyear IS 'The fiscal year for which the federal funds are received.'; + + +-- +-- Name: COLUMN stateeducationagencyfederalfunds.stateeducationagencyid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagencyfederalfunds.stateeducationagencyid IS 'The identifier assigned to a state education agency.'; + + +-- +-- Name: COLUMN stateeducationagencyfederalfunds.federalprogramsfundingallocation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.stateeducationagencyfederalfunds.federalprogramsfundingallocation IS 'The amount of federal dollars distributed to Local Education Agencies (LEAs), retained by the State Education Agency (SEA) for program administration or other approved state-level activities (including unallocated, transferred to another state agency, or distributed to entities other than LEAs).'; + + +-- +-- Name: student; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.student ( + studentusi integer NOT NULL, + personaltitleprefix character varying(30), + firstname character varying(75) NOT NULL, + middlename character varying(75), + lastsurname character varying(75) NOT NULL, + generationcodesuffix character varying(10), + maidenname character varying(75), + birthdate date NOT NULL, + birthcity character varying(30), + birthstateabbreviationdescriptorid integer, + birthinternationalprovince character varying(150), + birthcountrydescriptorid integer, + dateenteredus date, + multiplebirthstatus boolean, + birthsexdescriptorid integer, + citizenshipstatusdescriptorid integer, + personid character varying(32), + sourcesystemdescriptorid integer, + studentuniqueid character varying(32) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.student OWNER TO postgres; + +-- +-- Name: TABLE student; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.student IS 'This entity represents an individual for whom instruction, services, and/or care are provided in an early childhood, elementary, or secondary educational program under the jurisdiction of a school, education agency or other institution or program. A student is a person who has been enrolled in a school or other educational institution.'; + + +-- +-- Name: COLUMN student.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN student.personaltitleprefix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.personaltitleprefix IS 'A prefix used to denote the title, degree, position, or seniority of the person.'; + + +-- +-- Name: COLUMN student.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN student.middlename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.middlename IS 'A secondary name given to an individual at birth, baptism, or during another naming ceremony.'; + + +-- +-- Name: COLUMN student.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN student.generationcodesuffix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.generationcodesuffix IS 'An appendage, if any, used to denote an individual''s generation in his family (e.g., Jr., Sr., III).'; + + +-- +-- Name: COLUMN student.maidenname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.maidenname IS 'The person''s maiden name.'; + + +-- +-- Name: COLUMN student.birthdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.birthdate IS 'The month, day, and year on which an individual was born.'; + + +-- +-- Name: COLUMN student.birthcity; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.birthcity IS 'The city the student was born in.'; + + +-- +-- Name: COLUMN student.birthstateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.birthstateabbreviationdescriptorid IS 'The abbreviation for the name of the state (within the United States) or extra-state jurisdiction in which an individual was born.'; + + +-- +-- Name: COLUMN student.birthinternationalprovince; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.birthinternationalprovince IS 'For students born outside of the U.S., the Province or jurisdiction in which an individual is born.'; + + +-- +-- Name: COLUMN student.birthcountrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.birthcountrydescriptorid IS 'The country in which an individual is born. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: COLUMN student.dateenteredus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.dateenteredus IS 'For students born outside of the U.S., the date the student entered the U.S.'; + + +-- +-- Name: COLUMN student.multiplebirthstatus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.multiplebirthstatus IS 'Indicator of whether the student was born with other siblings (i.e., twins, triplets, etc.)'; + + +-- +-- Name: COLUMN student.birthsexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.birthsexdescriptorid IS 'A person''s gender at birth.'; + + +-- +-- Name: COLUMN student.citizenshipstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.citizenshipstatusdescriptorid IS 'An indicator of whether or not the person is a U.S. citizen.'; + + +-- +-- Name: COLUMN student.personid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.personid IS 'A unique alphanumeric code assigned to a person.'; + + +-- +-- Name: COLUMN student.sourcesystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.sourcesystemdescriptorid IS 'This descriptor defines the originating record source system for the person.'; + + +-- +-- Name: COLUMN student.studentuniqueid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.student.studentuniqueid IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: student_studentusi_seq; Type: SEQUENCE; Schema: edfi; Owner: postgres +-- + +CREATE SEQUENCE edfi.student_studentusi_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE edfi.student_studentusi_seq OWNER TO postgres; + +-- +-- Name: student_studentusi_seq; Type: SEQUENCE OWNED BY; Schema: edfi; Owner: postgres +-- + +ALTER SEQUENCE edfi.student_studentusi_seq OWNED BY edfi.student.studentusi; + + +-- +-- Name: studentacademicrecord; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecord ( + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + cumulativeearnedcredits numeric(9,3), + cumulativeearnedcredittypedescriptorid integer, + cumulativeearnedcreditconversion numeric(9,2), + cumulativeattemptedcredits numeric(9,3), + cumulativeattemptedcredittypedescriptorid integer, + cumulativeattemptedcreditconversion numeric(9,2), + cumulativegradepointsearned numeric(18,4), + cumulativegradepointaverage numeric(18,4), + gradevaluequalifier character varying(80), + projectedgraduationdate date, + sessionearnedcredits numeric(9,3), + sessionearnedcredittypedescriptorid integer, + sessionearnedcreditconversion numeric(9,2), + sessionattemptedcredits numeric(9,3), + sessionattemptedcredittypedescriptorid integer, + sessionattemptedcreditconversion numeric(9,2), + sessiongradepointsearned numeric(18,4), + sessiongradepointaverage numeric(18,4), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecord OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecord; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecord IS 'This educational entity represents the cumulative record of academic achievement for a student.'; + + +-- +-- Name: COLUMN studentacademicrecord.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecord.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecord.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecord.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativeearnedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativeearnedcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativeearnedcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativeearnedcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativeearnedcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativeearnedcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativeattemptedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativeattemptedcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativeattemptedcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativeattemptedcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativeattemptedcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativeattemptedcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativegradepointsearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativegradepointsearned IS 'The cumulative number of grade points an individual earns by successfully completing courses or examinations during his or her enrollment in the current school as well as those transferred from schools in which the individual had been previously enrolled.'; + + +-- +-- Name: COLUMN studentacademicrecord.cumulativegradepointaverage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.cumulativegradepointaverage IS 'A measure of average performance in all courses taken by an individual during his or her school career as determined for record-keeping purposes. This is obtained by dividing the total grade points received by the total number of credits attempted. This usually includes grade points received and credits attempted in his or her current school as well as those transferred from schools in which the individual was previously enrolled.'; + + +-- +-- Name: COLUMN studentacademicrecord.gradevaluequalifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.gradevaluequalifier IS 'The scale of equivalents, if applicable, for grades awarded as indicators of performance in schoolwork. For example, numerical equivalents for letter grades used in determining a student''s Grade Point Average (A=4, B=3, C=2, D=1 in a four-point system) or letter equivalents for percentage grades (90-100%=A, 80-90%=B, etc.)'; + + +-- +-- Name: COLUMN studentacademicrecord.projectedgraduationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.projectedgraduationdate IS 'The month and year the student is projected to graduate.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessionearnedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessionearnedcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessionearnedcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessionearnedcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessionearnedcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessionearnedcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessionattemptedcredits; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessionattemptedcredits IS 'The value of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessionattemptedcredittypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessionattemptedcredittypedescriptorid IS 'The type of credits or units of value awarded for the completion of a course.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessionattemptedcreditconversion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessionattemptedcreditconversion IS 'Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessiongradepointsearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessiongradepointsearned IS 'The number of grade points an individual earned for this session.'; + + +-- +-- Name: COLUMN studentacademicrecord.sessiongradepointaverage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecord.sessiongradepointaverage IS 'The grade point average for an individual computed as the grade points earned during the session divided by the number of credits attempted.'; + + +-- +-- Name: studentacademicrecordacademichonor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecordacademichonor ( + academichonorcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + honordescription character varying(80) NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + achievementtitle character varying(60), + achievementcategorydescriptorid integer, + achievementcategorysystem character varying(60), + issuername character varying(150), + issueroriginurl character varying(255), + criteria character varying(150), + criteriaurl character varying(255), + evidencestatement character varying(150), + imageurl character varying(255), + honorawarddate date, + honorawardexpiresdate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecordacademichonor OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecordacademichonor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecordacademichonor IS 'Academic distinctions earned by or awarded to the student.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.academichonorcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.academichonorcategorydescriptorid IS 'A designation of the type of academic distinctions earned by or awarded to the student.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.honordescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.honordescription IS 'A description of the type of academic distinctions earned by or awarded to the individual.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.achievementtitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.achievementtitle IS 'The title assigned to the achievement.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.achievementcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.achievementcategorydescriptorid IS 'The category of achievement attributed to the learner.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.achievementcategorysystem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.achievementcategorysystem IS 'The system that defines the categories by which an achievement is attributed to the learner.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.issuername IS 'The name of the agent, entity, or institution issuing the element.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.issueroriginurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.issueroriginurl IS 'The Uniform Resource Locator (URL) from which the award was issued.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.criteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.criteria IS 'The criteria for competency-based completion of the achievement/award.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.criteriaurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.criteriaurl IS 'The Uniform Resource Locator (URL) for the unique address of a web page describing the competency-based completion criteria for the achievement/award.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.evidencestatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.evidencestatement IS 'A statement or reference describing the evidence that the learner met the criteria for attainment of the Achievement.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.imageurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.imageurl IS 'The Uniform Resource Locator (URL) for the unique address of an image representing an award or badge associated with the Achievement.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.honorawarddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.honorawarddate IS 'The date the honor was awarded or earned.'; + + +-- +-- Name: COLUMN studentacademicrecordacademichonor.honorawardexpiresdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordacademichonor.honorawardexpiresdate IS 'Date on which the award expires.'; + + +-- +-- Name: studentacademicrecordclassranking; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecordclassranking ( + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + classrank integer NOT NULL, + totalnumberinclass integer NOT NULL, + percentageranking integer, + classrankingdate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecordclassranking OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecordclassranking; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecordclassranking IS 'The academic rank information of a student in relation to his or her graduating class.'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.classrank; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.classrank IS 'The academic rank of a student in relation to his or her graduating class (e.g., 1st, 2nd, 3rd).'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.totalnumberinclass; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.totalnumberinclass IS 'The total number of students in the student''s graduating class.'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.percentageranking; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.percentageranking IS 'The academic percentage rank of a student in relation to his or her graduating class (e.g., 95%, 80%, 50%).'; + + +-- +-- Name: COLUMN studentacademicrecordclassranking.classrankingdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordclassranking.classrankingdate IS 'Date class ranking was determined.'; + + +-- +-- Name: studentacademicrecorddiploma; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecorddiploma ( + diplomaawarddate date NOT NULL, + diplomatypedescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + achievementtitle character varying(60), + achievementcategorydescriptorid integer, + achievementcategorysystem character varying(60), + issuername character varying(150), + issueroriginurl character varying(255), + criteria character varying(150), + criteriaurl character varying(255), + evidencestatement character varying(150), + imageurl character varying(255), + diplomaleveldescriptorid integer, + ctecompleter boolean, + diplomadescription character varying(80), + diplomaawardexpiresdate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecorddiploma OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecorddiploma; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecorddiploma IS 'Diploma(s) earned by the student.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.diplomaawarddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.diplomaawarddate IS 'The month, day, and year on which the student met graduation requirements and was awarded a diploma.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.diplomatypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.diplomatypedescriptorid IS 'The type of diploma/credential that is awarded to a student in recognition of his/her completion of the curricular requirements.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.achievementtitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.achievementtitle IS 'The title assigned to the achievement.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.achievementcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.achievementcategorydescriptorid IS 'The category of achievement attributed to the learner.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.achievementcategorysystem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.achievementcategorysystem IS 'The system that defines the categories by which an achievement is attributed to the learner.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.issuername IS 'The name of the agent, entity, or institution issuing the element.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.issueroriginurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.issueroriginurl IS 'The Uniform Resource Locator (URL) from which the award was issued.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.criteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.criteria IS 'The criteria for competency-based completion of the achievement/award.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.criteriaurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.criteriaurl IS 'The Uniform Resource Locator (URL) for the unique address of a web page describing the competency-based completion criteria for the achievement/award.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.evidencestatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.evidencestatement IS 'A statement or reference describing the evidence that the learner met the criteria for attainment of the Achievement.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.imageurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.imageurl IS 'The Uniform Resource Locator (URL) for the unique address of an image representing an award or badge associated with the Achievement.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.diplomaleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.diplomaleveldescriptorid IS 'The level of diploma/credential that is awarded to a student in recognition of his/her completion of the curricular requirements. + Minimum high school program + Recommended high school program + Distinguished Achievement Program.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.ctecompleter; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.ctecompleter IS 'Indicated a student who reached a state-defined threshold of vocational education and who attained a high school diploma or its recognized state equivalent or GED.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.diplomadescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.diplomadescription IS 'The description of diploma given to the student for accomplishments.'; + + +-- +-- Name: COLUMN studentacademicrecorddiploma.diplomaawardexpiresdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecorddiploma.diplomaawardexpiresdate IS 'Date on which the award expires.'; + + +-- +-- Name: studentacademicrecordgradepointaverage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecordgradepointaverage ( + educationorganizationid integer NOT NULL, + gradepointaveragetypedescriptorid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + iscumulative boolean, + gradepointaveragevalue numeric(18,4) NOT NULL, + maxgradepointaveragevalue numeric(18,4), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecordgradepointaverage OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecordgradepointaverage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecordgradepointaverage IS 'The grade point average for an individual computed as the grade points earned divided by the number of credits attempted.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.gradepointaveragetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.gradepointaveragetypedescriptorid IS 'The system used for calculating the grade point average for an individual.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.iscumulative; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.iscumulative IS 'Indicator of whether or not the Grade Point Average value is cumulative.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.gradepointaveragevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.gradepointaveragevalue IS 'The value of the grade points earned divided by the number of credits attempted.'; + + +-- +-- Name: COLUMN studentacademicrecordgradepointaverage.maxgradepointaveragevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordgradepointaverage.maxgradepointaveragevalue IS 'The maximum value for the grade point average.'; + + +-- +-- Name: studentacademicrecordrecognition; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecordrecognition ( + educationorganizationid integer NOT NULL, + recognitiontypedescriptorid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + achievementtitle character varying(60), + achievementcategorydescriptorid integer, + achievementcategorysystem character varying(60), + issuername character varying(150), + issueroriginurl character varying(255), + criteria character varying(150), + criteriaurl character varying(255), + evidencestatement character varying(150), + imageurl character varying(255), + recognitiondescription character varying(80), + recognitionawarddate date, + recognitionawardexpiresdate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecordrecognition OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecordrecognition; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecordrecognition IS 'Recognitions given to the student for accomplishments in a co-curricular or extracurricular activity.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.recognitiontypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.recognitiontypedescriptorid IS 'The nature of recognition given to the learner for accomplishments in a co-curricular, or extra-curricular activity.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.achievementtitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.achievementtitle IS 'The title assigned to the achievement.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.achievementcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.achievementcategorydescriptorid IS 'The category of achievement attributed to the learner.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.achievementcategorysystem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.achievementcategorysystem IS 'The system that defines the categories by which an achievement is attributed to the learner.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.issuername IS 'The name of the agent, entity, or institution issuing the element.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.issueroriginurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.issueroriginurl IS 'The Uniform Resource Locator (URL) from which the award was issued.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.criteria; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.criteria IS 'The criteria for competency-based completion of the achievement/award.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.criteriaurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.criteriaurl IS 'The Uniform Resource Locator (URL) for the unique address of a web page describing the competency-based completion criteria for the achievement/award.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.evidencestatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.evidencestatement IS 'A statement or reference describing the evidence that the learner met the criteria for attainment of the Achievement.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.imageurl; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.imageurl IS 'The Uniform Resource Locator (URL) for the unique address of an image representing an award or badge associated with the Achievement.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.recognitiondescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.recognitiondescription IS 'A description of the type of academic distinctions earned by or awarded to the individual.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.recognitionawarddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.recognitionawarddate IS 'The date the recognition was awarded or earned.'; + + +-- +-- Name: COLUMN studentacademicrecordrecognition.recognitionawardexpiresdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordrecognition.recognitionawardexpiresdate IS 'Date on which the award expires.'; + + +-- +-- Name: studentacademicrecordreportcard; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentacademicrecordreportcard ( + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentacademicrecordreportcard OWNER TO postgres; + +-- +-- Name: TABLE studentacademicrecordreportcard; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentacademicrecordreportcard IS 'Report cards for the student.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentacademicrecordreportcard.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentacademicrecordreportcard.termdescriptorid IS 'The term for the session during the school year.'; + + +-- +-- Name: studentassessment; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessment ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + administrationdate timestamp without time zone NOT NULL, + administrationenddate timestamp without time zone, + serialnumber character varying(60), + administrationlanguagedescriptorid integer, + administrationenvironmentdescriptorid integer, + retestindicatordescriptorid integer, + reasonnottesteddescriptorid integer, + whenassessedgradeleveldescriptorid integer, + eventcircumstancedescriptorid integer, + eventdescription character varying(1024), + schoolyear smallint, + platformtypedescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentassessment OWNER TO postgres; + +-- +-- Name: TABLE studentassessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessment IS 'This entity represents the analysis or scoring of a student''s response on an assessment. The analysis results in a value that represents a student''s performance on a set of items on a test.'; + + +-- +-- Name: COLUMN studentassessment.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessment.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessment.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessment.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentassessment.administrationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.administrationdate IS 'The date and time an assessment was completed by the student. The use of ISO-8601 formats with a timezone designator (UTC or time offset) is recommended in order to prevent ambiguity due to time zones.'; + + +-- +-- Name: COLUMN studentassessment.administrationenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.administrationenddate IS 'The date and time an assessment administration ended.'; + + +-- +-- Name: COLUMN studentassessment.serialnumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.serialnumber IS 'The unique number for the assessment form or answer document.'; + + +-- +-- Name: COLUMN studentassessment.administrationlanguagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.administrationlanguagedescriptorid IS 'The language in which an assessment is written and/or administered.'; + + +-- +-- Name: COLUMN studentassessment.administrationenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.administrationenvironmentdescriptorid IS 'The environment in which the test was administered.'; + + +-- +-- Name: COLUMN studentassessment.retestindicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.retestindicatordescriptorid IS 'Indicator if the test was retaken. For example: + Primary administration + First retest + Second retest + ...'; + + +-- +-- Name: COLUMN studentassessment.reasonnottesteddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.reasonnottesteddescriptorid IS 'The primary reason student is not tested. For example: + Absent + Refusal by parent + Refusal by student + Medical waiver + Illness + Disruptive behavior + LEP Exempt + ...'; + + +-- +-- Name: COLUMN studentassessment.whenassessedgradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.whenassessedgradeleveldescriptorid IS 'The grade level of a student when assessed.'; + + +-- +-- Name: COLUMN studentassessment.eventcircumstancedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.eventcircumstancedescriptorid IS 'An unusual event occurred during the administration of the assessment. This could include fire alarm, student became ill, etc.'; + + +-- +-- Name: COLUMN studentassessment.eventdescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.eventdescription IS 'Describes special events that occur before during or after the assessment session that may impact use of results.'; + + +-- +-- Name: COLUMN studentassessment.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.schoolyear IS 'The school year for which the assessment was administered to a student. Among other uses, handles cases in which a student takes a prior-year exam in a subsequent school year during an exam re-test.'; + + +-- +-- Name: COLUMN studentassessment.platformtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessment.platformtypedescriptorid IS 'The platform with which the assessment was delivered to the student during the assessment session.'; + + +-- +-- Name: studentassessmentaccommodation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentaccommodation ( + accommodationdescriptorid integer NOT NULL, + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentaccommodation OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentaccommodation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentaccommodation IS 'The specific type of special variation used in how an examination is presented, how it is administered, or how the test taker is allowed to respond. This generally refers to changes that do not substantially alter what the examination measures. The proper use of accommodations does not substantially change academic level or performance criteria. For example: + Braille + Enlarged monitor view + Extra time + Large Print + Setting + Oral Administration + ...'; + + +-- +-- Name: COLUMN studentassessmentaccommodation.accommodationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentaccommodation.accommodationdescriptorid IS 'The specific type of special variation used in how an examination is presented, how it is administered, or how the test taker is allowed to respond. This generally refers to changes that do not substantially alter what the examination measures. The proper use of accommodations does not substantially change academic level or performance criteria. For example: + Braille + Enlarged monitor view + Extra time + Large Print + Setting + Oral Administration + ...'; + + +-- +-- Name: COLUMN studentassessmentaccommodation.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentaccommodation.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentaccommodation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentaccommodation.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentaccommodation.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentaccommodation.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentaccommodation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentaccommodation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentassessmentitem; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentitem ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + assessmentresponse character varying(60), + descriptivefeedback character varying(1024), + responseindicatordescriptorid integer, + assessmentitemresultdescriptorid integer NOT NULL, + rawscoreresult numeric(15,5), + timeassessed character varying(30), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentitem OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentitem; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentitem IS 'The student''s response to an assessment item and the item-level scores such as correct, incorrect, or met standard.'; + + +-- +-- Name: COLUMN studentassessmentitem.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentitem.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, state, or other agency or entity.'; + + +-- +-- Name: COLUMN studentassessmentitem.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentitem.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentitem.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentassessmentitem.assessmentresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.assessmentresponse IS 'A student''s response to a stimulus on a test.'; + + +-- +-- Name: COLUMN studentassessmentitem.descriptivefeedback; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.descriptivefeedback IS 'The formative descriptive feedback that was given to a learner in response to the results from a scored/evaluated assessment item.'; + + +-- +-- Name: COLUMN studentassessmentitem.responseindicatordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.responseindicatordescriptorid IS 'Indicator of the response. For example: + Nonscorable response + Ineffective response + Effective response + Partial response + ...'; + + +-- +-- Name: COLUMN studentassessmentitem.assessmentitemresultdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.assessmentitemresultdescriptorid IS 'The analyzed result of a student''s response to an assessment item. For example: + Correct + Incorrect + Met standard + ...'; + + +-- +-- Name: COLUMN studentassessmentitem.rawscoreresult; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.rawscoreresult IS 'A meaningful raw score of the performance of an individual on an assessment item.'; + + +-- +-- Name: COLUMN studentassessmentitem.timeassessed; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentitem.timeassessed IS 'The overall time a student actually spent during the AssessmentItem.'; + + +-- +-- Name: studentassessmentperformancelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentperformancelevel ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + performanceleveldescriptorid integer NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + performancelevelmet boolean NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentperformancelevel OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentperformancelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentperformancelevel IS 'The performance level(s) achieved for the StudentAssessment.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.assessmentreportingmethoddescriptorid IS 'The method that the instructor of the class uses to report the performance and achievement. It may be a qualitative method such as individualized teacher comments or a quantitative method such as a letter or numerical grade. In some cases, more than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.performanceleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.performanceleveldescriptorid IS 'A specification of which performance level value describes the student proficiency.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentassessmentperformancelevel.performancelevelmet; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentperformancelevel.performancelevelmet IS 'Indicator of whether the performance level was met.'; + + +-- +-- Name: studentassessmentscoreresult; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentscoreresult ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + result character varying(35) NOT NULL, + resultdatatypetypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentscoreresult OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentscoreresult; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentscoreresult IS 'A meaningful score or statistical expression of the performance of an individual. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.assessmentreportingmethoddescriptorid IS 'The method that the administrator of the assessment uses to report the performance and achievement of all students. It may be a qualitative method such as performance level descriptors or a quantitative method such as a numerical grade or cut score. More than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.result; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.result IS 'The value of a meaningful raw score or statistical expression of the performance of an individual. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: COLUMN studentassessmentscoreresult.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentscoreresult.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: studentassessmentstudentobjectiveassessment; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentstudentobjectiveassessment ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentstudentobjectiveassessment OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentstudentobjectiveassessment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentstudentobjectiveassessment IS 'The student''s score and/or performance levels earned for an ObjectiveAssessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessment.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessment.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessment.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessment.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessment.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessment.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessment.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessment.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessment.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessment.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentassessmentstudentobjectiveassessmentperformancelevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentstudentobjectiveassessmentperformancelevel ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + performanceleveldescriptorid integer NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + performancelevelmet boolean NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentstudentobjectiveassessmentperformancelevel OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentstudentobjectiveassessmentperformancelevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentstudentobjectiveassessmentperformancelevel IS 'The PerformanceLevel(s) achieved for the ObjectiveAssessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.assessmentreportingmethoddescriptorid IS 'The method that the instructor of the class uses to report the performance and achievement. It may be a qualitative method such as individualized teacher comments or a quantitative method such as a letter or numerical grade. In some cases, more than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.performanceleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.performanceleveldescriptorid IS 'A specification of which performance level value describes the student proficiency.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentperformancelevel.performancelevelmet; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentperformancelevel.performancelevelmet IS 'Indicator of whether the performance level was met.'; + + +-- +-- Name: studentassessmentstudentobjectiveassessmentscoreresult; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentassessmentstudentobjectiveassessmentscoreresult ( + assessmentidentifier character varying(60) NOT NULL, + assessmentreportingmethoddescriptorid integer NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + result character varying(35) NOT NULL, + resultdatatypetypedescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentassessmentstudentobjectiveassessmentscoreresult OWNER TO postgres; + +-- +-- Name: TABLE studentassessmentstudentobjectiveassessmentscoreresult; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentassessmentstudentobjectiveassessmentscoreresult IS 'A meaningful score or statistical expression of the performance of an individual. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.assessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.assessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.assessmentreportingmethoddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.assessmentreportingmethoddescriptorid IS 'The method that the administrator of the assessment uses to report the performance and achievement of all students. It may be a qualitative method such as performance level descriptors or a quantitative method such as a numerical grade or cut score. More than one type of reporting method may be used.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.identificationcode IS 'A unique number or alphanumeric code assigned to a space, room, site, building, individual, organization, program, or institution by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.namespace IS 'Namespace for the Assessment.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.studentassessmentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.studentassessmentidentifier IS 'A unique number or alphanumeric code assigned to an assessment administered to a student.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.result; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.result IS 'The value of a meaningful raw score or statistical expression of the performance of an individual. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: COLUMN studentassessmentstudentobjectiveassessmentscoreresult.resultdatatypetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentassessmentstudentobjectiveassessmentscoreresult.resultdatatypetypedescriptorid IS 'The datatype of the result. The results can be expressed as a number, percentile, range, level, etc.'; + + +-- +-- Name: studentcharacteristicdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcharacteristicdescriptor ( + studentcharacteristicdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.studentcharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: TABLE studentcharacteristicdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcharacteristicdescriptor IS 'This descriptor captures important characteristics of the student''s environment or situation. Generally used for non-program-based student characteristics.'; + + +-- +-- Name: COLUMN studentcharacteristicdescriptor.studentcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcharacteristicdescriptor.studentcharacteristicdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: studentcohortassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcohortassociation ( + begindate date NOT NULL, + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + enddate date, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentcohortassociation OWNER TO postgres; + +-- +-- Name: TABLE studentcohortassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcohortassociation IS 'This association represents the Cohort(s) for which a student is designated.'; + + +-- +-- Name: COLUMN studentcohortassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociation.begindate IS 'The month, day, and year on which the Student was first identified as part of the Cohort.'; + + +-- +-- Name: COLUMN studentcohortassociation.cohortidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociation.cohortidentifier IS 'The name or ID for the Cohort.'; + + +-- +-- Name: COLUMN studentcohortassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcohortassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentcohortassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociation.enddate IS 'The month, day, and year on which the Student was removed as part of the Cohort.'; + + +-- +-- Name: studentcohortassociationsection; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcohortassociationsection ( + begindate date NOT NULL, + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentcohortassociationsection OWNER TO postgres; + +-- +-- Name: TABLE studentcohortassociationsection; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcohortassociationsection IS 'The Cohort representing the subdivision of students within one or more sections. For example, a group of students may be given additional instruction and tracked as a cohort.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.begindate IS 'The month, day, and year on which the Student was first identified as part of the Cohort.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.cohortidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.cohortidentifier IS 'The name or ID for the Cohort.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentcohortassociationsection.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentcohortassociationsection.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcohortassociationsection.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentcompetencyobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcompetencyobjective ( + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + objective character varying(60) NOT NULL, + objectiveeducationorganizationid integer NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + studentusi integer NOT NULL, + competencyleveldescriptorid integer NOT NULL, + diagnosticstatement character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentcompetencyobjective OWNER TO postgres; + +-- +-- Name: TABLE studentcompetencyobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcompetencyobjective IS 'This entity represents the competency assessed or evaluated for the student against a specific competency objective.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.objective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.objective IS 'The designated title of the CompetencyObjective.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.objectiveeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.objectiveeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.objectivegradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.objectivegradeleveldescriptorid IS 'The grade level for which the CompetencyObjective is targeted.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.competencyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.competencyleveldescriptorid IS 'The competency level assessed for the student for the referenced competency objective.'; + + +-- +-- Name: COLUMN studentcompetencyobjective.diagnosticstatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjective.diagnosticstatement IS 'A statement provided by the teacher that provides information in addition to the grade or assessment score.'; + + +-- +-- Name: studentcompetencyobjectivegeneralstudentprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcompetencyobjectivegeneralstudentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + objective character varying(60) NOT NULL, + objectiveeducationorganizationid integer NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentcompetencyobjectivegeneralstudentprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentcompetencyobjectivegeneralstudentprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcompetencyobjectivegeneralstudentprogramassociation IS 'Relates the Student and Program associated with the CompetencyObjective.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.objective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.objective IS 'The designated title of the CompetencyObjective.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.objectiveeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.objectiveeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.objectivegradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.objectivegradeleveldescriptorid IS 'The grade level for which the CompetencyObjective is targeted.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivegeneralstudentprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivegeneralstudentprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentcompetencyobjectivestudentsectionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcompetencyobjectivestudentsectionassociation ( + begindate date NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + objective character varying(60) NOT NULL, + objectiveeducationorganizationid integer NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentcompetencyobjectivestudentsectionassociation OWNER TO postgres; + +-- +-- Name: TABLE studentcompetencyobjectivestudentsectionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcompetencyobjectivestudentsectionassociation IS 'Relates the Student and Section associated with the CompetencyObjective.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.objective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.objective IS 'The designated title of the CompetencyObjective.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.objectiveeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.objectiveeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.objectivegradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.objectivegradeleveldescriptorid IS 'The grade level for which the CompetencyObjective is targeted.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentcompetencyobjectivestudentsectionassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcompetencyobjectivestudentsectionassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentcteprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcteprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + nontraditionalgenderstatus boolean, + privatecteprogram boolean, + technicalskillsassessmentdescriptorid integer +); + + +ALTER TABLE edfi.studentcteprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentcteprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcteprogramassociation IS 'This association represents the career and technical education (CTE) program that a student participates in. The association is an extension of the StudentProgramAssociation particular for CTE programs.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.nontraditionalgenderstatus; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.nontraditionalgenderstatus IS 'Indicator that student is from a gender group that comprises less than 25% of the individuals employed in an occupation or field of work.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.privatecteprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.privatecteprogram IS 'Indicator that student participated in career and technical education at private agencies or institutions that are reported by the state for purposes of the Elementary and Secondary Education Act (ESEA). +Students in private institutions which do not receive Perkins funding are reported only in the state file.'; + + +-- +-- Name: COLUMN studentcteprogramassociation.technicalskillsassessmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociation.technicalskillsassessmentdescriptorid IS 'Results of technical skills assessment aligned with industry recognized standards.'; + + +-- +-- Name: studentcteprogramassociationcteprogram; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcteprogramassociationcteprogram ( + begindate date NOT NULL, + careerpathwaydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + cipcode character varying(120), + primarycteprogramindicator boolean, + cteprogramcompletionindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentcteprogramassociationcteprogram OWNER TO postgres; + +-- +-- Name: TABLE studentcteprogramassociationcteprogram; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcteprogramassociationcteprogram IS 'The career cluster representing the career path of the Vocational/Career Tech concentrator.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.careerpathwaydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.careerpathwaydescriptorid IS 'A sequence of courses within an area of interest that is a student''s educational road map to a chosen career.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.cipcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.cipcode IS 'Number and description of the CIP Code associated with the student''s CTEProgram.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.primarycteprogramindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.primarycteprogramindicator IS 'A boolean indicator of whether this CTEProgram, is the student''s primary CTEProgram.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogram.cteprogramcompletionindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogram.cteprogramcompletionindicator IS 'A boolean indicator of whether the Student has completed the CTEProgram.'; + + +-- +-- Name: studentcteprogramassociationcteprogramservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcteprogramassociationcteprogramservice ( + begindate date NOT NULL, + cteprogramservicedescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + cipcode character varying(120), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentcteprogramassociationcteprogramservice OWNER TO postgres; + +-- +-- Name: TABLE studentcteprogramassociationcteprogramservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcteprogramassociationcteprogramservice IS 'Indicates the Service(s) being provided to the Student by the CTE Program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.cteprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.cteprogramservicedescriptorid IS 'Indicates the service being provided to the student by the CTE Program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentcteprogramassociationcteprogramservice.cipcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationcteprogramservice.cipcode IS 'Number and description of the CIP Code associated with the student''s CTE Program.'; + + +-- +-- Name: studentcteprogramassociationservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentcteprogramassociationservice ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + servicedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentcteprogramassociationservice OWNER TO postgres; + +-- +-- Name: TABLE studentcteprogramassociationservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentcteprogramassociationservice IS 'Indicates the Service(s) being provided to the Student by the Program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.servicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.servicedescriptorid IS 'Indicates the Service being provided to the student by the Program.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentcteprogramassociationservice.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentcteprogramassociationservice.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentdisciplineincidentassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentdisciplineincidentassociation ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + studentparticipationcodedescriptorid integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentdisciplineincidentassociation OWNER TO postgres; + +-- +-- Name: TABLE studentdisciplineincidentassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentdisciplineincidentassociation IS 'This association indicates those students who were victims, perpetrators, witnesses, and reporters for a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociation.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociation.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociation.studentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociation.studentparticipationcodedescriptorid IS 'The role or type of participation of a student in a discipline incident; + for example: + Victim + Perpetrator + Witness + Reporter.'; + + +-- +-- Name: studentdisciplineincidentassociationbehavior; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentdisciplineincidentassociationbehavior ( + behaviordescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + behaviordetaileddescription character varying(1024), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentdisciplineincidentassociationbehavior OWNER TO postgres; + +-- +-- Name: TABLE studentdisciplineincidentassociationbehavior; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentdisciplineincidentassociationbehavior IS 'Describes behavior by category and provides a detailed description.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociationbehavior.behaviordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociationbehavior.behaviordescriptorid IS 'Describes behavior by category and provides a detailed description.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociationbehavior.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociationbehavior.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociationbehavior.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociationbehavior.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociationbehavior.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociationbehavior.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentdisciplineincidentassociationbehavior.behaviordetaileddescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentassociationbehavior.behaviordetaileddescription IS 'Specifies a more granular level of detail of a behavior involved in the incident.'; + + +-- +-- Name: studentdisciplineincidentbehaviorassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentdisciplineincidentbehaviorassociation ( + behaviordescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + behaviordetaileddescription character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentdisciplineincidentbehaviorassociation OWNER TO postgres; + +-- +-- Name: TABLE studentdisciplineincidentbehaviorassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentdisciplineincidentbehaviorassociation IS 'This association describes the behavior of students involved in a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociation.behaviordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociation.behaviordescriptorid IS 'Describes behavior by category.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociation.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociation.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociation.behaviordetaileddescription; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociation.behaviordetaileddescription IS 'Specifies a more granular level of detail of a behavior involved in the incident.'; + + +-- +-- Name: studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 ( + behaviordescriptorid integer NOT NULL, + disciplineincidentparticipationcodedescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 OWNER TO postgres; + +-- +-- Name: TABLE studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 IS 'The role or type of participation of a student in a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.behaviordescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.behaviordescriptorid IS 'Describes behavior by category.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.disciplineincidentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.disciplineincidentparticipationcodedescriptorid IS 'The role or type of participation of a student in a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentdisciplineincidentnonoffenderassociation ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentdisciplineincidentnonoffenderassociation OWNER TO postgres; + +-- +-- Name: TABLE studentdisciplineincidentnonoffenderassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentdisciplineincidentnonoffenderassociation IS 'This association indicates those students who were involved and not perpetrators for a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociation.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociation.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentdisciplineincidentnonoffenderassociationdisciplin_4c979a; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a ( + disciplineincidentparticipationcodedescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a OWNER TO postgres; + +-- +-- Name: TABLE studentdisciplineincidentnonoffenderassociationdisciplin_4c979a; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a IS 'The role or type of participation of a student in a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.disciplineincidentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.disciplineincidentparticipationcodedescriptorid IS 'The role or type of participation of a student in a discipline incident.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.incidentidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.incidentidentifier IS 'A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociation ( + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + sexdescriptorid integer NOT NULL, + profilethumbnail character varying(255), + hispaniclatinoethnicity boolean, + oldethnicitydescriptorid integer, + limitedenglishproficiencydescriptorid integer, + loginid character varying(60), + primarylearningdeviceawayfromschooldescriptorid integer, + primarylearningdeviceaccessdescriptorid integer, + primarylearningdeviceproviderdescriptorid integer, + internetaccessinresidence boolean, + barriertointernetaccessinresidencedescriptorid integer, + internetaccesstypeinresidencedescriptorid integer, + internetperformanceinresidencedescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociation OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociation IS 'This association represents student information as reported in the context of the student''s relationship to the Education Organization. Enrollment relationship semantics are covered by StudentSchoolAssociation.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.sexdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.sexdescriptorid IS 'The student''s gender as last reported to the education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.profilethumbnail; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.profilethumbnail IS 'Locator reference for the student photo. The specification for that reference is left to local definition.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.hispaniclatinoethnicity; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.hispaniclatinoethnicity IS 'An indication that the individual traces his or her origin or descent to Mexico, Puerto Rico, Cuba, Central, and South America, and other Spanish cultures, regardless of race, as last reported to the education organization. The term, "Spanish origin," can be used in addition to "Hispanic or Latino."'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.oldethnicitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.oldethnicitydescriptorid IS 'Previous definition of Ethnicity combining Hispanic/Latino and race: + 1 - American Indian or Alaskan Native + 2 - Asian or Pacific Islander + 3 - Black, not of Hispanic origin + 4 - Hispanic + 5 - White, not of Hispanic origin.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.limitedenglishproficiencydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.limitedenglishproficiencydescriptorid IS 'An indication that the student has been identified as limited English proficient by the Language Proficiency Assessment Committee (LPAC), or English proficient.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.loginid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.loginid IS 'The login ID for the user; used for security access control interface.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.primarylearningdeviceawayfromschooldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.primarylearningdeviceawayfromschooldescriptorid IS 'The type of device the student uses most often to complete learning activities away from school.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.primarylearningdeviceaccessdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.primarylearningdeviceaccessdescriptorid IS 'An indication of whether the primary learning device is shared or not shared with another individual.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.primarylearningdeviceproviderdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.primarylearningdeviceproviderdescriptorid IS 'The provider of the primary learning device.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.internetaccessinresidence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.internetaccessinresidence IS 'An indication of whether the student is able to access the internet in their primary place of residence.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.barriertointernetaccessinresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.barriertointernetaccessinresidencedescriptorid IS 'An indication of the barrier to having internet access in the student’s primary place of residence.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.internetaccesstypeinresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.internetaccesstypeinresidencedescriptorid IS 'The primary type of internet service used in the student’s primary place of residence.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociation.internetperformanceinresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociation.internetperformanceinresidencedescriptorid IS 'An indication of whether the student can complete the full range of learning activities, including video streaming and assignment upload, without interruptions caused by poor internet performance in their primary place of residence.'; + + +-- +-- Name: studenteducationorganizationassociationaddress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationaddress ( + addresstypedescriptorid integer NOT NULL, + city character varying(30) NOT NULL, + educationorganizationid integer NOT NULL, + postalcode character varying(17) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + studentusi integer NOT NULL, + apartmentroomsuitenumber character varying(50), + buildingsitenumber character varying(20), + nameofcounty character varying(30), + countyfipscode character varying(5), + latitude character varying(20), + longitude character varying(20), + donotpublishindicator boolean, + congressionaldistrict character varying(30), + localedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationaddress OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationaddress IS 'The set of elements that describes an address, including the street address, city, state, and ZIP code.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.apartmentroomsuitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.apartmentroomsuitenumber IS 'The apartment, room, or suite number of an address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.buildingsitenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.buildingsitenumber IS 'The number of the building on the site, if more than one building shares the same address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.nameofcounty; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.nameofcounty IS 'The name of the county, parish, borough, or comparable unit (within a state) in + ''which an address is located.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.countyfipscode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.countyfipscode IS 'The Federal Information Processing Standards (FIPS) numeric code for the county issued by the National Institute of Standards and Technology (NIST). Counties are considered to be the "first-order subdivisions" of each State and statistically equivalent entity, regardless of their local designations (county, parish, borough, etc.) Counties in different States will have the same code. A unique county number is created when combined with the 2-digit FIPS State Code.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.donotpublishindicator IS 'An indication that the address should not be published.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.congressionaldistrict; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.congressionaldistrict IS 'The congressional district in which an address is located.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddress.localedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddress.localedescriptorid IS 'A general geographic indicator that categorizes U.S. territory (e.g., City, Suburban).'; + + +-- +-- Name: studenteducationorganizationassociationaddressperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationaddressperiod ( + addresstypedescriptorid integer NOT NULL, + begindate date NOT NULL, + city character varying(30) NOT NULL, + educationorganizationid integer NOT NULL, + postalcode character varying(17) NOT NULL, + stateabbreviationdescriptorid integer NOT NULL, + streetnumbername character varying(150) NOT NULL, + studentusi integer NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationaddressperiod OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationaddressperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationaddressperiod IS 'The time periods for which the address is valid. For physical addresses, the periods in which the person lived at that address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.city; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.city IS 'The name of the city in which an address is located.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.postalcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.postalcode IS 'The five or nine digit zip code or overseas postal code portion of an address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.stateabbreviationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.stateabbreviationdescriptorid IS 'The abbreviation for the state (within the United States) or outlying area in which an address is located.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.streetnumbername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.streetnumbername IS 'The street number and street name or post office box number of an address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationaddressperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationaddressperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: studenteducationorganizationassociationancestryethnicorigin; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationancestryethnicorigin ( + ancestryethnicorigindescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationancestryethnicorigin OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationancestryethnicorigin; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationancestryethnicorigin IS 'The original peoples or cultures with which the individual identifies.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationancestryethnicorigin.ancestryethnicorigindescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationancestryethnicorigin.ancestryethnicorigindescriptorid IS 'The original peoples or cultures with which the individual identifies.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationancestryethnicorigin.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationancestryethnicorigin.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationancestryethnicorigin.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationancestryethnicorigin.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociationcohortyear; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationcohortyear ( + cohortyeartypedescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationcohortyear OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationcohortyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationcohortyear IS 'The type and year of a cohort (e.g., 9th grade) the student belongs to as determined by the year that student entered a specific grade.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationcohortyear.cohortyeartypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationcohortyear.cohortyeartypedescriptorid IS 'The type of cohort year (9th grade, graduation).'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationcohortyear.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationcohortyear.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationcohortyear.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationcohortyear.schoolyear IS 'The school year associated with the cohort; for example, the intended school year of graduation.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationcohortyear.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationcohortyear.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationcohortyear.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationcohortyear.termdescriptorid IS 'The term associated with the cohort year; for example, the intended term of graduation.'; + + +-- +-- Name: studenteducationorganizationassociationdisability; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationdisability ( + disabilitydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + disabilitydiagnosis character varying(80), + orderofdisability integer, + disabilitydeterminationsourcetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationdisability OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationdisability; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationdisability IS 'The disability condition(s) that best describes an individual''s impairment, as determined by evaluation(s) conducted by the education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisability.disabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisability.disabilitydescriptorid IS 'A disability category that describes a child''s impairment.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisability.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisability.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisability.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisability.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisability.disabilitydiagnosis; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisability.disabilitydiagnosis IS 'A description of the disability diagnosis.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisability.orderofdisability; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisability.orderofdisability IS 'The order by severity of student''s disabilities: 1- Primary, 2 - Secondary, 3 - Tertiary, etc.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisability.disabilitydeterminationsourcetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisability.disabilitydeterminationsourcetypedescriptorid IS 'The source that provided the disability determination.'; + + +-- +-- Name: studenteducationorganizationassociationdisabilitydesignation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationdisabilitydesignation ( + disabilitydescriptorid integer NOT NULL, + disabilitydesignationdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationdisabilitydesignation OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationdisabilitydesignation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationdisabilitydesignation IS 'Whether the disability is IDEA, Section 504, or other disability designation.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisabilitydesignation.disabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisabilitydesignation.disabilitydescriptorid IS 'A disability category that describes a child''s impairment.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisabilitydesignation.disabilitydesignationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisabilitydesignation.disabilitydesignationdescriptorid IS 'Whether the disability is IDEA, Section 504, or other disability designation.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisabilitydesignation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisabilitydesignation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationdisabilitydesignation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationdisabilitydesignation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociationelectronicmail; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationelectronicmail ( + educationorganizationid integer NOT NULL, + electronicmailaddress character varying(128) NOT NULL, + electronicmailtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryemailaddressindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationelectronicmail OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationelectronicmail; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationelectronicmail IS 'The numbers, letters, and symbols used to identify an electronic mail (e-mail) user within the network to which the individual or organization belongs.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationelectronicmail.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationelectronicmail.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationelectronicmail.electronicmailaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationelectronicmail.electronicmailaddress IS 'The electronic mail (e-mail) address listed for an individual or organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationelectronicmail.electronicmailtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationelectronicmail.electronicmailtypedescriptorid IS 'The type of email listed for an individual or organization. For example: Home/Personal, Work, etc.)'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationelectronicmail.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationelectronicmail.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationelectronicmail.primaryemailaddressindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationelectronicmail.primaryemailaddressindicator IS 'An indication that the electronic mail address should be used as the principal electronic mail address for an individual or organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationelectronicmail.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationelectronicmail.donotpublishindicator IS 'An indication that the electronic email address should not be published.'; + + +-- +-- Name: studenteducationorganizationassociationinternationaladdress; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationinternationaladdress ( + addresstypedescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + addressline1 character varying(150) NOT NULL, + addressline2 character varying(150), + addressline3 character varying(150), + addressline4 character varying(150), + countrydescriptorid integer NOT NULL, + latitude character varying(20), + longitude character varying(20), + begindate date, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationinternationaladdress OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationinternationaladdress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationinternationaladdress IS 'The set of elements that describes an international address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.addresstypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.addresstypedescriptorid IS 'The type of address listed for an individual or organization. For example: Physical Address, Mailing Address, Home Address, etc.)'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.addressline1; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.addressline1 IS 'The first line of the address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.addressline2; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.addressline2 IS 'The second line of the address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.addressline3; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.addressline3 IS 'The third line of the address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.addressline4; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.addressline4 IS 'The fourth line of the address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.countrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.countrydescriptorid IS 'The name of the country. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.latitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.latitude IS 'The geographic latitude of the physical address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.longitude; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.longitude IS 'The geographic longitude of the physical address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.begindate IS 'The first date the address is valid. For physical addresses, the date the person moved to that address.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationinternationaladdress.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationinternationaladdress.enddate IS 'The last date the address is valid. For physical addresses, this would be the date the person moved from that address.'; + + +-- +-- Name: studenteducationorganizationassociationlanguage; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationlanguage ( + educationorganizationid integer NOT NULL, + languagedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationlanguage OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationlanguage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationlanguage IS 'The language(s) the individual uses to communicate. It is strongly recommended that entries use only ISO 639-3 language codes.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguage.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguage.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguage.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguage.languagedescriptorid IS 'A specification of which written or spoken communication is being used.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguage.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguage.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociationlanguageuse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationlanguageuse ( + educationorganizationid integer NOT NULL, + languagedescriptorid integer NOT NULL, + languageusedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationlanguageuse OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationlanguageuse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationlanguageuse IS 'A description of how the language is used (e.g. Home Language, Native Language, Spoken Language).'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguageuse.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguageuse.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguageuse.languagedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguageuse.languagedescriptorid IS 'A specification of which written or spoken communication is being used.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguageuse.languageusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguageuse.languageusedescriptorid IS 'A description of how the language is used (e.g. Home Language, Native Language, Spoken Language).'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationlanguageuse.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationlanguageuse.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociationprogramparticipat_810575; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationprogramparticipat_810575 ( + educationorganizationid integer NOT NULL, + programcharacteristicdescriptorid integer NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationprogramparticipat_810575 OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationprogramparticipat_810575; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationprogramparticipat_810575 IS 'Reflects important characteristics of the Program, such as categories or particular indications.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipat_810575.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipat_810575.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipat_810575.programcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipat_810575.programcharacteristicdescriptorid IS 'Reflects important characteristics of the Program, such as categories or particular indications.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipat_810575.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipat_810575.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipat_810575.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipat_810575.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociationprogramparticipation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationprogramparticipation ( + educationorganizationid integer NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + begindate date, + enddate date, + designatedby character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationprogramparticipation OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationprogramparticipation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationprogramparticipation IS 'Key programs the student is participating in or receives services from.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipation.begindate IS 'The date the Student was associated with the Program or service.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipation.enddate IS 'The date the Program participation ended.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationprogramparticipation.designatedby; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationprogramparticipation.designatedby IS 'The person, organization, or department that designated the program association.'; + + +-- +-- Name: studenteducationorganizationassociationrace; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationrace ( + educationorganizationid integer NOT NULL, + racedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationrace OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationrace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationrace IS 'The general racial category which most clearly reflects the individual''s recognition of his or her community or with which the individual most identifies as last reported to the education organization. The data model allows for multiple entries so that each individual can specify all appropriate races.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationrace.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationrace.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationrace.racedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationrace.racedescriptorid IS 'The general racial category which most clearly reflects the individual''s recognition of his or her community or with which the individual most identifies as last reported to the education organization. The data model allows for multiple entries so that each individual can specify all appropriate races.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationrace.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationrace.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteri_a18fcf; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + studentcharacteristicdescriptorid integer NOT NULL, + studentusi integer NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationstudentcharacteri_a18fcf; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf IS 'The time periods for which characteristic was effective.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteri_a18fcf.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteri_a18fcf.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteri_a18fcf.studentcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf.studentcharacteristicdescriptorid IS 'The characteristic designated for the Student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteri_a18fcf.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteri_a18fcf.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteristic; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationstudentcharacteristic ( + educationorganizationid integer NOT NULL, + studentcharacteristicdescriptorid integer NOT NULL, + studentusi integer NOT NULL, + designatedby character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationstudentcharacteristic OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationstudentcharacteristic; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationstudentcharacteristic IS 'Reflects important characteristics of a student. If a student has a characteristic present, that characteristic is considered true or active for that student. If a characteristic is not present, no assumption is made as to the applicability of the characteristic, but local policy may dictate otherwise.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteristic.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteristic.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteristic.studentcharacteristicdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteristic.studentcharacteristicdescriptorid IS 'The characteristic designated for the Student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteristic.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteristic.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentcharacteristic.designatedby; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentcharacteristic.designatedby IS 'The person, organization, or department that designated the characteristic.'; + + +-- +-- Name: studenteducationorganizationassociationstudentidentifica_c15030; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationstudentidentifica_c15030 ( + assigningorganizationidentificationcode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + studentidentificationsystemdescriptorid integer NOT NULL, + studentusi integer NOT NULL, + identificationcode character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationstudentidentifica_c15030 OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationstudentidentifica_c15030; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationstudentidentifica_c15030 IS 'A coding scheme that is used for identification and record-keeping purposes by schools, social services, or other agencies to refer to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentidentifica_c15030.assigningorganizationidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentidentifica_c15030.assigningorganizationidentificationcode IS 'The organization code or name assigning the StudentIdentificationCode.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentidentifica_c15030.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentidentifica_c15030.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentidentifica_c15030.studentidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentidentifica_c15030.studentidentificationsystemdescriptorid IS 'A coding scheme that is used for identification and record-keeping purposes by schools, social services, or other agencies to refer to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentidentifica_c15030.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentidentifica_c15030.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentidentifica_c15030.identificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentidentifica_c15030.identificationcode IS 'A unique number or alphanumeric code assigned to a student by a school, school system, a state, or other agency or entity.'; + + +-- +-- Name: studenteducationorganizationassociationstudentindicator; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationstudentindicator ( + educationorganizationid integer NOT NULL, + indicatorname character varying(200) NOT NULL, + studentusi integer NOT NULL, + indicatorgroup character varying(200), + indicator character varying(60) NOT NULL, + designatedby character varying(60), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationstudentindicator OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationstudentindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationstudentindicator IS 'An indicator or metric computed for the student (e.g., at risk).'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicator.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicator.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicator.indicatorname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicator.indicatorname IS 'The name of the indicator or metric.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicator.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicator.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicator.indicatorgroup; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicator.indicatorgroup IS 'The name for a group of indicators.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicator.indicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicator.indicator IS 'The value of the indicator or metric.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicator.designatedby; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicator.designatedby IS 'The person, organization, or department that designated the program association.'; + + +-- +-- Name: studenteducationorganizationassociationstudentindicatorperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationstudentindicatorperiod ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + indicatorname character varying(200) NOT NULL, + studentusi integer NOT NULL, + enddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationstudentindicatorperiod OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationstudentindicatorperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationstudentindicatorperiod IS 'The time periods for which the indicator was effective.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicatorperiod.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicatorperiod.begindate IS 'The month, day, and year for the start of the period.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicatorperiod.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicatorperiod.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicatorperiod.indicatorname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicatorperiod.indicatorname IS 'The name of the indicator or metric.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicatorperiod.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicatorperiod.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationstudentindicatorperiod.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationstudentindicatorperiod.enddate IS 'The month, day, and year for the end of the period.'; + + +-- +-- Name: studenteducationorganizationassociationtelephone; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationtelephone ( + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + telephonenumber character varying(24) NOT NULL, + telephonenumbertypedescriptorid integer NOT NULL, + orderofpriority integer, + textmessagecapabilityindicator boolean, + donotpublishindicator boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationtelephone OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationtelephone; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationtelephone IS 'The 10-digit telephone number, including the area code, for the person.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.telephonenumber; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.telephonenumber IS 'The telephone number including the area code, and extension, if applicable.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.telephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.telephonenumbertypedescriptorid IS 'The type of communication number listed for an individual or organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.orderofpriority; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.orderofpriority IS 'The order of priority assigned to telephone numbers to define which number to attempt first, second, etc.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.textmessagecapabilityindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.textmessagecapabilityindicator IS 'An indication that the telephone number is technically capable of sending and receiving Short Message Service (SMS) text messages.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtelephone.donotpublishindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtelephone.donotpublishindicator IS 'An indication that the telephone number should not be published.'; + + +-- +-- Name: studenteducationorganizationassociationtribalaffiliation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenteducationorganizationassociationtribalaffiliation ( + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + tribalaffiliationdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenteducationorganizationassociationtribalaffiliation OWNER TO postgres; + +-- +-- Name: TABLE studenteducationorganizationassociationtribalaffiliation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenteducationorganizationassociationtribalaffiliation IS 'An American Indian tribe with which the student is affiliated as last reported to the education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtribalaffiliation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtribalaffiliation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtribalaffiliation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtribalaffiliation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenteducationorganizationassociationtribalaffiliation.tribalaffiliationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenteducationorganizationassociationtribalaffiliation.tribalaffiliationdescriptorid IS 'An American Indian tribe with which the student is affiliated as last reported to the education organization.'; + + +-- +-- Name: studentgradebookentry; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentgradebookentry ( + begindate date NOT NULL, + dateassigned date NOT NULL, + gradebookentrytitle character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + datefulfilled date, + lettergradeearned character varying(20), + numericgradeearned numeric(9,2), + competencyleveldescriptorid integer, + diagnosticstatement character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentgradebookentry OWNER TO postgres; + +-- +-- Name: TABLE studentgradebookentry; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentgradebookentry IS 'This entity holds a student''s grade or competency level for a gradebook entry.'; + + +-- +-- Name: COLUMN studentgradebookentry.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN studentgradebookentry.dateassigned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.dateassigned IS 'The date the assignment, homework, or assessment was assigned or executed.'; + + +-- +-- Name: COLUMN studentgradebookentry.gradebookentrytitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.gradebookentrytitle IS 'The name or title of the activity to be recorded in the GradebookEntry.'; + + +-- +-- Name: COLUMN studentgradebookentry.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentgradebookentry.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentgradebookentry.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentgradebookentry.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentgradebookentry.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentgradebookentry.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentgradebookentry.datefulfilled; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.datefulfilled IS 'The date an assignment was turned in or the date of an assessment.'; + + +-- +-- Name: COLUMN studentgradebookentry.lettergradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.lettergradeearned IS 'A final or interim (grading period) indicator of student performance in a class as submitted by the instructor.'; + + +-- +-- Name: COLUMN studentgradebookentry.numericgradeearned; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.numericgradeearned IS 'A final or interim (grading period) indicator of student performance in a class as submitted by the instructor.'; + + +-- +-- Name: COLUMN studentgradebookentry.competencyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.competencyleveldescriptorid IS 'The CompetencyLevel assessed for the student for the referenced LearningObjective.'; + + +-- +-- Name: COLUMN studentgradebookentry.diagnosticstatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentgradebookentry.diagnosticstatement IS 'A statement provided by the teacher that provides information in addition to the grade or assessment score.'; + + +-- +-- Name: studenthomelessprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenthomelessprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + homelessprimarynighttimeresidencedescriptorid integer, + awaitingfostercare boolean, + homelessunaccompaniedyouth boolean +); + + +ALTER TABLE edfi.studenthomelessprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studenthomelessprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenthomelessprogramassociation IS 'This association represents the McKinney-Vento Homeless Program program(s) that a student participates in or from which the Student receives services.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.homelessprimarynighttimeresidencedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.homelessprimarynighttimeresidencedescriptorid IS 'The primary nighttime residence of the student at the time the student is identified as homeless.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.awaitingfostercare; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.awaitingfostercare IS 'State defined definition for awaiting foster care.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociation.homelessunaccompaniedyouth; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociation.homelessunaccompaniedyouth IS 'A homeless unaccompanied youth is a youth who is not in the physical custody of a parent or guardian and who fits the McKinney-Vento definition of homeless. Students must be both unaccompanied and homeless to be included as an unaccompanied homeless youth.'; + + +-- +-- Name: studenthomelessprogramassociationhomelessprogramservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenthomelessprogramassociationhomelessprogramservice ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + homelessprogramservicedescriptorid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenthomelessprogramassociationhomelessprogramservice OWNER TO postgres; + +-- +-- Name: TABLE studenthomelessprogramassociationhomelessprogramservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenthomelessprogramassociationhomelessprogramservice IS 'Indicates the service(s) being provided to the Student by the Homeless Program.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.homelessprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.homelessprogramservicedescriptorid IS 'Indicates the service being provided to the student by the Homeless Program.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studenthomelessprogramassociationhomelessprogramservice.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenthomelessprogramassociationhomelessprogramservice.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentidentificationdocument; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentidentificationdocument ( + identificationdocumentusedescriptorid integer NOT NULL, + personalinformationverificationdescriptorid integer NOT NULL, + studentusi integer NOT NULL, + documenttitle character varying(60), + documentexpirationdate date, + issuerdocumentidentificationcode character varying(60), + issuername character varying(150), + issuercountrydescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentidentificationdocument OWNER TO postgres; + +-- +-- Name: TABLE studentidentificationdocument; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentidentificationdocument IS 'Describe the documentation of citizenship.'; + + +-- +-- Name: COLUMN studentidentificationdocument.identificationdocumentusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.identificationdocumentusedescriptorid IS 'The primary function of the document used for establishing identity.'; + + +-- +-- Name: COLUMN studentidentificationdocument.personalinformationverificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.personalinformationverificationdescriptorid IS 'The category of the document relative to its purpose.'; + + +-- +-- Name: COLUMN studentidentificationdocument.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentidentificationdocument.documenttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.documenttitle IS 'The title of the document given by the issuer.'; + + +-- +-- Name: COLUMN studentidentificationdocument.documentexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.documentexpirationdate IS 'The day when the document expires, if null then never expires.'; + + +-- +-- Name: COLUMN studentidentificationdocument.issuerdocumentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.issuerdocumentidentificationcode IS 'The unique identifier on the issuer''s identification system.'; + + +-- +-- Name: COLUMN studentidentificationdocument.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.issuername IS 'Name of the entity or institution that issued the document.'; + + +-- +-- Name: COLUMN studentidentificationdocument.issuercountrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationdocument.issuercountrydescriptorid IS 'Country of origin of the document. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: studentidentificationsystemdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentidentificationsystemdescriptor ( + studentidentificationsystemdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.studentidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: TABLE studentidentificationsystemdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentidentificationsystemdescriptor IS 'This descriptor defines the originating record system and code that is used for record-keeping purposes of the student.'; + + +-- +-- Name: COLUMN studentidentificationsystemdescriptor.studentidentificationsystemdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentidentificationsystemdescriptor.studentidentificationsystemdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: studentinterventionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentinterventionassociation ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + studentusi integer NOT NULL, + cohortidentifier character varying(20), + cohorteducationorganizationid integer, + diagnosticstatement character varying(1024), + dosage integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentinterventionassociation OWNER TO postgres; + +-- +-- Name: TABLE studentinterventionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentinterventionassociation IS 'This association indicates the students participating in an intervention.'; + + +-- +-- Name: COLUMN studentinterventionassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentinterventionassociation.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN studentinterventionassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentinterventionassociation.cohortidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.cohortidentifier IS 'The name or ID for the Cohort.'; + + +-- +-- Name: COLUMN studentinterventionassociation.cohorteducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.cohorteducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentinterventionassociation.diagnosticstatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.diagnosticstatement IS 'A statement provided by the assigner that provides information regarding why the student was assigned to this intervention.'; + + +-- +-- Name: COLUMN studentinterventionassociation.dosage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociation.dosage IS 'The duration of time in minutes for which the student was assigned to participate in the intervention.'; + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentinterventionassociationinterventioneffectiveness ( + diagnosisdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + gradeleveldescriptorid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + populationserveddescriptorid integer NOT NULL, + studentusi integer NOT NULL, + improvementindex integer, + interventioneffectivenessratingdescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentinterventionassociationinterventioneffectiveness OWNER TO postgres; + +-- +-- Name: TABLE studentinterventionassociationinterventioneffectiveness; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentinterventionassociationinterventioneffectiveness IS 'A measure of the effects of an intervention in each outcome domain. The rating of effectiveness takes into account four factors: the quality of the research on the intervention, the statistical significance of the research findings, the size of the differences between participants in the intervention and comparison groups and the consistency in results.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.diagnosisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.diagnosisdescriptorid IS 'Targeted purpose of the intervention (e.g., attendance issue, dropout risk) for which the effectiveness is measured.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.gradeleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.gradeleveldescriptorid IS 'Grade level for which effectiveness is measured.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.populationserveddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.populationserveddescriptorid IS 'Population for which effectiveness is measured.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.improvementindex; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.improvementindex IS 'Along a percentile distribution of students, the improvement index represents the change in an average student''s percentile rank that is considered to be due to the intervention.'; + + +-- +-- Name: COLUMN studentinterventionassociationinterventioneffectiveness.interventioneffectivenessratingdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionassociationinterventioneffectiveness.interventioneffectivenessratingdescriptorid IS 'An intervention demonstrates effectiveness if the research has shown that the program caused an improvement in outcomes. Values: positive effects, potentially positive effects, mixed effects, potentially negative effects, negative effects, and no discernible effects.'; + + +-- +-- Name: studentinterventionattendanceevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentinterventionattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + eventdate date NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + studentusi integer NOT NULL, + attendanceeventreason character varying(255), + educationalenvironmentdescriptorid integer, + eventduration numeric(3,2), + interventionduration integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentinterventionattendanceevent OWNER TO postgres; + +-- +-- Name: TABLE studentinterventionattendanceevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentinterventionattendanceevent IS 'This event entity represents the recording of whether a student is in attendance for an intervention service.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.attendanceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.attendanceeventcategorydescriptorid IS 'A code describing the attendance event, for example: + Present + Unexcused absence + Excused absence + Tardy.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.eventdate IS 'Date for this attendance event.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.interventionidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.interventionidentificationcode IS 'A unique number or alphanumeric code assigned to an intervention.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.attendanceeventreason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.attendanceeventreason IS 'The reported reason for a student''s absence.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.educationalenvironmentdescriptorid IS 'The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.eventduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.eventduration IS 'The amount of time for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33.'; + + +-- +-- Name: COLUMN studentinterventionattendanceevent.interventionduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentinterventionattendanceevent.interventionduration IS 'The duration in minutes in which the student participated in the intervention during this instance.'; + + +-- +-- Name: studentlanguageinstructionprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentlanguageinstructionprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + englishlearnerparticipation boolean, + dosage integer +); + + +ALTER TABLE edfi.studentlanguageinstructionprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentlanguageinstructionprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentlanguageinstructionprogramassociation IS 'This association represents the Title III Language Instruction for Limited English Proficient and Immigrant Students program(s) that a student participates in or from which the Student receives services.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.englishlearnerparticipation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.englishlearnerparticipation IS 'An indication that an English Learner student is served by an English language instruction educational program supported with Title III of ESEA funds.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociation.dosage; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociation.dosage IS 'The duration of time in minutes for which the student was assigned to participate in the program.'; + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + participationdescriptorid integer, + proficiencydescriptorid integer, + progressdescriptorid integer, + monitoreddescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 OWNER TO postgres; + +-- +-- Name: TABLE studentlanguageinstructionprogramassociationenglishlangu_1ac620; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 IS 'Results of yearly English language assessment.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.schoolyear IS 'The School Year for which the Assessment was administered.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.participationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.participationdescriptorid IS 'Field indicating the participation in the yearly English language assessment.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.proficiencydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.proficiencydescriptorid IS 'The proficiency level for the yearly English language assessment.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.progressdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.progressdescriptorid IS 'The yearly progress or growth from last year''s assessment.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationenglishlangu_1ac620.monitoreddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620.monitoreddescriptorid IS 'Student is monitored on content achievement who are no longer receiving services.'; + + +-- +-- Name: studentlanguageinstructionprogramassociationlanguageinst_268e07; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + languageinstructionprogramservicedescriptorid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 OWNER TO postgres; + +-- +-- Name: TABLE studentlanguageinstructionprogramassociationlanguageinst_268e07; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 IS 'Indicates the service(s) being provided to the Student by the Language Instruction Program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.languageinstructionprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.languageinstructionprogramservicedescriptorid IS 'Indicates the service being provided to the student by the Language Instruction Program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentlanguageinstructionprogramassociationlanguageinst_268e07.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentlearningobjective; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentlearningobjective ( + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentusi integer NOT NULL, + competencyleveldescriptorid integer NOT NULL, + diagnosticstatement character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentlearningobjective OWNER TO postgres; + +-- +-- Name: TABLE studentlearningobjective; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentlearningobjective IS 'This entity represents the competency assessed or evaluated for the student against a specific LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjective.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentlearningobjective.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentlearningobjective.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentlearningobjective.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentlearningobjective.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN studentlearningobjective.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjective.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentlearningobjective.competencyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.competencyleveldescriptorid IS 'The CompetencyLevel assessed for the student for the referenced LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjective.diagnosticstatement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjective.diagnosticstatement IS 'A statement provided by the teacher that provides information in addition to the grade or assessment score.'; + + +-- +-- Name: studentlearningobjectivegeneralstudentprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentlearningobjectivegeneralstudentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentlearningobjectivegeneralstudentprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentlearningobjectivegeneralstudentprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentlearningobjectivegeneralstudentprogramassociation IS 'Relates the Student and Program associated with the LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentlearningobjectivegeneralstudentprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivegeneralstudentprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentlearningobjectivestudentsectionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentlearningobjectivestudentsectionassociation ( + begindate date NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentlearningobjectivestudentsectionassociation OWNER TO postgres; + +-- +-- Name: TABLE studentlearningobjectivestudentsectionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentlearningobjectivestudentsectionassociation IS 'Relates the Student and Section associated with the LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.gradingperioddescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.gradingperioddescriptorid IS 'The name of the period for which grades are reported.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.gradingperiodschoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.gradingperiodschoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.gradingperiodschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.gradingperiodschoolyear IS 'The identifier for the grading period school year.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.gradingperiodsequence; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.gradingperiodsequence IS 'The sequential order of this period relative to other periods.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.learningobjectiveid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.learningobjectiveid IS 'The identifier for the specific learning objective in the context of a standard (e.g., 111.15.3.1.A).'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.namespace IS 'Namespace for the LearningObjective.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentlearningobjectivestudentsectionassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentlearningobjectivestudentsectionassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentmigranteducationprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentmigranteducationprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + priorityforservices boolean NOT NULL, + lastqualifyingmove date NOT NULL, + continuationofservicesreasondescriptorid integer, + usinitialentry date, + usmostrecententry date, + usinitialschoolentry date, + qualifyingarrivaldate date, + stateresidencydate date, + eligibilityexpirationdate date +); + + +ALTER TABLE edfi.studentmigranteducationprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentmigranteducationprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentmigranteducationprogramassociation IS 'This association represents the migrant education program(s) that a student participates in or receives services from. The association is an extension of the StudentProgramAssociation with added elements particular to migrant education programs.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.priorityforservices; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.priorityforservices IS 'Report migratory children who are classified as having "priority for services" because they are failing, or most at risk of failing to meet the State''s challenging State academic content standards and challenging State student academic achievement standards, and their education has been interrupted during the regular school year.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.lastqualifyingmove; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.lastqualifyingmove IS 'Date the last qualifying move occurred; used to compute MEP status.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.continuationofservicesreasondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.continuationofservicesreasondescriptorid IS 'The "continuation of services" provision found in Section 1304(e) of the statute provides that (1) a child who ceases to be a migratory child during a school term shall be eligible for services until the end of such term; (2) a child who is no longer a migratory child may continue to receive services for one additional school year, but only if comparable services are not available through other programs; and (3) secondary school students who were eligible for services in secondary school may continue to be served through credit accrual programs until graduation. Only students who received services at any time during their 36 month eligibility period may continue to receive services (not necessarily the same service).'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.usinitialentry; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.usinitialentry IS 'The month, day, and year on which the Student first entered the U.S.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.usmostrecententry; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.usmostrecententry IS 'The month, day, and year of the Student''s most recent entry into the U.S.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.usinitialschoolentry; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.usinitialschoolentry IS 'The month, day, and year on which the Student first entered a U.S. school.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.qualifyingarrivaldate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.qualifyingarrivaldate IS 'The Qualifying Arrival Date (QAD) is the date the child joins the worker who has already moved, or the date when the worker joins the child who has already moved. The QAD is the date that the child''s eligibility for the MEP begins. The QAD is not affected by subsequent non-qualifying moves.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.stateresidencydate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.stateresidencydate IS 'The verified State residency for the student.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociation.eligibilityexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociation.eligibilityexpirationdate IS 'The Eligibility Expiration Date is used to determine end of eligibility and to account for a child''s eligibility expiring earlier than 36 months from the child''s QAD. A child''s eligibility would end earlier than 36 months from the child''s QAD, if the child is no longer entitled to a free public education (e.g., graduated with a high school diploma, obtained a high school equivalency diploma (HSED), or for other reasons as determined by States'' requirements), or if the child passes away.'; + + +-- +-- Name: studentmigranteducationprogramassociationmigranteducatio_d9dcd7; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + migranteducationprogramservicedescriptorid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 OWNER TO postgres; + +-- +-- Name: TABLE studentmigranteducationprogramassociationmigranteducatio_d9dcd7; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 IS 'Indicates the Service(s) being provided to the Student by the Migrant Education Program.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.migranteducationprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.migranteducationprogramservicedescriptorid IS 'Indicates the Service being provided to the student by the Migrant Education Program.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentmigranteducationprogramassociationmigranteducatio_d9dcd7.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentneglectedordelinquentprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentneglectedordelinquentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + neglectedordelinquentprogramdescriptorid integer, + elaprogressleveldescriptorid integer, + mathematicsprogressleveldescriptorid integer +); + + +ALTER TABLE edfi.studentneglectedordelinquentprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentneglectedordelinquentprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentneglectedordelinquentprogramassociation IS 'This association represents the Title I Part D Neglected or Delinquent program(s) that a student participates in or from which the Student receives services.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.neglectedordelinquentprogramdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.neglectedordelinquentprogramdescriptorid IS 'The type of program under ESEA Title I, Part D, Subpart 1 (state programs) or Subpart 2 (LEA).'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.elaprogressleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.elaprogressleveldescriptorid IS 'The progress measured from pre- to post- test for ELA.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociation.mathematicsprogressleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociation.mathematicsprogressleveldescriptorid IS 'The progress measured from pre- to post-test for Mathematics.'; + + +-- +-- Name: studentneglectedordelinquentprogramassociationneglectedo_520251; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + neglectedordelinquentprogramservicedescriptorid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 OWNER TO postgres; + +-- +-- Name: TABLE studentneglectedordelinquentprogramassociationneglectedo_520251; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 IS 'Indicates the service(s) being provided to the Student by the Neglected or Delinquent Program.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.neglectedordelinquentprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.neglectedordelinquentprogramservicedescriptorid IS 'Indicates the service being provided to the student by the Neglected or Delinquent Program.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentneglectedordelinquentprogramassociationneglectedo_520251.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentneglectedordelinquentprogramassociationneglectedo_520251.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentothername; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentothername ( + othernametypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + personaltitleprefix character varying(30), + firstname character varying(75) NOT NULL, + middlename character varying(75), + lastsurname character varying(75) NOT NULL, + generationcodesuffix character varying(10), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentothername OWNER TO postgres; + +-- +-- Name: TABLE studentothername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentothername IS 'Other names (e.g., alias, nickname, previous legal name) associated with a person.'; + + +-- +-- Name: COLUMN studentothername.othernametypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.othernametypedescriptorid IS 'The types of alternate names for a person.'; + + +-- +-- Name: COLUMN studentothername.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentothername.personaltitleprefix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.personaltitleprefix IS 'A prefix used to denote the title, degree, position, or seniority of the person.'; + + +-- +-- Name: COLUMN studentothername.firstname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.firstname IS 'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.'; + + +-- +-- Name: COLUMN studentothername.middlename; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.middlename IS 'A secondary name given to an individual at birth, baptism, or during another naming ceremony.'; + + +-- +-- Name: COLUMN studentothername.lastsurname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.lastsurname IS 'The name borne in common by members of a family.'; + + +-- +-- Name: COLUMN studentothername.generationcodesuffix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentothername.generationcodesuffix IS 'An appendage, if any, used to denote an individual''s generation in his family (e.g., Jr., Sr., III).'; + + +-- +-- Name: studentparticipationcodedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentparticipationcodedescriptor ( + studentparticipationcodedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.studentparticipationcodedescriptor OWNER TO postgres; + +-- +-- Name: TABLE studentparticipationcodedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentparticipationcodedescriptor IS 'The role or type of participation of a student in a discipline incident; for example: Victim, Perpetrator, Witness, Reporter.'; + + +-- +-- Name: COLUMN studentparticipationcodedescriptor.studentparticipationcodedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentparticipationcodedescriptor.studentparticipationcodedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: studentpersonalidentificationdocument; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentpersonalidentificationdocument ( + identificationdocumentusedescriptorid integer NOT NULL, + personalinformationverificationdescriptorid integer NOT NULL, + studentusi integer NOT NULL, + documenttitle character varying(60), + documentexpirationdate date, + issuerdocumentidentificationcode character varying(60), + issuername character varying(150), + issuercountrydescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentpersonalidentificationdocument OWNER TO postgres; + +-- +-- Name: TABLE studentpersonalidentificationdocument; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentpersonalidentificationdocument IS 'The documents presented as evident to verify one''s personal identity; for example: drivers license, passport, birth certificate, etc.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.identificationdocumentusedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.identificationdocumentusedescriptorid IS 'The primary function of the document used for establishing identity.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.personalinformationverificationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.personalinformationverificationdescriptorid IS 'The category of the document relative to its purpose.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.documenttitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.documenttitle IS 'The title of the document given by the issuer.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.documentexpirationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.documentexpirationdate IS 'The day when the document expires, if null then never expires.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.issuerdocumentidentificationcode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.issuerdocumentidentificationcode IS 'The unique identifier on the issuer''s identification system.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.issuername; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.issuername IS 'Name of the entity or institution that issued the document.'; + + +-- +-- Name: COLUMN studentpersonalidentificationdocument.issuercountrydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentpersonalidentificationdocument.issuercountrydescriptorid IS 'Country of origin of the document. It is strongly recommended that entries use only ISO 3166 2-letter country codes.'; + + +-- +-- Name: studentprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL +); + + +ALTER TABLE edfi.studentprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentprogramassociation IS 'This association represents the Program(s) that a student participates in or is served by.'; + + +-- +-- Name: COLUMN studentprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentprogramassociationservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentprogramassociationservice ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + servicedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentprogramassociationservice OWNER TO postgres; + +-- +-- Name: TABLE studentprogramassociationservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentprogramassociationservice IS 'Indicates the Service(s) being provided to the Student by the Program.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.servicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.servicedescriptorid IS 'Indicates the Service being provided to the student by the Program.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentprogramassociationservice.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramassociationservice.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentprogramattendanceevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentprogramattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + eventdate date NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + attendanceeventreason character varying(255), + educationalenvironmentdescriptorid integer, + eventduration numeric(3,2), + programattendanceduration integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentprogramattendanceevent OWNER TO postgres; + +-- +-- Name: TABLE studentprogramattendanceevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentprogramattendanceevent IS 'This event entity represents the recording of whether a student is in attendance to receive or participate in program services.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.attendanceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.attendanceeventcategorydescriptorid IS 'A code describing the attendance event, for example: + Present + Unexcused absence + Excused absence + Tardy.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.eventdate IS 'Date for this attendance event.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.attendanceeventreason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.attendanceeventreason IS 'The reported reason for a student''s absence.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.educationalenvironmentdescriptorid IS 'The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.eventduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.eventduration IS 'The amount of time for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33.'; + + +-- +-- Name: COLUMN studentprogramattendanceevent.programattendanceduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentprogramattendanceevent.programattendanceduration IS 'The duration in minutes of the program attendance event.'; + + +-- +-- Name: studentschoolassociationalternativegraduationplan; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentschoolassociationalternativegraduationplan ( + alternativeeducationorganizationid integer NOT NULL, + alternativegraduationplantypedescriptorid integer NOT NULL, + alternativegraduationschoolyear smallint NOT NULL, + entrydate date NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentschoolassociationalternativegraduationplan OWNER TO postgres; + +-- +-- Name: TABLE studentschoolassociationalternativegraduationplan; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentschoolassociationalternativegraduationplan IS 'The secondary graduation plan or plans associated with the student enrolled in the school.'; + + +-- +-- Name: COLUMN studentschoolassociationalternativegraduationplan.alternativeeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationalternativegraduationplan.alternativeeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentschoolassociationalternativegraduationplan.alternativegraduationplantypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationalternativegraduationplan.alternativegraduationplantypedescriptorid IS 'The type of academic plan the student is following for graduation: for example, Minimum, Recommended, Distinguished, or Standard.'; + + +-- +-- Name: COLUMN studentschoolassociationalternativegraduationplan.alternativegraduationschoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationalternativegraduationplan.alternativegraduationschoolyear IS 'The school year the student is expected to graduate.'; + + +-- +-- Name: COLUMN studentschoolassociationalternativegraduationplan.entrydate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationalternativegraduationplan.entrydate IS 'The month, day, and year on which an individual enters and begins to receive instructional services in a school.'; + + +-- +-- Name: COLUMN studentschoolassociationalternativegraduationplan.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationalternativegraduationplan.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentschoolassociationalternativegraduationplan.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationalternativegraduationplan.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentschoolassociationeducationplan; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentschoolassociationeducationplan ( + educationplandescriptorid integer NOT NULL, + entrydate date NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentschoolassociationeducationplan OWNER TO postgres; + +-- +-- Name: TABLE studentschoolassociationeducationplan; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentschoolassociationeducationplan IS 'The type of education plan(s) the student is following, if appropriate.'; + + +-- +-- Name: COLUMN studentschoolassociationeducationplan.educationplandescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationeducationplan.educationplandescriptorid IS 'The type of education plan(s) the student is following, if appropriate.'; + + +-- +-- Name: COLUMN studentschoolassociationeducationplan.entrydate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationeducationplan.entrydate IS 'The month, day, and year on which an individual enters and begins to receive instructional services in a school.'; + + +-- +-- Name: COLUMN studentschoolassociationeducationplan.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationeducationplan.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentschoolassociationeducationplan.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolassociationeducationplan.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentschoolattendanceevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentschoolattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + eventdate date NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + attendanceeventreason character varying(255), + educationalenvironmentdescriptorid integer, + eventduration numeric(3,2), + schoolattendanceduration integer, + arrivaltime time without time zone, + departuretime time without time zone, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentschoolattendanceevent OWNER TO postgres; + +-- +-- Name: TABLE studentschoolattendanceevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentschoolattendanceevent IS 'This event entity represents the recording of whether a student is in attendance for a school day.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.attendanceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.attendanceeventcategorydescriptorid IS 'A code describing the attendance event, for example: + Present + Unexcused absence + Excused absence + Tardy.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.eventdate IS 'Date for this attendance event.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.attendanceeventreason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.attendanceeventreason IS 'The reported reason for a student''s absence.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.educationalenvironmentdescriptorid IS 'The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.eventduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.eventduration IS 'The amount of time for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.schoolattendanceduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.schoolattendanceduration IS 'The duration in minutes of the school attendance event.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.arrivaltime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.arrivaltime IS 'The time of day the student arrived for the attendance event in ISO 8601 format.'; + + +-- +-- Name: COLUMN studentschoolattendanceevent.departuretime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolattendanceevent.departuretime IS 'The time of day the student departed for the attendance event in ISO 8601 format.'; + + +-- +-- Name: studentschoolfoodserviceprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentschoolfoodserviceprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + directcertification boolean +); + + +ALTER TABLE edfi.studentschoolfoodserviceprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentschoolfoodserviceprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentschoolfoodserviceprogramassociation IS 'This association represents the school food services program(s), such as the Free or Reduced Lunch Program, that a student participates in or from which the Student receives services.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociation.directcertification; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociation.directcertification IS 'Indicates that the student''s National School Lunch Program (NSLP) eligibility has been determined through direct certification.'; + + +-- +-- Name: studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + schoolfoodserviceprogramservicedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb OWNER TO postgres; + +-- +-- Name: TABLE studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb IS 'Indicates the service(s) being provided to the Student by the School Food Service Program.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.schoolfoodserviceprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.schoolfoodserviceprogramservicedescriptorid IS 'Indicates the service being provided to the student by the School Food Service Program.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentsectionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentsectionassociation ( + begindate date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + enddate date, + homeroomindicator boolean, + repeatidentifierdescriptorid integer, + teacherstudentdatalinkexclusion boolean, + attemptstatusdescriptorid integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentsectionassociation OWNER TO postgres; + +-- +-- Name: TABLE studentsectionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentsectionassociation IS 'This association indicates the course sections to which a student is assigned.'; + + +-- +-- Name: COLUMN studentsectionassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.begindate IS 'Month, day, and year of the Student''s entry or assignment to the Section.'; + + +-- +-- Name: COLUMN studentsectionassociation.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentsectionassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentsectionassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentsectionassociation.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentsectionassociation.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentsectionassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentsectionassociation.enddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.enddate IS 'Month, day, and year of the withdrawal or exit of the Student from the Section.'; + + +-- +-- Name: COLUMN studentsectionassociation.homeroomindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.homeroomindicator IS 'Indicates the Section is the student''s homeroom. Homeroom period may the convention for taking daily attendance.'; + + +-- +-- Name: COLUMN studentsectionassociation.repeatidentifierdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.repeatidentifierdescriptorid IS 'An indication as to whether a student has previously taken a given course. + Repeated, counted in grade point average + Repeated, not counted in grade point average + Not repeated + Other.'; + + +-- +-- Name: COLUMN studentsectionassociation.teacherstudentdatalinkexclusion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.teacherstudentdatalinkexclusion IS 'Indicates that the student-section combination is excluded from calculation of value-added or growth attribution calculations used for a particular teacher evaluation.'; + + +-- +-- Name: COLUMN studentsectionassociation.attemptstatusdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionassociation.attemptstatusdescriptorid IS 'An indication of the student''s completion status for the section.'; + + +-- +-- Name: studentsectionattendanceevent; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentsectionattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + eventdate date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + attendanceeventreason character varying(255), + educationalenvironmentdescriptorid integer, + eventduration numeric(3,2), + sectionattendanceduration integer, + arrivaltime time without time zone, + departuretime time without time zone, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.studentsectionattendanceevent OWNER TO postgres; + +-- +-- Name: TABLE studentsectionattendanceevent; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentsectionattendanceevent IS 'This event entity represents the recording of whether a student is in attendance for a section.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.attendanceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.attendanceeventcategorydescriptorid IS 'A code describing the attendance event, for example: + Present + Unexcused absence + Excused absence + Tardy.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.eventdate IS 'Date for this attendance event.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.attendanceeventreason; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.attendanceeventreason IS 'The reported reason for a student''s absence.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.educationalenvironmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.educationalenvironmentdescriptorid IS 'The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.eventduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.eventduration IS 'The amount of time for the event as recognized by the school: 1 day = 1, 1/2 day = 0.5, 1/3 day = 0.33.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.sectionattendanceduration; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.sectionattendanceduration IS 'The duration in minutes of the section attendance event.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.arrivaltime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.arrivaltime IS 'The time of day the student arrived for the attendance event in ISO 8601 format.'; + + +-- +-- Name: COLUMN studentsectionattendanceevent.departuretime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceevent.departuretime IS 'The time of day the student departed for the attendance event in ISO 8601 format.'; + + +-- +-- Name: studentsectionattendanceeventclassperiod; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentsectionattendanceeventclassperiod ( + attendanceeventcategorydescriptorid integer NOT NULL, + classperiodname character varying(60) NOT NULL, + eventdate date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentsectionattendanceeventclassperiod OWNER TO postgres; + +-- +-- Name: TABLE studentsectionattendanceeventclassperiod; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentsectionattendanceeventclassperiod IS 'The Class Period(s) to which the Section Attendance Event applies.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.attendanceeventcategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.attendanceeventcategorydescriptorid IS 'A code describing the attendance event, for example: + Present + Unexcused absence + Excused absence + Tardy.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.classperiodname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.classperiodname IS 'An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules).'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.eventdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.eventdate IS 'Date for this attendance event.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN studentsectionattendanceeventclassperiod.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentsectionattendanceeventclassperiod.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentspecialeducationprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentspecialeducationprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + ideaeligibility boolean, + specialeducationsettingdescriptorid integer, + specialeducationhoursperweek numeric(5,2), + schoolhoursperweek numeric(5,2), + multiplydisabled boolean, + medicallyfragile boolean, + lastevaluationdate date, + iepreviewdate date, + iepbegindate date, + iependdate date +); + + +ALTER TABLE edfi.studentspecialeducationprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studentspecialeducationprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentspecialeducationprogramassociation IS 'This association represents the special education program(s) that a student participates in or receives services from. The association is an extension of the StudentProgramAssociation particular for special education programs.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.ideaeligibility; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.ideaeligibility IS 'Indicator of the eligibility of the student to receive special education services according to the Individuals with Disabilities Education Act (IDEA).'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.specialeducationsettingdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.specialeducationsettingdescriptorid IS 'The major instructional setting (more than 50 percent of a student''s special education program).'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.specialeducationhoursperweek; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.specialeducationhoursperweek IS 'The number of hours per week for special education instruction and therapy.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.schoolhoursperweek; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.schoolhoursperweek IS 'Indicate the total number of hours of instructional time per week for the school that the student attends.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.multiplydisabled; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.multiplydisabled IS 'Indicates whether the Student receiving special education and related services has been designated as multiply disabled by the admission, review, and dismissal committee as aligned with federal requirements.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.medicallyfragile; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.medicallyfragile IS 'Indicates whether the Student receiving special education and related services is: + 1) in the age range of birth to 22 years, and + 2) has a serious, ongoing illness or a chronic condition that has lasted or is anticipated to last at least 12 or more months or has required at least one month of hospitalization, and that requires daily, ongoing medical treatments and monitoring by appropriately trained personnel which may include parents or other family members, and + 3) requires the routine use of medical device or of assistive technology to compensate for the loss of usefulness of a body function needed to participate in activities of daily living, and + 4) lives with ongoing threat to his or her continued well-being. + Aligns with federal requirements.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.lastevaluationdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.lastevaluationdate IS 'The date of the last special education evaluation.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.iepreviewdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.iepreviewdate IS 'The date of the last IEP review.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.iepbegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.iepbegindate IS 'The effective date of the most recent IEP.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociation.iependdate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociation.iependdate IS 'The end date of the most recent IEP.'; + + +-- +-- Name: studentspecialeducationprogramassociationdisability; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentspecialeducationprogramassociationdisability ( + begindate date NOT NULL, + disabilitydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + disabilitydiagnosis character varying(80), + orderofdisability integer, + disabilitydeterminationsourcetypedescriptorid integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentspecialeducationprogramassociationdisability OWNER TO postgres; + +-- +-- Name: TABLE studentspecialeducationprogramassociationdisability; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentspecialeducationprogramassociationdisability IS 'The disability condition(s) that best describes an individual''s impairment, as related to special education services received.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.disabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.disabilitydescriptorid IS 'A disability category that describes a child''s impairment.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.disabilitydiagnosis; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.disabilitydiagnosis IS 'A description of the disability diagnosis.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.orderofdisability; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.orderofdisability IS 'The order by severity of student''s disabilities: 1- Primary, 2 - Secondary, 3 - Tertiary, etc.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisability.disabilitydeterminationsourcetypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisability.disabilitydeterminationsourcetypedescriptorid IS 'The source that provided the disability determination.'; + + +-- +-- Name: studentspecialeducationprogramassociationdisabilitydesignation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentspecialeducationprogramassociationdisabilitydesignation ( + begindate date NOT NULL, + disabilitydescriptorid integer NOT NULL, + disabilitydesignationdescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentspecialeducationprogramassociationdisabilitydesignation OWNER TO postgres; + +-- +-- Name: TABLE studentspecialeducationprogramassociationdisabilitydesignation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentspecialeducationprogramassociationdisabilitydesignation IS 'Whether the disability is IDEA, Section 504, or other disability designation.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.disabilitydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.disabilitydescriptorid IS 'A disability category that describes a child''s impairment.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.disabilitydesignationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.disabilitydesignationdescriptorid IS 'Whether the disability is IDEA, Section 504, or other disability designation.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationdisabilitydesignation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationdisabilitydesignation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: studentspecialeducationprogramassociationserviceprovider; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentspecialeducationprogramassociationserviceprovider ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + studentusi integer NOT NULL, + primaryprovider boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentspecialeducationprogramassociationserviceprovider OWNER TO postgres; + +-- +-- Name: TABLE studentspecialeducationprogramassociationserviceprovider; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentspecialeducationprogramassociationserviceprovider IS 'The Staff providing special education services to the Student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationserviceprovider.primaryprovider; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationserviceprovider.primaryprovider IS 'Primary ServiceProvider.'; + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_a51ff9; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + specialeducationprogramservicedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 OWNER TO postgres; + +-- +-- Name: TABLE studentspecialeducationprogramassociationspecialeducatio_a51ff9; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 IS 'Indicates the Service(s) being provided to the Student by the Special Education Program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.specialeducationprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.specialeducationprogramservicedescriptorid IS 'Indicates the service being provided to the student by the Special Education Program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_a51ff9.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_bcba5c; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + specialeducationprogramservicedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + studentusi integer NOT NULL, + primaryprovider boolean, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c OWNER TO postgres; + +-- +-- Name: TABLE studentspecialeducationprogramassociationspecialeducatio_bcba5c; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c IS 'The Staff providing the service to the Student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.specialeducationprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.specialeducationprogramservicedescriptorid IS 'Indicates the service being provided to the student by the Special Education Program.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentspecialeducationprogramassociationspecialeducatio_bcba5c.primaryprovider; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c.primaryprovider IS 'Primary ServiceProvider.'; + + +-- +-- Name: studenttitleipartaprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenttitleipartaprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + titleipartaparticipantdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.studenttitleipartaprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE studenttitleipartaprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenttitleipartaprogramassociation IS 'This association represents the Title I Part A program(s) that a student participates in or from which the Student receives services. The association is an extension of the StudentProgramAssociation particular for Title I Part A programs.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociation.titleipartaparticipantdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociation.titleipartaparticipantdescriptorid IS 'An indication of the type of Title I program, if any, in which the student is participating and by which the student is served: + Public Targeted Assistance Program + Public Schoolwide Program + Private School Students Participating + Local Neglected Program.'; + + +-- +-- Name: studenttitleipartaprogramassociationservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenttitleipartaprogramassociationservice ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + servicedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenttitleipartaprogramassociationservice OWNER TO postgres; + +-- +-- Name: TABLE studenttitleipartaprogramassociationservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenttitleipartaprogramassociationservice IS 'Indicates the Service(s) being provided to the Student by the Program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.servicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.servicedescriptorid IS 'Indicates the Service being provided to the student by the Program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationservice.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationservice.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studenttitleipartaprogramassociationtitleipartaprogramservice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studenttitleipartaprogramassociationtitleipartaprogramservice ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + titleipartaprogramservicedescriptorid integer NOT NULL, + primaryindicator boolean, + servicebegindate date, + serviceenddate date, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studenttitleipartaprogramassociationtitleipartaprogramservice OWNER TO postgres; + +-- +-- Name: TABLE studenttitleipartaprogramassociationtitleipartaprogramservice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studenttitleipartaprogramassociationtitleipartaprogramservice IS 'Indicates the service(s) being provided to the Student by the Title I Part A Program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.begindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.begindate IS 'The earliest date the student is involved with the program. Typically, this is the date the student becomes eligible for the program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.programeducationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.programeducationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.titleipartaprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.titleipartaprogramservicedescriptorid IS 'Indicates the service being provided to the student by the Title I Part A Program.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.primaryindicator; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.primaryindicator IS 'True if service is a primary service.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.servicebegindate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.servicebegindate IS 'First date the Student was in this option for the current school year.'; + + +-- +-- Name: COLUMN studenttitleipartaprogramassociationtitleipartaprogramservice.serviceenddate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studenttitleipartaprogramassociationtitleipartaprogramservice.serviceenddate IS 'Last date the Student was in this option for the current school year.'; + + +-- +-- Name: studentvisa; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.studentvisa ( + studentusi integer NOT NULL, + visadescriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.studentvisa OWNER TO postgres; + +-- +-- Name: TABLE studentvisa; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.studentvisa IS 'An indicator of a non-US citizen''s Visa type.'; + + +-- +-- Name: COLUMN studentvisa.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentvisa.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN studentvisa.visadescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.studentvisa.visadescriptorid IS 'An indicator of a non-US citizen''s Visa type.'; + + +-- +-- Name: survey; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.survey ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + educationorganizationid integer, + surveytitle character varying(255) NOT NULL, + sessionname character varying(60), + schoolyear smallint NOT NULL, + schoolid integer, + surveycategorydescriptorid integer, + numberadministered integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.survey OWNER TO postgres; + +-- +-- Name: TABLE survey; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.survey IS 'A survey to identified or anonymous respondents.'; + + +-- +-- Name: COLUMN survey.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN survey.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN survey.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN survey.surveytitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.surveytitle IS 'The title of the survey.'; + + +-- +-- Name: COLUMN survey.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN survey.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.schoolyear IS 'The school year associated with the survey.'; + + +-- +-- Name: COLUMN survey.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN survey.surveycategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.surveycategorydescriptorid IS 'The category or type of survey.'; + + +-- +-- Name: COLUMN survey.numberadministered; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.survey.numberadministered IS 'Number of persons to whom this survey was administered.'; + + +-- +-- Name: surveycategorydescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveycategorydescriptor ( + surveycategorydescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.surveycategorydescriptor OWNER TO postgres; + +-- +-- Name: TABLE surveycategorydescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveycategorydescriptor IS 'The descriptor holds the category or type of survey.'; + + +-- +-- Name: COLUMN surveycategorydescriptor.surveycategorydescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveycategorydescriptor.surveycategorydescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: surveycourseassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveycourseassociation ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveycourseassociation OWNER TO postgres; + +-- +-- Name: TABLE surveycourseassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveycourseassociation IS 'The course associated with the survey.'; + + +-- +-- Name: COLUMN surveycourseassociation.coursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveycourseassociation.coursecode IS 'A unique alphanumeric code assigned to a course.'; + + +-- +-- Name: COLUMN surveycourseassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveycourseassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN surveycourseassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveycourseassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveycourseassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveycourseassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: surveyleveldescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyleveldescriptor ( + surveyleveldescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.surveyleveldescriptor OWNER TO postgres; + +-- +-- Name: TABLE surveyleveldescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyleveldescriptor IS 'Provides information about the respondents of a survey and how they can be grouped together.'; + + +-- +-- Name: COLUMN surveyleveldescriptor.surveyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyleveldescriptor.surveyleveldescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: surveyprogramassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyprogramassociation ( + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveyprogramassociation OWNER TO postgres; + +-- +-- Name: TABLE surveyprogramassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyprogramassociation IS 'The program associated with the survey.'; + + +-- +-- Name: COLUMN surveyprogramassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyprogramassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN surveyprogramassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyprogramassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyprogramassociation.programname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyprogramassociation.programname IS 'The formal name of the Program of instruction, training, services, or benefits available through federal, state, or local agencies.'; + + +-- +-- Name: COLUMN surveyprogramassociation.programtypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyprogramassociation.programtypedescriptorid IS 'The type of program.'; + + +-- +-- Name: COLUMN surveyprogramassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyprogramassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: surveyquestion; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyquestion ( + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + questionformdescriptorid integer NOT NULL, + questiontext character varying(1024) NOT NULL, + surveysectiontitle character varying(255), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveyquestion OWNER TO postgres; + +-- +-- Name: TABLE surveyquestion; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyquestion IS 'The questions for the survey.'; + + +-- +-- Name: COLUMN surveyquestion.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestion.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyquestion.questioncode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestion.questioncode IS 'The identifying code for the question, unique for the survey.'; + + +-- +-- Name: COLUMN surveyquestion.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestion.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyquestion.questionformdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestion.questionformdescriptorid IS 'The form or type of question.'; + + +-- +-- Name: COLUMN surveyquestion.questiontext; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestion.questiontext IS 'The text of the question.'; + + +-- +-- Name: COLUMN surveyquestion.surveysectiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestion.surveysectiontitle IS 'The title or label for the survey section.'; + + +-- +-- Name: surveyquestionmatrix; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyquestionmatrix ( + matrixelement character varying(255) NOT NULL, + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + minrawscore integer, + maxrawscore integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.surveyquestionmatrix OWNER TO postgres; + +-- +-- Name: TABLE surveyquestionmatrix; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyquestionmatrix IS 'Information about the matrix element in the survey.'; + + +-- +-- Name: COLUMN surveyquestionmatrix.matrixelement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionmatrix.matrixelement IS 'For matrix questions, the text identifying each row of the matrix.'; + + +-- +-- Name: COLUMN surveyquestionmatrix.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionmatrix.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyquestionmatrix.questioncode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionmatrix.questioncode IS 'The identifying code for the question, unique for the survey.'; + + +-- +-- Name: COLUMN surveyquestionmatrix.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionmatrix.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyquestionmatrix.minrawscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionmatrix.minrawscore IS 'The minimum score possible on a survey.'; + + +-- +-- Name: COLUMN surveyquestionmatrix.maxrawscore; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionmatrix.maxrawscore IS 'The maximum score possible on a survey.'; + + +-- +-- Name: surveyquestionresponse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyquestionresponse ( + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + noresponse boolean, + comment character varying(1024), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveyquestionresponse OWNER TO postgres; + +-- +-- Name: TABLE surveyquestionresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyquestionresponse IS 'The response to a survey question.'; + + +-- +-- Name: COLUMN surveyquestionresponse.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponse.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyquestionresponse.questioncode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponse.questioncode IS 'The identifying code for the question, unique for the survey.'; + + +-- +-- Name: COLUMN surveyquestionresponse.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponse.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyquestionresponse.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponse.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveyquestionresponse.noresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponse.noresponse IS 'Indicates there was no response to the question.'; + + +-- +-- Name: COLUMN surveyquestionresponse.comment; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponse.comment IS 'Additional information provided by the responder about the question in the survey.'; + + +-- +-- Name: surveyquestionresponsechoice; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyquestionresponsechoice ( + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + sortorder integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + numericvalue integer, + textvalue character varying(255), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.surveyquestionresponsechoice OWNER TO postgres; + +-- +-- Name: TABLE surveyquestionresponsechoice; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyquestionresponsechoice IS 'The optional list of possible responses to a survey question.'; + + +-- +-- Name: COLUMN surveyquestionresponsechoice.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsechoice.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyquestionresponsechoice.questioncode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsechoice.questioncode IS 'The identifying code for the question, unique for the survey.'; + + +-- +-- Name: COLUMN surveyquestionresponsechoice.sortorder; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsechoice.sortorder IS 'Sort order of this ResponseChoice within the complete list of choices attached to a SurveyQuestion. If sort order doesn''t apply, the value of NumericValue or a unique, possibly sequential numeric value.'; + + +-- +-- Name: COLUMN surveyquestionresponsechoice.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsechoice.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyquestionresponsechoice.numericvalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsechoice.numericvalue IS 'A valid numeric response. If paired with a TextValue, the numeric equivalent of the TextValue.'; + + +-- +-- Name: COLUMN surveyquestionresponsechoice.textvalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsechoice.textvalue IS 'A valid text response. If paired with a NumericValue, the text equivalent of the NumericValue.'; + + +-- +-- Name: surveyquestionresponsesurveyquestionmatrixelementresponse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyquestionresponsesurveyquestionmatrixelementresponse ( + matrixelement character varying(255) NOT NULL, + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + numericresponse integer, + textresponse character varying(2048), + noresponse boolean, + minnumericresponse integer, + maxnumericresponse integer, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.surveyquestionresponsesurveyquestionmatrixelementresponse OWNER TO postgres; + +-- +-- Name: TABLE surveyquestionresponsesurveyquestionmatrixelementresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyquestionresponsesurveyquestionmatrixelementresponse IS 'For matrix questions, the response for each row of the matrix.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.matrixelement; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.matrixelement IS 'For matrix questions, the text identifying each row of the matrix.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.questioncode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.questioncode IS 'The identifying code for the question, unique for the survey.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.numericresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.numericresponse IS 'The numeric response to the question.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.textresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.textresponse IS 'The text response(s) for the question.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.noresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.noresponse IS 'Indicates there was no response to the question.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.minnumericresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.minnumericresponse IS 'The minimum score response to the question.'; + + +-- +-- Name: COLUMN surveyquestionresponsesurveyquestionmatrixelementresponse.maxnumericresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsesurveyquestionmatrixelementresponse.maxnumericresponse IS 'The maximum score response to the question.'; + + +-- +-- Name: surveyquestionresponsevalue; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyquestionresponsevalue ( + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyquestionresponsevalueidentifier integer NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + numericresponse integer, + textresponse character varying(2048), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.surveyquestionresponsevalue OWNER TO postgres; + +-- +-- Name: TABLE surveyquestionresponsevalue; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyquestionresponsevalue IS 'For free-form, single- or multiple-selection questions, one or more responses.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.questioncode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.questioncode IS 'The identifying code for the question, unique for the survey.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.surveyquestionresponsevalueidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.surveyquestionresponsevalueidentifier IS 'Primary key for the response value; a unique, usually sequential numeric value for a collection of responses, or potentially the value of NumericResponse for a single response.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.numericresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.numericresponse IS 'A numeric response to the question.'; + + +-- +-- Name: COLUMN surveyquestionresponsevalue.textresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyquestionresponsevalue.textresponse IS 'A text response to the question.'; + + +-- +-- Name: surveyresponse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyresponse ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + responsedate date NOT NULL, + responsetime integer, + electronicmailaddress character varying(128), + fullname character varying(80), + location character varying(75), + studentusi integer, + parentusi integer, + staffusi integer, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveyresponse OWNER TO postgres; + +-- +-- Name: TABLE surveyresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyresponse IS 'Responses to a Survey for named or anonymous persons.'; + + +-- +-- Name: COLUMN surveyresponse.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyresponse.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyresponse.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveyresponse.responsedate; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.responsedate IS 'Date of the survey response.'; + + +-- +-- Name: COLUMN surveyresponse.responsetime; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.responsetime IS 'The amount of time (in seconds) it took for the respondent to complete the survey.'; + + +-- +-- Name: COLUMN surveyresponse.electronicmailaddress; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.electronicmailaddress IS 'Email address of the respondent.'; + + +-- +-- Name: COLUMN surveyresponse.fullname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.fullname IS 'Full name of the respondent.'; + + +-- +-- Name: COLUMN surveyresponse.location; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.location IS 'Location of the respondent, often a city, district, or school.'; + + +-- +-- Name: COLUMN surveyresponse.studentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.studentusi IS 'A unique alphanumeric code assigned to a student.'; + + +-- +-- Name: COLUMN surveyresponse.parentusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.parentusi IS 'A unique alphanumeric code assigned to a parent.'; + + +-- +-- Name: COLUMN surveyresponse.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponse.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyresponseeducationorganizationtargetassociation ( + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveyresponseeducationorganizationtargetassociation OWNER TO postgres; + +-- +-- Name: TABLE surveyresponseeducationorganizationtargetassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyresponseeducationorganizationtargetassociation IS 'This association provides information about the survey being taken and the education organization the survey is about.'; + + +-- +-- Name: COLUMN surveyresponseeducationorganizationtargetassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponseeducationorganizationtargetassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN surveyresponseeducationorganizationtargetassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponseeducationorganizationtargetassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyresponseeducationorganizationtargetassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponseeducationorganizationtargetassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyresponseeducationorganizationtargetassociation.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponseeducationorganizationtargetassociation.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: surveyresponsestafftargetassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyresponsestafftargetassociation ( + namespace character varying(255) NOT NULL, + staffusi integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveyresponsestafftargetassociation OWNER TO postgres; + +-- +-- Name: TABLE surveyresponsestafftargetassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyresponsestafftargetassociation IS 'The association provides information about the survey being taken and who the survey is about.'; + + +-- +-- Name: COLUMN surveyresponsestafftargetassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsestafftargetassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyresponsestafftargetassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsestafftargetassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN surveyresponsestafftargetassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsestafftargetassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyresponsestafftargetassociation.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsestafftargetassociation.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: surveyresponsesurveylevel; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveyresponsesurveylevel ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyleveldescriptorid integer NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE edfi.surveyresponsesurveylevel OWNER TO postgres; + +-- +-- Name: TABLE surveyresponsesurveylevel; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveyresponsesurveylevel IS 'Provides information about the respondents of a survey and how they can be grouped together.'; + + +-- +-- Name: COLUMN surveyresponsesurveylevel.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsesurveylevel.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveyresponsesurveylevel.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsesurveylevel.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveyresponsesurveylevel.surveyleveldescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsesurveylevel.surveyleveldescriptorid IS 'Provides information about the respondents of a survey and how they can be grouped together.'; + + +-- +-- Name: COLUMN surveyresponsesurveylevel.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveyresponsesurveylevel.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: surveysection; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveysection ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveysection OWNER TO postgres; + +-- +-- Name: TABLE surveysection; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveysection IS 'The section of questions for the survey.'; + + +-- +-- Name: COLUMN surveysection.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysection.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveysection.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysection.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveysection.surveysectiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysection.surveysectiontitle IS 'The title or label for the survey section.'; + + +-- +-- Name: surveysectionassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveysectionassociation ( + localcoursecode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveysectionassociation OWNER TO postgres; + +-- +-- Name: TABLE surveysectionassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveysectionassociation IS 'The section associated with the survey.'; + + +-- +-- Name: COLUMN surveysectionassociation.localcoursecode; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.localcoursecode IS 'The local code assigned by the School that identifies the course offering provided for the instruction of students.'; + + +-- +-- Name: COLUMN surveysectionassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveysectionassociation.schoolid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.schoolid IS 'The identifier assigned to a school.'; + + +-- +-- Name: COLUMN surveysectionassociation.schoolyear; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.schoolyear IS 'The identifier for the school year.'; + + +-- +-- Name: COLUMN surveysectionassociation.sectionidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.sectionidentifier IS 'The local identifier assigned to a section.'; + + +-- +-- Name: COLUMN surveysectionassociation.sessionname; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.sessionname IS 'The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer).'; + + +-- +-- Name: COLUMN surveysectionassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: surveysectionresponse; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveysectionresponse ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + sectionrating numeric(9,3), + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveysectionresponse OWNER TO postgres; + +-- +-- Name: TABLE surveysectionresponse; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveysectionresponse IS 'Optional information about the responses provided for a section of a survey.'; + + +-- +-- Name: COLUMN surveysectionresponse.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponse.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveysectionresponse.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponse.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveysectionresponse.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponse.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveysectionresponse.surveysectiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponse.surveysectiontitle IS 'The title or label for the survey section.'; + + +-- +-- Name: COLUMN surveysectionresponse.sectionrating; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponse.sectionrating IS 'Numeric rating computed from the survey responses for the section.'; + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveysectionresponseeducationorganizationtargetassociation ( + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveysectionresponseeducationorganizationtargetassociation OWNER TO postgres; + +-- +-- Name: TABLE surveysectionresponseeducationorganizationtargetassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveysectionresponseeducationorganizationtargetassociation IS 'This association provides information about the survey section and the Education Organization the survey section is about.'; + + +-- +-- Name: COLUMN surveysectionresponseeducationorganizationtargetassociation.educationorganizationid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponseeducationorganizationtargetassociation.educationorganizationid IS 'The identifier assigned to an education organization.'; + + +-- +-- Name: COLUMN surveysectionresponseeducationorganizationtargetassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponseeducationorganizationtargetassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveysectionresponseeducationorganizationtargetassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponseeducationorganizationtargetassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveysectionresponseeducationorganizationtargetassociation.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponseeducationorganizationtargetassociation.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveysectionresponseeducationorganizationtargetassociation.surveysectiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponseeducationorganizationtargetassociation.surveysectiontitle IS 'The title or label for the survey section.'; + + +-- +-- Name: surveysectionresponsestafftargetassociation; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.surveysectionresponsestafftargetassociation ( + namespace character varying(255) NOT NULL, + staffusi integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + discriminator character varying(128), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL, + changeversion bigint DEFAULT nextval('changes.changeversionsequence'::regclass) NOT NULL +); + + +ALTER TABLE edfi.surveysectionresponsestafftargetassociation OWNER TO postgres; + +-- +-- Name: TABLE surveysectionresponsestafftargetassociation; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.surveysectionresponsestafftargetassociation IS 'This association provides information about the survey section and the staff the survey section is about.'; + + +-- +-- Name: COLUMN surveysectionresponsestafftargetassociation.namespace; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponsestafftargetassociation.namespace IS 'Namespace for the Survey.'; + + +-- +-- Name: COLUMN surveysectionresponsestafftargetassociation.staffusi; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponsestafftargetassociation.staffusi IS 'A unique alphanumeric code assigned to a staff.'; + + +-- +-- Name: COLUMN surveysectionresponsestafftargetassociation.surveyidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponsestafftargetassociation.surveyidentifier IS 'The unique survey identifier from the survey tool.'; + + +-- +-- Name: COLUMN surveysectionresponsestafftargetassociation.surveyresponseidentifier; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponsestafftargetassociation.surveyresponseidentifier IS 'The identifier of the survey typically from the survey application.'; + + +-- +-- Name: COLUMN surveysectionresponsestafftargetassociation.surveysectiontitle; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.surveysectionresponsestafftargetassociation.surveysectiontitle IS 'The title or label for the survey section.'; + + +-- +-- Name: teachingcredentialbasisdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.teachingcredentialbasisdescriptor ( + teachingcredentialbasisdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.teachingcredentialbasisdescriptor OWNER TO postgres; + +-- +-- Name: TABLE teachingcredentialbasisdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.teachingcredentialbasisdescriptor IS 'An indication of the pre-determined criteria for granting the teaching credential that an individual holds.'; + + +-- +-- Name: COLUMN teachingcredentialbasisdescriptor.teachingcredentialbasisdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.teachingcredentialbasisdescriptor.teachingcredentialbasisdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: teachingcredentialdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.teachingcredentialdescriptor ( + teachingcredentialdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.teachingcredentialdescriptor OWNER TO postgres; + +-- +-- Name: TABLE teachingcredentialdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.teachingcredentialdescriptor IS 'This descriptor defines an indication of the category of a legal document giving authorization to perform teaching assignment services.'; + + +-- +-- Name: COLUMN teachingcredentialdescriptor.teachingcredentialdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.teachingcredentialdescriptor.teachingcredentialdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: technicalskillsassessmentdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.technicalskillsassessmentdescriptor ( + technicalskillsassessmentdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.technicalskillsassessmentdescriptor OWNER TO postgres; + +-- +-- Name: TABLE technicalskillsassessmentdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.technicalskillsassessmentdescriptor IS 'This descriptor defines the results of technical skills assessment aligned with industry recognized standards.'; + + +-- +-- Name: COLUMN technicalskillsassessmentdescriptor.technicalskillsassessmentdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.technicalskillsassessmentdescriptor.technicalskillsassessmentdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: telephonenumbertypedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.telephonenumbertypedescriptor ( + telephonenumbertypedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.telephonenumbertypedescriptor OWNER TO postgres; + +-- +-- Name: TABLE telephonenumbertypedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.telephonenumbertypedescriptor IS 'The type of communication number listed for an individual.'; + + +-- +-- Name: COLUMN telephonenumbertypedescriptor.telephonenumbertypedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.telephonenumbertypedescriptor.telephonenumbertypedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: termdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.termdescriptor ( + termdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.termdescriptor OWNER TO postgres; + +-- +-- Name: TABLE termdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.termdescriptor IS 'This descriptor defines the term of a session during the school year (e.g., Semester).'; + + +-- +-- Name: COLUMN termdescriptor.termdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.termdescriptor.termdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: titleipartaparticipantdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.titleipartaparticipantdescriptor ( + titleipartaparticipantdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.titleipartaparticipantdescriptor OWNER TO postgres; + +-- +-- Name: TABLE titleipartaparticipantdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.titleipartaparticipantdescriptor IS 'An indication of the type of Title I program, if any, in which the student is participating and served.'; + + +-- +-- Name: COLUMN titleipartaparticipantdescriptor.titleipartaparticipantdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.titleipartaparticipantdescriptor.titleipartaparticipantdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: titleipartaprogramservicedescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.titleipartaprogramservicedescriptor ( + titleipartaprogramservicedescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.titleipartaprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: TABLE titleipartaprogramservicedescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.titleipartaprogramservicedescriptor IS 'This descriptor defines the services provided by an education organization to populations of students associated with a Title I Part A program.'; + + +-- +-- Name: COLUMN titleipartaprogramservicedescriptor.titleipartaprogramservicedescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.titleipartaprogramservicedescriptor.titleipartaprogramservicedescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: titleipartaschooldesignationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.titleipartaschooldesignationdescriptor ( + titleipartaschooldesignationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.titleipartaschooldesignationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE titleipartaschooldesignationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.titleipartaschooldesignationdescriptor IS 'Denotes the Title I Part A designation for the school.'; + + +-- +-- Name: COLUMN titleipartaschooldesignationdescriptor.titleipartaschooldesignationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.titleipartaschooldesignationdescriptor.titleipartaschooldesignationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: tribalaffiliationdescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.tribalaffiliationdescriptor ( + tribalaffiliationdescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.tribalaffiliationdescriptor OWNER TO postgres; + +-- +-- Name: TABLE tribalaffiliationdescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.tribalaffiliationdescriptor IS 'An American Indian tribe with which an individual is affiliated.'; + + +-- +-- Name: COLUMN tribalaffiliationdescriptor.tribalaffiliationdescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.tribalaffiliationdescriptor.tribalaffiliationdescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: visadescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.visadescriptor ( + visadescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.visadescriptor OWNER TO postgres; + +-- +-- Name: TABLE visadescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.visadescriptor IS 'An indicator of a non-U.S. citizen''s Visa type.'; + + +-- +-- Name: COLUMN visadescriptor.visadescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.visadescriptor.visadescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: weapondescriptor; Type: TABLE; Schema: edfi; Owner: postgres +-- + +CREATE TABLE edfi.weapondescriptor ( + weapondescriptorid integer NOT NULL +); + + +ALTER TABLE edfi.weapondescriptor OWNER TO postgres; + +-- +-- Name: TABLE weapondescriptor; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON TABLE edfi.weapondescriptor IS 'This descriptor defines the types of weapon used during an incident.'; + + +-- +-- Name: COLUMN weapondescriptor.weapondescriptorid; Type: COMMENT; Schema: edfi; Owner: postgres +-- + +COMMENT ON COLUMN edfi.weapondescriptor.weapondescriptorid IS 'A unique identifier used as Primary Key, not derived from business logic, when acting as Foreign Key, references the parent table.'; + + +-- +-- Name: descriptorequivalencegroup; Type: TABLE; Schema: interop; Owner: postgres +-- + +CREATE TABLE interop.descriptorequivalencegroup ( + descriptorequivalencegroupid uuid DEFAULT public.gen_random_uuid() NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL +); + + +ALTER TABLE interop.descriptorequivalencegroup OWNER TO postgres; + +-- +-- Name: descriptorequivalencegroupassignment; Type: TABLE; Schema: interop; Owner: postgres +-- + +CREATE TABLE interop.descriptorequivalencegroupassignment ( + descriptorid integer NOT NULL, + descriptorequivalencegroupid uuid NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL +); + + +ALTER TABLE interop.descriptorequivalencegroupassignment OWNER TO postgres; + +-- +-- Name: descriptorequivalencegroupgeneralization; Type: TABLE; Schema: interop; Owner: postgres +-- + +CREATE TABLE interop.descriptorequivalencegroupgeneralization ( + descriptorequivalencegroupid uuid NOT NULL, + generalizationdescriptorequivalencegroupid uuid NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL +); + + +ALTER TABLE interop.descriptorequivalencegroupgeneralization OWNER TO postgres; + +-- +-- Name: operationalcontext; Type: TABLE; Schema: interop; Owner: postgres +-- + +CREATE TABLE interop.operationalcontext ( + operationalcontexturi character varying(255) NOT NULL, + displayname character varying(100) NOT NULL, + organizationname character varying(50), + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + lastmodifieddate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, + id uuid DEFAULT public.gen_random_uuid() NOT NULL +); + + +ALTER TABLE interop.operationalcontext OWNER TO postgres; + +-- +-- Name: operationalcontextdescriptorusage; Type: TABLE; Schema: interop; Owner: postgres +-- + +CREATE TABLE interop.operationalcontextdescriptorusage ( + operationalcontexturi character varying(255) NOT NULL, + descriptorid integer NOT NULL, + createdate timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL +); + + +ALTER TABLE interop.operationalcontextdescriptorusage OWNER TO postgres; + +-- +-- Name: operationalcontextsupport; Type: VIEW; Schema: interop; Owner: postgres +-- + +CREATE VIEW interop.operationalcontextsupport AS + SELECT (((sd.namespace)::text || '#'::text) || (sd.codevalue)::text) AS sourcedescriptoruri, + tocd.operationalcontexturi AS targetoperationalcontexturi, + (((td.namespace)::text || '#'::text) || (td.codevalue)::text) AS targetdescriptoruri, + 0 AS isgeneralized + FROM (((((edfi.descriptor sd + JOIN interop.descriptorequivalencegroupassignment sdega ON ((sd.descriptorid = sdega.descriptorid))) + JOIN interop.descriptorequivalencegroup deg ON ((sdega.descriptorequivalencegroupid = deg.descriptorequivalencegroupid))) + JOIN interop.descriptorequivalencegroupassignment tdega ON ((deg.descriptorequivalencegroupid = tdega.descriptorequivalencegroupid))) + JOIN edfi.descriptor td ON ((tdega.descriptorid = td.descriptorid))) + JOIN interop.operationalcontextdescriptorusage tocd ON ((td.descriptorid = tocd.descriptorid))) +UNION + SELECT (((sd.namespace)::text || '#'::text) || (sd.codevalue)::text) AS sourcedescriptoruri, + tocd.operationalcontexturi AS targetoperationalcontexturi, + (((td.namespace)::text || '#'::text) || (td.codevalue)::text) AS targetdescriptoruri, + 1 AS isgeneralized + FROM (((((((edfi.descriptor sd + JOIN interop.descriptorequivalencegroupassignment sdega ON ((sd.descriptorid = sdega.descriptorid))) + JOIN interop.descriptorequivalencegroup sdeg ON ((sdega.descriptorequivalencegroupid = sdeg.descriptorequivalencegroupid))) + JOIN interop.descriptorequivalencegroupgeneralization degg ON ((sdeg.descriptorequivalencegroupid = degg.descriptorequivalencegroupid))) + JOIN interop.descriptorequivalencegroup tdeg ON ((degg.generalizationdescriptorequivalencegroupid = tdeg.descriptorequivalencegroupid))) + JOIN interop.descriptorequivalencegroupassignment tdega ON ((tdeg.descriptorequivalencegroupid = tdega.descriptorequivalencegroupid))) + JOIN edfi.descriptor td ON ((tdega.descriptorid = td.descriptorid))) + JOIN interop.operationalcontextdescriptorusage tocd ON ((td.descriptorid = tocd.descriptorid))) +UNION + SELECT (((sd.namespace)::text || '#'::text) || (sd.codevalue)::text) AS sourcedescriptoruri, + tocd.operationalcontexturi AS targetoperationalcontexturi, + (((sd.namespace)::text || '#'::text) || (sd.codevalue)::text) AS targetdescriptoruri, + 0 AS isgeneralized + FROM (edfi.descriptor sd + JOIN interop.operationalcontextdescriptorusage tocd ON ((sd.descriptorid = tocd.descriptorid))); + + +ALTER TABLE interop.operationalcontextsupport OWNER TO postgres; + +-- +-- Name: DeployJournal; Type: TABLE; Schema: public; Owner: postgres +-- + +CREATE TABLE public."DeployJournal" ( + schemaversionsid integer NOT NULL, + scriptname character varying(255) NOT NULL, + applied timestamp without time zone NOT NULL +); + + +ALTER TABLE public."DeployJournal" OWNER TO postgres; + +-- +-- Name: DeployJournal_schemaversionsid_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- + +CREATE SEQUENCE public."DeployJournal_schemaversionsid_seq" + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +ALTER TABLE public."DeployJournal_schemaversionsid_seq" OWNER TO postgres; + +-- +-- Name: DeployJournal_schemaversionsid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres +-- + +ALTER SEQUENCE public."DeployJournal_schemaversionsid_seq" OWNED BY public."DeployJournal".schemaversionsid; + + +-- +-- Name: absenceeventcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.absenceeventcategorydescriptor ( + absenceeventcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.absenceeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: academichonorcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.academichonorcategorydescriptor ( + academichonorcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.academichonorcategorydescriptor OWNER TO postgres; + +-- +-- Name: academicsubjectdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.academicsubjectdescriptor ( + academicsubjectdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.academicsubjectdescriptor OWNER TO postgres; + +-- +-- Name: academicweek; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.academicweek ( + schoolid integer NOT NULL, + weekidentifier character varying(80) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.academicweek OWNER TO postgres; + +-- +-- Name: accommodationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.accommodationdescriptor ( + accommodationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.accommodationdescriptor OWNER TO postgres; + +-- +-- Name: account; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.account ( + accountidentifier character varying(50) NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.account OWNER TO postgres; + +-- +-- Name: accountabilityrating; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.accountabilityrating ( + educationorganizationid integer NOT NULL, + ratingtitle character varying(60) NOT NULL, + schoolyear smallint NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.accountabilityrating OWNER TO postgres; + +-- +-- Name: accountclassificationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.accountclassificationdescriptor ( + accountclassificationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.accountclassificationdescriptor OWNER TO postgres; + +-- +-- Name: accountcode; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.accountcode ( + accountclassificationdescriptorid integer NOT NULL, + accountcodenumber character varying(50) NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.accountcode OWNER TO postgres; + +-- +-- Name: achievementcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.achievementcategorydescriptor ( + achievementcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.achievementcategorydescriptor OWNER TO postgres; + +-- +-- Name: actual; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.actual ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.actual OWNER TO postgres; + +-- +-- Name: additionalcredittypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.additionalcredittypedescriptor ( + additionalcredittypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.additionalcredittypedescriptor OWNER TO postgres; + +-- +-- Name: addresstypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.addresstypedescriptor ( + addresstypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.addresstypedescriptor OWNER TO postgres; + +-- +-- Name: administrationenvironmentdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.administrationenvironmentdescriptor ( + administrationenvironmentdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.administrationenvironmentdescriptor OWNER TO postgres; + +-- +-- Name: administrativefundingcontroldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.administrativefundingcontroldescriptor ( + administrativefundingcontroldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.administrativefundingcontroldescriptor OWNER TO postgres; + +-- +-- Name: ancestryethnicorigindescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.ancestryethnicorigindescriptor ( + ancestryethnicorigindescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.ancestryethnicorigindescriptor OWNER TO postgres; + +-- +-- Name: assessment; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessment ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessment OWNER TO postgres; + +-- +-- Name: assessmentcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentcategorydescriptor ( + assessmentcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentcategorydescriptor OWNER TO postgres; + +-- +-- Name: assessmentidentificationsystemdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentidentificationsystemdescriptor ( + assessmentidentificationsystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: assessmentitem; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentitem ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentitem OWNER TO postgres; + +-- +-- Name: assessmentitemcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentitemcategorydescriptor ( + assessmentitemcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentitemcategorydescriptor OWNER TO postgres; + +-- +-- Name: assessmentitemresultdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentitemresultdescriptor ( + assessmentitemresultdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentitemresultdescriptor OWNER TO postgres; + +-- +-- Name: assessmentperioddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentperioddescriptor ( + assessmentperioddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentperioddescriptor OWNER TO postgres; + +-- +-- Name: assessmentreportingmethoddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentreportingmethoddescriptor ( + assessmentreportingmethoddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentreportingmethoddescriptor OWNER TO postgres; + +-- +-- Name: assessmentscorerangelearningstandard; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.assessmentscorerangelearningstandard ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + scorerangeid character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.assessmentscorerangelearningstandard OWNER TO postgres; + +-- +-- Name: attemptstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.attemptstatusdescriptor ( + attemptstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.attemptstatusdescriptor OWNER TO postgres; + +-- +-- Name: attendanceeventcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.attendanceeventcategorydescriptor ( + attendanceeventcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.attendanceeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: barriertointernetaccessinresidencedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor ( + barriertointernetaccessinresidencedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor OWNER TO postgres; + +-- +-- Name: behaviordescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.behaviordescriptor ( + behaviordescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.behaviordescriptor OWNER TO postgres; + +-- +-- Name: bellschedule; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.bellschedule ( + bellschedulename character varying(60) NOT NULL, + schoolid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.bellschedule OWNER TO postgres; + +-- +-- Name: budget; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.budget ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.budget OWNER TO postgres; + +-- +-- Name: calendar; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.calendar ( + calendarcode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.calendar OWNER TO postgres; + +-- +-- Name: calendardate; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.calendardate ( + calendarcode character varying(60) NOT NULL, + date date NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.calendardate OWNER TO postgres; + +-- +-- Name: calendareventdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.calendareventdescriptor ( + calendareventdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.calendareventdescriptor OWNER TO postgres; + +-- +-- Name: calendartypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.calendartypedescriptor ( + calendartypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.calendartypedescriptor OWNER TO postgres; + +-- +-- Name: careerpathwaydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.careerpathwaydescriptor ( + careerpathwaydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.careerpathwaydescriptor OWNER TO postgres; + +-- +-- Name: charterapprovalagencytypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.charterapprovalagencytypedescriptor ( + charterapprovalagencytypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.charterapprovalagencytypedescriptor OWNER TO postgres; + +-- +-- Name: charterstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.charterstatusdescriptor ( + charterstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.charterstatusdescriptor OWNER TO postgres; + +-- +-- Name: citizenshipstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.citizenshipstatusdescriptor ( + citizenshipstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.citizenshipstatusdescriptor OWNER TO postgres; + +-- +-- Name: classperiod; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.classperiod ( + classperiodname character varying(60) NOT NULL, + schoolid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.classperiod OWNER TO postgres; + +-- +-- Name: classroompositiondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.classroompositiondescriptor ( + classroompositiondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.classroompositiondescriptor OWNER TO postgres; + +-- +-- Name: cohort; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.cohort ( + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.cohort OWNER TO postgres; + +-- +-- Name: cohortscopedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.cohortscopedescriptor ( + cohortscopedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.cohortscopedescriptor OWNER TO postgres; + +-- +-- Name: cohorttypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.cohorttypedescriptor ( + cohorttypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.cohorttypedescriptor OWNER TO postgres; + +-- +-- Name: cohortyeartypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.cohortyeartypedescriptor ( + cohortyeartypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.cohortyeartypedescriptor OWNER TO postgres; + +-- +-- Name: communityorganization; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.communityorganization ( + communityorganizationid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.communityorganization OWNER TO postgres; + +-- +-- Name: communityprovider; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.communityprovider ( + communityproviderid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.communityprovider OWNER TO postgres; + +-- +-- Name: communityproviderlicense; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.communityproviderlicense ( + communityproviderid integer NOT NULL, + licenseidentifier character varying(20) NOT NULL, + licensingorganization character varying(75) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.communityproviderlicense OWNER TO postgres; + +-- +-- Name: competencyleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.competencyleveldescriptor ( + competencyleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.competencyleveldescriptor OWNER TO postgres; + +-- +-- Name: competencyobjective; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.competencyobjective ( + educationorganizationid integer NOT NULL, + objective character varying(60) NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.competencyobjective OWNER TO postgres; + +-- +-- Name: contacttypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.contacttypedescriptor ( + contacttypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.contacttypedescriptor OWNER TO postgres; + +-- +-- Name: contentclassdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.contentclassdescriptor ( + contentclassdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.contentclassdescriptor OWNER TO postgres; + +-- +-- Name: continuationofservicesreasondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.continuationofservicesreasondescriptor ( + continuationofservicesreasondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.continuationofservicesreasondescriptor OWNER TO postgres; + +-- +-- Name: contractedstaff; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.contractedstaff ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.contractedstaff OWNER TO postgres; + +-- +-- Name: costratedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.costratedescriptor ( + costratedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.costratedescriptor OWNER TO postgres; + +-- +-- Name: countrydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.countrydescriptor ( + countrydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.countrydescriptor OWNER TO postgres; + +-- +-- Name: course; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.course ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.course OWNER TO postgres; + +-- +-- Name: courseattemptresultdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.courseattemptresultdescriptor ( + courseattemptresultdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.courseattemptresultdescriptor OWNER TO postgres; + +-- +-- Name: coursedefinedbydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.coursedefinedbydescriptor ( + coursedefinedbydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.coursedefinedbydescriptor OWNER TO postgres; + +-- +-- Name: coursegpaapplicabilitydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.coursegpaapplicabilitydescriptor ( + coursegpaapplicabilitydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.coursegpaapplicabilitydescriptor OWNER TO postgres; + +-- +-- Name: courseidentificationsystemdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.courseidentificationsystemdescriptor ( + courseidentificationsystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.courseidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: courselevelcharacteristicdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.courselevelcharacteristicdescriptor ( + courselevelcharacteristicdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.courselevelcharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: courseoffering; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.courseoffering ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.courseoffering OWNER TO postgres; + +-- +-- Name: courserepeatcodedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.courserepeatcodedescriptor ( + courserepeatcodedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.courserepeatcodedescriptor OWNER TO postgres; + +-- +-- Name: coursetranscript; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.coursetranscript ( + courseattemptresultdescriptorid integer NOT NULL, + coursecode character varying(60) NOT NULL, + courseeducationorganizationid integer NOT NULL, + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.coursetranscript OWNER TO postgres; + +-- +-- Name: credential; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.credential ( + credentialidentifier character varying(60) NOT NULL, + stateofissuestateabbreviationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.credential OWNER TO postgres; + +-- +-- Name: credentialfielddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.credentialfielddescriptor ( + credentialfielddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.credentialfielddescriptor OWNER TO postgres; + +-- +-- Name: credentialtypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.credentialtypedescriptor ( + credentialtypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.credentialtypedescriptor OWNER TO postgres; + +-- +-- Name: creditcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.creditcategorydescriptor ( + creditcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.creditcategorydescriptor OWNER TO postgres; + +-- +-- Name: credittypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.credittypedescriptor ( + credittypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.credittypedescriptor OWNER TO postgres; + +-- +-- Name: cteprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.cteprogramservicedescriptor ( + cteprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.cteprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: curriculumuseddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.curriculumuseddescriptor ( + curriculumuseddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.curriculumuseddescriptor OWNER TO postgres; + +-- +-- Name: deliverymethoddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.deliverymethoddescriptor ( + deliverymethoddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.deliverymethoddescriptor OWNER TO postgres; + +-- +-- Name: descriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.descriptor ( + descriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.descriptor OWNER TO postgres; + +-- +-- Name: diagnosisdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.diagnosisdescriptor ( + diagnosisdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.diagnosisdescriptor OWNER TO postgres; + +-- +-- Name: diplomaleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.diplomaleveldescriptor ( + diplomaleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.diplomaleveldescriptor OWNER TO postgres; + +-- +-- Name: diplomatypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.diplomatypedescriptor ( + diplomatypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.diplomatypedescriptor OWNER TO postgres; + +-- +-- Name: disabilitydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disabilitydescriptor ( + disabilitydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disabilitydescriptor OWNER TO postgres; + +-- +-- Name: disabilitydesignationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disabilitydesignationdescriptor ( + disabilitydesignationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disabilitydesignationdescriptor OWNER TO postgres; + +-- +-- Name: disabilitydeterminationsourcetypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor ( + disabilitydeterminationsourcetypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor OWNER TO postgres; + +-- +-- Name: disciplineaction; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disciplineaction ( + disciplineactionidentifier character varying(20) NOT NULL, + disciplinedate date NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disciplineaction OWNER TO postgres; + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor ( + disciplineactionlengthdifferencereasondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor OWNER TO postgres; + +-- +-- Name: disciplinedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disciplinedescriptor ( + disciplinedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disciplinedescriptor OWNER TO postgres; + +-- +-- Name: disciplineincident; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disciplineincident ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disciplineincident OWNER TO postgres; + +-- +-- Name: disciplineincidentparticipationcodedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor ( + disciplineincidentparticipationcodedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor OWNER TO postgres; + +-- +-- Name: educationalenvironmentdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationalenvironmentdescriptor ( + educationalenvironmentdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationalenvironmentdescriptor OWNER TO postgres; + +-- +-- Name: educationcontent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationcontent ( + contentidentifier character varying(225) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationcontent OWNER TO postgres; + +-- +-- Name: educationorganization; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganization ( + educationorganizationid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganization OWNER TO postgres; + +-- +-- Name: educationorganizationcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganizationcategorydescriptor ( + educationorganizationcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganizationcategorydescriptor OWNER TO postgres; + +-- +-- Name: educationorganizationidentificationsystemdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor ( + educationorganizationidentificationsystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: educationorganizationinterventionprescriptionassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganizationinterventionprescriptionassociation ( + educationorganizationid integer NOT NULL, + interventionprescriptioneducationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganizationinterventionprescriptionassociation OWNER TO postgres; + +-- +-- Name: educationorganizationnetwork; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganizationnetwork ( + educationorganizationnetworkid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganizationnetwork OWNER TO postgres; + +-- +-- Name: educationorganizationnetworkassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganizationnetworkassociation ( + educationorganizationnetworkid integer NOT NULL, + membereducationorganizationid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganizationnetworkassociation OWNER TO postgres; + +-- +-- Name: educationorganizationpeerassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationorganizationpeerassociation ( + educationorganizationid integer NOT NULL, + peereducationorganizationid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationorganizationpeerassociation OWNER TO postgres; + +-- +-- Name: educationplandescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationplandescriptor ( + educationplandescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationplandescriptor OWNER TO postgres; + +-- +-- Name: educationservicecenter; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.educationservicecenter ( + educationservicecenterid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.educationservicecenter OWNER TO postgres; + +-- +-- Name: electronicmailtypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.electronicmailtypedescriptor ( + electronicmailtypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.electronicmailtypedescriptor OWNER TO postgres; + +-- +-- Name: employmentstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.employmentstatusdescriptor ( + employmentstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.employmentstatusdescriptor OWNER TO postgres; + +-- +-- Name: entrygradelevelreasondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.entrygradelevelreasondescriptor ( + entrygradelevelreasondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.entrygradelevelreasondescriptor OWNER TO postgres; + +-- +-- Name: entrytypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.entrytypedescriptor ( + entrytypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.entrytypedescriptor OWNER TO postgres; + +-- +-- Name: eventcircumstancedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.eventcircumstancedescriptor ( + eventcircumstancedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.eventcircumstancedescriptor OWNER TO postgres; + +-- +-- Name: exitwithdrawtypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.exitwithdrawtypedescriptor ( + exitwithdrawtypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.exitwithdrawtypedescriptor OWNER TO postgres; + +-- +-- Name: feederschoolassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.feederschoolassociation ( + begindate date NOT NULL, + feederschoolid integer NOT NULL, + schoolid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.feederschoolassociation OWNER TO postgres; + +-- +-- Name: generalstudentprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.generalstudentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.generalstudentprogramassociation OWNER TO postgres; + +-- +-- Name: grade; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.grade ( + begindate date NOT NULL, + gradetypedescriptorid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.grade OWNER TO postgres; + +-- +-- Name: gradebookentry; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradebookentry ( + dateassigned date NOT NULL, + gradebookentrytitle character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradebookentry OWNER TO postgres; + +-- +-- Name: gradebookentrytypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradebookentrytypedescriptor ( + gradebookentrytypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradebookentrytypedescriptor OWNER TO postgres; + +-- +-- Name: gradeleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradeleveldescriptor ( + gradeleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradeleveldescriptor OWNER TO postgres; + +-- +-- Name: gradepointaveragetypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradepointaveragetypedescriptor ( + gradepointaveragetypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradepointaveragetypedescriptor OWNER TO postgres; + +-- +-- Name: gradetypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradetypedescriptor ( + gradetypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradetypedescriptor OWNER TO postgres; + +-- +-- Name: gradingperiod; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradingperiod ( + gradingperioddescriptorid integer NOT NULL, + periodsequence integer NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradingperiod OWNER TO postgres; + +-- +-- Name: gradingperioddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gradingperioddescriptor ( + gradingperioddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gradingperioddescriptor OWNER TO postgres; + +-- +-- Name: graduationplan; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.graduationplan ( + educationorganizationid integer NOT NULL, + graduationplantypedescriptorid integer NOT NULL, + graduationschoolyear smallint NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.graduationplan OWNER TO postgres; + +-- +-- Name: graduationplantypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.graduationplantypedescriptor ( + graduationplantypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.graduationplantypedescriptor OWNER TO postgres; + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor ( + gunfreeschoolsactreportingstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor OWNER TO postgres; + +-- +-- Name: homelessprimarynighttimeresidencedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor ( + homelessprimarynighttimeresidencedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor OWNER TO postgres; + +-- +-- Name: homelessprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.homelessprogramservicedescriptor ( + homelessprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.homelessprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: identificationdocumentusedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.identificationdocumentusedescriptor ( + identificationdocumentusedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.identificationdocumentusedescriptor OWNER TO postgres; + +-- +-- Name: incidentlocationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.incidentlocationdescriptor ( + incidentlocationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.incidentlocationdescriptor OWNER TO postgres; + +-- +-- Name: indicatordescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.indicatordescriptor ( + indicatordescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.indicatordescriptor OWNER TO postgres; + +-- +-- Name: indicatorgroupdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.indicatorgroupdescriptor ( + indicatorgroupdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.indicatorgroupdescriptor OWNER TO postgres; + +-- +-- Name: indicatorleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.indicatorleveldescriptor ( + indicatorleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.indicatorleveldescriptor OWNER TO postgres; + +-- +-- Name: institutiontelephonenumbertypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.institutiontelephonenumbertypedescriptor ( + institutiontelephonenumbertypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.institutiontelephonenumbertypedescriptor OWNER TO postgres; + +-- +-- Name: interactivitystyledescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.interactivitystyledescriptor ( + interactivitystyledescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.interactivitystyledescriptor OWNER TO postgres; + +-- +-- Name: internetaccessdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.internetaccessdescriptor ( + internetaccessdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.internetaccessdescriptor OWNER TO postgres; + +-- +-- Name: internetaccesstypeinresidencedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.internetaccesstypeinresidencedescriptor ( + internetaccesstypeinresidencedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.internetaccesstypeinresidencedescriptor OWNER TO postgres; + +-- +-- Name: internetperformanceinresidencedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.internetperformanceinresidencedescriptor ( + internetperformanceinresidencedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.internetperformanceinresidencedescriptor OWNER TO postgres; + +-- +-- Name: intervention; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.intervention ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.intervention OWNER TO postgres; + +-- +-- Name: interventionclassdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.interventionclassdescriptor ( + interventionclassdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.interventionclassdescriptor OWNER TO postgres; + +-- +-- Name: interventioneffectivenessratingdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.interventioneffectivenessratingdescriptor ( + interventioneffectivenessratingdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.interventioneffectivenessratingdescriptor OWNER TO postgres; + +-- +-- Name: interventionprescription; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.interventionprescription ( + educationorganizationid integer NOT NULL, + interventionprescriptionidentificationcode character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.interventionprescription OWNER TO postgres; + +-- +-- Name: interventionstudy; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.interventionstudy ( + educationorganizationid integer NOT NULL, + interventionstudyidentificationcode character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.interventionstudy OWNER TO postgres; + +-- +-- Name: languagedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.languagedescriptor ( + languagedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.languagedescriptor OWNER TO postgres; + +-- +-- Name: languageinstructionprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.languageinstructionprogramservicedescriptor ( + languageinstructionprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.languageinstructionprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: languageusedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.languageusedescriptor ( + languageusedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.languageusedescriptor OWNER TO postgres; + +-- +-- Name: learningobjective; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.learningobjective ( + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.learningobjective OWNER TO postgres; + +-- +-- Name: learningstandard; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.learningstandard ( + learningstandardid character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.learningstandard OWNER TO postgres; + +-- +-- Name: learningstandardcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.learningstandardcategorydescriptor ( + learningstandardcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.learningstandardcategorydescriptor OWNER TO postgres; + +-- +-- Name: learningstandardequivalenceassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.learningstandardequivalenceassociation ( + namespace character varying(255) NOT NULL, + sourcelearningstandardid character varying(60) NOT NULL, + targetlearningstandardid character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.learningstandardequivalenceassociation OWNER TO postgres; + +-- +-- Name: learningstandardequivalencestrengthdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor ( + learningstandardequivalencestrengthdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor OWNER TO postgres; + +-- +-- Name: learningstandardscopedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.learningstandardscopedescriptor ( + learningstandardscopedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.learningstandardscopedescriptor OWNER TO postgres; + +-- +-- Name: levelofeducationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.levelofeducationdescriptor ( + levelofeducationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.levelofeducationdescriptor OWNER TO postgres; + +-- +-- Name: licensestatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.licensestatusdescriptor ( + licensestatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.licensestatusdescriptor OWNER TO postgres; + +-- +-- Name: licensetypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.licensetypedescriptor ( + licensetypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.licensetypedescriptor OWNER TO postgres; + +-- +-- Name: limitedenglishproficiencydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.limitedenglishproficiencydescriptor ( + limitedenglishproficiencydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.limitedenglishproficiencydescriptor OWNER TO postgres; + +-- +-- Name: localedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.localedescriptor ( + localedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.localedescriptor OWNER TO postgres; + +-- +-- Name: localeducationagency; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.localeducationagency ( + localeducationagencyid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.localeducationagency OWNER TO postgres; + +-- +-- Name: localeducationagencycategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.localeducationagencycategorydescriptor ( + localeducationagencycategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.localeducationagencycategorydescriptor OWNER TO postgres; + +-- +-- Name: location; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.location ( + classroomidentificationcode character varying(60) NOT NULL, + schoolid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.location OWNER TO postgres; + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor ( + magnetspecialprogramemphasisschooldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor OWNER TO postgres; + +-- +-- Name: mediumofinstructiondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.mediumofinstructiondescriptor ( + mediumofinstructiondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.mediumofinstructiondescriptor OWNER TO postgres; + +-- +-- Name: methodcreditearneddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.methodcreditearneddescriptor ( + methodcreditearneddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.methodcreditearneddescriptor OWNER TO postgres; + +-- +-- Name: migranteducationprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.migranteducationprogramservicedescriptor ( + migranteducationprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.migranteducationprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: monitoreddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.monitoreddescriptor ( + monitoreddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.monitoreddescriptor OWNER TO postgres; + +-- +-- Name: neglectedordelinquentprogramdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.neglectedordelinquentprogramdescriptor ( + neglectedordelinquentprogramdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.neglectedordelinquentprogramdescriptor OWNER TO postgres; + +-- +-- Name: neglectedordelinquentprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor ( + neglectedordelinquentprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: networkpurposedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.networkpurposedescriptor ( + networkpurposedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.networkpurposedescriptor OWNER TO postgres; + +-- +-- Name: objectiveassessment; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.objectiveassessment ( + assessmentidentifier character varying(60) NOT NULL, + identificationcode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.objectiveassessment OWNER TO postgres; + +-- +-- Name: oldethnicitydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.oldethnicitydescriptor ( + oldethnicitydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.oldethnicitydescriptor OWNER TO postgres; + +-- +-- Name: openstaffposition; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.openstaffposition ( + educationorganizationid integer NOT NULL, + requisitionnumber character varying(20) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.openstaffposition OWNER TO postgres; + +-- +-- Name: operationalstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.operationalstatusdescriptor ( + operationalstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.operationalstatusdescriptor OWNER TO postgres; + +-- +-- Name: organizationdepartment; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.organizationdepartment ( + organizationdepartmentid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.organizationdepartment OWNER TO postgres; + +-- +-- Name: othernametypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.othernametypedescriptor ( + othernametypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.othernametypedescriptor OWNER TO postgres; + +-- +-- Name: parent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.parent ( + parentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.parent OWNER TO postgres; + +-- +-- Name: participationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.participationdescriptor ( + participationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.participationdescriptor OWNER TO postgres; + +-- +-- Name: participationstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.participationstatusdescriptor ( + participationstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.participationstatusdescriptor OWNER TO postgres; + +-- +-- Name: payroll; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.payroll ( + accountidentifier character varying(50) NOT NULL, + asofdate date NOT NULL, + educationorganizationid integer NOT NULL, + fiscalyear integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.payroll OWNER TO postgres; + +-- +-- Name: performancebaseconversiondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.performancebaseconversiondescriptor ( + performancebaseconversiondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.performancebaseconversiondescriptor OWNER TO postgres; + +-- +-- Name: performanceleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.performanceleveldescriptor ( + performanceleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.performanceleveldescriptor OWNER TO postgres; + +-- +-- Name: person; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.person ( + personid character varying(32) NOT NULL, + sourcesystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.person OWNER TO postgres; + +-- +-- Name: personalinformationverificationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.personalinformationverificationdescriptor ( + personalinformationverificationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.personalinformationverificationdescriptor OWNER TO postgres; + +-- +-- Name: platformtypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.platformtypedescriptor ( + platformtypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.platformtypedescriptor OWNER TO postgres; + +-- +-- Name: populationserveddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.populationserveddescriptor ( + populationserveddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.populationserveddescriptor OWNER TO postgres; + +-- +-- Name: postingresultdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.postingresultdescriptor ( + postingresultdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.postingresultdescriptor OWNER TO postgres; + +-- +-- Name: postsecondaryevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.postsecondaryevent ( + eventdate date NOT NULL, + postsecondaryeventcategorydescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.postsecondaryevent OWNER TO postgres; + +-- +-- Name: postsecondaryeventcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.postsecondaryeventcategorydescriptor ( + postsecondaryeventcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.postsecondaryeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: postsecondaryinstitution; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.postsecondaryinstitution ( + postsecondaryinstitutionid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.postsecondaryinstitution OWNER TO postgres; + +-- +-- Name: postsecondaryinstitutionleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor ( + postsecondaryinstitutionleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor OWNER TO postgres; + +-- +-- Name: primarylearningdeviceaccessdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.primarylearningdeviceaccessdescriptor ( + primarylearningdeviceaccessdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.primarylearningdeviceaccessdescriptor OWNER TO postgres; + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor ( + primarylearningdeviceawayfromschooldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor OWNER TO postgres; + +-- +-- Name: primarylearningdeviceproviderdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.primarylearningdeviceproviderdescriptor ( + primarylearningdeviceproviderdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.primarylearningdeviceproviderdescriptor OWNER TO postgres; + +-- +-- Name: proficiencydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.proficiencydescriptor ( + proficiencydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.proficiencydescriptor OWNER TO postgres; + +-- +-- Name: program; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.program ( + educationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.program OWNER TO postgres; + +-- +-- Name: programassignmentdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.programassignmentdescriptor ( + programassignmentdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.programassignmentdescriptor OWNER TO postgres; + +-- +-- Name: programcharacteristicdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.programcharacteristicdescriptor ( + programcharacteristicdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.programcharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: programsponsordescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.programsponsordescriptor ( + programsponsordescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.programsponsordescriptor OWNER TO postgres; + +-- +-- Name: programtypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.programtypedescriptor ( + programtypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.programtypedescriptor OWNER TO postgres; + +-- +-- Name: progressdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.progressdescriptor ( + progressdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.progressdescriptor OWNER TO postgres; + +-- +-- Name: progressleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.progressleveldescriptor ( + progressleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.progressleveldescriptor OWNER TO postgres; + +-- +-- Name: providercategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.providercategorydescriptor ( + providercategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.providercategorydescriptor OWNER TO postgres; + +-- +-- Name: providerprofitabilitydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.providerprofitabilitydescriptor ( + providerprofitabilitydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.providerprofitabilitydescriptor OWNER TO postgres; + +-- +-- Name: providerstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.providerstatusdescriptor ( + providerstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.providerstatusdescriptor OWNER TO postgres; + +-- +-- Name: publicationstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.publicationstatusdescriptor ( + publicationstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.publicationstatusdescriptor OWNER TO postgres; + +-- +-- Name: questionformdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.questionformdescriptor ( + questionformdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.questionformdescriptor OWNER TO postgres; + +-- +-- Name: racedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.racedescriptor ( + racedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.racedescriptor OWNER TO postgres; + +-- +-- Name: reasonexiteddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.reasonexiteddescriptor ( + reasonexiteddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.reasonexiteddescriptor OWNER TO postgres; + +-- +-- Name: reasonnottesteddescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.reasonnottesteddescriptor ( + reasonnottesteddescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.reasonnottesteddescriptor OWNER TO postgres; + +-- +-- Name: recognitiontypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.recognitiontypedescriptor ( + recognitiontypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.recognitiontypedescriptor OWNER TO postgres; + +-- +-- Name: relationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.relationdescriptor ( + relationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.relationdescriptor OWNER TO postgres; + +-- +-- Name: repeatidentifierdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.repeatidentifierdescriptor ( + repeatidentifierdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.repeatidentifierdescriptor OWNER TO postgres; + +-- +-- Name: reportcard; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.reportcard ( + educationorganizationid integer NOT NULL, + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.reportcard OWNER TO postgres; + +-- +-- Name: reporterdescriptiondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.reporterdescriptiondescriptor ( + reporterdescriptiondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.reporterdescriptiondescriptor OWNER TO postgres; + +-- +-- Name: residencystatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.residencystatusdescriptor ( + residencystatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.residencystatusdescriptor OWNER TO postgres; + +-- +-- Name: responseindicatordescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.responseindicatordescriptor ( + responseindicatordescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.responseindicatordescriptor OWNER TO postgres; + +-- +-- Name: responsibilitydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.responsibilitydescriptor ( + responsibilitydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.responsibilitydescriptor OWNER TO postgres; + +-- +-- Name: restraintevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.restraintevent ( + restrainteventidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.restraintevent OWNER TO postgres; + +-- +-- Name: restrainteventreasondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.restrainteventreasondescriptor ( + restrainteventreasondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.restrainteventreasondescriptor OWNER TO postgres; + +-- +-- Name: resultdatatypetypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.resultdatatypetypedescriptor ( + resultdatatypetypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.resultdatatypetypedescriptor OWNER TO postgres; + +-- +-- Name: retestindicatordescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.retestindicatordescriptor ( + retestindicatordescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.retestindicatordescriptor OWNER TO postgres; + +-- +-- Name: school; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.school ( + schoolid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.school OWNER TO postgres; + +-- +-- Name: schoolcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.schoolcategorydescriptor ( + schoolcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.schoolcategorydescriptor OWNER TO postgres; + +-- +-- Name: schoolchoiceimplementstatusdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor ( + schoolchoiceimplementstatusdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor OWNER TO postgres; + +-- +-- Name: schoolfoodserviceprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor ( + schoolfoodserviceprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: schooltypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.schooltypedescriptor ( + schooltypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.schooltypedescriptor OWNER TO postgres; + +-- +-- Name: section; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.section ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.section OWNER TO postgres; + +-- +-- Name: sectionattendancetakenevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.sectionattendancetakenevent ( + calendarcode character varying(60) NOT NULL, + date date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.sectionattendancetakenevent OWNER TO postgres; + +-- +-- Name: sectioncharacteristicdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.sectioncharacteristicdescriptor ( + sectioncharacteristicdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.sectioncharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: separationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.separationdescriptor ( + separationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.separationdescriptor OWNER TO postgres; + +-- +-- Name: separationreasondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.separationreasondescriptor ( + separationreasondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.separationreasondescriptor OWNER TO postgres; + +-- +-- Name: servicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.servicedescriptor ( + servicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.servicedescriptor OWNER TO postgres; + +-- +-- Name: session; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.session ( + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.session OWNER TO postgres; + +-- +-- Name: sexdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.sexdescriptor ( + sexdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.sexdescriptor OWNER TO postgres; + +-- +-- Name: sourcesystemdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.sourcesystemdescriptor ( + sourcesystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.sourcesystemdescriptor OWNER TO postgres; + +-- +-- Name: specialeducationprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.specialeducationprogramservicedescriptor ( + specialeducationprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.specialeducationprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: specialeducationsettingdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.specialeducationsettingdescriptor ( + specialeducationsettingdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.specialeducationsettingdescriptor OWNER TO postgres; + +-- +-- Name: staff; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staff ( + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staff OWNER TO postgres; + +-- +-- Name: staffabsenceevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffabsenceevent ( + absenceeventcategorydescriptorid integer NOT NULL, + eventdate date NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffabsenceevent OWNER TO postgres; + +-- +-- Name: staffclassificationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffclassificationdescriptor ( + staffclassificationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffclassificationdescriptor OWNER TO postgres; + +-- +-- Name: staffcohortassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffcohortassociation ( + begindate date NOT NULL, + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffcohortassociation OWNER TO postgres; + +-- +-- Name: staffdisciplineincidentassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffdisciplineincidentassociation ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffdisciplineincidentassociation OWNER TO postgres; + +-- +-- Name: staffeducationorganizationassignmentassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffeducationorganizationassignmentassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + staffclassificationdescriptorid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffeducationorganizationassignmentassociation OWNER TO postgres; + +-- +-- Name: staffeducationorganizationcontactassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffeducationorganizationcontactassociation ( + contacttitle character varying(75) NOT NULL, + educationorganizationid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffeducationorganizationcontactassociation OWNER TO postgres; + +-- +-- Name: staffeducationorganizationemploymentassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffeducationorganizationemploymentassociation ( + educationorganizationid integer NOT NULL, + employmentstatusdescriptorid integer NOT NULL, + hiredate date NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffeducationorganizationemploymentassociation OWNER TO postgres; + +-- +-- Name: staffidentificationsystemdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffidentificationsystemdescriptor ( + staffidentificationsystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: staffleave; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffleave ( + begindate date NOT NULL, + staffleaveeventcategorydescriptorid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffleave OWNER TO postgres; + +-- +-- Name: staffleaveeventcategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffleaveeventcategorydescriptor ( + staffleaveeventcategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffleaveeventcategorydescriptor OWNER TO postgres; + +-- +-- Name: staffprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffprogramassociation ( + begindate date NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffprogramassociation OWNER TO postgres; + +-- +-- Name: staffschoolassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffschoolassociation ( + programassignmentdescriptorid integer NOT NULL, + schoolid integer NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffschoolassociation OWNER TO postgres; + +-- +-- Name: staffsectionassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.staffsectionassociation ( + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + staffusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.staffsectionassociation OWNER TO postgres; + +-- +-- Name: stateabbreviationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.stateabbreviationdescriptor ( + stateabbreviationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.stateabbreviationdescriptor OWNER TO postgres; + +-- +-- Name: stateeducationagency; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.stateeducationagency ( + stateeducationagencyid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.stateeducationagency OWNER TO postgres; + +-- +-- Name: student; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.student ( + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.student OWNER TO postgres; + +-- +-- Name: studentacademicrecord; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentacademicrecord ( + educationorganizationid integer NOT NULL, + schoolyear smallint NOT NULL, + studentusi integer NOT NULL, + termdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentacademicrecord OWNER TO postgres; + +-- +-- Name: studentassessment; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentassessment ( + assessmentidentifier character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentassessmentidentifier character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentassessment OWNER TO postgres; + +-- +-- Name: studentcharacteristicdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentcharacteristicdescriptor ( + studentcharacteristicdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentcharacteristicdescriptor OWNER TO postgres; + +-- +-- Name: studentcohortassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentcohortassociation ( + begindate date NOT NULL, + cohortidentifier character varying(20) NOT NULL, + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentcohortassociation OWNER TO postgres; + +-- +-- Name: studentcompetencyobjective; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentcompetencyobjective ( + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + objective character varying(60) NOT NULL, + objectiveeducationorganizationid integer NOT NULL, + objectivegradeleveldescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentcompetencyobjective OWNER TO postgres; + +-- +-- Name: studentcteprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentcteprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentcteprogramassociation OWNER TO postgres; + +-- +-- Name: studentdisciplineincidentassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentdisciplineincidentassociation ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentdisciplineincidentassociation OWNER TO postgres; + +-- +-- Name: studentdisciplineincidentbehaviorassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation ( + behaviordescriptorid integer NOT NULL, + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation OWNER TO postgres; + +-- +-- Name: studentdisciplineincidentnonoffenderassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation ( + incidentidentifier character varying(20) NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation OWNER TO postgres; + +-- +-- Name: studenteducationorganizationassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studenteducationorganizationassociation ( + educationorganizationid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studenteducationorganizationassociation OWNER TO postgres; + +-- +-- Name: studenteducationorganizationresponsibilityassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studenteducationorganizationresponsibilityassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + responsibilitydescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studenteducationorganizationresponsibilityassociation OWNER TO postgres; + +-- +-- Name: studentgradebookentry; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentgradebookentry ( + begindate date NOT NULL, + dateassigned date NOT NULL, + gradebookentrytitle character varying(60) NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentgradebookentry OWNER TO postgres; + +-- +-- Name: studenthomelessprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studenthomelessprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studenthomelessprogramassociation OWNER TO postgres; + +-- +-- Name: studentidentificationsystemdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentidentificationsystemdescriptor ( + studentidentificationsystemdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentidentificationsystemdescriptor OWNER TO postgres; + +-- +-- Name: studentinterventionassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentinterventionassociation ( + educationorganizationid integer NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentinterventionassociation OWNER TO postgres; + +-- +-- Name: studentinterventionattendanceevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentinterventionattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + eventdate date NOT NULL, + interventionidentificationcode character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentinterventionattendanceevent OWNER TO postgres; + +-- +-- Name: studentlanguageinstructionprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentlanguageinstructionprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentlanguageinstructionprogramassociation OWNER TO postgres; + +-- +-- Name: studentlearningobjective; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentlearningobjective ( + gradingperioddescriptorid integer NOT NULL, + gradingperiodschoolid integer NOT NULL, + gradingperiodschoolyear smallint NOT NULL, + gradingperiodsequence integer NOT NULL, + learningobjectiveid character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentlearningobjective OWNER TO postgres; + +-- +-- Name: studentmigranteducationprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentmigranteducationprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentmigranteducationprogramassociation OWNER TO postgres; + +-- +-- Name: studentneglectedordelinquentprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentneglectedordelinquentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentneglectedordelinquentprogramassociation OWNER TO postgres; + +-- +-- Name: studentparentassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentparentassociation ( + parentusi integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentparentassociation OWNER TO postgres; + +-- +-- Name: studentparticipationcodedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentparticipationcodedescriptor ( + studentparticipationcodedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentparticipationcodedescriptor OWNER TO postgres; + +-- +-- Name: studentprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentprogramassociation OWNER TO postgres; + +-- +-- Name: studentprogramattendanceevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentprogramattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + educationorganizationid integer NOT NULL, + eventdate date NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentprogramattendanceevent OWNER TO postgres; + +-- +-- Name: studentschoolassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentschoolassociation ( + entrydate date NOT NULL, + schoolid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentschoolassociation OWNER TO postgres; + +-- +-- Name: studentschoolattendanceevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentschoolattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + eventdate date NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentschoolattendanceevent OWNER TO postgres; + +-- +-- Name: studentschoolfoodserviceprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentschoolfoodserviceprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentschoolfoodserviceprogramassociation OWNER TO postgres; + +-- +-- Name: studentsectionassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentsectionassociation ( + begindate date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentsectionassociation OWNER TO postgres; + +-- +-- Name: studentsectionattendanceevent; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentsectionattendanceevent ( + attendanceeventcategorydescriptorid integer NOT NULL, + eventdate date NOT NULL, + localcoursecode character varying(60) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentsectionattendanceevent OWNER TO postgres; + +-- +-- Name: studentspecialeducationprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studentspecialeducationprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studentspecialeducationprogramassociation OWNER TO postgres; + +-- +-- Name: studenttitleipartaprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.studenttitleipartaprogramassociation ( + begindate date NOT NULL, + educationorganizationid integer NOT NULL, + programeducationorganizationid integer NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + studentusi integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.studenttitleipartaprogramassociation OWNER TO postgres; + +-- +-- Name: survey; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.survey ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.survey OWNER TO postgres; + +-- +-- Name: surveycategorydescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveycategorydescriptor ( + surveycategorydescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveycategorydescriptor OWNER TO postgres; + +-- +-- Name: surveycourseassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveycourseassociation ( + coursecode character varying(60) NOT NULL, + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveycourseassociation OWNER TO postgres; + +-- +-- Name: surveyleveldescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyleveldescriptor ( + surveyleveldescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyleveldescriptor OWNER TO postgres; + +-- +-- Name: surveyprogramassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyprogramassociation ( + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + programname character varying(60) NOT NULL, + programtypedescriptorid integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyprogramassociation OWNER TO postgres; + +-- +-- Name: surveyquestion; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyquestion ( + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyquestion OWNER TO postgres; + +-- +-- Name: surveyquestionresponse; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyquestionresponse ( + namespace character varying(255) NOT NULL, + questioncode character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyquestionresponse OWNER TO postgres; + +-- +-- Name: surveyresponse; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyresponse ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyresponse OWNER TO postgres; + +-- +-- Name: surveyresponseeducationorganizationtargetassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation ( + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation OWNER TO postgres; + +-- +-- Name: surveyresponsestafftargetassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveyresponsestafftargetassociation ( + namespace character varying(255) NOT NULL, + staffusi integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveyresponsestafftargetassociation OWNER TO postgres; + +-- +-- Name: surveysection; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveysection ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveysection OWNER TO postgres; + +-- +-- Name: surveysectionassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveysectionassociation ( + localcoursecode character varying(60) NOT NULL, + namespace character varying(255) NOT NULL, + schoolid integer NOT NULL, + schoolyear smallint NOT NULL, + sectionidentifier character varying(255) NOT NULL, + sessionname character varying(60) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveysectionassociation OWNER TO postgres; + +-- +-- Name: surveysectionresponse; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveysectionresponse ( + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveysectionresponse OWNER TO postgres; + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveysectionresponseeducationorganizationtargetassociation ( + educationorganizationid integer NOT NULL, + namespace character varying(255) NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveysectionresponseeducationorganizationtargetassociation OWNER TO postgres; + +-- +-- Name: surveysectionresponsestafftargetassociation; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.surveysectionresponsestafftargetassociation ( + namespace character varying(255) NOT NULL, + staffusi integer NOT NULL, + surveyidentifier character varying(60) NOT NULL, + surveyresponseidentifier character varying(60) NOT NULL, + surveysectiontitle character varying(255) NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.surveysectionresponsestafftargetassociation OWNER TO postgres; + +-- +-- Name: teachingcredentialbasisdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.teachingcredentialbasisdescriptor ( + teachingcredentialbasisdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.teachingcredentialbasisdescriptor OWNER TO postgres; + +-- +-- Name: teachingcredentialdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.teachingcredentialdescriptor ( + teachingcredentialdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.teachingcredentialdescriptor OWNER TO postgres; + +-- +-- Name: technicalskillsassessmentdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.technicalskillsassessmentdescriptor ( + technicalskillsassessmentdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.technicalskillsassessmentdescriptor OWNER TO postgres; + +-- +-- Name: telephonenumbertypedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.telephonenumbertypedescriptor ( + telephonenumbertypedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.telephonenumbertypedescriptor OWNER TO postgres; + +-- +-- Name: termdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.termdescriptor ( + termdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.termdescriptor OWNER TO postgres; + +-- +-- Name: titleipartaparticipantdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.titleipartaparticipantdescriptor ( + titleipartaparticipantdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.titleipartaparticipantdescriptor OWNER TO postgres; + +-- +-- Name: titleipartaprogramservicedescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.titleipartaprogramservicedescriptor ( + titleipartaprogramservicedescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.titleipartaprogramservicedescriptor OWNER TO postgres; + +-- +-- Name: titleipartaschooldesignationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.titleipartaschooldesignationdescriptor ( + titleipartaschooldesignationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.titleipartaschooldesignationdescriptor OWNER TO postgres; + +-- +-- Name: tribalaffiliationdescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.tribalaffiliationdescriptor ( + tribalaffiliationdescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.tribalaffiliationdescriptor OWNER TO postgres; + +-- +-- Name: visadescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.visadescriptor ( + visadescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.visadescriptor OWNER TO postgres; + +-- +-- Name: weapondescriptor; Type: TABLE; Schema: tracked_deletes_edfi; Owner: postgres +-- + +CREATE TABLE tracked_deletes_edfi.weapondescriptor ( + weapondescriptorid integer NOT NULL, + id uuid NOT NULL, + changeversion bigint NOT NULL +); + + +ALTER TABLE tracked_deletes_edfi.weapondescriptor OWNER TO postgres; + +-- +-- Name: descriptor descriptorid; Type: DEFAULT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.descriptor ALTER COLUMN descriptorid SET DEFAULT nextval('edfi.descriptor_descriptorid_seq'::regclass); + + +-- +-- Name: parent parentusi; Type: DEFAULT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parent ALTER COLUMN parentusi SET DEFAULT nextval('edfi.parent_parentusi_seq'::regclass); + + +-- +-- Name: staff staffusi; Type: DEFAULT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff ALTER COLUMN staffusi SET DEFAULT nextval('edfi.staff_staffusi_seq'::regclass); + + +-- +-- Name: student studentusi; Type: DEFAULT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student ALTER COLUMN studentusi SET DEFAULT nextval('edfi.student_studentusi_seq'::regclass); + + +-- +-- Name: DeployJournal schemaversionsid; Type: DEFAULT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public."DeployJournal" ALTER COLUMN schemaversionsid SET DEFAULT nextval('public."DeployJournal_schemaversionsid_seq"'::regclass); + + +-- +-- Data for Name: educationorganizationidtoeducationorganizationid; Type: TABLE DATA; Schema: auth; Owner: postgres +-- + +COPY auth.educationorganizationidtoeducationorganizationid (sourceeducationorganizationid, targeteducationorganizationid) FROM stdin; +\. + + +-- +-- Data for Name: snapshot; Type: TABLE DATA; Schema: changes; Owner: postgres +-- + +COPY changes.snapshot (snapshotidentifier, snapshotdatetime, createdate, lastmodifieddate, id) FROM stdin; +\. + + +-- +-- Data for Name: absenceeventcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.absenceeventcategorydescriptor (absenceeventcategorydescriptorid) FROM stdin; +1 +2 +6 +5 +10 +12 +4 +7 +3 +8 +9 +11 +\. + + +-- +-- Data for Name: academichonorcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.academichonorcategorydescriptor (academichonorcategorydescriptorid) FROM stdin; +13 +14 +18 +20 +24 +26 +28 +30 +16 +17 +19 +21 +22 +23 +25 +27 +29 +15 +\. + + +-- +-- Data for Name: academicsubjectdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.academicsubjectdescriptor (academicsubjectdescriptorid) FROM stdin; +32 +33 +34 +35 +37 +39 +40 +42 +43 +46 +48 +49 +31 +36 +38 +41 +44 +45 +47 +\. + + +-- +-- Data for Name: academicweek; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.academicweek (schoolid, weekidentifier, begindate, enddate, totalinstructionaldays, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accommodationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.accommodationdescriptor (accommodationdescriptorid) FROM stdin; +52 +54 +55 +58 +51 +53 +57 +50 +56 +\. + + +-- +-- Data for Name: account; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.account (accountidentifier, educationorganizationid, fiscalyear, accountname, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accountabilityrating; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.accountabilityrating (educationorganizationid, ratingtitle, schoolyear, rating, ratingdate, ratingorganization, ratingprogram, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accountaccountcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.accountaccountcode (accountclassificationdescriptorid, accountcodenumber, accountidentifier, educationorganizationid, fiscalyear, createdate) FROM stdin; +\. + + +-- +-- Data for Name: accountclassificationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.accountclassificationdescriptor (accountclassificationdescriptorid) FROM stdin; +60 +62 +61 +59 +63 +64 +65 +66 +67 +\. + + +-- +-- Data for Name: accountcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.accountcode (accountclassificationdescriptorid, accountcodenumber, educationorganizationid, fiscalyear, accountcodedescription, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: achievementcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.achievementcategorydescriptor (achievementcategorydescriptorid) FROM stdin; +70 +75 +71 +72 +74 +76 +77 +78 +68 +73 +79 +69 +\. + + +-- +-- Data for Name: actual; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.actual (accountidentifier, asofdate, educationorganizationid, fiscalyear, amounttodate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: additionalcredittypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.additionalcredittypedescriptor (additionalcredittypedescriptorid) FROM stdin; +83 +81 +80 +84 +82 +\. + + +-- +-- Data for Name: addresstypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.addresstypedescriptor (addresstypedescriptorid) FROM stdin; +86 +89 +90 +91 +93 +96 +98 +99 +88 +97 +87 +85 +92 +94 +95 +\. + + +-- +-- Data for Name: administrationenvironmentdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.administrationenvironmentdescriptor (administrationenvironmentdescriptorid) FROM stdin; +101 +100 +102 +\. + + +-- +-- Data for Name: administrativefundingcontroldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.administrativefundingcontroldescriptor (administrativefundingcontroldescriptorid) FROM stdin; +103 +104 +105 +\. + + +-- +-- Data for Name: ancestryethnicorigindescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.ancestryethnicorigindescriptor (ancestryethnicorigindescriptorid) FROM stdin; +108 +106 +110 +111 +113 +114 +107 +112 +109 +\. + + +-- +-- Data for Name: assessment; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessment (assessmentidentifier, namespace, assessmenttitle, assessmentcategorydescriptorid, assessmentform, assessmentversion, revisiondate, maxrawscore, nomenclature, assessmentfamily, educationorganizationid, adaptiveassessment, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentacademicsubject (academicsubjectdescriptorid, assessmentidentifier, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentassessedgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentassessedgradelevel (assessmentidentifier, gradeleveldescriptorid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentcategorydescriptor (assessmentcategorydescriptorid) FROM stdin; +115 +119 +122 +123 +125 +127 +128 +130 +132 +134 +136 +138 +140 +143 +144 +147 +148 +150 +153 +155 +156 +158 +118 +117 +142 +146 +116 +120 +121 +124 +126 +129 +131 +133 +135 +137 +139 +141 +145 +149 +151 +152 +154 +157 +\. + + +-- +-- Data for Name: assessmentcontentstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentcontentstandard (assessmentidentifier, namespace, title, version, uri, publicationdate, publicationyear, publicationstatusdescriptorid, mandatingeducationorganizationid, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentcontentstandardauthor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentcontentstandardauthor (assessmentidentifier, author, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentidentificationcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentidentificationcode (assessmentidentificationsystemdescriptorid, assessmentidentifier, namespace, identificationcode, assigningorganizationidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentidentificationsystemdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentidentificationsystemdescriptor (assessmentidentificationsystemdescriptorid) FROM stdin; +160 +159 +163 +165 +162 +161 +164 +\. + + +-- +-- Data for Name: assessmentitem; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentitem (assessmentidentifier, identificationcode, namespace, assessmentitemcategorydescriptorid, maxrawscore, itemtext, correctresponse, expectedtimeassessed, nomenclature, assessmentitemuri, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentitemcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentitemcategorydescriptor (assessmentitemcategorydescriptorid) FROM stdin; +166 +169 +170 +172 +173 +174 +176 +178 +179 +181 +182 +183 +185 +187 +168 +167 +171 +175 +177 +180 +184 +186 +\. + + +-- +-- Data for Name: assessmentitemlearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentitemlearningstandard (assessmentidentifier, identificationcode, learningstandardid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentitempossibleresponse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentitempossibleresponse (assessmentidentifier, identificationcode, namespace, responsevalue, responsedescription, correctresponse, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentitemresultdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentitemresultdescriptor (assessmentitemresultdescriptorid) FROM stdin; +188 +189 +191 +192 +193 +190 +\. + + +-- +-- Data for Name: assessmentlanguage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentlanguage (assessmentidentifier, languagedescriptorid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentperformancelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentperformancelevel (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, performanceleveldescriptorid, minimumscore, maximumscore, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentperiod (assessmentidentifier, namespace, assessmentperioddescriptorid, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentperioddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentperioddescriptor (assessmentperioddescriptorid) FROM stdin; +194 +196 +195 +\. + + +-- +-- Data for Name: assessmentplatformtype; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentplatformtype (assessmentidentifier, namespace, platformtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentprogram; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentprogram (assessmentidentifier, educationorganizationid, namespace, programname, programtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentreportingmethoddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentreportingmethoddescriptor (assessmentreportingmethoddescriptorid) FROM stdin; +197 +198 +199 +200 +201 +202 +203 +204 +205 +206 +207 +208 +209 +210 +211 +212 +213 +214 +215 +216 +217 +218 +219 +220 +221 +222 +223 +224 +225 +226 +227 +228 +229 +230 +231 +232 +233 +234 +235 +236 +237 +238 +239 +240 +\. + + +-- +-- Data for Name: assessmentscore; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentscore (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, minimumscore, maximumscore, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentscorerangelearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentscorerangelearningstandard (assessmentidentifier, namespace, scorerangeid, assessmentreportingmethoddescriptorid, minimumscore, maximumscore, identificationcode, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentscorerangelearningstandardlearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentscorerangelearningstandardlearningstandard (assessmentidentifier, learningstandardid, namespace, scorerangeid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: assessmentsection; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.assessmentsection (assessmentidentifier, localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: attemptstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.attemptstatusdescriptor (attemptstatusdescriptorid) FROM stdin; +242 +244 +245 +246 +247 +248 +249 +250 +251 +252 +253 +254 +255 +256 +243 +241 +\. + + +-- +-- Data for Name: attendanceeventcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.attendanceeventcategorydescriptor (attendanceeventcategorydescriptorid) FROM stdin; +257 +259 +260 +261 +262 +258 +\. + + +-- +-- Data for Name: barriertointernetaccessinresidencedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.barriertointernetaccessinresidencedescriptor (barriertointernetaccessinresidencedescriptorid) FROM stdin; +263 +265 +266 +264 +\. + + +-- +-- Data for Name: behaviordescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.behaviordescriptor (behaviordescriptorid) FROM stdin; +267 +269 +268 +270 +\. + + +-- +-- Data for Name: bellschedule; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.bellschedule (bellschedulename, schoolid, alternatedayname, starttime, endtime, totalinstructionaltime, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: bellscheduleclassperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.bellscheduleclassperiod (bellschedulename, classperiodname, schoolid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: bellscheduledate; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.bellscheduledate (bellschedulename, date, schoolid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: bellschedulegradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.bellschedulegradelevel (bellschedulename, gradeleveldescriptorid, schoolid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: budget; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.budget (accountidentifier, asofdate, educationorganizationid, fiscalyear, amount, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendar; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.calendar (calendarcode, schoolid, schoolyear, calendartypedescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendardate; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.calendardate (calendarcode, date, schoolid, schoolyear, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendardatecalendarevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.calendardatecalendarevent (calendarcode, calendareventdescriptorid, date, schoolid, schoolyear, createdate) FROM stdin; +\. + + +-- +-- Data for Name: calendareventdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.calendareventdescriptor (calendareventdescriptorid) FROM stdin; +271 +273 +272 +274 +275 +276 +277 +278 +279 +280 +\. + + +-- +-- Data for Name: calendargradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.calendargradelevel (calendarcode, gradeleveldescriptorid, schoolid, schoolyear, createdate) FROM stdin; +\. + + +-- +-- Data for Name: calendartypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.calendartypedescriptor (calendartypedescriptorid) FROM stdin; +281 +283 +284 +282 +285 +\. + + +-- +-- Data for Name: careerpathwaydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.careerpathwaydescriptor (careerpathwaydescriptorid) FROM stdin; +286 +288 +289 +290 +291 +292 +294 +295 +296 +297 +298 +299 +300 +301 +302 +287 +293 +\. + + +-- +-- Data for Name: charterapprovalagencytypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.charterapprovalagencytypedescriptor (charterapprovalagencytypedescriptorid) FROM stdin; +304 +306 +305 +303 +\. + + +-- +-- Data for Name: charterstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.charterstatusdescriptor (charterstatusdescriptorid) FROM stdin; +307 +308 +310 +309 +\. + + +-- +-- Data for Name: citizenshipstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.citizenshipstatusdescriptor (citizenshipstatusdescriptorid) FROM stdin; +311 +314 +315 +313 +312 +\. + + +-- +-- Data for Name: classperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.classperiod (classperiodname, schoolid, officialattendanceperiod, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: classperiodmeetingtime; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.classperiodmeetingtime (classperiodname, endtime, schoolid, starttime, createdate) FROM stdin; +\. + + +-- +-- Data for Name: classroompositiondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.classroompositiondescriptor (classroompositiondescriptorid) FROM stdin; +316 +319 +317 +318 +\. + + +-- +-- Data for Name: cohort; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.cohort (cohortidentifier, educationorganizationid, cohortdescription, cohorttypedescriptorid, cohortscopedescriptorid, academicsubjectdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: cohortprogram; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.cohortprogram (cohortidentifier, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: cohortscopedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.cohortscopedescriptor (cohortscopedescriptorid) FROM stdin; +320 +322 +323 +321 +324 +325 +326 +327 +328 +\. + + +-- +-- Data for Name: cohorttypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.cohorttypedescriptor (cohorttypedescriptorid) FROM stdin; +329 +330 +332 +331 +333 +334 +335 +336 +337 +338 +339 +\. + + +-- +-- Data for Name: cohortyeartypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.cohortyeartypedescriptor (cohortyeartypedescriptorid) FROM stdin; +340 +342 +343 +345 +346 +347 +348 +349 +350 +351 +341 +344 +\. + + +-- +-- Data for Name: communityorganization; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.communityorganization (communityorganizationid) FROM stdin; +\. + + +-- +-- Data for Name: communityprovider; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.communityprovider (communityproviderid, communityorganizationid, providerprofitabilitydescriptorid, providerstatusdescriptorid, providercategorydescriptorid, schoolindicator, licenseexemptindicator) FROM stdin; +\. + + +-- +-- Data for Name: communityproviderlicense; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.communityproviderlicense (communityproviderid, licenseidentifier, licensingorganization, licenseeffectivedate, licenseexpirationdate, licenseissuedate, licensestatusdescriptorid, licensetypedescriptorid, authorizedfacilitycapacity, oldestageauthorizedtoserve, youngestageauthorizedtoserve, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: competencyleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.competencyleveldescriptor (competencyleveldescriptorid) FROM stdin; +353 +354 +355 +352 +356 +357 +358 +\. + + +-- +-- Data for Name: competencyobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.competencyobjective (educationorganizationid, objective, objectivegradeleveldescriptorid, competencyobjectiveid, description, successcriteria, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: contacttypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.contacttypedescriptor (contacttypedescriptorid) FROM stdin; +359 +\. + + +-- +-- Data for Name: contentclassdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.contentclassdescriptor (contentclassdescriptorid) FROM stdin; +360 +362 +363 +364 +361 +\. + + +-- +-- Data for Name: continuationofservicesreasondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.continuationofservicesreasondescriptor (continuationofservicesreasondescriptorid) FROM stdin; +365 +366 +367 +\. + + +-- +-- Data for Name: contractedstaff; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.contractedstaff (accountidentifier, asofdate, educationorganizationid, fiscalyear, staffusi, amounttodate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: costratedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.costratedescriptor (costratedescriptorid) FROM stdin; +368 +369 +\. + + +-- +-- Data for Name: countrydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.countrydescriptor (countrydescriptorid) FROM stdin; +370 +372 +373 +371 +374 +375 +376 +377 +378 +379 +380 +381 +382 +383 +384 +385 +386 +387 +388 +389 +390 +391 +392 +393 +394 +395 +396 +397 +398 +399 +400 +401 +402 +403 +404 +405 +406 +407 +408 +409 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +421 +422 +423 +424 +425 +426 +427 +428 +429 +430 +431 +432 +433 +434 +435 +436 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +455 +456 +457 +458 +459 +460 +461 +462 +463 +464 +465 +466 +467 +468 +469 +470 +471 +472 +473 +474 +475 +476 +477 +478 +479 +480 +481 +482 +483 +484 +485 +486 +487 +488 +489 +490 +491 +492 +493 +494 +495 +496 +497 +498 +499 +500 +501 +502 +503 +504 +505 +506 +507 +508 +509 +510 +511 +512 +513 +514 +515 +516 +517 +518 +519 +520 +521 +522 +523 +524 +525 +526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 +538 +539 +540 +541 +542 +543 +544 +545 +546 +547 +548 +549 +550 +551 +552 +553 +554 +555 +556 +557 +558 +559 +561 +560 +562 +563 +564 +565 +566 +567 +568 +569 +570 +571 +572 +573 +574 +575 +576 +577 +578 +579 +580 +581 +582 +583 +584 +585 +586 +587 +588 +589 +590 +591 +592 +593 +594 +595 +596 +597 +598 +600 +601 +603 +604 +606 +608 +610 +611 +613 +616 +617 +618 +599 +602 +605 +607 +609 +612 +614 +615 +\. + + +-- +-- Data for Name: course; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.course (coursecode, educationorganizationid, coursetitle, numberofparts, academicsubjectdescriptorid, coursedescription, timerequiredforcompletion, datecourseadopted, highschoolcourserequirement, coursegpaapplicabilitydescriptorid, coursedefinedbydescriptorid, minimumavailablecredits, minimumavailablecredittypedescriptorid, minimumavailablecreditconversion, maximumavailablecredits, maximumavailablecredittypedescriptorid, maximumavailablecreditconversion, careerpathwaydescriptorid, maxcompletionsforcredit, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courseattemptresultdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseattemptresultdescriptor (courseattemptresultdescriptorid) FROM stdin; +619 +621 +620 +622 +\. + + +-- +-- Data for Name: coursecompetencylevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursecompetencylevel (competencyleveldescriptorid, coursecode, educationorganizationid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: coursedefinedbydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursedefinedbydescriptor (coursedefinedbydescriptorid) FROM stdin; +624 +625 +626 +623 +\. + + +-- +-- Data for Name: coursegpaapplicabilitydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursegpaapplicabilitydescriptor (coursegpaapplicabilitydescriptorid) FROM stdin; +627 +628 +629 +\. + + +-- +-- Data for Name: courseidentificationcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseidentificationcode (coursecode, courseidentificationsystemdescriptorid, educationorganizationid, identificationcode, assigningorganizationidentificationcode, coursecatalogurl, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courseidentificationsystemdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseidentificationsystemdescriptor (courseidentificationsystemdescriptorid) FROM stdin; +630 +631 +632 +633 +634 +635 +636 +637 +638 +\. + + +-- +-- Data for Name: courselearningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courselearningobjective (coursecode, educationorganizationid, learningobjectiveid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courselearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courselearningstandard (coursecode, educationorganizationid, learningstandardid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courselevelcharacteristic; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courselevelcharacteristic (coursecode, courselevelcharacteristicdescriptorid, educationorganizationid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courselevelcharacteristicdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courselevelcharacteristicdescriptor (courselevelcharacteristicdescriptorid) FROM stdin; +640 +639 +641 +642 +643 +644 +645 +646 +647 +648 +649 +650 +651 +652 +653 +654 +655 +656 +657 +658 +659 +660 +661 +\. + + +-- +-- Data for Name: courseofferedgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseofferedgradelevel (coursecode, educationorganizationid, gradeleveldescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courseoffering; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseoffering (localcoursecode, schoolid, schoolyear, sessionname, localcoursetitle, instructionaltimeplanned, coursecode, educationorganizationid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courseofferingcourselevelcharacteristic; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseofferingcourselevelcharacteristic (courselevelcharacteristicdescriptorid, localcoursecode, schoolid, schoolyear, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courseofferingcurriculumused; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseofferingcurriculumused (curriculumuseddescriptorid, localcoursecode, schoolid, schoolyear, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courseofferingofferedgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courseofferingofferedgradelevel (gradeleveldescriptorid, localcoursecode, schoolid, schoolyear, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: courserepeatcodedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.courserepeatcodedescriptor (courserepeatcodedescriptorid) FROM stdin; +662 +664 +665 +666 +667 +663 +\. + + +-- +-- Data for Name: coursetranscript; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursetranscript (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid, attemptedcredits, attemptedcredittypedescriptorid, attemptedcreditconversion, earnedcredits, earnedcredittypedescriptorid, earnedcreditconversion, whentakengradeleveldescriptorid, methodcreditearneddescriptorid, finallettergradeearned, finalnumericgradeearned, courserepeatcodedescriptorid, coursetitle, alternativecoursetitle, alternativecoursecode, externaleducationorganizationid, externaleducationorganizationnameofinstitution, assigningorganizationidentificationcode, coursecatalogurl, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: coursetranscriptacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursetranscriptacademicsubject (academicsubjectdescriptorid, courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: coursetranscriptalternativecourseidentificationcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursetranscriptalternativecourseidentificationcode (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, courseidentificationsystemdescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid, identificationcode, assigningorganizationidentificationcode, coursecatalogurl, createdate) FROM stdin; +\. + + +-- +-- Data for Name: coursetranscriptcreditcategory; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursetranscriptcreditcategory (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, creditcategorydescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: coursetranscriptearnedadditionalcredits; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursetranscriptearnedadditionalcredits (additionalcredittypedescriptorid, courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid, credits, createdate) FROM stdin; +\. + + +-- +-- Data for Name: coursetranscriptpartialcoursetranscriptawards; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.coursetranscriptpartialcoursetranscriptawards (awarddate, courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid, earnedcredits, methodcreditearneddescriptorid, lettergradeearned, numericgradeearned, createdate) FROM stdin; +\. + + +-- +-- Data for Name: credential; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credential (credentialidentifier, stateofissuestateabbreviationdescriptorid, effectivedate, expirationdate, credentialfielddescriptorid, issuancedate, credentialtypedescriptorid, teachingcredentialdescriptorid, teachingcredentialbasisdescriptorid, namespace, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: credentialacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credentialacademicsubject (academicsubjectdescriptorid, credentialidentifier, stateofissuestateabbreviationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: credentialendorsement; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credentialendorsement (credentialendorsement, credentialidentifier, stateofissuestateabbreviationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: credentialfielddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credentialfielddescriptor (credentialfielddescriptorid) FROM stdin; +669 +668 +670 +671 +672 +673 +674 +675 +676 +677 +678 +679 +680 +681 +682 +\. + + +-- +-- Data for Name: credentialgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credentialgradelevel (credentialidentifier, gradeleveldescriptorid, stateofissuestateabbreviationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: credentialtypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credentialtypedescriptor (credentialtypedescriptorid) FROM stdin; +684 +685 +686 +683 +687 +\. + + +-- +-- Data for Name: creditcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.creditcategorydescriptor (creditcategorydescriptorid) FROM stdin; +688 +690 +691 +689 +\. + + +-- +-- Data for Name: credittypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.credittypedescriptor (credittypedescriptorid) FROM stdin; +692 +693 +694 +695 +696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +\. + + +-- +-- Data for Name: cteprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.cteprogramservicedescriptor (cteprogramservicedescriptorid) FROM stdin; +710 +709 +711 +712 +713 +714 +715 +716 +717 +718 +719 +720 +721 +722 +723 +724 +725 +\. + + +-- +-- Data for Name: curriculumuseddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.curriculumuseddescriptor (curriculumuseddescriptorid) FROM stdin; +727 +730 +731 +733 +729 +726 +728 +732 +734 +\. + + +-- +-- Data for Name: deliverymethoddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.deliverymethoddescriptor (deliverymethoddescriptorid) FROM stdin; +735 +736 +738 +737 +\. + + +-- +-- Data for Name: descriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.descriptor (descriptorid, namespace, codevalue, shortdescription, description, priordescriptorid, effectivebegindate, effectiveenddate, createdate, lastmodifieddate, id, changeversion) FROM stdin; +1 uri://ed-fi.org/AbsenceEventCategoryDescriptor Jury duty Jury duty Jury duty \N \N \N 2021-11-05 18:59:14.368115 2021-11-05 18:59:14.354596 54d564c9-a0c9-4c34-a149-36160a609eb6 61 +6 uri://ed-fi.org/AbsenceEventCategoryDescriptor Personal Personal Personal \N \N \N 2021-11-05 18:59:14.489346 2021-11-05 18:59:14.489133 959f1087-490f-4ea6-8144-666dfc61ee4e 66 +14 uri://ed-fi.org/AcademicHonorCategoryDescriptor Citizenship award/recognition Citizenship award/recognition Citizenship award/recognition \N \N \N 2021-11-05 18:59:14.543353 2021-11-05 18:59:14.542064 bc5148b3-f820-46f8-a9e0-129756200037 74 +32 uri://ed-fi.org/AcademicSubjectDescriptor Cross Subject Cross Subject Cross Subject \N \N \N 2021-11-05 18:59:14.620554 2021-11-05 18:59:14.61929 b2de5412-e428-439d-be28-afb72b2673e9 92 +53 uri://ed-fi.org/AccommodationDescriptor 504 accommodation 504 accommodation 504 accommodation \N \N \N 2021-11-05 18:59:14.698742 2021-11-05 18:59:14.697605 780ecce5-4032-460e-b7e4-0e5539cfce65 113 +57 uri://ed-fi.org/AccommodationDescriptor Test material accommodation Test material accommodation Test material accommodation \N \N \N 2021-11-05 18:59:14.716145 2021-11-05 18:59:14.716025 b21e31c9-6263-41e5-b160-cb1185444097 117 +59 uri://ed-fi.org/AccountClassificationDescriptor Fund Fund Fund \N \N \N 2021-11-05 18:59:14.754272 2021-11-05 18:59:14.753017 e3efae36-0115-4f90-a4c7-d14cdbfebdbb 119 +64 uri://ed-fi.org/AccountClassificationDescriptor Project Project Project \N \N \N 2021-11-05 18:59:14.768992 2021-11-05 18:59:14.768903 d855dea0-f240-45f4-b527-7a67d7bc249f 124 +70 uri://ed-fi.org/AchievementCategoryDescriptor Certificate Earned Certificate Earned Certificate Earned \N \N \N 2021-11-05 18:59:14.808179 2021-11-05 18:59:14.807013 aa1a0d29-9b06-4fb6-9c64-fe9a9999fb2e 130 +75 uri://ed-fi.org/AchievementCategoryDescriptor Level Completed Level Completed Level Completed \N \N \N 2021-11-05 18:59:14.825835 2021-11-05 18:59:14.82577 0abbbef1-a7ec-4786-9aa3-dff08b03ca7f 135 +82 uri://ed-fi.org/AdditionalCreditTypeDescriptor International Baccalaureate International Baccalaureate International Baccalaureate \N \N \N 2021-11-05 18:59:14.873607 2021-11-05 18:59:14.872307 3d1c85e5-c6e3-4d8a-a8ec-a68ea2b4911d 142 +88 uri://ed-fi.org/AddressTypeDescriptor Billing Billing Billing \N \N \N 2021-11-05 18:59:14.915997 2021-11-05 18:59:14.914712 d1bbc5f1-cae3-4707-b5b0-d92fffcd771b 148 +97 uri://ed-fi.org/AddressTypeDescriptor Unsheltered Unsheltered (cars, parks, temporary trailers, or abandoned buildings) Unsheltered (e.g. cars, parks, campgrounds, temporary trailers including FEMA trailers, or abandoned buildings) \N \N \N 2021-11-05 18:59:14.954025 2021-11-05 18:59:14.953986 971a05ff-cfaf-42bc-a729-c4b2d88ac2aa 157 +101 uri://ed-fi.org/AdministrationEnvironmentDescriptor School School School \N \N \N 2021-11-05 18:59:14.994054 2021-11-05 18:59:14.992705 7a5b36e6-3d1b-4048-9708-48c6a63d27da 161 +109 uri://gbisd.edu/AncestryEthnicOriginDescriptor Mexican Mexican Mexican \N \N \N 2021-11-05 18:59:15.040243 2021-11-05 18:59:15.038836 4aa225bf-2454-4416-b38a-4fa157d0ed4e 169 +118 uri://ed-fi.org/AssessmentCategoryDescriptor Early Learning - Physical well-being and motor dev Early Learning - Physical well-being and motor development Early Learning - Physical well-being and motor development \N \N \N 2021-11-05 18:59:15.094436 2021-11-05 18:59:15.093118 33d58f7c-c627-4ec6-8004-959b34f2749e 178 +142 uri://ed-fi.org/AssessmentCategoryDescriptor State high school subject assessment State high school subject assessment State high school subject assessment \N \N \N 2021-11-05 18:59:15.183791 2021-11-05 18:59:15.18325 d315108a-4375-45e8-a194-d567eb46be7a 202 +146 uri://ed-fi.org/AssessmentCategoryDescriptor Prekindergarten Readiness Prekindergarten Readiness Prekindergarten Readiness \N \N \N 2021-11-05 18:59:15.196324 2021-11-05 18:59:15.196282 3841bfe5-2fa7-4b51-9496-39afb33f3aa5 206 +160 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor Other Federal Other Federal Other Federal \N \N \N 2021-11-05 18:59:15.323551 2021-11-05 18:59:15.322136 796ca173-9eb6-4a96-8b7c-e307a39bc6ce 220 +165 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor Test Contractor Test Contractor Test Contractor \N \N \N 2021-11-05 18:59:15.342891 2021-11-05 18:59:15.342756 2961d45e-e52b-4d78-9702-31827c5c063f 225 +169 uri://ed-fi.org/AssessmentItemCategoryDescriptor Analytic Analytic Analytic \N \N \N 2021-11-05 18:59:15.376362 2021-11-05 18:59:15.375014 9af3d23c-53bd-4348-89b6-6368eea1444a 229 +173 uri://ed-fi.org/AssessmentItemCategoryDescriptor Math Matrix Math Matrix Math Matrix \N \N \N 2021-11-05 18:59:15.393773 2021-11-05 18:59:15.393727 41a0ca0c-dbba-42e8-8a92-0a7e99abe492 233 +191 uri://ed-fi.org/AssessmentItemResultDescriptor Correct Correct Correct \N \N \N 2021-11-05 18:59:15.475012 2021-11-05 18:59:15.473638 7f627115-f88c-4ca1-b372-85a7476185a1 251 +196 uri://ed-fi.org/AssessmentPeriodDescriptor MOY MOY Middle of Year \N \N \N 2021-11-05 18:59:15.521804 2021-11-05 18:59:15.520577 267af26b-f9ba-4e34-8359-545ee7a023a6 256 +199 uri://ed-fi.org/AssessmentReportingMethodDescriptor Adaptive scale score Adaptive scale score Adaptive scale score \N \N \N 2021-11-05 18:59:15.535704 2021-11-05 18:59:15.535616 d223d808-3df7-4d6e-987f-607febebfe94 259 +243 uri://ed-fi.org/AttemptStatusDescriptor Fail Fail Fail \N \N \N 2021-11-05 18:59:15.681359 2021-11-05 18:59:15.679856 647f956f-3465-4329-ad74-214f9e508cf4 303 +258 uri://ed-fi.org/AttendanceEventCategoryDescriptor Unexcused Absence Unexcused Absence Unexcused Absence \N \N \N 2021-11-05 18:59:15.761243 2021-11-05 18:59:15.760037 3b1b027d-6f0b-4b34-90dc-05d25df24503 318 +264 uri://ed-fi.org/BarrierToInternetAccessInResidenceDescriptor Not Available Not Available The student cannot access the internet in their primary place of residence because internet service is not available. \N \N \N 2021-11-05 18:59:15.808318 2021-11-05 18:59:15.807157 7ad2fa49-3f5b-4808-bfaf-b00f5513d58f 324 +267 uri://ed-fi.org/BehaviorDescriptor School Code of Conduct School Code of Conduct School Code of Conduct \N \N \N 2021-11-05 18:59:15.849777 2021-11-05 18:59:15.848617 2cc814b2-fcce-4b31-a6c5-47d2926deec1 327 +273 uri://ed-fi.org/CalendarEventDescriptor Emergency day Emergency day Instruction cancelled or reduced due to an emergency \N \N \N 2021-11-05 18:59:15.895411 2021-11-05 18:59:15.894208 ef3da22a-c185-4bee-ac7d-23704243d218 333 +276 uri://ed-fi.org/CalendarEventDescriptor Other Other Other \N \N \N 2021-11-05 18:59:15.911653 2021-11-05 18:59:15.911615 a5f6449f-b763-41e6-b28e-48764ae8ad8f 336 +281 uri://ed-fi.org/CalendarTypeDescriptor Grade Level Grade Level Grade Level \N \N \N 2021-11-05 18:59:15.961307 2021-11-05 18:59:15.960095 1576c23a-51fd-4acf-9b1d-c3799e1f97eb 341 +287 uri://ed-fi.org/CareerPathwayDescriptor Business, Management and Administration Business, Management and Administration Business, Management and Administration \N \N \N 2021-11-05 18:59:16.008655 2021-11-05 18:59:16.007488 90e99eeb-418f-44b3-b99d-e3bc76d64a0a 347 +293 uri://ed-fi.org/CareerPathwayDescriptor Health Science Health Science Health Science \N \N \N 2021-11-05 18:59:16.025954 2021-11-05 18:59:16.025873 6168e400-335e-4683-85e8-e5efae69ac17 353 +304 uri://ed-fi.org/CharterApprovalAgencyTypeDescriptor State board of education State board of education State board of education \N \N \N 2021-11-05 18:59:16.086922 2021-11-05 18:59:16.085743 98fd687f-aca2-4f73-81e2-990b8dbbc7c6 364 +308 uri://ed-fi.org/CharterStatusDescriptor Open Enrollment Open Enrollment Open Enrollment \N \N \N 2021-11-05 18:59:16.13278 2021-11-05 18:59:16.131626 6f937212-c6af-42d5-918d-634dd52d6278 368 +314 uri://ed-fi.org/CitizenshipStatusDescriptor Resident alien Resident alien Resident alien \N \N \N 2021-11-05 18:59:16.17884 2021-11-05 18:59:16.177682 5dfc2baf-0638-477e-8ce0-946ddfc28549 374 +316 uri://ed-fi.org/ClassroomPositionDescriptor Support Teacher Support Teacher Support Teacher \N \N \N 2021-11-05 18:59:16.2251 2021-11-05 18:59:16.223929 d0b3c004-8014-4620-8ef5-97fea57a5ba3 376 +322 uri://ed-fi.org/CohortScopeDescriptor District District District \N \N \N 2021-11-05 18:59:16.273606 2021-11-05 18:59:16.272117 b8f7dbb9-a19a-4a33-8f69-27a666274029 382 +331 uri://ed-fi.org/CohortTypeDescriptor Attendance Intervention Attendance Intervention Attendance Intervention \N \N \N 2021-11-05 18:59:16.340764 2021-11-05 18:59:16.33955 0166734f-3edf-4107-9bc3-56aa09201977 391 +335 uri://ed-fi.org/CohortTypeDescriptor Field Trip Field Trip Field Trip \N \N \N 2021-11-05 18:59:16.354669 2021-11-05 18:59:16.354629 11e6199c-9e2a-4d08-9d59-219867ddd16a 395 +341 uri://ed-fi.org/CohortYearTypeDescriptor First grade First grade First grade \N \N \N 2021-11-05 18:59:16.404612 2021-11-05 18:59:16.403443 b4e8cec7-69cc-4d5d-97cb-14811a7f10b5 401 +344 uri://ed-fi.org/CohortYearTypeDescriptor Seventh grade Seventh grade Seventh grade \N \N \N 2021-11-05 18:59:16.420756 2021-11-05 18:59:16.419505 ace2794e-ce22-4a5e-a722-d40ef86f8f57 404 +352 uri://ed-fi.org/CompetencyLevelDescriptor Basic Basic Basic \N \N \N 2021-11-05 18:59:16.479189 2021-11-05 18:59:16.478004 006403c1-58f7-4949-aa76-06b70ef7f8c0 412 +3 uri://ed-fi.org/AbsenceEventCategoryDescriptor Flex time Flex time Flex time \N \N \N 2021-11-05 18:59:14.368165 2021-11-05 18:59:14.354602 2c78a16e-8b84-4b09-8239-ba99af0f2016 63 +8 uri://ed-fi.org/AbsenceEventCategoryDescriptor Professional development Professional development Professional development \N \N \N 2021-11-05 18:59:14.49084 2021-11-05 18:59:14.490767 e1497eb4-27d5-412b-8bcb-8e1167f24b0a 68 +9 uri://ed-fi.org/AbsenceEventCategoryDescriptor Sick leave Sick leave Sick leave \N \N \N 2021-11-05 18:59:14.502296 2021-11-05 18:59:14.501793 0c94010a-fbf4-415c-8309-7d9728d7e933 69 +11 uri://ed-fi.org/AbsenceEventCategoryDescriptor Vacation Vacation Vacation \N \N \N 2021-11-05 18:59:14.506792 2021-11-05 18:59:14.506256 353760ed-d034-4132-b4cd-50b03d9dc173 71 +16 uri://ed-fi.org/AcademicHonorCategoryDescriptor Certificate Certificate Certificate \N \N \N 2021-11-05 18:59:14.543353 2021-11-05 18:59:14.542052 c7bccc4c-bc5d-426e-9bcb-1768731deda6 76 +17 uri://ed-fi.org/AcademicHonorCategoryDescriptor Completion of requirement, but no units awarded Completion of requirement, but no units of value awarded Completion of requirement, but no units of value awarded \N \N \N 2021-11-05 18:59:14.555085 2021-11-05 18:59:14.555032 2c0f21df-edcf-4d55-874f-7d5f3017d850 77 +19 uri://ed-fi.org/AcademicHonorCategoryDescriptor Honor society Honor society Honor society \N \N \N 2021-11-05 18:59:14.559577 2021-11-05 18:59:14.559519 3b069acd-45b1-4e13-ad3b-7c877f25b5fc 79 +21 uri://ed-fi.org/AcademicHonorCategoryDescriptor Honorable mention Honorable mention Honorable mention \N \N \N 2021-11-05 18:59:14.563123 2021-11-05 18:59:14.563084 96c881fb-8fcb-46a5-9758-0edd1857e6c6 81 +22 uri://ed-fi.org/AcademicHonorCategoryDescriptor Honors program Honors program Honors program \N \N \N 2021-11-05 18:59:14.566676 2021-11-05 18:59:14.566511 68d12e53-b85d-4c3a-868b-4c20d05c77f4 82 +23 uri://ed-fi.org/AcademicHonorCategoryDescriptor Letter of student commendation Letter of student commendation Letter of student commendation \N \N \N 2021-11-05 18:59:14.569977 2021-11-05 18:59:14.569921 3e636457-c68d-4090-ba34-59ef4ee5dffc 83 +25 uri://ed-fi.org/AcademicHonorCategoryDescriptor National Merit Scholar National Merit Scholar National Merit Scholar \N \N \N 2021-11-05 18:59:14.574725 2021-11-05 18:59:14.574626 9b674337-bf03-42a3-b7bc-1566f44b75d7 85 +27 uri://ed-fi.org/AcademicHonorCategoryDescriptor Points Points Points \N \N \N 2021-11-05 18:59:14.580666 2021-11-05 18:59:14.580434 55ee840a-c031-4a55-85f6-b93883ab3575 87 +29 uri://ed-fi.org/AcademicHonorCategoryDescriptor Promotion or advancement Promotion or advancement Promotion or advancement \N \N \N 2021-11-05 18:59:14.585976 2021-11-05 18:59:14.585925 658cb8ff-48e6-4eb6-8f3a-9bcb2fff915d 89 +34 uri://ed-fi.org/AcademicSubjectDescriptor Composite Composite Composite \N \N \N 2021-11-05 18:59:14.620546 2021-11-05 18:59:14.619274 c1bd928a-1553-4cae-9708-f9942c601e53 94 +35 uri://ed-fi.org/AcademicSubjectDescriptor English Language Arts English Language Arts English Language Arts \N \N \N 2021-11-05 18:59:14.632865 2021-11-05 18:59:14.632829 431f6540-ea20-43eb-b0be-8d101cf0da3a 95 +37 uri://ed-fi.org/AcademicSubjectDescriptor Fine and Performing Arts Fine and Performing Arts Fine and Performing Arts \N \N \N 2021-11-05 18:59:14.636877 2021-11-05 18:59:14.636842 f60f24a6-9eb6-4199-8fae-b7303bf32e56 97 +39 uri://ed-fi.org/AcademicSubjectDescriptor Mathematics Mathematics Mathematics \N \N \N 2021-11-05 18:59:14.64138 2021-11-05 18:59:14.641335 8cc7dd2d-043d-48ba-8a5b-8f628d147489 99 +40 uri://ed-fi.org/AcademicSubjectDescriptor Life and Physical Sciences Life and Physical Sciences Life and Physical Sciences \N \N \N 2021-11-05 18:59:14.643941 2021-11-05 18:59:14.643923 d35d1837-e917-496f-8321-598f4a78676c 100 +42 uri://ed-fi.org/AcademicSubjectDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.648719 2021-11-05 18:59:14.648645 68b6ac7c-7484-4708-9996-e4ba74c7a035 102 +43 uri://ed-fi.org/AcademicSubjectDescriptor Reading Reading Reading \N \N \N 2021-11-05 18:59:14.653551 2021-11-05 18:59:14.653501 5d7c399a-fe43-4dbb-beeb-66263a853bac 103 +46 uri://ed-fi.org/AcademicSubjectDescriptor Social Sciences and History Social Sciences and History Social Sciences and History \N \N \N 2021-11-05 18:59:14.65945 2021-11-05 18:59:14.659413 6de48b12-69aa-43a4-9998-06f9d759e5ed 106 +48 uri://ed-fi.org/AcademicSubjectDescriptor Science Science Science \N \N \N 2021-11-05 18:59:14.664294 2021-11-05 18:59:14.664233 347ffdee-50f4-4e21-ab71-43bdc847f772 108 +49 uri://ed-fi.org/AcademicSubjectDescriptor Writing Writing Writing \N \N \N 2021-11-05 18:59:14.667525 2021-11-05 18:59:14.667462 f4079ffa-7717-4aeb-9294-0ffad6905108 109 +52 uri://ed-fi.org/AccommodationDescriptor English language learner accommodation English language learner accommodation English language learner accommodation \N \N \N 2021-11-05 18:59:14.698856 2021-11-05 18:59:14.697575 f8aa2edd-eaf9-47cb-a779-8276a762767e 112 +54 uri://ed-fi.org/AccommodationDescriptor Settings accommodation Settings accommodation Settings accommodation \N \N \N 2021-11-05 18:59:14.708872 2021-11-05 18:59:14.708829 d2097777-e153-41eb-ac58-fd477aa5b7b9 114 +55 uri://ed-fi.org/AccommodationDescriptor Student equipment/technology Student equipment/technology Student equipment/technology \N \N \N 2021-11-05 18:59:14.713992 2021-11-05 18:59:14.71363 4d847fed-9301-4c13-abb4-4a4b55e75745 115 +58 uri://ed-fi.org/AccommodationDescriptor Test response accommodation Test response accommodation Test response accommodation \N \N \N 2021-11-05 18:59:14.72057 2021-11-05 18:59:14.720529 22250375-5ff1-4a16-9ecc-016e06cbec0b 118 +61 uri://ed-fi.org/AccountClassificationDescriptor Function Function Function \N \N \N 2021-11-05 18:59:14.754268 2021-11-05 18:59:14.753005 a5c523b0-5e17-414b-b552-2dc92ab31cd7 121 +63 uri://ed-fi.org/AccountClassificationDescriptor Level of Instruction Level of Instruction Level of Instruction \N \N \N 2021-11-05 18:59:14.767585 2021-11-05 18:59:14.767508 48587520-0d41-49a8-8394-7174800d82a4 123 +65 uri://ed-fi.org/AccountClassificationDescriptor Subject Matter Subject Matter Subject Matter \N \N \N 2021-11-05 18:59:14.77081 2021-11-05 18:59:14.770767 970ba292-efee-41d8-ac26-5a6cba05d027 125 +67 uri://ed-fi.org/AccountClassificationDescriptor Job Class Job Class Job Class \N \N \N 2021-11-05 18:59:14.775569 2021-11-05 18:59:14.77553 90a31117-b3a4-4bdc-9f63-09e3c323d7b1 127 +71 uri://ed-fi.org/AchievementCategoryDescriptor Academic Honor Academic Honor Academic Honor \N \N \N 2021-11-05 18:59:14.808181 2021-11-05 18:59:14.807009 6634e6d7-0959-41a5-8ccc-7e95119cc74c 131 +72 uri://ed-fi.org/AchievementCategoryDescriptor Course Completed Course Completed Course Completed \N \N \N 2021-11-05 18:59:14.818142 2021-11-05 18:59:14.8181 88a77a59-da6a-45a5-9e70-295245d33292 132 +74 uri://ed-fi.org/AchievementCategoryDescriptor License Earned License Earned License Earned \N \N \N 2021-11-05 18:59:14.825254 2021-11-05 18:59:14.824477 788cd2f5-6824-42fe-b20e-8299334ab916 134 +76 uri://ed-fi.org/AchievementCategoryDescriptor License Endorsement Earned License Endorsement Earned License Endorsement Earned \N \N \N 2021-11-05 18:59:14.830093 2021-11-05 18:59:14.830062 555b3421-bf48-418b-a3b5-d4299ad29bf8 136 +77 uri://ed-fi.org/AchievementCategoryDescriptor Non-Academic Honor Non-Academic Honor Non-Academic Honor \N \N \N 2021-11-05 18:59:14.835482 2021-11-05 18:59:14.835341 dd68656d-90a5-446a-b5f6-b003b73595ec 137 +78 uri://ed-fi.org/AchievementCategoryDescriptor Recognition Recognition Recognition \N \N \N 2021-11-05 18:59:14.838379 2021-11-05 18:59:14.838339 361541fd-5c75-46e8-829d-361a33120b94 138 +80 uri://ed-fi.org/AdditionalCreditTypeDescriptor Career and Technical Education Career and Technical Education Career and Technical Education \N \N \N 2021-11-05 18:59:14.873574 2021-11-05 18:59:14.872281 e81729e0-48d6-4a6e-bdd7-2a5bcd951095 140 +84 uri://ed-fi.org/AdditionalCreditTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.883835 2021-11-05 18:59:14.883799 8cf7b627-cedd-4c7f-bbe9-8df5cd876c49 144 +86 uri://ed-fi.org/AddressTypeDescriptor Guardian Address Guardian Address Guardian Address \N \N \N 2021-11-05 18:59:14.915856 2021-11-05 18:59:14.914695 734cb194-cd08-4a5c-beeb-dd8fae6cddd0 146 +89 uri://ed-fi.org/AddressTypeDescriptor Home Home Home \N \N \N 2021-11-05 18:59:14.925266 2021-11-05 18:59:14.925166 e71d46fa-4e1a-4ead-81bd-f63b9f27f90c 149 +90 uri://ed-fi.org/AddressTypeDescriptor Hotels/Motels Hotels/Motels Hotels/Motels \N \N \N 2021-11-05 18:59:14.930432 2021-11-05 18:59:14.930403 9d6b6935-f94c-4ea0-98d5-842d2e673eb6 150 +91 uri://ed-fi.org/AddressTypeDescriptor Mailing Mailing Mailing \N \N \N 2021-11-05 18:59:14.933475 2021-11-05 18:59:14.933376 37a4a14c-c416-4000-8611-9feea07640ff 151 +93 uri://ed-fi.org/AddressTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.938402 2021-11-05 18:59:14.938365 89787a0d-d358-4d99-a5e2-3662616a3630 153 +96 uri://ed-fi.org/AddressTypeDescriptor Shipping Shipping Shipping \N \N \N 2021-11-05 18:59:14.95155 2021-11-05 18:59:14.95152 2380f9a2-a393-4320-a0b9-f3fefefeed4b 156 +4 uri://ed-fi.org/AbsenceEventCategoryDescriptor Compensatory leave time Compensatory leave time Compensatory leave time \N \N \N 2021-11-05 18:59:14.368114 2021-11-05 18:59:14.354602 8016e301-38a2-4a7d-b41a-99739cb87200 64 +7 uri://ed-fi.org/AbsenceEventCategoryDescriptor Release time Release time Release time \N \N \N 2021-11-05 18:59:14.489293 2021-11-05 18:59:14.489134 f24a390a-087b-452a-9ad0-e4b529098d6a 67 +15 uri://ed-fi.org/AcademicHonorCategoryDescriptor Awarding of units of value Awarding of units of value Awarding of units of value \N \N \N 2021-11-05 18:59:14.543355 2021-11-05 18:59:14.54207 7ae3643c-f8fe-450a-a791-bb1663a10711 75 +33 uri://ed-fi.org/AcademicSubjectDescriptor Career and Technical Education Career and Technical Education Career and Technical Education \N \N \N 2021-11-05 18:59:14.620557 2021-11-05 18:59:14.619297 e74f80f9-f4d9-45b8-a60e-1f4b4d862f84 93 +51 uri://ed-fi.org/AccommodationDescriptor Scheduling accommodation Scheduling accommodation Scheduling accommodation \N \N \N 2021-11-05 18:59:14.698859 2021-11-05 18:59:14.697633 b7c4a90d-bc4d-4f5d-89a9-429a0b6e7faa 111 +60 uri://ed-fi.org/AccountClassificationDescriptor Object Object Object \N \N \N 2021-11-05 18:59:14.754169 2021-11-05 18:59:14.753004 8736a0e7-592d-4c96-a998-64f8892bc52f 120 +69 uri://ed-fi.org/AchievementCategoryDescriptor Competency Mastered Competency Mastered Competency Mastered \N \N \N 2021-11-05 18:59:14.808296 2021-11-05 18:59:14.807037 df52641e-613a-49c2-8037-3cd0f9b24ead 129 +83 uri://ed-fi.org/AdditionalCreditTypeDescriptor Advanced Placement Advanced Placement Advanced Placement \N \N \N 2021-11-05 18:59:14.873578 2021-11-05 18:59:14.872299 cbb3e842-8526-4813-9343-df11fd252501 143 +87 uri://ed-fi.org/AddressTypeDescriptor Doubled - up (i.e., living with another family) Doubled - up (i.e., living with another family) Doubled - up (i.e., living with another family) \N \N \N 2021-11-05 18:59:14.915997 2021-11-05 18:59:14.914718 bd5370ab-b8fc-491e-96ee-474c94050c9e 147 +103 uri://ed-fi.org/AdministrativeFundingControlDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.998545 2021-11-05 18:59:14.997268 74fdd155-64ff-4ece-a289-704f51407462 163 +108 uri://gbisd.edu/AncestryEthnicOriginDescriptor Ecuadorian Ecuadorian Ecuadorian \N \N \N 2021-11-05 18:59:15.040087 2021-11-05 18:59:15.038845 7ad2ceeb-74be-412c-9389-16ce013f8dca 168 +117 uri://ed-fi.org/AssessmentCategoryDescriptor Language proficiency test Language proficiency test Language proficiency test \N \N \N 2021-11-05 18:59:15.094439 2021-11-05 18:59:15.093139 aebad586-9178-49cf-aab0-e7021c5315d6 177 +162 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor Federal Federal Federal \N \N \N 2021-11-05 18:59:15.323495 2021-11-05 18:59:15.322137 1ee19e64-c619-46ff-902f-1244f7e3376b 222 +168 uri://ed-fi.org/AssessmentItemCategoryDescriptor Fill-in-the-blank Fill-in-the-blank Fill-in-the-blank \N \N \N 2021-11-05 18:59:15.376254 2021-11-05 18:59:15.375007 eac51997-9ea9-4992-a959-90a09711f35b 228 +190 uri://ed-fi.org/AssessmentItemResultDescriptor Incorrect Incorrect Incorrect \N \N \N 2021-11-05 18:59:15.475006 2021-11-05 18:59:15.473646 62293a4e-51c4-49de-ae88-be9285642875 250 +241 uri://ed-fi.org/AttemptStatusDescriptor Incomplete Incomplete Incomplete \N \N \N 2021-11-05 18:59:15.681136 2021-11-05 18:59:15.679826 def27223-87e2-4577-8db5-b1d4f65052d2 301 +259 uri://ed-fi.org/AttendanceEventCategoryDescriptor In Attendance In Attendance In Attendance \N \N \N 2021-11-05 18:59:15.761431 2021-11-05 18:59:15.760045 a29e02b4-69cf-4b03-ae26-73535f7af448 319 +266 uri://ed-fi.org/BarrierToInternetAccessInResidenceDescriptor Not Desired Not Desired The student cannot access the internet in their primary place of residence because the parent or guardian chooses not to subscribe to internet service. \N \N \N 2021-11-05 18:59:15.808608 2021-11-05 18:59:15.807168 36b4c059-995d-4e8e-a312-6c91dacbef17 326 +270 uri://ed-fi.org/BehaviorDescriptor State Offense State Offense State Offense \N \N \N 2021-11-05 18:59:15.850128 2021-11-05 18:59:15.848625 3ef7e6b5-8e81-4c07-9156-e6ee874d888a 330 +274 uri://ed-fi.org/CalendarEventDescriptor Instructional day Instructional day Student instructional day \N \N \N 2021-11-05 18:59:15.895769 2021-11-05 18:59:15.894217 0a84b3d8-0bb7-44a1-b3ff-ee08fb28483e 334 +284 uri://ed-fi.org/CalendarTypeDescriptor Student Specific Student Specific Student Specific \N \N \N 2021-11-05 18:59:15.961657 2021-11-05 18:59:15.960117 8a296c7d-4c83-47c4-8a60-987ec32e7202 344 +288 uri://ed-fi.org/CareerPathwayDescriptor Agriculture, Food and Natural Resources Agriculture, Food and Natural Resources Agriculture, Food and Natural Resources \N \N \N 2021-11-05 18:59:16.008992 2021-11-05 18:59:16.007493 4cbbc075-5df7-499a-9cff-b09d581ba0f8 348 +306 uri://ed-fi.org/CharterApprovalAgencyTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:16.087205 2021-11-05 18:59:16.08576 0ccdf641-90a6-4904-b5ef-f0f03febc799 366 +310 uri://ed-fi.org/CharterStatusDescriptor College/University Charter College/University Charter College/University Charter \N \N \N 2021-11-05 18:59:16.133155 2021-11-05 18:59:16.131631 ad521341-afb2-4dbe-a1de-14006629c2d6 370 +313 uri://ed-fi.org/CitizenshipStatusDescriptor Refugee Refugee Refugee \N \N \N 2021-11-05 18:59:16.179211 2021-11-05 18:59:16.177684 2562c306-0f00-425a-aa92-bf9639a6df8e 373 +318 uri://ed-fi.org/ClassroomPositionDescriptor Assistant Teacher Assistant Teacher Assistant Teacher \N \N \N 2021-11-05 18:59:16.225423 2021-11-05 18:59:16.223936 ee1df94a-18ad-407c-bbf0-69e12aec3841 378 +321 uri://ed-fi.org/CohortScopeDescriptor Counselor Counselor Counselor \N \N \N 2021-11-05 18:59:16.273262 2021-11-05 18:59:16.272123 a406f0c2-781f-4652-8996-49de70a38a86 381 +332 uri://ed-fi.org/CohortTypeDescriptor Counselor List Counselor List Counselor List \N \N \N 2021-11-05 18:59:16.341169 2021-11-05 18:59:16.33956 62c51d47-b784-4f5d-bb3c-03067bbda054 392 +342 uri://ed-fi.org/CohortYearTypeDescriptor Second grade Second grade Second grade \N \N \N 2021-11-05 18:59:16.404777 2021-11-05 18:59:16.403462 988fd20f-4040-4ab8-bfff-e6e37ee33252 402 +346 uri://ed-fi.org/CohortYearTypeDescriptor Sixth grade Sixth grade Sixth grade \N \N \N 2021-11-05 18:59:16.421248 2021-11-05 18:59:16.421145 47f6c5d3-0e43-4174-9e1f-a45474fe9d50 406 +355 uri://ed-fi.org/CompetencyLevelDescriptor Below Basic Below Basic Below Basic \N \N \N 2021-11-05 18:59:16.47962 2021-11-05 18:59:16.478011 25ed25b1-1f0f-43c0-922c-c0289f6bc10d 415 +373 uri://ed-fi.org/CountryDescriptor AF Afghanistan Afghanistan \N \N \N 2021-11-05 18:59:16.646083 2021-11-05 18:59:16.644345 f1b07888-86b5-421c-98ab-efa7bf8b9e16 433 +489 uri://ed-fi.org/CountryDescriptor KI Kiribati Kiribati \N \N \N 2021-11-05 18:59:16.987112 2021-11-05 18:59:16.987071 4630976c-5a11-47be-8de3-fa3c2fc9e976 549 +620 uri://ed-fi.org/CourseAttemptResultDescriptor Incomplete Incomplete Incomplete \N \N \N 2021-11-05 18:59:17.402109 2021-11-05 18:59:17.400988 52d513ae-1bea-493b-8fc9-9795e411c459 680 +623 uri://ed-fi.org/CourseDefinedByDescriptor National Organization National Organization National Organization \N \N \N 2021-11-05 18:59:17.453497 2021-11-05 18:59:17.45227 09aa2cf0-3bca-4fcc-a1b1-63cadc961f90 683 +639 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Advanced Placement Advanced Placement Advanced Placement \N \N \N 2021-11-05 18:59:17.588335 2021-11-05 18:59:17.587164 a73ea226-2320-45e8-be5d-80a074ba62a5 699 +644 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Core Subject Core Subject Core Subject \N \N \N 2021-11-05 18:59:17.604296 2021-11-05 18:59:17.604149 b1942f9f-26b4-48da-a426-0e7e824678b9 704 +663 uri://ed-fi.org/CourseRepeatCodeDescriptor Repeat Other Institution Repeat Other Institution Repeat Other Institution \N \N \N 2021-11-05 18:59:17.693095 2021-11-05 18:59:17.691918 d515f093-9133-4d24-92b1-b65074af60ec 723 +671 uri://ed-fi.org/CredentialFieldDescriptor Bilingual Bilingual Bilingual \N \N \N 2021-11-05 18:59:17.752215 2021-11-05 18:59:17.751 665a6321-efad-4a2d-8f97-9c7debe1ad35 731 +674 uri://ed-fi.org/CredentialFieldDescriptor Generalist Generalist Generalist \N \N \N 2021-11-05 18:59:17.767883 2021-11-05 18:59:17.767805 98bc9b57-7f87-48f4-a68a-06b86290ec55 734 +685 uri://ed-fi.org/CredentialTypeDescriptor Endorsement Endorsement Endorsement \N \N \N 2021-11-05 18:59:17.85236 2021-11-05 18:59:17.851027 167992ac-538c-4aa3-aefc-b69f2d5dae75 745 +691 uri://gbisd.edu/CreditCategoryDescriptor Honors Honors Honors \N \N \N 2021-11-05 18:59:17.909932 2021-11-05 18:59:17.908774 971100c0-f926-4b05-825c-42d64de0beaf 751 +694 uri://ed-fi.org/CreditTypeDescriptor Career and Technical Education credit Career and Technical Education credit Career and Technical Education credit \N \N \N 2021-11-05 18:59:17.966295 2021-11-05 18:59:17.964859 10885e78-ac6b-407b-8671-5985012331eb 754 +712 uri://ed-fi.org/CTEProgramServiceDescriptor Architecture and Construction Architecture and Construction Architecture and Construction \N \N \N 2021-11-05 18:59:18.063825 2021-11-05 18:59:18.062667 8b0cd1d7-5a5a-470e-886b-d080f6f9fc72 772 +98 uri://ed-fi.org/AddressTypeDescriptor Temporary Temporary Temporary \N \N \N 2021-11-05 18:59:14.954961 2021-11-05 18:59:14.954876 25b09af0-6ec4-426a-a88f-45dbb28ea74c 158 +99 uri://ed-fi.org/AddressTypeDescriptor Work Work Work \N \N \N 2021-11-05 18:59:14.959359 2021-11-05 18:59:14.959317 0c84e6f7-3556-4156-9f52-cf65303e7238 159 +102 uri://ed-fi.org/AdministrationEnvironmentDescriptor Classroom Classroom Classroom \N \N \N 2021-11-05 18:59:14.99392 2021-11-05 18:59:14.992694 30ba5a6b-2d01-4f8c-a21e-d57a3ee2c3c5 162 +104 uri://ed-fi.org/AdministrativeFundingControlDescriptor Private School Private School Private School \N \N \N 2021-11-05 18:59:15.004873 2021-11-05 18:59:15.004833 0c45dfca-1de1-414a-9ab1-05158c0c8d3d 164 +105 uri://ed-fi.org/AdministrativeFundingControlDescriptor Public School Public School Public School \N \N \N 2021-11-05 18:59:15.009082 2021-11-05 18:59:15.008985 89f0fd3c-e0c5-44ba-a211-5ecbd3d6fce4 165 +106 uri://gbisd.edu/AncestryEthnicOriginDescriptor Colombian Colombian Colombian \N \N \N 2021-11-05 18:59:15.040076 2021-11-05 18:59:15.038815 b0511ff9-bd91-456c-b1b1-8c17e4b87e8e 166 +110 uri://gbisd.edu/AncestryEthnicOriginDescriptor Puerto Rican Puerto Rican Puerto Rican \N \N \N 2021-11-05 18:59:15.050439 2021-11-05 18:59:15.050395 5580b0e1-2bcf-4f2f-835f-c2a1986f58f5 170 +111 uri://gbisd.edu/AncestryEthnicOriginDescriptor Salvadoran Salvadoran Salvadoran \N \N \N 2021-11-05 18:59:15.054362 2021-11-05 18:59:15.054297 7ad81f8d-ca06-4ca9-b23a-cc7ec1308be8 171 +113 uri://gbisd.edu/AncestryEthnicOriginDescriptor Spaniard/Spanish/Spanish-American Spaniard/Spanish/Spanish-American Spaniard/Spanish/Spanish-American \N \N \N 2021-11-05 18:59:15.057995 2021-11-05 18:59:15.05789 048f43e4-4d30-4f05-a171-ccfb48207de3 173 +114 uri://gbisd.edu/AncestryEthnicOriginDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:15.062398 2021-11-05 18:59:15.062333 aa24cb01-4f50-4740-a0e3-9bcfa8387443 174 +115 uri://ed-fi.org/AssessmentCategoryDescriptor Advanced Placement Advanced Placement Advanced Placement \N \N \N 2021-11-05 18:59:15.094262 2021-11-05 18:59:15.093106 98aa58a0-c445-48ed-b4ed-46591872bf76 175 +119 uri://ed-fi.org/AssessmentCategoryDescriptor State alternate assessment/ELL State alternate assessment/ELL State alternate assessment/ELL \N \N \N 2021-11-05 18:59:15.107756 2021-11-05 18:59:15.107596 ddd877b1-b2ba-4432-945d-47e2b949c3db 179 +122 uri://ed-fi.org/AssessmentCategoryDescriptor College entrance exam College entrance exam College entrance exam \N \N \N 2021-11-05 18:59:15.113223 2021-11-05 18:59:15.113163 9cb1d2af-c6a6-40e6-bf75-931a9bc11fd3 182 +123 uri://ed-fi.org/AssessmentCategoryDescriptor Manual dexterity test Manual dexterity test Manual dexterity test \N \N \N 2021-11-05 18:59:15.118437 2021-11-05 18:59:15.118373 1518b2ce-229b-415b-a5b4-bef578bb87c2 183 +125 uri://ed-fi.org/AssessmentCategoryDescriptor State English proficiency test State English proficiency test State English proficiency test \N \N \N 2021-11-05 18:59:15.122511 2021-11-05 18:59:15.122473 34570880-190b-46ba-b917-7e47b69c2e45 185 +127 uri://ed-fi.org/AssessmentCategoryDescriptor Achievement test Achievement test Achievement test \N \N \N 2021-11-05 18:59:15.125985 2021-11-05 18:59:15.125943 d42ebd06-17e7-4ab0-b61f-4644acf941c2 187 +128 uri://ed-fi.org/AssessmentCategoryDescriptor Class test Class test Class test \N \N \N 2021-11-05 18:59:15.131433 2021-11-05 18:59:15.13139 57eb58d4-9391-42eb-9bd5-0da2353a6a82 188 +130 uri://ed-fi.org/AssessmentCategoryDescriptor Early Learning - Language and literacy development Early Learning - Language and literacy development Early Learning - Language and literacy development \N \N \N 2021-11-05 18:59:15.138004 2021-11-05 18:59:15.137938 63b52e6f-f2e5-42a7-ab9c-56f19c5020f1 190 +132 uri://ed-fi.org/AssessmentCategoryDescriptor State alternative assessment/modified standards State alternative assessment/modified standards State alternative assessment/modified standards \N \N \N 2021-11-05 18:59:15.143567 2021-11-05 18:59:15.142662 3bda65b9-82b3-4f71-894c-2de412cb735c 192 +134 uri://ed-fi.org/AssessmentCategoryDescriptor Developmental observation Developmental observation Developmental observation \N \N \N 2021-11-05 18:59:15.148984 2021-11-05 18:59:15.148669 bce8585e-3575-4cbd-b34b-f6fc5b9cadbd 194 +136 uri://ed-fi.org/AssessmentCategoryDescriptor Performance assessment Performance assessment Performance assessment \N \N \N 2021-11-05 18:59:15.155939 2021-11-05 18:59:15.155871 f49326f9-ad96-47ac-b5df-53ae55cd6f61 196 +138 uri://ed-fi.org/AssessmentCategoryDescriptor Aptitude test Aptitude test Aptitude test \N \N \N 2021-11-05 18:59:15.163077 2021-11-05 18:59:15.161728 4fa3fdec-35ee-44b7-a6ac-a51a031846c4 198 +140 uri://ed-fi.org/AssessmentCategoryDescriptor Formative Formative Formative \N \N \N 2021-11-05 18:59:15.172181 2021-11-05 18:59:15.171488 c3c9cca8-7929-4076-bd0f-9f285724deed 200 +143 uri://ed-fi.org/AssessmentCategoryDescriptor Benchmark test Benchmark test Benchmark test \N \N \N 2021-11-05 18:59:15.1843 2021-11-05 18:59:15.184262 1262b5b2-4d0d-43ea-a399-d10e3df4d307 203 +144 uri://ed-fi.org/AssessmentCategoryDescriptor Early Learning - Cognition and general knowledge Early Learning - Cognition and general knowledge Early Learning - Cognition and general knowledge \N \N \N 2021-11-05 18:59:15.191841 2021-11-05 18:59:15.18888 324799b0-c365-46d2-b5e9-99674b6f9fe0 204 +147 uri://ed-fi.org/AssessmentCategoryDescriptor State alternative assessment/grade-level standards State alternative assessment/grade-level standards State alternative assessment/grade-level standards \N \N \N 2021-11-05 18:59:15.197189 2021-11-05 18:59:15.196904 33101a36-b4f9-4cbc-bd3a-8c281bd2df1f 207 +148 uri://ed-fi.org/AssessmentCategoryDescriptor Early Learning - Approaches toward learning Early Learning - Approaches toward learning Early Learning - Approaches toward learning \N \N \N 2021-11-05 18:59:15.204773 2021-11-05 18:59:15.204463 61d79626-3726-46f5-8245-0333afa761be 208 +150 uri://ed-fi.org/AssessmentCategoryDescriptor Interest inventory Interest inventory Interest inventory \N \N \N 2021-11-05 18:59:15.214279 2021-11-05 18:59:15.21238 3b6e7217-6f87-4bc2-b28a-985d21fc8dd7 210 +153 uri://ed-fi.org/AssessmentCategoryDescriptor Alternate assessment/grade-level standards Alternate assessment/grade-level standards Alternate assessment/grade-level standards \N \N \N 2021-11-05 18:59:15.24558 2021-11-05 18:59:15.245106 3770b884-a1c2-4698-be28-c1091339d9c9 213 +155 uri://ed-fi.org/AssessmentCategoryDescriptor English proficiency screening test English proficiency screening test English proficiency screening test \N \N \N 2021-11-05 18:59:15.255839 2021-11-05 18:59:15.255655 9740a332-cc44-45e8-a4c8-9a2e9b148aeb 215 +156 uri://ed-fi.org/AssessmentCategoryDescriptor State assessment State assessment State assessment \N \N \N 2021-11-05 18:59:15.267256 2021-11-05 18:59:15.267067 6b01c5ac-5303-435d-959d-5f1b62179da9 216 +158 uri://ed-fi.org/AssessmentCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:15.276695 2021-11-05 18:59:15.276413 45e03639-157d-4ce0-9cc8-0efb08041242 218 +159 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor Other Other Other \N \N \N 2021-11-05 18:59:15.323481 2021-11-05 18:59:15.322162 eb0a48be-cd42-48e6-a507-7ab231f5e224 219 +163 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor School School School \N \N \N 2021-11-05 18:59:15.342603 2021-11-05 18:59:15.342559 ece152c4-473a-4afb-a8d4-851084867b7c 223 +166 uri://ed-fi.org/AssessmentItemCategoryDescriptor Innovative Innovative Innovative \N \N \N 2021-11-05 18:59:15.376176 2021-11-05 18:59:15.374988 7506e183-cee7-4b22-b2d5-929cbc59b199 226 +170 uri://ed-fi.org/AssessmentItemCategoryDescriptor Labeling Labeling Labeling \N \N \N 2021-11-05 18:59:15.3907 2021-11-05 18:59:15.390649 458f2b8d-77aa-4e56-8d8d-9a753db3f73c 230 +172 uri://ed-fi.org/AssessmentItemCategoryDescriptor Matching Matching Matching \N \N \N 2021-11-05 18:59:15.393503 2021-11-05 18:59:15.393477 ea360e52-75e2-41a3-ad96-7d3f8b749462 232 +174 uri://ed-fi.org/AssessmentItemCategoryDescriptor Multiple-choice Multiple-choice Multiple-choice \N \N \N 2021-11-05 18:59:15.401794 2021-11-05 18:59:15.401762 92fad5a4-3755-4dee-94fd-b3e563fdbf27 234 +176 uri://ed-fi.org/AssessmentItemCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:15.406536 2021-11-05 18:59:15.406402 7aab047a-84ef-435d-9995-a0252319eb5f 236 +178 uri://ed-fi.org/AssessmentItemCategoryDescriptor Other extended response Other extended response Other extended response \N \N \N 2021-11-05 18:59:15.411451 2021-11-05 18:59:15.411428 41fa593d-4838-4c58-9779-02687f2dbabe 238 +179 uri://ed-fi.org/AssessmentItemCategoryDescriptor Performance task Performance task Performance task \N \N \N 2021-11-05 18:59:15.414465 2021-11-05 18:59:15.414431 a2bfcdd9-43ee-44da-9606-cce2810a47a2 239 +181 uri://ed-fi.org/AssessmentItemCategoryDescriptor Prose Prose Prose \N \N \N 2021-11-05 18:59:15.419348 2021-11-05 18:59:15.41931 5c33c7a8-8663-4632-b09b-32aee29de8f3 241 +139 uri://ed-fi.org/AssessmentCategoryDescriptor Diagnostic Diagnostic Diagnostic \N \N \N 2021-11-05 18:59:15.166885 2021-11-05 18:59:15.166826 d447c3d4-1eb0-4fe3-86a7-3e8b8a39e6ca 199 +141 uri://ed-fi.org/AssessmentCategoryDescriptor Personality test Personality test Personality test \N \N \N 2021-11-05 18:59:15.180329 2021-11-05 18:59:15.180018 1328d7f9-0568-4517-b7b3-1b6027aedb65 201 +145 uri://ed-fi.org/AssessmentCategoryDescriptor Interim Interim Interim \N \N \N 2021-11-05 18:59:15.192908 2021-11-05 18:59:15.189261 49fa7840-d711-41b5-88dc-99e4572efe6e 205 +149 uri://ed-fi.org/AssessmentCategoryDescriptor Attitudinal test Attitudinal test Attitudinal test \N \N \N 2021-11-05 18:59:15.204765 2021-11-05 18:59:15.203544 f9061400-05b8-48c2-86ad-5861a9aebf73 209 +151 uri://ed-fi.org/AssessmentCategoryDescriptor Portfolio assessment Portfolio assessment Portfolio assessment \N \N \N 2021-11-05 18:59:15.223052 2021-11-05 18:59:15.222428 2f71085b-0235-47ac-8089-4c105ddf69e1 211 +152 uri://ed-fi.org/AssessmentCategoryDescriptor State high school course assessment State high school course assessment State high school course assessment \N \N \N 2021-11-05 18:59:15.239625 2021-11-05 18:59:15.239321 51501a9b-6b11-4116-93dd-0d91288d2cdf 212 +154 uri://ed-fi.org/AssessmentCategoryDescriptor Cognitive and perceptual skills test Cognitive and perceptual skills test Cognitive and perceptual skills test \N \N \N 2021-11-05 18:59:15.248598 2021-11-05 18:59:15.248325 4996b617-b6b0-4c87-b4cf-edd73141b513 214 +157 uri://ed-fi.org/AssessmentCategoryDescriptor Mental ability (intelligence) test Mental ability (intelligence) test Mental ability (intelligence) test \N \N \N 2021-11-05 18:59:15.270657 2021-11-05 18:59:15.270437 04e16281-3752-4576-8094-e7ad40e57ccb 217 +161 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor District District District \N \N \N 2021-11-05 18:59:15.323483 2021-11-05 18:59:15.322155 7e4b49d6-381b-43f7-a9d1-ef5d622e611a 221 +164 uri://ed-fi.org/AssessmentIdentificationSystemDescriptor State State State \N \N \N 2021-11-05 18:59:15.342693 2021-11-05 18:59:15.342653 b50da48a-0ef1-4d3b-8626-ff2124a6a363 224 +167 uri://ed-fi.org/AssessmentItemCategoryDescriptor Essay Essay Essay \N \N \N 2021-11-05 18:59:15.376176 2021-11-05 18:59:15.374994 88270bdf-b897-4de1-98d2-ed4d6e565afc 227 +171 uri://ed-fi.org/AssessmentItemCategoryDescriptor List Question List Question List Question \N \N \N 2021-11-05 18:59:15.39094 2021-11-05 18:59:15.390882 c5ed2b5c-aa24-4e95-8d41-f0d90e169ea8 231 +175 uri://ed-fi.org/AssessmentItemCategoryDescriptor Multiple-choice multi-select Multiple-choice multi-select Multiple-choice multi-select \N \N \N 2021-11-05 18:59:15.403568 2021-11-05 18:59:15.40353 ee692f06-e0a5-4214-bb51-b01819a679b1 235 +177 uri://ed-fi.org/AssessmentItemCategoryDescriptor Other constructed response Other constructed response Other constructed response \N \N \N 2021-11-05 18:59:15.406782 2021-11-05 18:59:15.406712 8623f8b8-519f-4109-a94c-76041f82bc92 237 +180 uri://ed-fi.org/AssessmentItemCategoryDescriptor Reordering Reordering Reordering \N \N \N 2021-11-05 18:59:15.417905 2021-11-05 18:59:15.417825 3def1ed7-01a5-48a4-979b-6d60a32ab739 240 +184 uri://ed-fi.org/AssessmentItemCategoryDescriptor Short answer Short answer Short answer \N \N \N 2021-11-05 18:59:15.431828 2021-11-05 18:59:15.431756 93c676fd-b389-4f32-83fe-7ee02fc8e89c 244 +186 uri://ed-fi.org/AssessmentItemCategoryDescriptor True-False True-False True-False \N \N \N 2021-11-05 18:59:15.436045 2021-11-05 18:59:15.436016 6467c0a4-c4fe-4f92-bda5-847eff1dcf15 246 +188 uri://ed-fi.org/AssessmentItemResultDescriptor Below Standard Below Standard Below Standard \N \N \N 2021-11-05 18:59:15.474826 2021-11-05 18:59:15.473622 d48155c5-9895-4cd8-aa72-5dc995f06bfc 248 +193 uri://ed-fi.org/AssessmentItemResultDescriptor Partially Correct Partially Correct Partially Correct \N \N \N 2021-11-05 18:59:15.491332 2021-11-05 18:59:15.49071 84cacbc7-9cc4-4dfb-860e-414a8a883b15 253 +194 uri://ed-fi.org/AssessmentPeriodDescriptor EOY EOY End of Year \N \N \N 2021-11-05 18:59:15.521757 2021-11-05 18:59:15.520573 e3d1cb9c-fb63-4cda-9c39-def572f429cb 254 +198 uri://ed-fi.org/AssessmentReportingMethodDescriptor ACT score DEPRECATED: ACT score DEPRECATED: ACT score \N \N \N 2021-11-05 18:59:15.535506 2021-11-05 18:59:15.535406 5e5426a3-0262-4c3c-984e-57e4a10bfd3a 258 +203 uri://ed-fi.org/AssessmentReportingMethodDescriptor Composite Score Composite Score Composite Score \N \N \N 2021-11-05 18:59:15.550354 2021-11-05 18:59:15.550242 91012b6e-41ad-4a62-9742-c7b8eeef979b 263 +205 uri://ed-fi.org/AssessmentReportingMethodDescriptor Composition Score Composition Score Composition Score \N \N \N 2021-11-05 18:59:15.553867 2021-11-05 18:59:15.553831 0fc237ff-867a-4a1d-8189-4e15c23eb6f6 265 +208 uri://ed-fi.org/AssessmentReportingMethodDescriptor Growth/value-added/indexing Growth/value-added/indexing Growth/value-added/indexing \N \N \N 2021-11-05 18:59:15.563995 2021-11-05 18:59:15.563689 792471c7-1c16-421f-9038-f50ea1b71735 268 +211 uri://ed-fi.org/AssessmentReportingMethodDescriptor Mastery level Mastery level Mastery level \N \N \N 2021-11-05 18:59:15.569826 2021-11-05 18:59:15.569784 c68216e3-b9e3-4d70-807d-f891e3e6463f 271 +214 uri://ed-fi.org/AssessmentReportingMethodDescriptor Number score Number score Number score \N \N \N 2021-11-05 18:59:15.579692 2021-11-05 18:59:15.579579 83e292ef-a2db-4a96-ab6e-eaa4b137c139 274 +216 uri://ed-fi.org/AssessmentReportingMethodDescriptor Percentile Percentile Percentile \N \N \N 2021-11-05 18:59:15.584155 2021-11-05 18:59:15.583999 40430ae3-5e27-4962-943d-cf7f2466c45e 276 +219 uri://ed-fi.org/AssessmentReportingMethodDescriptor Promotion score Promotion score Promotion score \N \N \N 2021-11-05 18:59:15.592263 2021-11-05 18:59:15.592216 d9ddfc42-2fd0-4e3c-981c-40b1833092c9 279 +221 uri://ed-fi.org/AssessmentReportingMethodDescriptor Ratio IQ's Ratio IQ's Ratio IQ's \N \N \N 2021-11-05 18:59:15.596805 2021-11-05 18:59:15.596763 a68f5935-1ecf-465b-bed6-d3e9189e78e3 281 +224 uri://ed-fi.org/AssessmentReportingMethodDescriptor Standard age score Standard age score Standard age score \N \N \N 2021-11-05 18:59:15.605085 2021-11-05 18:59:15.604998 84392231-dc8e-4943-9657-840aa75255cb 284 +227 uri://ed-fi.org/AssessmentReportingMethodDescriptor Sten score Sten score Sten score \N \N \N 2021-11-05 18:59:15.611859 2021-11-05 18:59:15.611838 39169120-4c1d-49a4-a4f3-d3e319cbc19b 287 +229 uri://ed-fi.org/AssessmentReportingMethodDescriptor T-score T-score T-score \N \N \N 2021-11-05 18:59:15.617299 2021-11-05 18:59:15.617251 07d5218e-cca7-4218-89a6-2a3347b11a70 289 +230 uri://ed-fi.org/AssessmentReportingMethodDescriptor Vertical score Vertical score Vertical score \N \N \N 2021-11-05 18:59:15.620927 2021-11-05 18:59:15.620876 bcc5d193-887e-4c66-bbf6-acb301744e1d 290 +232 uri://ed-fi.org/AssessmentReportingMethodDescriptor Z-score Z-score Z-score \N \N \N 2021-11-05 18:59:15.625646 2021-11-05 18:59:15.625368 ae9dd51a-7f5f-4f73-bea3-647b3e2239d6 292 +239 uri://ed-fi.org/AssessmentReportingMethodDescriptor State College-Bound Percentile State College-Bound Percentile State College-Bound Percentile \N \N \N 2021-11-05 18:59:15.644878 2021-11-05 18:59:15.644025 398079d1-a676-4f99-97b6-d19b92f11e86 299 +244 uri://ed-fi.org/AttemptStatusDescriptor Withdrawn Withdrawn Withdrawn \N \N \N 2021-11-05 18:59:15.681158 2021-11-05 18:59:15.679852 a311a066-534f-4b36-9978-e79a7062cea6 304 +246 uri://ed-fi.org/AttemptStatusDescriptor Died or is permanently incapacitated DEPRECATED: Died or is permanently incapacitated DEPRECATED: Died or is permanently incapacitated \N \N \N 2021-11-05 18:59:15.694343 2021-11-05 18:59:15.694258 5e323e0f-c5df-4b1a-8f82-8f57480346cf 306 +248 uri://ed-fi.org/AttemptStatusDescriptor Graduated with a high school diploma DEPRECATED: Graduated with a high school diploma DEPRECATED: Graduated with a high school diploma \N \N \N 2021-11-05 18:59:15.698693 2021-11-05 18:59:15.698673 c25c90f7-02be-4348-8352-9935d8871250 308 +250 uri://ed-fi.org/AttemptStatusDescriptor Other DEPRECATED: Other DEPRECATED: Other \N \N \N 2021-11-05 18:59:15.706774 2021-11-05 18:59:15.706706 a9121ad1-507d-4496-b55a-281256cf70ec 310 +251 uri://ed-fi.org/AttemptStatusDescriptor Reached maximum age DEPRECATED: Reached maximum age DEPRECATED: Reached maximum age \N \N \N 2021-11-05 18:59:15.71097 2021-11-05 18:59:15.710917 a102ac8d-1c5c-4c31-9303-891492259e37 311 +253 uri://ed-fi.org/AttemptStatusDescriptor Suspended or expelled from school DEPRECATED: Suspended or expelled from school DEPRECATED: Suspended or expelled from school \N \N \N 2021-11-05 18:59:15.719983 2021-11-05 18:59:15.719915 703770ce-ce9a-4d92-b3c7-48ca816e257d 313 +255 uri://ed-fi.org/AttemptStatusDescriptor Unknown reason DEPRECATED: Unknown reason DEPRECATED: Unknown reason \N \N \N 2021-11-05 18:59:15.724428 2021-11-05 18:59:15.724087 ea2fb37e-eb14-4442-aecf-3d36e3fc8efd 315 +260 uri://ed-fi.org/AttendanceEventCategoryDescriptor Tardy Tardy Tardy \N \N \N 2021-11-05 18:59:15.761166 2021-11-05 18:59:15.760028 be631a26-aded-4679-bdf3-709a07579915 320 +182 uri://ed-fi.org/AssessmentItemCategoryDescriptor Rubric Rubric Rubric \N \N \N 2021-11-05 18:59:15.42665 2021-11-05 18:59:15.426611 4ec0201b-dd9e-480c-930b-9d52bfb63d3d 242 +183 uri://ed-fi.org/AssessmentItemCategoryDescriptor Show your work Show your work Show your work \N \N \N 2021-11-05 18:59:15.431616 2021-11-05 18:59:15.43148 30251c5f-5daf-4c07-b9bb-c14b8e92eb2a 243 +185 uri://ed-fi.org/AssessmentItemCategoryDescriptor Substitution Substitution Substitution \N \N \N 2021-11-05 18:59:15.434315 2021-11-05 18:59:15.434296 6e8de579-8345-4e9b-97e2-df0e5885f53a 245 +187 uri://ed-fi.org/AssessmentItemCategoryDescriptor Visual representation Visual representation Visual representation \N \N \N 2021-11-05 18:59:15.440224 2021-11-05 18:59:15.440182 22ba86f7-cb78-4269-9583-589077b1a575 247 +189 uri://ed-fi.org/AssessmentItemResultDescriptor Above Standard Above Standard Above Standard \N \N \N 2021-11-05 18:59:15.474817 2021-11-05 18:59:15.473615 0a990584-7f5a-405d-8bd3-8ebdf549ce5f 249 +192 uri://ed-fi.org/AssessmentItemResultDescriptor Met Standard Met Standard Met Standard \N \N \N 2021-11-05 18:59:15.491049 2021-11-05 18:59:15.490274 13118497-9e4a-44bd-afe5-ea255e6cdcf8 252 +195 uri://ed-fi.org/AssessmentPeriodDescriptor BOY BOY Beginning of Year \N \N \N 2021-11-05 18:59:15.521756 2021-11-05 18:59:15.520563 3a85707d-0860-48e8-a9da-2a2443398361 255 +197 uri://ed-fi.org/AssessmentReportingMethodDescriptor Achievement/proficiency level Achievement/proficiency level Achievement/proficiency level \N \N \N 2021-11-05 18:59:15.531111 2021-11-05 18:59:15.529914 328725db-82ff-4f8f-96b6-9229c42318a6 257 +200 uri://ed-fi.org/AssessmentReportingMethodDescriptor Age score Age score Age score \N \N \N 2021-11-05 18:59:15.537247 2021-11-05 18:59:15.537095 0e3c8c69-5d23-4dec-8165-f1b4f4a2fabd 260 +201 uri://ed-fi.org/AssessmentReportingMethodDescriptor C-scaled scores C-scaled scores C-scaled scores \N \N \N 2021-11-05 18:59:15.541009 2021-11-05 18:59:15.540987 3a6815d3-44aa-4e8d-a437-3d4867abd7f3 261 +202 uri://ed-fi.org/AssessmentReportingMethodDescriptor College Board examination scores DEPRECATED: College Board examination scores DEPRECATED: College Board examination scores \N \N \N 2021-11-05 18:59:15.546458 2021-11-05 18:59:15.546414 199b5101-c265-49bc-9267-feed33fddbe2 262 +204 uri://ed-fi.org/AssessmentReportingMethodDescriptor Composite Rating Composite Rating Composite Rating \N \N \N 2021-11-05 18:59:15.552497 2021-11-05 18:59:15.551905 c2e267a6-7df2-47e2-b2ef-8a8f3ca1f399 264 +206 uri://ed-fi.org/AssessmentReportingMethodDescriptor Grade equivalent or grade-level indicator Grade equivalent or grade-level indicator Grade equivalent or grade-level indicator \N \N \N 2021-11-05 18:59:15.556344 2021-11-05 18:59:15.556239 a1000d0f-986d-468b-b845-fd764770831e 266 +207 uri://ed-fi.org/AssessmentReportingMethodDescriptor Graduation score Graduation score Graduation score \N \N \N 2021-11-05 18:59:15.559787 2021-11-05 18:59:15.559745 f9adcce2-1932-4c50-aeb0-91aec45d3a8b 267 +209 uri://ed-fi.org/AssessmentReportingMethodDescriptor International Baccalaureate score DEPRECATED: International Baccalaureate score DEPRECATED: International Baccalaureate score \N \N \N 2021-11-05 18:59:15.564692 2021-11-05 18:59:15.564638 09002b43-d078-4123-8ea3-f599952c4c60 269 +210 uri://ed-fi.org/AssessmentReportingMethodDescriptor Letter grade/mark Letter grade/mark Letter grade/mark \N \N \N 2021-11-05 18:59:15.568016 2021-11-05 18:59:15.567741 6cad9f0d-1fd0-4dbc-8bf3-5425c3fdd2ab 270 +212 uri://ed-fi.org/AssessmentReportingMethodDescriptor Normal curve equivalent Normal curve equivalent Normal curve equivalent \N \N \N 2021-11-05 18:59:15.574472 2021-11-05 18:59:15.574422 ffa19cf2-17e8-4759-98a4-e9d60fdfdf03 272 +213 uri://ed-fi.org/AssessmentReportingMethodDescriptor Normalized standard score Normalized standard score Normalized standard score \N \N \N 2021-11-05 18:59:15.577635 2021-11-05 18:59:15.577515 c7a59979-e8c8-4b6b-84de-b0155a841e99 273 +215 uri://ed-fi.org/AssessmentReportingMethodDescriptor Pass-fail Pass-fail Pass-fail \N \N \N 2021-11-05 18:59:15.581231 2021-11-05 18:59:15.580921 bc91d3a7-f36c-4089-844b-723a6aa83d1b 275 +217 uri://ed-fi.org/AssessmentReportingMethodDescriptor Percentile rank Percentile rank Percentile rank \N \N \N 2021-11-05 18:59:15.586495 2021-11-05 18:59:15.586463 b858c7b3-8172-4fb1-997a-1d866d530df3 277 +218 uri://ed-fi.org/AssessmentReportingMethodDescriptor Proficiency level Proficiency level Proficiency level \N \N \N 2021-11-05 18:59:15.590518 2021-11-05 18:59:15.59044 93e89ee4-a017-454e-86f0-bf397f906299 278 +220 uri://ed-fi.org/AssessmentReportingMethodDescriptor Ranking Ranking Ranking \N \N \N 2021-11-05 18:59:15.594883 2021-11-05 18:59:15.594851 83c8f3a2-ecb5-4dde-b121-a0f0f85f17c5 280 +222 uri://ed-fi.org/AssessmentReportingMethodDescriptor Raw score Raw score Raw score \N \N \N 2021-11-05 18:59:15.600438 2021-11-05 18:59:15.600411 269f6f1f-cb1e-4f9e-9ce1-7eae3b28b6dd 282 +223 uri://ed-fi.org/AssessmentReportingMethodDescriptor Scale score Scale score Scale score \N \N \N 2021-11-05 18:59:15.603325 2021-11-05 18:59:15.603287 90fc40e2-45c6-4ef4-a879-01d77c9d2e48 283 +225 uri://ed-fi.org/AssessmentReportingMethodDescriptor Standard error measurement Standard error measurement Standard error measurement \N \N \N 2021-11-05 18:59:15.607231 2021-11-05 18:59:15.607192 bc4b4fbe-47d9-4acb-b08d-d3736d3ae012 285 +226 uri://ed-fi.org/AssessmentReportingMethodDescriptor Stanine score Stanine score Stanine score \N \N \N 2021-11-05 18:59:15.610113 2021-11-05 18:59:15.610062 8a167616-7547-499e-8ced-d7dda3c6cfc6 286 +228 uri://ed-fi.org/AssessmentReportingMethodDescriptor Theta Theta Theta \N \N \N 2021-11-05 18:59:15.615199 2021-11-05 18:59:15.615158 1dc1b60a-8e60-480b-8f75-07cde220a4c2 288 +231 uri://ed-fi.org/AssessmentReportingMethodDescriptor Workplace readiness score Workplace readiness score Workplace readiness score \N \N \N 2021-11-05 18:59:15.622581 2021-11-05 18:59:15.622562 8feed27f-484c-492b-a2cb-8b970107088a 291 +233 uri://ed-fi.org/AssessmentReportingMethodDescriptor Other Other Other \N \N \N 2021-11-05 18:59:15.627005 2021-11-05 18:59:15.626947 b0b96ee3-e7fd-410d-969c-739503ba8ceb 293 +234 uri://ed-fi.org/AssessmentReportingMethodDescriptor Not applicable DEPRECATED: Not applicable DEPRECATED: Not applicable \N \N \N 2021-11-05 18:59:15.630506 2021-11-05 18:59:15.630468 66162bda-e4f4-4541-a1ac-33c146375e17 294 +235 uri://ed-fi.org/AssessmentReportingMethodDescriptor Quantile Measure Quantile Measure Quantile Measure \N \N \N 2021-11-05 18:59:15.63315 2021-11-05 18:59:15.63311 bab6bf68-c97f-4074-8460-d41ec50205fa 295 +236 uri://ed-fi.org/AssessmentReportingMethodDescriptor Lexile Measure Lexile Measure Lexile Measure \N \N \N 2021-11-05 18:59:15.636478 2021-11-05 18:59:15.636441 5c31a01a-f4f2-4fdb-a19e-bdcd6c47e335 296 +237 uri://ed-fi.org/AssessmentReportingMethodDescriptor Vertical Scale Score Vertical Scale Score Vertical Scale Score \N \N \N 2021-11-05 18:59:15.638777 2021-11-05 18:59:15.638738 8fb88118-8f85-432c-96f8-9e3c75b0ef17 297 +238 uri://ed-fi.org/AssessmentReportingMethodDescriptor National College-Bound Percentile National College-Bound Percentile National College-Bound Percentile \N \N \N 2021-11-05 18:59:15.642104 2021-11-05 18:59:15.642066 bf87f306-2a02-4cc8-8e9c-2ae55b829142 298 +240 uri://ed-fi.org/AssessmentReportingMethodDescriptor RIT scale score RIT scale score RIT scale score \N \N \N 2021-11-05 18:59:15.646894 2021-11-05 18:59:15.646858 8fb50520-5e9a-4431-8437-61a0dac8d624 300 +242 uri://ed-fi.org/AttemptStatusDescriptor Pass Pass Pass \N \N \N 2021-11-05 18:59:15.681136 2021-11-05 18:59:15.679852 fc4fe705-533e-492d-b445-13aff2996ae7 302 +245 uri://ed-fi.org/AttemptStatusDescriptor Audited Audited Audited \N \N \N 2021-11-05 18:59:15.694217 2021-11-05 18:59:15.694175 d6ccdd30-171a-419a-8371-0f9a848827e2 305 +247 uri://ed-fi.org/AttemptStatusDescriptor Discontinued schooling DEPRECATED: Discontinued schooling DEPRECATED: Discontinued schooling \N \N \N 2021-11-05 18:59:15.697219 2021-11-05 18:59:15.69717 1c9a2b14-7abb-45dd-9c91-43aa70951250 307 +249 uri://ed-fi.org/AttemptStatusDescriptor Moved out of state DEPRECATED: Moved out of state DEPRECATED: Moved out of state \N \N \N 2021-11-05 18:59:15.705084 2021-11-05 18:59:15.704916 24278ee3-a413-4967-90b5-10eeb0a79388 309 +252 uri://ed-fi.org/AttemptStatusDescriptor Received certificate of completion or equivalent DEPRECATED: Received completion certificate, modified diploma, or met IEP r DEPRECATED: Received certificate of completion, modified diploma, or finished IEP requirements \N \N \N 2021-11-05 18:59:15.712542 2021-11-05 18:59:15.712501 5b8c4fce-fdd9-4980-ab36-ca9810e0a123 312 +254 uri://ed-fi.org/AttemptStatusDescriptor Transferred to another district or school DEPRECATED: Transferred to another district or school DEPRECATED: Transferred to another district or school \N \N \N 2021-11-05 18:59:15.721003 2021-11-05 18:59:15.720966 c3be141b-d7d3-4a6a-9853-19bbd0e545e8 314 +256 uri://ed-fi.org/AttemptStatusDescriptor Withdrawal by a parent (or guardian) DEPRECATED: Withdrawal by a parent (or guardian) DEPRECATED: Withdrawal by a parent (or guardian) \N \N \N 2021-11-05 18:59:15.725034 2021-11-05 18:59:15.724996 00b38630-28f3-477a-b520-b776574d7041 316 +257 uri://ed-fi.org/AttendanceEventCategoryDescriptor Excused Absence Excused Absence Excused Absence \N \N \N 2021-11-05 18:59:15.761168 2021-11-05 18:59:15.760022 5f027e7e-cfe0-4c0f-b4b7-8804cf6315c8 317 +261 uri://ed-fi.org/AttendanceEventCategoryDescriptor Partial Partial Partial \N \N \N 2021-11-05 18:59:15.774356 2021-11-05 18:59:15.773554 f9c99f2c-c541-4720-b85b-70bf57fe79e1 321 +265 uri://ed-fi.org/BarrierToInternetAccessInResidenceDescriptor Other Other The reason why a student cannot access the internet in their primary place of residence is not yet defined. \N \N \N 2021-11-05 18:59:15.808311 2021-11-05 18:59:15.807145 d84341c7-03e0-488f-a936-839385e29342 325 +269 uri://ed-fi.org/BehaviorDescriptor Other Other Other \N \N \N 2021-11-05 18:59:15.849769 2021-11-05 18:59:15.848599 4d486276-ec70-4365-9950-bbbee5ece05d 329 +272 uri://ed-fi.org/CalendarEventDescriptor Make-up day Make-up day Make-up instructional day \N \N \N 2021-11-05 18:59:15.895409 2021-11-05 18:59:15.894194 73f534ca-2922-42d6-b9de-d0a661d60e19 332 +277 uri://ed-fi.org/CalendarEventDescriptor Teacher only day Teacher only day Non-instructional day for students designated for teachers (e.g., staff development, work day) \N \N \N 2021-11-05 18:59:15.913247 2021-11-05 18:59:15.91321 630e44f9-91fe-42eb-b8de-5a9ecc525025 337 +279 uri://ed-fi.org/CalendarEventDescriptor Weather day Weather day Instruction cancelled or reduced due to weather \N \N \N 2021-11-05 18:59:15.919573 2021-11-05 18:59:15.919536 bcf30ce2-ac65-4d2d-9948-46edbfbb7572 339 +280 uri://ed-fi.org/CalendarEventDescriptor Non-instructional day Non-instructional day Non-instructional day \N \N \N 2021-11-05 18:59:15.924194 2021-11-05 18:59:15.924067 6df27554-1438-4dcc-a1f5-9c8ad8a7e5ad 340 +282 uri://ed-fi.org/CalendarTypeDescriptor IEP IEP IEP \N \N \N 2021-11-05 18:59:15.961294 2021-11-05 18:59:15.960095 4afd0292-a889-4af8-a577-519143e9bc2a 342 +285 uri://ed-fi.org/CalendarTypeDescriptor Staff Staff Staff \N \N \N 2021-11-05 18:59:15.977578 2021-11-05 18:59:15.977452 4baa6c30-aa53-4b02-b060-2088efe2392e 345 +289 uri://ed-fi.org/CareerPathwayDescriptor Architecture and Construction Architecture and Construction Architecture and Construction \N \N \N 2021-11-05 18:59:16.008647 2021-11-05 18:59:16.007466 889b5551-a2b1-402c-96c8-855effca0d6c 349 +291 uri://ed-fi.org/CareerPathwayDescriptor Education and Training Education and Training Education and Training \N \N \N 2021-11-05 18:59:16.023751 2021-11-05 18:59:16.023483 39182aae-fe96-47ed-8a1f-45f004dcbd92 351 +294 uri://ed-fi.org/CareerPathwayDescriptor Hospitality and Tourism Hospitality and Tourism Hospitality and Tourism \N \N \N 2021-11-05 18:59:16.031523 2021-11-05 18:59:16.031242 87672bc5-867c-4fd7-be26-62b1dc14a87f 354 +296 uri://ed-fi.org/CareerPathwayDescriptor Information Technology Information Technology Information Technology \N \N \N 2021-11-05 18:59:16.038183 2021-11-05 18:59:16.038114 44210dce-4228-4f26-9c76-e36af13741dd 356 +298 uri://ed-fi.org/CareerPathwayDescriptor Manufacturing Manufacturing Manufacturing \N \N \N 2021-11-05 18:59:16.044122 2021-11-05 18:59:16.044076 6f896a99-1b0a-4266-8b83-31841a0300ff 358 +301 uri://ed-fi.org/CareerPathwayDescriptor Other Other Other \N \N \N 2021-11-05 18:59:16.050041 2021-11-05 18:59:16.049989 8cbef154-35fc-4c71-9a70-74dd2f32236a 361 +302 uri://ed-fi.org/CareerPathwayDescriptor Transportation, Distribution and Logistics Transportation, Distribution and Logistics Transportation, Distribution and Logistics \N \N \N 2021-11-05 18:59:16.055155 2021-11-05 18:59:16.054304 5d3058ea-cadb-4a82-b9b3-7ae9c3af35c1 362 +305 uri://ed-fi.org/CharterApprovalAgencyTypeDescriptor University University University \N \N \N 2021-11-05 18:59:16.08692 2021-11-05 18:59:16.085739 8a5c23af-bfe7-4b3f-a842-447d91e4c729 365 +307 uri://ed-fi.org/CharterStatusDescriptor School Charter School Charter School Charter \N \N \N 2021-11-05 18:59:16.132778 2021-11-05 18:59:16.131606 351029c4-b6c6-44cc-8a56-986692cb3e5b 367 +311 uri://ed-fi.org/CitizenshipStatusDescriptor Non-resident alien Non-resident alien Non-resident alien \N \N \N 2021-11-05 18:59:16.178836 2021-11-05 18:59:16.177673 5c90e5da-8c1d-4f95-b873-c0731454eb87 371 +315 uri://ed-fi.org/CitizenshipStatusDescriptor US Citizen US Citizen US Citizen \N \N \N 2021-11-05 18:59:16.193179 2021-11-05 18:59:16.192672 237eeb2e-9918-4082-8072-791dc036080e 375 +317 uri://ed-fi.org/ClassroomPositionDescriptor Teacher of Record Teacher of Record Teacher of Record \N \N \N 2021-11-05 18:59:16.225098 2021-11-05 18:59:16.223915 e49fc0fd-1edc-4668-995c-8760abe2968e 377 +320 uri://ed-fi.org/CohortScopeDescriptor Classroom Classroom Classroom \N \N \N 2021-11-05 18:59:16.273256 2021-11-05 18:59:16.272104 1c9834c2-2669-40f4-99b9-0f8c90339828 380 +324 uri://ed-fi.org/CohortScopeDescriptor Principal Principal Principal \N \N \N 2021-11-05 18:59:16.287613 2021-11-05 18:59:16.286313 f04a9ab1-2630-4f5d-a0bb-74646564189f 384 +327 uri://ed-fi.org/CohortScopeDescriptor Statewide Statewide Statewide \N \N \N 2021-11-05 18:59:16.293159 2021-11-05 18:59:16.293102 a3637b1e-5e25-473d-a574-7c164cdc6653 387 +328 uri://ed-fi.org/CohortScopeDescriptor Teacher Teacher Teacher \N \N \N 2021-11-05 18:59:16.30667 2021-11-05 18:59:16.304364 396113db-33ec-4966-8f06-f03d4d91d8bb 388 +329 uri://ed-fi.org/CohortTypeDescriptor Classroom Pullout Classroom Pullout Classroom Pullout \N \N \N 2021-11-05 18:59:16.340759 2021-11-05 18:59:16.33953 b1841296-32bb-4065-8eb4-e08a3e762b35 389 +334 uri://ed-fi.org/CohortTypeDescriptor Discipline Intervention Discipline Intervention Discipline Intervention \N \N \N 2021-11-05 18:59:16.35414 2021-11-05 18:59:16.353401 733d771b-9068-4a48-979e-ccaffabb3e03 394 +336 uri://ed-fi.org/CohortTypeDescriptor In-school Suspension In-school Suspension In-school Suspension \N \N \N 2021-11-05 18:59:16.358081 2021-11-05 18:59:16.358047 62d42f3c-20e0-4837-a85f-18276a74bc5a 396 +337 uri://ed-fi.org/CohortTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:16.363001 2021-11-05 18:59:16.362945 feea6f31-c502-4ab1-b3ef-9e403c58ca98 397 +339 uri://ed-fi.org/CohortTypeDescriptor Principal Watch List Principal Watch List Principal Watch List \N \N \N 2021-11-05 18:59:16.367734 2021-11-05 18:59:16.367711 e1004abe-ea4f-4974-b293-50a58c803fcc 399 +343 uri://ed-fi.org/CohortYearTypeDescriptor Third grade Third grade Third grade \N \N \N 2021-11-05 18:59:16.404614 2021-11-05 18:59:16.403439 07acfe48-7785-47a0-b060-75d478439694 403 +345 uri://ed-fi.org/CohortYearTypeDescriptor Fifth grade Fifth grade Fifth grade \N \N \N 2021-11-05 18:59:16.421004 2021-11-05 18:59:16.420969 d41ef1af-775a-47c4-bb68-35e7d52ab25b 405 +348 uri://ed-fi.org/CohortYearTypeDescriptor Ninth grade Ninth grade Ninth grade \N \N \N 2021-11-05 18:59:16.429862 2021-11-05 18:59:16.429826 f7d93801-9674-42f8-9699-721abf657027 408 +350 uri://ed-fi.org/CohortYearTypeDescriptor Eleventh grade Eleventh grade Eleventh grade \N \N \N 2021-11-05 18:59:16.435698 2021-11-05 18:59:16.435467 b2634c34-d3df-438c-87d4-1554375eef75 410 +354 uri://ed-fi.org/CompetencyLevelDescriptor Fail Fail Fail \N \N \N 2021-11-05 18:59:16.479189 2021-11-05 18:59:16.47799 d03f7173-a6a7-4f2e-8427-73d9da6ac05a 414 +356 uri://ed-fi.org/CompetencyLevelDescriptor Well Below Basic Well Below Basic Well Below Basic \N \N \N 2021-11-05 18:59:16.493643 2021-11-05 18:59:16.493162 193a8415-ba7d-4318-aef0-d76188e53d36 416 +359 uri://ed-fi.org/ContactTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:16.534002 2021-11-05 18:59:16.531886 62887ef0-ce1d-496f-8c97-bab6e9606f6a 419 +362 uri://ed-fi.org/ContentClassDescriptor Presentation Presentation Presentation \N \N \N 2021-11-05 18:59:16.541777 2021-11-05 18:59:16.539962 e671049a-7a62-492d-a504-d83142521ca3 422 +363 uri://ed-fi.org/ContentClassDescriptor Video Video Video \N \N \N 2021-11-05 18:59:16.54798 2021-11-05 18:59:16.547933 3b3137e0-49ee-483b-8a32-dcdea5a16670 423 +364 uri://ed-fi.org/ContentClassDescriptor Written Activity Written Activity Written Activity \N \N \N 2021-11-05 18:59:16.55552 2021-11-05 18:59:16.555219 fa7bd67c-d8c4-4695-8e67-0b78e36b24d0 424 +365 uri://ed-fi.org/ContinuationofServicesReasonDescriptor Ceased to be migratory during school term Ceased to be migratory during school term Ceased to be migratory during school term \N \N \N 2021-11-05 18:59:16.592886 2021-11-05 18:59:16.591706 2ee39410-dfb0-4f0f-b139-a551b318d1f6 425 +368 uri://ed-fi.org/CostRateDescriptor Flat Fee Flat Fee Flat Fee \N \N \N 2021-11-05 18:59:16.605324 2021-11-05 18:59:16.602267 1a38f217-23a6-4378-86c1-d443a4b8c9d1 428 +370 uri://ed-fi.org/CountryDescriptor AE United Arab Emirates United Arab Emirates \N \N \N 2021-11-05 18:59:16.645489 2021-11-05 18:59:16.644317 b53d0b76-eed3-4417-9c6d-356962b47327 430 +374 uri://ed-fi.org/CountryDescriptor AL Albania Albania \N \N \N 2021-11-05 18:59:16.660315 2021-11-05 18:59:16.660042 26d581a2-d7dd-432f-a35e-93d7fb4705cb 434 +262 uri://ed-fi.org/AttendanceEventCategoryDescriptor Early departure Early departure Early departure \N \N \N 2021-11-05 18:59:15.774499 2021-11-05 18:59:15.773956 c0166493-d603-4b69-8e34-f25c0547a741 322 +263 uri://ed-fi.org/BarrierToInternetAccessInResidenceDescriptor Not Affordable Not Affordable The student cannot access the internet in their primary place of residence because internet service is not affordable. \N \N \N 2021-11-05 18:59:15.80831 2021-11-05 18:59:15.807148 8b41035e-dfc0-4501-888a-c440da9b3538 323 +268 uri://ed-fi.org/BehaviorDescriptor School Violation School Violation School Violation \N \N \N 2021-11-05 18:59:15.849767 2021-11-05 18:59:15.848604 35dfe4a2-4396-47a4-b96c-49b5451d237e 328 +271 uri://ed-fi.org/CalendarEventDescriptor Holiday Holiday Instruction cancelled or reduced due to a holiday \N \N \N 2021-11-05 18:59:15.895406 2021-11-05 18:59:15.894195 6590d6f7-47be-4e19-a073-30aec5fc20a9 331 +275 uri://ed-fi.org/CalendarEventDescriptor Strike Strike Instruction cancelled or reduced due to a strike \N \N \N 2021-11-05 18:59:15.910853 2021-11-05 18:59:15.91081 174c4a42-8e3f-48ac-9298-a3065cf5604d 335 +278 uri://ed-fi.org/CalendarEventDescriptor Student late arrival/early dismissal Student late arrival/early dismissal Abbreviated instructional day due to student late arrival or early dismissal \N \N \N 2021-11-05 18:59:15.914593 2021-11-05 18:59:15.914553 aab6d2e2-09c3-40df-a42c-97fa8893421a 338 +283 uri://ed-fi.org/CalendarTypeDescriptor School School School \N \N \N 2021-11-05 18:59:15.961321 2021-11-05 18:59:15.960107 8631b443-e26a-4f0c-b2c1-732ef952eaf3 343 +286 uri://ed-fi.org/CareerPathwayDescriptor Arts, A/V Technology and Communications Arts, A/V Technology and Communications Arts, A/V Technology and Communications \N \N \N 2021-11-05 18:59:16.008647 2021-11-05 18:59:16.007475 77b776a5-c560-4f12-a9c2-3c0b4011e195 346 +290 uri://ed-fi.org/CareerPathwayDescriptor Finance Finance Finance \N \N \N 2021-11-05 18:59:16.022627 2021-11-05 18:59:16.022557 c7fb5e5f-5564-4cbe-8cf3-90832d7e9220 350 +292 uri://ed-fi.org/CareerPathwayDescriptor Government and Public Administration Government and Public Administration Government and Public Administration \N \N \N 2021-11-05 18:59:16.025703 2021-11-05 18:59:16.025664 9422d8b7-0b14-4c38-95fb-4814abcf9ea4 352 +295 uri://ed-fi.org/CareerPathwayDescriptor Human Services Human Services Human Services \N \N \N 2021-11-05 18:59:16.033189 2021-11-05 18:59:16.033169 b403d9a7-2752-47ae-9c12-1a5fab9c39ab 355 +297 uri://ed-fi.org/CareerPathwayDescriptor Law, Public Safety, Corrections and Security Law, Public Safety, Corrections and Security Law, Public Safety, Corrections and Security \N \N \N 2021-11-05 18:59:16.038286 2021-11-05 18:59:16.038224 43172b8b-35f1-44aa-8028-ae2818110a54 357 +299 uri://ed-fi.org/CareerPathwayDescriptor Marketing, Sales and Service Marketing, Sales and Service Marketing, Sales and Service \N \N \N 2021-11-05 18:59:16.045464 2021-11-05 18:59:16.045426 d49fe47d-2d26-45aa-bdf8-43ca0f56418f 359 +300 uri://ed-fi.org/CareerPathwayDescriptor Science, Technology, Engineering and Mathematics Science, Technology, Engineering and Mathematics Science, Technology, Engineering and Mathematics \N \N \N 2021-11-05 18:59:16.049276 2021-11-05 18:59:16.049236 0cb38de7-805c-4e8b-9cfa-827a017ace92 360 +303 uri://ed-fi.org/CharterApprovalAgencyTypeDescriptor Public charter school board Public charter school board Public charter school board \N \N \N 2021-11-05 18:59:16.086924 2021-11-05 18:59:16.085753 375cf681-66c7-425f-a3a3-82ca18d35c62 363 +309 uri://ed-fi.org/CharterStatusDescriptor Not a Charter School Not a Charter School Not a Charter School \N \N \N 2021-11-05 18:59:16.132777 2021-11-05 18:59:16.131608 18cae3cd-0564-4230-870f-0335299963c3 369 +312 uri://ed-fi.org/CitizenshipStatusDescriptor Permanent resident Permanent resident Permanent resident \N \N \N 2021-11-05 18:59:16.178839 2021-11-05 18:59:16.177675 d1dd7a66-a5cd-4049-8199-b93e96619d79 372 +319 uri://ed-fi.org/ClassroomPositionDescriptor Substitute Teacher Substitute Teacher Substitute Teacher \N \N \N 2021-11-05 18:59:16.225439 2021-11-05 18:59:16.223921 ccf0c625-9eca-4b03-ae5d-99e8e0bd8b55 379 +323 uri://ed-fi.org/CohortScopeDescriptor Network Network Network \N \N \N 2021-11-05 18:59:16.273633 2021-11-05 18:59:16.272107 748b3aa7-9167-4f6c-9935-d96c8a1e8bc1 383 +325 uri://ed-fi.org/CohortScopeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:16.287787 2021-11-05 18:59:16.286543 da437d93-11a7-4111-99e0-a06b60ded395 385 +326 uri://ed-fi.org/CohortScopeDescriptor School School School \N \N \N 2021-11-05 18:59:16.291562 2021-11-05 18:59:16.291524 5c84540b-b897-49b3-968c-37534e7155a3 386 +330 uri://ed-fi.org/CohortTypeDescriptor Academic Intervention Academic Intervention Academic Intervention \N \N \N 2021-11-05 18:59:16.340759 2021-11-05 18:59:16.339525 b7f03655-2255-4730-ae32-9edbe594f7f0 390 +333 uri://ed-fi.org/CohortTypeDescriptor Extracurricular Activity Extracurricular Activity Extracurricular Activity \N \N \N 2021-11-05 18:59:16.353717 2021-11-05 18:59:16.352631 0cc3000e-0260-466f-809f-68f8278f54cb 393 +338 uri://ed-fi.org/CohortTypeDescriptor Study Hall Study Hall Study Hall \N \N \N 2021-11-05 18:59:16.365318 2021-11-05 18:59:16.365272 de7f9d93-16f7-49c0-bf3a-fe2001e938c0 398 +340 uri://ed-fi.org/CohortYearTypeDescriptor Fourth grade Fourth grade Fourth grade \N \N \N 2021-11-05 18:59:16.404619 2021-11-05 18:59:16.403452 5a406eec-22ed-4a81-83e9-e7f82b610d76 400 +347 uri://ed-fi.org/CohortYearTypeDescriptor Eighth grade Eighth grade Eighth grade \N \N \N 2021-11-05 18:59:16.423248 2021-11-05 18:59:16.423214 6ed9e026-5324-4ba3-b330-ec8f46dcb6fd 407 +349 uri://ed-fi.org/CohortYearTypeDescriptor Tenth grade Tenth grade Tenth grade \N \N \N 2021-11-05 18:59:16.431818 2021-11-05 18:59:16.431783 ce6e95d6-da3c-4aa2-86a3-8acaf425aaa4 409 +351 uri://ed-fi.org/CohortYearTypeDescriptor Twelfth grade Twelfth grade Twelfth grade \N \N \N 2021-11-05 18:59:16.43613 2021-11-05 18:59:16.436029 92aecfca-2f84-4d42-909e-1164fc4738a2 411 +353 uri://ed-fi.org/CompetencyLevelDescriptor Advanced Advanced Advanced \N \N \N 2021-11-05 18:59:16.479189 2021-11-05 18:59:16.477993 cb557a17-c234-4a0d-a663-909f8cfb8cec 413 +358 uri://ed-fi.org/CompetencyLevelDescriptor Pass Pass Pass \N \N \N 2021-11-05 18:59:16.493759 2021-11-05 18:59:16.493481 64af61ba-cf85-428d-b3d8-e743e1e3541d 418 +360 uri://ed-fi.org/ContentClassDescriptor Education Research Education Research Education Research \N \N \N 2021-11-05 18:59:16.541466 2021-11-05 18:59:16.539961 0413356d-ac58-4ff0-89d9-b203e0e22c09 420 +367 uri://ed-fi.org/ContinuationofServicesReasonDescriptor Previously migratory secondary student Previously migratory secondary student continuing credit accrual Previously migratory secondary student continuing secondary school credit accrual \N \N \N 2021-11-05 18:59:16.593583 2021-11-05 18:59:16.591708 4cafbff1-5e24-41b2-9e5e-e2a442fb5f16 427 +369 uri://ed-fi.org/CostRateDescriptor Per Student Per Student Per Student \N \N \N 2021-11-05 18:59:16.608314 2021-11-05 18:59:16.608109 191f19b6-3ded-49ed-bc09-153f5a2368c2 429 +371 uri://ed-fi.org/CountryDescriptor AG Antigua and Barbuda Antigua and Barbuda \N \N \N 2021-11-05 18:59:16.645509 2021-11-05 18:59:16.644324 53c0c9bf-44f3-4787-953c-272aa31c6b21 431 +376 uri://ed-fi.org/CountryDescriptor AM Armenia Armenia \N \N \N 2021-11-05 18:59:16.66261 2021-11-05 18:59:16.662566 3c99067f-9e86-4375-996a-005a60358cb3 436 +380 uri://ed-fi.org/CountryDescriptor AS American Samoa American Samoa \N \N \N 2021-11-05 18:59:16.675856 2021-11-05 18:59:16.675411 bc993ee0-333f-4ef4-8168-da48d3aeb5dc 440 +382 uri://ed-fi.org/CountryDescriptor AU Australia Australia \N \N \N 2021-11-05 18:59:16.679006 2021-11-05 18:59:16.678986 b7523850-90f9-414b-acf4-410d68e6a44f 442 +384 uri://ed-fi.org/CountryDescriptor AZ Azerbaijan Azerbaijan \N \N \N 2021-11-05 18:59:16.688942 2021-11-05 18:59:16.688894 c2dc7ef7-2c74-43e9-b1ff-a8554a8e7ccf 444 +387 uri://ed-fi.org/CountryDescriptor BB Barbados Barbados \N \N \N 2021-11-05 18:59:16.698604 2021-11-05 18:59:16.698487 115d460d-e263-4648-ac7e-89ee27e04acd 447 +390 uri://ed-fi.org/CountryDescriptor BF Burkina Faso Burkina Faso \N \N \N 2021-11-05 18:59:16.708477 2021-11-05 18:59:16.708435 8d23d62a-59eb-4da6-a6cf-3f8a81b5f315 450 +392 uri://ed-fi.org/CountryDescriptor BH Bahrain Bahrain \N \N \N 2021-11-05 18:59:16.712706 2021-11-05 18:59:16.712667 b37f88ac-c92f-4271-b6e7-630e22567e13 452 +395 uri://ed-fi.org/CountryDescriptor BL Saint Barthélemy Saint Barthélemy \N \N \N 2021-11-05 18:59:16.720126 2021-11-05 18:59:16.720086 3ad893bd-46f0-4bf3-9c95-6ada72eb7be5 455 +397 uri://ed-fi.org/CountryDescriptor BM Bermuda Bermuda \N \N \N 2021-11-05 18:59:16.724374 2021-11-05 18:59:16.724255 54c38cf1-240f-44d2-a698-460cea8ab24b 457 +401 uri://ed-fi.org/CountryDescriptor BR Brazil Brazil \N \N \N 2021-11-05 18:59:16.734882 2021-11-05 18:59:16.734763 9649c8a9-376f-40a1-8e8e-02ac8af27c7e 461 +403 uri://ed-fi.org/CountryDescriptor BV Bouvet Island Bouvet Island \N \N \N 2021-11-05 18:59:16.741153 2021-11-05 18:59:16.741084 96dd8db0-ba10-4dd8-a851-0ea9efcb28d3 463 +357 uri://ed-fi.org/CompetencyLevelDescriptor Proficient Proficient Proficient \N \N \N 2021-11-05 18:59:16.493895 2021-11-05 18:59:16.493847 15ad9272-635a-4e44-be2b-b81cb8cff2bf 417 +361 uri://ed-fi.org/ContentClassDescriptor Vendor Intervention Offering Vendor Intervention Offering Vendor Intervention Offering \N \N \N 2021-11-05 18:59:16.541625 2021-11-05 18:59:16.539963 bd011154-ea82-4bb2-a755-b559b3b0d4f1 421 +366 uri://ed-fi.org/ContinuationofServicesReasonDescriptor Ceased to be migratory during previous term Ceased to be migratory in previous term - comparable services not available Ceased to be migratory during previous school term and no comparable services are available \N \N \N 2021-11-05 18:59:16.59324 2021-11-05 18:59:16.591718 3d1a960d-f17a-477d-a5bf-cda6c07af216 426 +372 uri://ed-fi.org/CountryDescriptor AD Andorra Andorra \N \N \N 2021-11-05 18:59:16.645672 2021-11-05 18:59:16.644335 82a76b0b-970f-4ade-a6f8-8b42aa7b15d6 432 +375 uri://ed-fi.org/CountryDescriptor AI Anguilla Anguilla \N \N \N 2021-11-05 18:59:16.660532 2021-11-05 18:59:16.660461 507b2767-61ca-4644-a32b-fe67c4f24d2d 435 +386 uri://ed-fi.org/CountryDescriptor BA Bosnia and Herzegovina Bosnia and Herzegovina \N \N \N 2021-11-05 18:59:16.696797 2021-11-05 18:59:16.696753 42ef301d-be85-4cc6-8391-adddbcea78b2 446 +409 uri://ed-fi.org/CountryDescriptor CC Cocos (Keeling) Islands Cocos (Keeling) Islands \N \N \N 2021-11-05 18:59:16.759283 2021-11-05 18:59:16.759173 a809493b-0ffd-4bd2-8308-4b3a925380e3 469 +430 uri://ed-fi.org/CountryDescriptor DO Dominican Republic Dominican Republic \N \N \N 2021-11-05 18:59:16.818036 2021-11-05 18:59:16.817994 b2ad5b95-1713-46c8-91f3-5c62f2931179 490 +435 uri://ed-fi.org/CountryDescriptor EG Egypt Egypt \N \N \N 2021-11-05 18:59:16.831991 2021-11-05 18:59:16.831968 23968663-44f5-491d-a489-fdc8b877fda5 495 +444 uri://ed-fi.org/CountryDescriptor FR France France \N \N \N 2021-11-05 18:59:16.859113 2021-11-05 18:59:16.859061 6cbdbdba-3939-4b88-ab6b-3c8abce2eac7 504 +466 uri://ed-fi.org/CountryDescriptor HN Honduras Honduras \N \N \N 2021-11-05 18:59:16.921955 2021-11-05 18:59:16.921685 cb1b587b-8c94-408e-a437-b3ceaa42d9ad 526 +505 uri://ed-fi.org/CountryDescriptor LY Libya Libya \N \N \N 2021-11-05 18:59:17.038234 2021-11-05 18:59:17.037816 22767def-309b-4bdb-a5f7-2aed1161d661 565 +510 uri://ed-fi.org/CountryDescriptor MF Saint Martin (French part) Saint Martin (French part) \N \N \N 2021-11-05 18:59:17.055488 2021-11-05 18:59:17.055382 24304fcb-2225-4c7f-8b50-9664dc92c854 570 +516 uri://ed-fi.org/CountryDescriptor MN Mongolia Mongolia \N \N \N 2021-11-05 18:59:17.071147 2021-11-05 18:59:17.071092 99c2fed3-5ac4-4dfd-bfcf-c22ab8ac1039 576 +539 uri://ed-fi.org/CountryDescriptor NU Niue Niue \N \N \N 2021-11-05 18:59:17.135773 2021-11-05 18:59:17.135708 d7d627f6-fb4e-426e-b4df-b5e3ea98d1c3 599 +542 uri://ed-fi.org/CountryDescriptor PA Panama Panama \N \N \N 2021-11-05 18:59:17.149315 2021-11-05 18:59:17.149049 98392e3d-9fae-4ce7-b5ab-27406d31a27c 602 +561 uri://ed-fi.org/CountryDescriptor RW Rwanda Rwanda \N \N \N 2021-11-05 18:59:17.199342 2021-11-05 18:59:17.199236 bb31a554-506a-440d-ba59-ad2e00230481 621 +579 uri://ed-fi.org/CountryDescriptor SV El Salvador El Salvador \N \N \N 2021-11-05 18:59:17.245922 2021-11-05 18:59:17.245694 8ccb182f-06b1-47df-8943-68b56f09cbc0 639 +596 uri://ed-fi.org/CountryDescriptor TV Tuvalu Tuvalu \N \N \N 2021-11-05 18:59:17.298586 2021-11-05 18:59:17.298547 04b94cf4-12d4-4b9f-814d-2b41c989e4bb 656 +621 uri://ed-fi.org/CourseAttemptResultDescriptor Pass Pass Pass \N \N \N 2021-11-05 18:59:17.402109 2021-11-05 18:59:17.400983 79f2e4c7-9b13-4b1f-9709-50bdc69b22a0 681 +626 uri://ed-fi.org/CourseDefinedByDescriptor SEA SEA SEA \N \N \N 2021-11-05 18:59:17.453821 2021-11-05 18:59:17.452261 d583e334-a5c1-409d-bfb1-57c69e922d4f 686 +628 uri://ed-fi.org/CourseGPAApplicabilityDescriptor Not Applicable Not Applicable Not Applicable \N \N \N 2021-11-05 18:59:17.507687 2021-11-05 18:59:17.50632 7d392fdf-dff8-4913-9d85-c324fd0675c7 688 +632 uri://ed-fi.org/CourseIdentificationSystemDescriptor NCES Pilot SNCCS course code NCES Pilot SNCCS course code NCES Pilot SNCCS course code \N \N \N 2021-11-05 18:59:17.524812 2021-11-05 18:59:17.524032 cbd48b0c-e7a0-4469-a6ac-82f567087b55 692 +636 uri://ed-fi.org/CourseIdentificationSystemDescriptor School course code School course code School course code \N \N \N 2021-11-05 18:59:17.53828 2021-11-05 18:59:17.538244 99b8a258-729b-4bb0-a999-19a16ff3ec68 696 +641 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Basic Basic Basic \N \N \N 2021-11-05 18:59:17.588692 2021-11-05 18:59:17.587156 7670bd60-32fb-41f5-b0fd-8fd68d0a5cad 701 +646 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Correspondence Correspondence Correspondence \N \N \N 2021-11-05 18:59:17.605296 2021-11-05 18:59:17.605235 3f896bcc-3bfc-4404-b362-51162f9593b3 706 +648 uri://ed-fi.org/CourseLevelCharacteristicDescriptor English Language Learner English Language Learner English Language Learner \N \N \N 2021-11-05 18:59:17.616506 2021-11-05 18:59:17.616376 9d44bbaf-b2bb-424d-937f-1d54bf1dc053 708 +664 uri://ed-fi.org/CourseRepeatCodeDescriptor Repeat Counted Repeat Counted Repeat Counted \N \N \N 2021-11-05 18:59:17.693254 2021-11-05 18:59:17.691909 8f6e903c-5424-4790-857d-7ddb7f7108aa 724 +670 uri://ed-fi.org/CredentialFieldDescriptor Computer Science Computer Science Computer Science \N \N \N 2021-11-05 18:59:17.752342 2021-11-05 18:59:17.751007 6e4c9ee3-9780-458d-bc5e-acdde60fa2b5 730 +684 uri://ed-fi.org/CredentialTypeDescriptor Licensure Licensure Licensure \N \N \N 2021-11-05 18:59:17.852168 2021-11-05 18:59:17.851005 0bc90ce5-a3de-46fb-a7dc-1ad24c984f97 744 +690 uri://gbisd.edu/CreditCategoryDescriptor Dual Credit Dual Credit Dual Credit \N \N \N 2021-11-05 18:59:17.910083 2021-11-05 18:59:17.908759 83db3603-69d3-4f84-b221-f1dd5f80fd71 750 +693 uri://ed-fi.org/CreditTypeDescriptor Carnegie unit Carnegie unit Carnegie unit \N \N \N 2021-11-05 18:59:17.965988 2021-11-05 18:59:17.964852 dbd6594d-8a4d-4e09-b476-743fd230d91f 753 +711 uri://ed-fi.org/CTEProgramServiceDescriptor Agriculture, Food and Natural Resources Agriculture, Food and Natural Resources Agriculture, Food and Natural Resources \N \N \N 2021-11-05 18:59:18.064127 2021-11-05 18:59:18.062676 aaaf874e-4944-43a5-8f3d-f6acf1a0db25 771 +714 uri://ed-fi.org/CTEProgramServiceDescriptor Government and Public Administration Government and Public Administration Government and Public Administration \N \N \N 2021-11-05 18:59:18.079678 2021-11-05 18:59:18.079578 ead97b90-7aea-49b2-b845-5a95050cfde6 774 +722 uri://ed-fi.org/CTEProgramServiceDescriptor Manufacturing Manufacturing Manufacturing \N \N \N 2021-11-05 18:59:18.109535 2021-11-05 18:59:18.109363 1fb0c371-7d4c-4ba5-a29e-2e09cf8be2b7 782 +726 uri://ed-fi.org/CurriculumUsedDescriptor Creative curriculum preschool Creative curriculum preschool Creative curriculum preschool \N \N \N 2021-11-05 18:59:18.166109 2021-11-05 18:59:18.164939 3fd405d9-b98f-44d7-9334-bd4edca235f4 786 +738 uri://ed-fi.org/DeliveryMethodDescriptor Whole School Whole School Whole School \N \N \N 2021-11-05 18:59:18.235583 2021-11-05 18:59:18.233626 e4765985-f20d-45ee-82e0-0273a3a3ddf9 798 +740 uri://ed-fi.org/DiplomaLevelDescriptor Cum laude Cum laude Cum laude \N \N \N 2021-11-05 18:59:18.298629 2021-11-05 18:59:18.297415 1cac8e1d-4ec0-421c-b6fc-2763e5f0d254 800 +745 uri://ed-fi.org/DiplomaLevelDescriptor Open Enrollment Open Enrollment Open Enrollment \N \N \N 2021-11-05 18:59:18.314733 2021-11-05 18:59:18.314569 80b21919-d3e7-45f6-af21-c50836460b9d 805 +751 uri://ed-fi.org/DiplomaTypeDescriptor Career and Technical Education certificate Career and Technical Education certificate Career and Technical Education certificate \N \N \N 2021-11-05 18:59:18.372592 2021-11-05 18:59:18.370785 bb4e22d3-386d-4f22-8bdf-d71979ade591 811 +754 uri://ed-fi.org/DiplomaTypeDescriptor High school equivalency credential, other than GED High school equivalency credential, other than GED High school equivalency credential, other than GED \N \N \N 2021-11-05 18:59:18.389569 2021-11-05 18:59:18.389457 c4164f12-66c1-4ad9-a58a-602dc7a37138 814 +768 uri://ed-fi.org/DisabilityDescriptor Deaf-Blindness Deaf-Blindness Deaf-Blindness \N \N \N 2021-11-05 18:59:18.464512 2021-11-05 18:59:18.463274 b125b277-11c3-480d-b68b-a84c90a006b5 828 +787 uri://ed-fi.org/DisabilityDesignationDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.572776 2021-11-05 18:59:18.571537 3bc3028b-c51c-4a18-89b5-f28e10f8baa8 847 +800 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Continuation Of Prior Year's Disciplinary Action Continuation Of Previous Year's Disciplinary Action Assignment Continuation Of Previous Year's Disciplinary Action Assignment \N \N \N 2021-11-05 18:59:18.656327 2021-11-05 18:59:18.654633 62365877-1c99-4e23-9893-e6ff0437787f 860 +803 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Student Withdrew From School Student Withdrew From School Student Withdrew From School \N \N \N 2021-11-05 18:59:18.673384 2021-11-05 18:59:18.673331 d4e35f6c-8557-45eb-ae19-5cc426759d6d 863 +377 uri://ed-fi.org/CountryDescriptor AO Angola Angola \N \N \N 2021-11-05 18:59:16.662695 2021-11-05 18:59:16.66266 b1bdb219-f5e0-4b63-bdc9-29c9d5222ad3 437 +378 uri://ed-fi.org/CountryDescriptor AQ Antarctica Antarctica \N \N \N 2021-11-05 18:59:16.670255 2021-11-05 18:59:16.670203 b30cf7cf-70fb-4d1b-a859-5486e3e943c9 438 +379 uri://ed-fi.org/CountryDescriptor AR Argentina Argentina \N \N \N 2021-11-05 18:59:16.674178 2021-11-05 18:59:16.674137 0d196962-552e-44f7-960c-7af4b0916e9a 439 +381 uri://ed-fi.org/CountryDescriptor AT Austria Austria \N \N \N 2021-11-05 18:59:16.67678 2021-11-05 18:59:16.676743 5f9634c8-d041-40c8-a2f2-49e7f35d3e18 441 +383 uri://ed-fi.org/CountryDescriptor AW Aruba Aruba \N \N \N 2021-11-05 18:59:16.68368 2021-11-05 18:59:16.683642 23b3017c-3b15-4765-b478-6d145e33b3cc 443 +385 uri://ed-fi.org/CountryDescriptor AX Åland Islands Åland Islands \N \N \N 2021-11-05 18:59:16.694438 2021-11-05 18:59:16.694395 81ac64e9-7be2-4ccf-a2d4-9341704cd7ff 445 +388 uri://ed-fi.org/CountryDescriptor BD Bangladesh Bangladesh \N \N \N 2021-11-05 18:59:16.699591 2021-11-05 18:59:16.699456 7d9559ac-5f04-4e0f-aa74-927fd2fd3511 448 +389 uri://ed-fi.org/CountryDescriptor BE Belgium Belgium \N \N \N 2021-11-05 18:59:16.703648 2021-11-05 18:59:16.70361 6c45045a-7333-49ed-bea0-77faf0b0f652 449 +391 uri://ed-fi.org/CountryDescriptor BG Bulgaria Bulgaria \N \N \N 2021-11-05 18:59:16.709588 2021-11-05 18:59:16.709487 8c894bf8-f5d2-435c-bab3-7ec5eaa75b4c 451 +393 uri://ed-fi.org/CountryDescriptor BI Burundi Burundi \N \N \N 2021-11-05 18:59:16.713783 2021-11-05 18:59:16.713705 e392aafb-184f-4d87-bbed-9ded7522d772 453 +394 uri://ed-fi.org/CountryDescriptor BJ Benin Benin \N \N \N 2021-11-05 18:59:16.71785 2021-11-05 18:59:16.717608 0692fe4c-612f-428f-a4ab-f48ced93d53b 454 +396 uri://ed-fi.org/CountryDescriptor BN Brunei Darussalam Brunei Darussalam \N \N \N 2021-11-05 18:59:16.723906 2021-11-05 18:59:16.72384 26631445-180f-4a95-bd0f-c0ab02035d93 456 +398 uri://ed-fi.org/CountryDescriptor BO Bolivia, Plurinational State of Bolivia, Plurinational State of \N \N \N 2021-11-05 18:59:16.72844 2021-11-05 18:59:16.728404 2fd9edc7-e057-4521-8ea2-dad344f53edd 458 +399 uri://ed-fi.org/CountryDescriptor BQ Bonaire, Sint Eustatius and Saba Bonaire, Sint Eustatius and Saba \N \N \N 2021-11-05 18:59:16.73089 2021-11-05 18:59:16.730849 0f291701-ea2b-4154-b316-b2e5a5a71e7f 459 +400 uri://ed-fi.org/CountryDescriptor BS Bahamas Bahamas \N \N \N 2021-11-05 18:59:16.73444 2021-11-05 18:59:16.734405 c8a550e7-adcf-4c83-a742-811b05922c72 460 +402 uri://ed-fi.org/CountryDescriptor BT Bhutan Bhutan \N \N \N 2021-11-05 18:59:16.73909 2021-11-05 18:59:16.739044 32713010-cab5-49b0-8069-6fda56ace75f 462 +404 uri://ed-fi.org/CountryDescriptor BW Botswana Botswana \N \N \N 2021-11-05 18:59:16.744274 2021-11-05 18:59:16.744232 8464c428-42b1-47e3-88d6-ff11456d7922 464 +406 uri://ed-fi.org/CountryDescriptor CA Canada Canada \N \N \N 2021-11-05 18:59:16.750652 2021-11-05 18:59:16.750613 e9f1ab52-3077-4a5b-ada2-801da259da54 466 +408 uri://ed-fi.org/CountryDescriptor CD Congo, the Democratic Republic of the Congo, the Democratic Republic of the \N \N \N 2021-11-05 18:59:16.756701 2021-11-05 18:59:16.756665 cab08c4f-6032-4af4-bf75-74b70dd5f207 468 +410 uri://ed-fi.org/CountryDescriptor CF Central African Republic Central African Republic \N \N \N 2021-11-05 18:59:16.759888 2021-11-05 18:59:16.759844 4db53d11-bb56-4297-9798-0b7a1ecaa7b7 470 +412 uri://ed-fi.org/CountryDescriptor CH Switzerland Switzerland \N \N \N 2021-11-05 18:59:16.765071 2021-11-05 18:59:16.765029 9973c923-7ddc-42b1-a842-5cbea6cc9ee8 472 +413 uri://ed-fi.org/CountryDescriptor CI Côte d'Ivoire Côte d'Ivoire \N \N \N 2021-11-05 18:59:16.769745 2021-11-05 18:59:16.769681 5a93bd49-764f-4a7f-befc-03708f798efa 473 +414 uri://ed-fi.org/CountryDescriptor CK Cook Islands Cook Islands \N \N \N 2021-11-05 18:59:16.772379 2021-11-05 18:59:16.772331 ce2cf47a-b51f-4056-966b-3b9cd69f22db 474 +415 uri://ed-fi.org/CountryDescriptor CL Chile Chile \N \N \N 2021-11-05 18:59:16.775141 2021-11-05 18:59:16.77508 1a0a0331-fe05-4b34-ade5-74007a11a4d3 475 +417 uri://ed-fi.org/CountryDescriptor CN China China \N \N \N 2021-11-05 18:59:16.780632 2021-11-05 18:59:16.780564 20c1e836-6265-46f6-896e-7cf54cb63076 477 +419 uri://ed-fi.org/CountryDescriptor CR Costa Rica Costa Rica \N \N \N 2021-11-05 18:59:16.785549 2021-11-05 18:59:16.785511 82d0f48f-ae46-4f2e-8605-8d5740ebd0ea 479 +420 uri://ed-fi.org/CountryDescriptor CU Cuba Cuba \N \N \N 2021-11-05 18:59:16.788085 2021-11-05 18:59:16.787915 5a92fb17-1c7e-4c79-b6c4-677c5cd6837e 480 +421 uri://ed-fi.org/CountryDescriptor CV Cabo Verde Cabo Verde \N \N \N 2021-11-05 18:59:16.790467 2021-11-05 18:59:16.790427 1e064ba4-bf03-43b4-8708-65fd536c7e15 481 +422 uri://ed-fi.org/CountryDescriptor CW Curaçao Curaçao \N \N \N 2021-11-05 18:59:16.79304 2021-11-05 18:59:16.792975 18c21765-b63b-4e34-8c89-d65f778300d0 482 +424 uri://ed-fi.org/CountryDescriptor CY Cyprus Cyprus \N \N \N 2021-11-05 18:59:16.79804 2021-11-05 18:59:16.798011 ec2aef51-6b93-4ae6-b741-2233f8d34a6e 484 +425 uri://ed-fi.org/CountryDescriptor CZ Czech Republic Czech Republic \N \N \N 2021-11-05 18:59:16.80106 2021-11-05 18:59:16.80102 ea7bb1ae-215f-4e34-9b1e-f9f8e8f133ae 485 +426 uri://ed-fi.org/CountryDescriptor DE Germany Germany \N \N \N 2021-11-05 18:59:16.803815 2021-11-05 18:59:16.803771 bdeff6d9-6609-4ee1-8e1c-c0da85116d77 486 +428 uri://ed-fi.org/CountryDescriptor DK Denmark Denmark \N \N \N 2021-11-05 18:59:16.812474 2021-11-05 18:59:16.812435 2d59eded-81f3-4f14-8d4a-554c84c6e94a 488 +429 uri://ed-fi.org/CountryDescriptor DM Dominica Dominica \N \N \N 2021-11-05 18:59:16.817824 2021-11-05 18:59:16.816824 d53b2d2d-da6c-4f5a-ad45-24bf94317711 489 +432 uri://ed-fi.org/CountryDescriptor EC Ecuador Ecuador \N \N \N 2021-11-05 18:59:16.822865 2021-11-05 18:59:16.822848 3cd8f574-a5f0-4370-bc4d-cfbc92426e80 492 +433 uri://ed-fi.org/CountryDescriptor EE Estonia Estonia \N \N \N 2021-11-05 18:59:16.82699 2021-11-05 18:59:16.826952 12ee75ee-e586-4dc9-ba87-989a9f07546e 493 +434 uri://ed-fi.org/CountryDescriptor EH Western Sahara Western Sahara \N \N \N 2021-11-05 18:59:16.830916 2021-11-05 18:59:16.830871 ef34eb61-a0a9-43cd-9c20-549018e5b112 494 +436 uri://ed-fi.org/CountryDescriptor ER Eritrea Eritrea \N \N \N 2021-11-05 18:59:16.833738 2021-11-05 18:59:16.833687 a768a1ee-5dcf-44e0-a761-c425e8a6456a 496 +437 uri://ed-fi.org/CountryDescriptor ES Spain Spain \N \N \N 2021-11-05 18:59:16.836147 2021-11-05 18:59:16.83609 98e39cfa-a45e-4461-896f-da9deace558e 497 +438 uri://ed-fi.org/CountryDescriptor ET Ethiopia Ethiopia \N \N \N 2021-11-05 18:59:16.83971 2021-11-05 18:59:16.839678 7da10382-3f44-4369-8ef7-daac814c54ad 498 +440 uri://ed-fi.org/CountryDescriptor FJ Fiji Fiji \N \N \N 2021-11-05 18:59:16.845154 2021-11-05 18:59:16.845023 e198d4e6-5f28-4a08-83e8-80b7a8af520b 500 +441 uri://ed-fi.org/CountryDescriptor FK Falkland Islands (Malvinas) Falkland Islands (Malvinas) \N \N \N 2021-11-05 18:59:16.853254 2021-11-05 18:59:16.853016 fc40cda4-3dff-471a-b5c4-318a66e58eba 501 +442 uri://ed-fi.org/CountryDescriptor FM Micronesia, Federated States of Micronesia, Federated States of \N \N \N 2021-11-05 18:59:16.858997 2021-11-05 18:59:16.858813 93d932f5-cbc4-416a-8887-2dca57a78e1e 502 +445 uri://ed-fi.org/CountryDescriptor GA Gabon Gabon \N \N \N 2021-11-05 18:59:16.8632 2021-11-05 18:59:16.863137 2eb4ecc7-7c1e-4bb1-abf3-6acaad06ba8c 505 +446 uri://ed-fi.org/CountryDescriptor GB United Kingdom of Great Britain and Northern Ireland United Kingdom of Great Britain and Northern Ireland \N \N \N 2021-11-05 18:59:16.86796 2021-11-05 18:59:16.867915 7a5de682-8846-4d39-a19c-5e13f87c6be8 506 +448 uri://ed-fi.org/CountryDescriptor GD Grenada Grenada \N \N \N 2021-11-05 18:59:16.872332 2021-11-05 18:59:16.872313 b8aacc9a-73ca-4b80-9e70-8f8e6f7aab76 508 +450 uri://ed-fi.org/CountryDescriptor GG Guernsey Guernsey \N \N \N 2021-11-05 18:59:16.877598 2021-11-05 18:59:16.877535 6b878b1f-0a67-4491-a754-7a196a1d4ab8 510 +452 uri://ed-fi.org/CountryDescriptor GI Gibraltar Gibraltar \N \N \N 2021-11-05 18:59:16.883892 2021-11-05 18:59:16.883851 f8efad31-9566-4c46-a68d-fe8afcd0ef85 512 +453 uri://ed-fi.org/CountryDescriptor GL Greenland Greenland \N \N \N 2021-11-05 18:59:16.886605 2021-11-05 18:59:16.886359 a9061eb4-c836-4084-a9f4-3e4bf1bf997b 513 +455 uri://ed-fi.org/CountryDescriptor GN Guinea Guinea \N \N \N 2021-11-05 18:59:16.891663 2021-11-05 18:59:16.891629 5a0409dd-be39-4e20-a1c7-4e1797e081ef 515 +456 uri://ed-fi.org/CountryDescriptor GP Guadeloupe Guadeloupe \N \N \N 2021-11-05 18:59:16.894718 2021-11-05 18:59:16.89468 2c39c7b0-af1d-4662-b13d-bdd840dd6b02 516 +457 uri://ed-fi.org/CountryDescriptor GR Greece Greece \N \N \N 2021-11-05 18:59:16.89846 2021-11-05 18:59:16.898381 3766987d-16d2-4e66-ba26-0216dd9c5a56 517 +459 uri://ed-fi.org/CountryDescriptor GS South Georgia and the South Sandwich Islands South Georgia and the South Sandwich Islands \N \N \N 2021-11-05 18:59:16.90159 2021-11-05 18:59:16.901549 4d906954-d192-40a2-8b3f-1a273d847a9d 519 +460 uri://ed-fi.org/CountryDescriptor GT Guatemala Guatemala \N \N \N 2021-11-05 18:59:16.904499 2021-11-05 18:59:16.904397 b5886878-ce09-4f69-9703-57428da44b77 520 +461 uri://ed-fi.org/CountryDescriptor GU Guam Guam \N \N \N 2021-11-05 18:59:16.908284 2021-11-05 18:59:16.908248 9cc08aa0-abcf-4d18-8217-0484cbc0d4a7 521 +405 uri://ed-fi.org/CountryDescriptor BY Belarus Belarus \N \N \N 2021-11-05 18:59:16.745451 2021-11-05 18:59:16.745331 3cc2dcc6-4d65-4b2b-bcc7-c1ba05a0833b 465 +407 uri://ed-fi.org/CountryDescriptor BZ Belize Belize \N \N \N 2021-11-05 18:59:16.752061 2021-11-05 18:59:16.752028 b84d4788-c536-4e98-8592-3814d5a9f218 467 +411 uri://ed-fi.org/CountryDescriptor CG Congo Congo \N \N \N 2021-11-05 18:59:16.762557 2021-11-05 18:59:16.762412 57598b93-5d5d-4aff-abfa-a9de3eb3ed27 471 +416 uri://ed-fi.org/CountryDescriptor CM Cameroon Cameroon \N \N \N 2021-11-05 18:59:16.777343 2021-11-05 18:59:16.777311 6efbd864-d05c-406a-a804-0e0d6b0f2263 476 +418 uri://ed-fi.org/CountryDescriptor CO Colombia Colombia \N \N \N 2021-11-05 18:59:16.78251 2021-11-05 18:59:16.782489 aea928ce-8d47-4391-9b7c-f0bfecdb74fc 478 +423 uri://ed-fi.org/CountryDescriptor CX Christmas Island Christmas Island \N \N \N 2021-11-05 18:59:16.795658 2021-11-05 18:59:16.795617 081b2f64-4ede-4224-a717-719d30f7028b 483 +427 uri://ed-fi.org/CountryDescriptor DJ Djibouti Djibouti \N \N \N 2021-11-05 18:59:16.805797 2021-11-05 18:59:16.805752 3ccc2675-39aa-48c6-a2e1-675094720846 487 +431 uri://ed-fi.org/CountryDescriptor DZ Algeria Algeria \N \N \N 2021-11-05 18:59:16.819511 2021-11-05 18:59:16.819396 55cc5619-ee7b-46d4-a23e-9f7a8f4022ce 491 +439 uri://ed-fi.org/CountryDescriptor FI Finland Finland \N \N \N 2021-11-05 18:59:16.84401 2021-11-05 18:59:16.843925 6ff0ecef-f745-4a87-b98d-aead2681d954 499 +443 uri://ed-fi.org/CountryDescriptor FO Faroe Islands Faroe Islands \N \N \N 2021-11-05 18:59:16.859131 2021-11-05 18:59:16.85888 ce6deaa1-302d-4929-ad9b-0fb74de19910 503 +447 uri://ed-fi.org/CountryDescriptor GE Georgia Georgia \N \N \N 2021-11-05 18:59:16.872193 2021-11-05 18:59:16.871586 66fc68ca-fcc2-41f0-97a2-676c4f7ca1ff 507 +449 uri://ed-fi.org/CountryDescriptor GF French Guiana French Guiana \N \N \N 2021-11-05 18:59:16.874614 2021-11-05 18:59:16.874575 8b3c9ff5-520d-4147-8b43-4d30ae6ffa07 509 +451 uri://ed-fi.org/CountryDescriptor GH Ghana Ghana \N \N \N 2021-11-05 18:59:16.879904 2021-11-05 18:59:16.879863 6ccdf92b-1cbb-4138-a626-2814b633359e 511 +454 uri://ed-fi.org/CountryDescriptor GM Gambia Gambia \N \N \N 2021-11-05 18:59:16.888295 2021-11-05 18:59:16.888278 86a9bf78-25a6-4b36-9cd5-4c6e153f1aba 514 +458 uri://ed-fi.org/CountryDescriptor GQ Equatorial Guinea Equatorial Guinea \N \N \N 2021-11-05 18:59:16.898672 2021-11-05 18:59:16.898602 b5f92b00-8cee-4690-aaad-5655c614da4f 518 +464 uri://ed-fi.org/CountryDescriptor HK Hong Kong Hong Kong \N \N \N 2021-11-05 18:59:16.916828 2021-11-05 18:59:16.916804 c46d245c-b6bf-43bf-ab57-959c393b141a 524 +469 uri://ed-fi.org/CountryDescriptor HU Hungary Hungary \N \N \N 2021-11-05 18:59:16.931906 2021-11-05 18:59:16.9318 e9ec9605-6525-430b-ae2b-e67a88d5b7bb 529 +471 uri://ed-fi.org/CountryDescriptor IE Ireland Ireland \N \N \N 2021-11-05 18:59:16.936237 2021-11-05 18:59:16.936105 b104b298-a1e9-4379-9a4d-9d4cc1717a20 531 +474 uri://ed-fi.org/CountryDescriptor IN India India \N \N \N 2021-11-05 18:59:16.94289 2021-11-05 18:59:16.942843 0ca2665d-2d5a-4482-b4e5-9159350d907f 534 +475 uri://ed-fi.org/CountryDescriptor IO British Indian Ocean Territory British Indian Ocean Territory \N \N \N 2021-11-05 18:59:16.946941 2021-11-05 18:59:16.946901 a030a54c-b1e5-48a3-b28c-4715d26bfac8 535 +477 uri://ed-fi.org/CountryDescriptor IR Iran, Islamic Republic of Iran, Islamic Republic of \N \N \N 2021-11-05 18:59:16.951552 2021-11-05 18:59:16.951397 604b94a8-8997-453e-bb03-d8a309906791 537 +480 uri://ed-fi.org/CountryDescriptor JE Jersey Jersey \N \N \N 2021-11-05 18:59:16.958994 2021-11-05 18:59:16.958951 a7dfaefc-2273-4f33-ac7c-446a7f75dd75 540 +481 uri://ed-fi.org/CountryDescriptor JM Jamaica Jamaica \N \N \N 2021-11-05 18:59:16.962806 2021-11-05 18:59:16.96269 b193add6-88c5-4912-af19-7701f445f103 541 +484 uri://ed-fi.org/CountryDescriptor JP Japan Japan \N \N \N 2021-11-05 18:59:16.969143 2021-11-05 18:59:16.969087 9d2f5fe0-ae81-400e-8147-3f7d38767659 544 +487 uri://ed-fi.org/CountryDescriptor KM Comoros Comoros \N \N \N 2021-11-05 18:59:16.984343 2021-11-05 18:59:16.98231 fe115ef5-990b-4b24-9595-d73503698de6 547 +490 uri://ed-fi.org/CountryDescriptor KP Korea, Democratic People's Republic of Korea, Democratic People's Republic of \N \N \N 2021-11-05 18:59:16.987892 2021-11-05 18:59:16.987822 ef730ab6-1c22-4228-8ded-bd1663aa200a 550 +493 uri://ed-fi.org/CountryDescriptor KW Kuwait Kuwait \N \N \N 2021-11-05 18:59:17.000481 2021-11-05 18:59:16.999508 359abf95-946d-4b02-b101-7e4f5e4c029b 553 +496 uri://ed-fi.org/CountryDescriptor LB Lebanon Lebanon \N \N \N 2021-11-05 18:59:17.008282 2021-11-05 18:59:17.008263 744d679e-65ee-4a99-a8db-97662e097077 556 +499 uri://ed-fi.org/CountryDescriptor LK Sri Lanka Sri Lanka \N \N \N 2021-11-05 18:59:17.017929 2021-11-05 18:59:17.017861 fdcb558b-f277-42bb-a0f4-7a71366d5a22 559 +500 uri://ed-fi.org/CountryDescriptor LR Liberia Liberia \N \N \N 2021-11-05 18:59:17.020919 2021-11-05 18:59:17.020839 aa24b1cd-67b6-4124-8186-9c5c943c86b6 560 +506 uri://ed-fi.org/CountryDescriptor MA Morocco Morocco \N \N \N 2021-11-05 18:59:17.041014 2021-11-05 18:59:17.040972 0e86abc9-2cf6-4a95-9cd5-ebf1c89da951 566 +509 uri://ed-fi.org/CountryDescriptor ME Montenegro Montenegro \N \N \N 2021-11-05 18:59:17.052126 2021-11-05 18:59:17.05202 139de591-71b2-4090-9411-bb52eedff9e3 569 +514 uri://ed-fi.org/CountryDescriptor ML Mali Mali \N \N \N 2021-11-05 18:59:17.067731 2021-11-05 18:59:17.067693 303d1b89-d726-4ac1-ac61-e65105c87cb6 574 +520 uri://ed-fi.org/CountryDescriptor MR Mauritania Mauritania \N \N \N 2021-11-05 18:59:17.08266 2021-11-05 18:59:17.082303 1dc693af-4d40-4460-ab3d-0181ab7c23ff 580 +522 uri://ed-fi.org/CountryDescriptor MT Malta Malta \N \N \N 2021-11-05 18:59:17.087021 2021-11-05 18:59:17.086784 80e020f5-f646-4694-9b44-5a3098466d9e 582 +525 uri://ed-fi.org/CountryDescriptor MX Mexico Mexico \N \N \N 2021-11-05 18:59:17.099748 2021-11-05 18:59:17.099698 04211087-6e24-4f10-b271-a07b70ff7918 585 +528 uri://ed-fi.org/CountryDescriptor MZ Mozambique Mozambique \N \N \N 2021-11-05 18:59:17.104338 2021-11-05 18:59:17.104042 da0a2130-71ad-4b7d-a632-4c7158f9e436 588 +530 uri://ed-fi.org/CountryDescriptor NC New Caledonia New Caledonia \N \N \N 2021-11-05 18:59:17.110459 2021-11-05 18:59:17.110415 3d5eb4b5-e938-430c-a074-4200ab5ff938 590 +532 uri://ed-fi.org/CountryDescriptor NF Norfolk Island Norfolk Island \N \N \N 2021-11-05 18:59:17.116631 2021-11-05 18:59:17.116607 7291e051-7c17-4552-afaa-dc8ee9775e89 592 +544 uri://ed-fi.org/CountryDescriptor PF French Polynesia French Polynesia \N \N \N 2021-11-05 18:59:17.151288 2021-11-05 18:59:17.151229 d9976a68-bc7e-4105-bfb6-5c7a0e0aae47 604 +549 uri://ed-fi.org/CountryDescriptor PL Poland Poland \N \N \N 2021-11-05 18:59:17.165639 2021-11-05 18:59:17.165504 04a97b28-7d79-4ba1-b357-ac664fbd6b56 609 +552 uri://ed-fi.org/CountryDescriptor PS Palestine, State of Palestine, State of \N \N \N 2021-11-05 18:59:17.175001 2021-11-05 18:59:17.174673 ce032990-6016-435d-837d-6b3e70035172 612 +555 uri://ed-fi.org/CountryDescriptor PY Paraguay Paraguay \N \N \N 2021-11-05 18:59:17.183587 2021-11-05 18:59:17.182192 ba00d813-d56e-4b52-92b0-a80aa34480da 615 +557 uri://ed-fi.org/CountryDescriptor RE Réunion Réunion \N \N \N 2021-11-05 18:59:17.188314 2021-11-05 18:59:17.188277 8213f1cf-3485-4311-8f5d-1c38fed59ac1 617 +562 uri://ed-fi.org/CountryDescriptor SA Saudi Arabia Saudi Arabia \N \N \N 2021-11-05 18:59:17.201038 2021-11-05 18:59:17.200834 b1cd209d-d442-4553-b6c5-961b8faedaa8 622 +566 uri://ed-fi.org/CountryDescriptor SE Sweden Sweden \N \N \N 2021-11-05 18:59:17.21357 2021-11-05 18:59:17.213538 01f44231-0d21-48aa-900d-91dce1920c91 626 +570 uri://ed-fi.org/CountryDescriptor SK Slovakia Slovakia \N \N \N 2021-11-05 18:59:17.225056 2021-11-05 18:59:17.22496 f5de6981-fa22-4eda-989a-89cf952e44ff 630 +572 uri://ed-fi.org/CountryDescriptor SL Sierra Leone Sierra Leone \N \N \N 2021-11-05 18:59:17.229342 2021-11-05 18:59:17.229255 0d952a6e-f2f5-4f21-a1e8-7ee4a01335a4 632 +574 uri://ed-fi.org/CountryDescriptor SN Senegal Senegal \N \N \N 2021-11-05 18:59:17.233556 2021-11-05 18:59:17.233339 16265075-9531-4e2a-ab20-ef1eb5de0c3a 634 +577 uri://ed-fi.org/CountryDescriptor SS South Sudan South Sudan \N \N \N 2021-11-05 18:59:17.243997 2021-11-05 18:59:17.243895 8de447c9-611d-463b-9b28-07a8d7dbe2d4 637 +581 uri://ed-fi.org/CountryDescriptor SY Syrian Arab Republic Syrian Arab Republic \N \N \N 2021-11-05 18:59:17.254662 2021-11-05 18:59:17.254614 8faddc06-facd-4584-8b74-5e93eb689485 641 +584 uri://ed-fi.org/CountryDescriptor TC Turks and Caicos Islands Turks and Caicos Islands \N \N \N 2021-11-05 18:59:17.260379 2021-11-05 18:59:17.260232 36781b06-18d6-404b-93aa-0667124086a2 644 +586 uri://ed-fi.org/CountryDescriptor TG Togo Togo \N \N \N 2021-11-05 18:59:17.265098 2021-11-05 18:59:17.265064 2ecd9080-7db1-4c9a-b4e7-350fbe0e2af1 646 +589 uri://ed-fi.org/CountryDescriptor TK Tokelau Tokelau \N \N \N 2021-11-05 18:59:17.282405 2021-11-05 18:59:17.281946 fc988941-513f-4cc3-a124-2a47a5c24807 649 +592 uri://ed-fi.org/CountryDescriptor TN Tunisia Tunisia \N \N \N 2021-11-05 18:59:17.287185 2021-11-05 18:59:17.287149 0ef5c11e-6266-4396-82dd-444f2d228b01 652 +595 uri://ed-fi.org/CountryDescriptor TT Trinidad and Tobago Trinidad and Tobago \N \N \N 2021-11-05 18:59:17.296301 2021-11-05 18:59:17.296266 e8f639f5-c819-4526-9165-f8f0c6c5c687 655 +462 uri://ed-fi.org/CountryDescriptor GW Guinea-Bissau Guinea-Bissau \N \N \N 2021-11-05 18:59:16.910762 2021-11-05 18:59:16.910668 8b6048f9-4082-4f6c-8593-16203cd1981c 522 +463 uri://ed-fi.org/CountryDescriptor GY Guyana Guyana \N \N \N 2021-11-05 18:59:16.913596 2021-11-05 18:59:16.91356 9a7d45c1-ebd2-4eff-a1fd-ca359691634d 523 +465 uri://ed-fi.org/CountryDescriptor HM Heard Island and McDonald Islands Heard Island and McDonald Islands \N \N \N 2021-11-05 18:59:16.918993 2021-11-05 18:59:16.918499 918a3a3e-8d7f-4ad7-b0d9-0fd5a815f700 525 +467 uri://ed-fi.org/CountryDescriptor HR Croatia Croatia \N \N \N 2021-11-05 18:59:16.923222 2021-11-05 18:59:16.923148 2a888d1b-fc41-43f5-ab9a-353d4865a2e8 527 +468 uri://ed-fi.org/CountryDescriptor HT Haiti Haiti \N \N \N 2021-11-05 18:59:16.927907 2021-11-05 18:59:16.927867 4692df87-9d15-4634-a39f-1ceaf6d11460 528 +470 uri://ed-fi.org/CountryDescriptor ID Indonesia Indonesia \N \N \N 2021-11-05 18:59:16.932959 2021-11-05 18:59:16.9329 3f9570b1-17ff-430e-8b55-5a1333cc6443 530 +472 uri://ed-fi.org/CountryDescriptor IL Israel Israel \N \N \N 2021-11-05 18:59:16.937768 2021-11-05 18:59:16.937725 1ce010f4-6313-4f3d-86f1-e68a8695d3c4 532 +473 uri://ed-fi.org/CountryDescriptor IM Isle of Man Isle of Man \N \N \N 2021-11-05 18:59:16.940692 2021-11-05 18:59:16.940579 91063701-598d-4fc9-82fa-005535b115e7 533 +476 uri://ed-fi.org/CountryDescriptor IQ Iraq Iraq \N \N \N 2021-11-05 18:59:16.948315 2021-11-05 18:59:16.948277 175e1152-f59d-42a1-866c-de6854a3d56e 536 +478 uri://ed-fi.org/CountryDescriptor IS Iceland Iceland \N \N \N 2021-11-05 18:59:16.952923 2021-11-05 18:59:16.952833 f76cedc8-6fb7-40fd-8310-e017f3dccc39 538 +479 uri://ed-fi.org/CountryDescriptor IT Italy Italy \N \N \N 2021-11-05 18:59:16.956426 2021-11-05 18:59:16.956385 df07def9-b839-444f-a2b8-dc6e2c1f564f 539 +482 uri://ed-fi.org/CountryDescriptor JO Jordan Jordan \N \N \N 2021-11-05 18:59:16.963509 2021-11-05 18:59:16.963443 e96ebaaf-18dc-4c9d-a68f-d9ae956b0f22 542 +483 uri://ed-fi.org/CountryDescriptor KE Kenya Kenya \N \N \N 2021-11-05 18:59:16.968662 2021-11-05 18:59:16.968619 12671fa0-2f3c-45c8-91f5-00d684da11f0 543 +485 uri://ed-fi.org/CountryDescriptor KG Kyrgyzstan Kyrgyzstan \N \N \N 2021-11-05 18:59:16.972777 2021-11-05 18:59:16.972735 073d1848-4cfc-48f7-af10-b6c8b37ed4c3 545 +486 uri://ed-fi.org/CountryDescriptor KH Cambodia Cambodia \N \N \N 2021-11-05 18:59:16.97723 2021-11-05 18:59:16.97716 c32e34cf-4ac2-41d2-b0ae-b577c49d4aab 546 +488 uri://ed-fi.org/CountryDescriptor KN Saint Kitts and Nevis Saint Kitts and Nevis \N \N \N 2021-11-05 18:59:16.98458 2021-11-05 18:59:16.983173 46540575-6932-48f2-aa5a-2ee6680af96e 548 +491 uri://ed-fi.org/CountryDescriptor KR Korea, Republic of Korea, Republic of \N \N \N 2021-11-05 18:59:16.993794 2021-11-05 18:59:16.993734 6a745948-cbca-41d1-8be6-f62c03de08db 551 +492 uri://ed-fi.org/CountryDescriptor KY Cayman Islands Cayman Islands \N \N \N 2021-11-05 18:59:16.99792 2021-11-05 18:59:16.997075 f9c47123-3f57-41df-9f3c-5085ca55bac5 552 +494 uri://ed-fi.org/CountryDescriptor KZ Kazakhstan Kazakhstan \N \N \N 2021-11-05 18:59:17.001663 2021-11-05 18:59:17.001628 d58ccb38-297e-4fed-a1fc-326c4b7ecb85 554 +495 uri://ed-fi.org/CountryDescriptor LA Lao People's Democratic Republic Lao People's Democratic Republic \N \N \N 2021-11-05 18:59:17.006349 2021-11-05 18:59:17.005462 5321919f-8367-4655-9737-9f24a90d74f2 555 +497 uri://ed-fi.org/CountryDescriptor LI Liechtenstein Liechtenstein \N \N \N 2021-11-05 18:59:17.012237 2021-11-05 18:59:17.0122 d40bebe1-0cf9-4767-9804-dc31800fd556 557 +498 uri://ed-fi.org/CountryDescriptor LC Saint Lucia Saint Lucia \N \N \N 2021-11-05 18:59:17.015625 2021-11-05 18:59:17.015501 7ca38037-b2d9-49ea-910d-09d0f50d7a00 558 +501 uri://ed-fi.org/CountryDescriptor LS Lesotho Lesotho \N \N \N 2021-11-05 18:59:17.022868 2021-11-05 18:59:17.022436 adb71a86-c585-467b-bc72-aad08af45450 561 +502 uri://ed-fi.org/CountryDescriptor LT Lithuania Lithuania \N \N \N 2021-11-05 18:59:17.027116 2021-11-05 18:59:17.026817 4148ab09-c840-4f5e-a250-0988fc25eeb5 562 +503 uri://ed-fi.org/CountryDescriptor LU Luxembourg Luxembourg \N \N \N 2021-11-05 18:59:17.030089 2021-11-05 18:59:17.029876 76e7768a-e126-44d7-952d-426858c9aa93 563 +504 uri://ed-fi.org/CountryDescriptor LV Latvia Latvia \N \N \N 2021-11-05 18:59:17.035189 2021-11-05 18:59:17.035142 76efc924-24d4-4181-a475-8666f3158abf 564 +507 uri://ed-fi.org/CountryDescriptor MC Monaco Monaco \N \N \N 2021-11-05 18:59:17.042296 2021-11-05 18:59:17.041898 70ca2685-a040-423d-ad29-79bb29c85618 567 +508 uri://ed-fi.org/CountryDescriptor MD Moldova, Republic of Moldova, Republic of \N \N \N 2021-11-05 18:59:17.050081 2021-11-05 18:59:17.049151 2ca0ac2e-2be2-4390-9973-00b3408e1bc2 568 +511 uri://ed-fi.org/CountryDescriptor MG Madagascar Madagascar \N \N \N 2021-11-05 18:59:17.056473 2021-11-05 18:59:17.056339 8c160b84-eaff-4d9e-a991-f85444657415 571 +512 uri://ed-fi.org/CountryDescriptor MH Marshall Islands Marshall Islands \N \N \N 2021-11-05 18:59:17.059056 2021-11-05 18:59:17.058988 3bad684f-c223-4287-b89c-806f58a2ad9c 572 +513 uri://ed-fi.org/CountryDescriptor MK Macedonia, the former Yugoslav Republic of Macedonia, the former Yugoslav Republic of \N \N \N 2021-11-05 18:59:17.062168 2021-11-05 18:59:17.06214 77229d36-1317-40bd-83fe-fc58b0b1d8db 573 +515 uri://ed-fi.org/CountryDescriptor MM Myanmar Myanmar \N \N \N 2021-11-05 18:59:17.069333 2021-11-05 18:59:17.069019 6896a47e-ff99-4e2b-acf1-44224db68aca 575 +517 uri://ed-fi.org/CountryDescriptor MO Macao Macao \N \N \N 2021-11-05 18:59:17.072821 2021-11-05 18:59:17.072733 08c26546-95c7-4c8f-9ecb-3907d77cf617 577 +518 uri://ed-fi.org/CountryDescriptor MP Northern Mariana Islands Northern Mariana Islands \N \N \N 2021-11-05 18:59:17.076 2021-11-05 18:59:17.075913 ee6d1ac8-17e6-4344-8828-d60df0a21cbe 578 +519 uri://ed-fi.org/CountryDescriptor MQ Martinique Martinique \N \N \N 2021-11-05 18:59:17.081811 2021-11-05 18:59:17.081771 70a889ab-013e-4a97-8b4b-f776a7286615 579 +521 uri://ed-fi.org/CountryDescriptor MS Montserrat Montserrat \N \N \N 2021-11-05 18:59:17.086294 2021-11-05 18:59:17.086219 52e9ae07-4996-4725-9d21-ddf6eccfbb52 581 +523 uri://ed-fi.org/CountryDescriptor MU Mauritius Mauritius \N \N \N 2021-11-05 18:59:17.090646 2021-11-05 18:59:17.090538 70bc0c8f-a488-43aa-bfb6-88e02ad6c3e3 583 +524 uri://ed-fi.org/CountryDescriptor MV Maldives Maldives \N \N \N 2021-11-05 18:59:17.093683 2021-11-05 18:59:17.093644 7b76e525-dd2c-4fe6-b19a-8d55dae68b0a 584 +526 uri://ed-fi.org/CountryDescriptor MW Malawi Malawi \N \N \N 2021-11-05 18:59:17.101196 2021-11-05 18:59:17.101072 ebe9c460-ba88-45ec-b7ad-aa455fca11a7 586 +527 uri://ed-fi.org/CountryDescriptor MY Malaysia Malaysia \N \N \N 2021-11-05 18:59:17.103584 2021-11-05 18:59:17.103533 f4cf48d1-0c56-497a-8b8b-aa32cf80be1a 587 +529 uri://ed-fi.org/CountryDescriptor NA Namibia Namibia \N \N \N 2021-11-05 18:59:17.108456 2021-11-05 18:59:17.108407 29fe6990-7158-48cc-9aaa-c155ef3854c3 589 +531 uri://ed-fi.org/CountryDescriptor NE Niger Niger \N \N \N 2021-11-05 18:59:17.114826 2021-11-05 18:59:17.114788 7c18f15e-bc3c-4103-834e-d59daa4261c6 591 +533 uri://ed-fi.org/CountryDescriptor NG Nigeria Nigeria \N \N \N 2021-11-05 18:59:17.119179 2021-11-05 18:59:17.119144 30a79dae-6d7f-44a7-bffd-cc7f0680433c 593 +534 uri://ed-fi.org/CountryDescriptor NI Nicaragua Nicaragua \N \N \N 2021-11-05 18:59:17.12196 2021-11-05 18:59:17.121925 93194c84-076e-4d7c-a47c-6677a2e191d2 594 +535 uri://ed-fi.org/CountryDescriptor NL Netherlands Netherlands \N \N \N 2021-11-05 18:59:17.125538 2021-11-05 18:59:17.125323 e2f5b257-e24f-4b9f-963c-d8175d7157de 595 +536 uri://ed-fi.org/CountryDescriptor NO Norway Norway \N \N \N 2021-11-05 18:59:17.128968 2021-11-05 18:59:17.128945 885b6f51-3f15-47a7-ad67-afa1113372d1 596 +537 uri://ed-fi.org/CountryDescriptor NP Nepal Nepal \N \N \N 2021-11-05 18:59:17.131503 2021-11-05 18:59:17.131405 5c3abb7f-a0aa-4a0f-8c3e-08494564be75 597 +538 uri://ed-fi.org/CountryDescriptor NR Nauru Nauru \N \N \N 2021-11-05 18:59:17.133785 2021-11-05 18:59:17.133644 8b942bd8-dde0-4571-9922-a3920ec46dc3 598 +540 uri://ed-fi.org/CountryDescriptor NZ New Zealand New Zealand \N \N \N 2021-11-05 18:59:17.137314 2021-11-05 18:59:17.137172 075fe533-5290-414e-bd1f-d790f9034d2d 600 +541 uri://ed-fi.org/CountryDescriptor OM Oman Oman \N \N \N 2021-11-05 18:59:17.143284 2021-11-05 18:59:17.143182 ab101f4d-9246-4070-8219-79e30cef63ed 601 +543 uri://ed-fi.org/CountryDescriptor PE Peru Peru \N \N \N 2021-11-05 18:59:17.150982 2021-11-05 18:59:17.150592 c1f270f2-1f40-4853-8779-47cd6a67c945 603 +545 uri://ed-fi.org/CountryDescriptor PG Papua New Guinea Papua New Guinea \N \N \N 2021-11-05 18:59:17.153791 2021-11-05 18:59:17.153773 5efed213-8f56-4ac4-9de9-020b1b27667b 605 +546 uri://ed-fi.org/CountryDescriptor PH Philippines Philippines \N \N \N 2021-11-05 18:59:17.158432 2021-11-05 18:59:17.158388 c10dd6ad-4a70-479e-9320-de230f995b0d 606 +547 uri://ed-fi.org/CountryDescriptor PK Pakistan Pakistan \N \N \N 2021-11-05 18:59:17.162332 2021-11-05 18:59:17.162285 cf797caf-9529-4d8f-bdfb-26688a7b1d30 607 +548 uri://ed-fi.org/CountryDescriptor PM Saint Pierre and Miquelon Saint Pierre and Miquelon \N \N \N 2021-11-05 18:59:17.164806 2021-11-05 18:59:17.164701 4bb5716e-ac7b-4b9f-9c62-528e639ba794 608 +550 uri://ed-fi.org/CountryDescriptor PN Pitcairn Pitcairn \N \N \N 2021-11-05 18:59:17.16947 2021-11-05 18:59:17.16937 e22119bf-1c39-41dd-a908-70d1295f4a16 610 +551 uri://ed-fi.org/CountryDescriptor PR Puerto Rico Puerto Rico \N \N \N 2021-11-05 18:59:17.172097 2021-11-05 18:59:17.17206 415b570a-02ce-4e69-87e0-d1b15d182011 611 +553 uri://ed-fi.org/CountryDescriptor PT Portugal Portugal \N \N \N 2021-11-05 18:59:17.177952 2021-11-05 18:59:17.177481 1cd68546-b05a-4d94-9ee4-d0c47f331dde 613 +554 uri://ed-fi.org/CountryDescriptor PW Palau Palau \N \N \N 2021-11-05 18:59:17.182103 2021-11-05 18:59:17.180932 a9c27328-f62f-478b-830c-16260161833e 614 +556 uri://ed-fi.org/CountryDescriptor QA Qatar Qatar \N \N \N 2021-11-05 18:59:17.18633 2021-11-05 18:59:17.18612 4c67c73f-4613-4731-86a3-0c0dacc0b1b7 616 +558 uri://ed-fi.org/CountryDescriptor RO Romania Romania \N \N \N 2021-11-05 18:59:17.190383 2021-11-05 18:59:17.190356 695c3461-b866-4e2d-8779-699c02cd06d2 618 +559 uri://ed-fi.org/CountryDescriptor RS Serbia Serbia \N \N \N 2021-11-05 18:59:17.196387 2021-11-05 18:59:17.196337 5f864758-5045-4735-b971-646e0880df14 619 +560 uri://ed-fi.org/CountryDescriptor RU Russian Federation Russian Federation \N \N \N 2021-11-05 18:59:17.199327 2021-11-05 18:59:17.199008 9a768944-9033-46b6-aa3b-fe66f004aad3 620 +563 uri://ed-fi.org/CountryDescriptor SB Solomon Islands Solomon Islands \N \N \N 2021-11-05 18:59:17.204256 2021-11-05 18:59:17.204199 1ac46709-7d77-4df7-8b21-e11cfcb5a3dd 623 +564 uri://ed-fi.org/CountryDescriptor SC Seychelles Seychelles \N \N \N 2021-11-05 18:59:17.209427 2021-11-05 18:59:17.209385 efde4939-93ad-4476-b23c-3d11680eac39 624 +565 uri://ed-fi.org/CountryDescriptor SD Sudan Sudan \N \N \N 2021-11-05 18:59:17.211805 2021-11-05 18:59:17.211758 c7ae3136-5824-4681-8a16-92dba550ea6f 625 +567 uri://ed-fi.org/CountryDescriptor SG Singapore Singapore \N \N \N 2021-11-05 18:59:17.215929 2021-11-05 18:59:17.215851 462a854c-216b-45a6-b59c-1eb72ad68be0 627 +568 uri://ed-fi.org/CountryDescriptor SH Saint Helena, Ascension and Tristan da Cunha Saint Helena, Ascension and Tristan da Cunha \N \N \N 2021-11-05 18:59:17.219201 2021-11-05 18:59:17.219162 bf65e844-6a4f-4982-9c45-b6357cb08d9b 628 +569 uri://ed-fi.org/CountryDescriptor SI Slovenia Slovenia \N \N \N 2021-11-05 18:59:17.221725 2021-11-05 18:59:17.221706 cfd65475-c8b1-4959-950e-ac21f800560f 629 +571 uri://ed-fi.org/CountryDescriptor SJ Svalbard and Jan Mayen Svalbard and Jan Mayen \N \N \N 2021-11-05 18:59:17.225941 2021-11-05 18:59:17.225703 c55afbbe-6a8d-4b5a-9f9a-1aeed62e76a6 631 +573 uri://ed-fi.org/CountryDescriptor SM San Marino San Marino \N \N \N 2021-11-05 18:59:17.230921 2021-11-05 18:59:17.230836 8fccf7d0-8824-4594-8d9e-667f5858a688 633 +575 uri://ed-fi.org/CountryDescriptor SO Somalia Somalia \N \N \N 2021-11-05 18:59:17.235214 2021-11-05 18:59:17.235185 f3985b3f-48e9-4c93-9390-183cd25dee2c 635 +576 uri://ed-fi.org/CountryDescriptor SR Suriname Suriname \N \N \N 2021-11-05 18:59:17.23832 2021-11-05 18:59:17.238285 6ccd505d-2e42-4d0a-9d40-2686eb17ca87 636 +578 uri://ed-fi.org/CountryDescriptor ST Sao Tome and Principe Sao Tome and Principe \N \N \N 2021-11-05 18:59:17.244475 2021-11-05 18:59:17.244399 2a1b61a4-c5b9-4fdf-a5ec-b798a3d23621 638 +580 uri://ed-fi.org/CountryDescriptor SX Sint Maarten (Dutch part) Sint Maarten (Dutch part) \N \N \N 2021-11-05 18:59:17.248709 2021-11-05 18:59:17.248671 f30f4fff-aff5-4fb3-9bdd-13d228f0c177 640 +582 uri://ed-fi.org/CountryDescriptor SZ Swaziland Swaziland \N \N \N 2021-11-05 18:59:17.255662 2021-11-05 18:59:17.255623 33403778-f20b-4ed0-a489-4523ea9726ae 642 +583 uri://ed-fi.org/CountryDescriptor TD Chad Chad \N \N \N 2021-11-05 18:59:17.26019 2021-11-05 18:59:17.260115 79c7e7a5-8ca8-478a-af46-584844dffc8a 643 +585 uri://ed-fi.org/CountryDescriptor TF French Southern Territories French Southern Territories \N \N \N 2021-11-05 18:59:17.26327 2021-11-05 18:59:17.26325 d6899620-3da9-4381-9099-72e7a74c773b 645 +587 uri://ed-fi.org/CountryDescriptor TH Thailand Thailand \N \N \N 2021-11-05 18:59:17.272021 2021-11-05 18:59:17.271976 28b0a635-a42f-4a4f-8421-5d6401f50152 647 +588 uri://ed-fi.org/CountryDescriptor TJ Tajikistan Tajikistan \N \N \N 2021-11-05 18:59:17.277934 2021-11-05 18:59:17.277896 269d3d96-f695-40a6-971f-2c592a45b38f 648 +590 uri://ed-fi.org/CountryDescriptor TL Timor-Leste Timor-Leste \N \N \N 2021-11-05 18:59:17.2829 2021-11-05 18:59:17.282864 746ee625-7fcc-486c-a22f-16b0a97577bc 650 +591 uri://ed-fi.org/CountryDescriptor TM Turkmenistan Turkmenistan \N \N \N 2021-11-05 18:59:17.285873 2021-11-05 18:59:17.285837 1da3fafc-1849-4a41-86af-c552f438422c 651 +593 uri://ed-fi.org/CountryDescriptor TO Tonga Tonga \N \N \N 2021-11-05 18:59:17.292123 2021-11-05 18:59:17.292079 2b5b12d3-f573-476d-97de-8dc25a7ab2bd 653 +594 uri://ed-fi.org/CountryDescriptor TR Turkey Turkey \N \N \N 2021-11-05 18:59:17.295721 2021-11-05 18:59:17.295686 4f539d84-618c-4f57-a586-6c4aeb4980eb 654 +597 uri://ed-fi.org/CountryDescriptor TW Taiwan, Province of China Taiwan, Province of China \N \N \N 2021-11-05 18:59:17.300811 2021-11-05 18:59:17.3006 913e7d4f-8659-4aa8-8a33-a6ab5983749d 657 +598 uri://ed-fi.org/CountryDescriptor TZ Tanzania, United Republic of Tanzania, United Republic of \N \N \N 2021-11-05 18:59:17.304767 2021-11-05 18:59:17.304725 f2ac37bd-f95a-4fcf-90fa-5096a3ae9bdd 658 +600 uri://ed-fi.org/CountryDescriptor UA Ukraine Ukraine \N \N \N 2021-11-05 18:59:17.310836 2021-11-05 18:59:17.310707 7fb52ae3-fda6-40b5-b8df-9ae0d3dfa805 660 +601 uri://ed-fi.org/CountryDescriptor UM United States Minor Outlying Islands United States Minor Outlying Islands \N \N \N 2021-11-05 18:59:17.314124 2021-11-05 18:59:17.314068 6e03a911-4f7c-4651-a766-2f3717a404b3 661 +603 uri://ed-fi.org/CountryDescriptor UY Uruguay Uruguay \N \N \N 2021-11-05 18:59:17.318502 2021-11-05 18:59:17.318466 6b13fe5b-962d-44ef-a32e-aa02e9c01b4a 663 +604 uri://ed-fi.org/CountryDescriptor UZ Uzbekistan Uzbekistan \N \N \N 2021-11-05 18:59:17.321843 2021-11-05 18:59:17.321804 91ee7c31-9de2-46d5-9c3e-c14f92848910 664 +606 uri://ed-fi.org/CountryDescriptor VC Saint Vincent and the Grenadines Saint Vincent and the Grenadines \N \N \N 2021-11-05 18:59:17.326654 2021-11-05 18:59:17.326617 b78b625b-9ebf-4548-8ea9-7e1f03def9ef 666 +608 uri://ed-fi.org/CountryDescriptor VG Virgin Islands, British Virgin Islands, British \N \N \N 2021-11-05 18:59:17.331453 2021-11-05 18:59:17.331417 d5f9b769-9818-4a03-9067-b2fbe04352f9 668 +610 uri://ed-fi.org/CountryDescriptor VN Viet Nam Viet Nam \N \N \N 2021-11-05 18:59:17.33691 2021-11-05 18:59:17.336876 a30859ce-a071-42aa-99ef-14472aab17c4 670 +611 uri://ed-fi.org/CountryDescriptor VU Vanuatu Vanuatu \N \N \N 2021-11-05 18:59:17.340366 2021-11-05 18:59:17.34001 b0742730-7231-458f-8749-2c9a9b55c444 671 +613 uri://ed-fi.org/CountryDescriptor WS Samoa Samoa \N \N \N 2021-11-05 18:59:17.34544 2021-11-05 18:59:17.345422 6e78fa07-896d-47e7-8072-a7b7e641d6bb 673 +616 uri://ed-fi.org/CountryDescriptor ZA South Africa South Africa \N \N \N 2021-11-05 18:59:17.351478 2021-11-05 18:59:17.351444 d218b0e4-c005-4a30-a37d-37c54c6bdfec 676 +617 uri://ed-fi.org/CountryDescriptor ZM Zambia Zambia \N \N \N 2021-11-05 18:59:17.35536 2021-11-05 18:59:17.355321 8fffd8a9-92fa-496a-b5c9-e0354463d9c7 677 +618 uri://ed-fi.org/CountryDescriptor ZW Zimbabwe Zimbabwe \N \N \N 2021-11-05 18:59:17.358896 2021-11-05 18:59:17.358784 476e6299-ba34-45f0-b5c1-0754971a6130 678 +619 uri://ed-fi.org/CourseAttemptResultDescriptor Withdrawn Withdrawn Withdrawn \N \N \N 2021-11-05 18:59:17.402109 2021-11-05 18:59:17.400966 b371dac6-2239-4b4b-86b0-b92b051428fc 679 +625 uri://ed-fi.org/CourseDefinedByDescriptor School School School \N \N \N 2021-11-05 18:59:17.453511 2021-11-05 18:59:17.452248 82c385c6-0222-4da2-be12-6a911ec79579 685 +627 uri://ed-fi.org/CourseGPAApplicabilityDescriptor Applicable Applicable Applicable \N \N \N 2021-11-05 18:59:17.507502 2021-11-05 18:59:17.506314 f897fb3f-5ae8-410a-a516-c6c809d91f25 687 +630 uri://ed-fi.org/CourseIdentificationSystemDescriptor CSSC course code CSSC course code CSSC course code \N \N \N 2021-11-05 18:59:17.51376 2021-11-05 18:59:17.512206 dcbe5954-ac94-4b69-858d-376a86729de5 690 +631 uri://ed-fi.org/CourseIdentificationSystemDescriptor Intermediate agency course code Intermediate agency course code Intermediate agency course code \N \N \N 2021-11-05 18:59:17.522954 2021-11-05 18:59:17.522199 97f2d52f-e215-4784-b99a-78e9898e6c52 691 +634 uri://ed-fi.org/CourseIdentificationSystemDescriptor Other Other Other \N \N \N 2021-11-05 18:59:17.528674 2021-11-05 18:59:17.528635 3ca32cb8-7536-4007-9a81-520633535f99 694 +635 uri://ed-fi.org/CourseIdentificationSystemDescriptor SCED course code SCED course code SCED course code \N \N \N 2021-11-05 18:59:17.536359 2021-11-05 18:59:17.536308 8f6d9ff9-277a-4c05-ba2a-86a7269be3c1 695 +638 uri://ed-fi.org/CourseIdentificationSystemDescriptor University course code University course code University course code \N \N \N 2021-11-05 18:59:17.541476 2021-11-05 18:59:17.541444 37bde0ed-3995-4770-8df4-2a6d842ef78b 698 +642 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Accepted as high school equivalent Accepted as high school equivalent Accepted as high school equivalent \N \N \N 2021-11-05 18:59:17.588335 2021-11-05 18:59:17.587142 87c08271-3441-48d4-ac4e-768d3caff402 702 +643 uri://ed-fi.org/CourseLevelCharacteristicDescriptor College-level College-level College-level \N \N \N 2021-11-05 18:59:17.604052 2021-11-05 18:59:17.60392 c5017d32-9852-4211-985a-cef2ae25110d 703 +599 uri://ed-fi.org/CountryDescriptor UG Uganda Uganda \N \N \N 2021-11-05 18:59:17.309769 2021-11-05 18:59:17.309667 6e0f1835-d13f-4d6d-a49b-ad1e8e7f8bc3 659 +602 uri://ed-fi.org/CountryDescriptor US United States of America United States of America \N \N \N 2021-11-05 18:59:17.314465 2021-11-05 18:59:17.314389 96497993-140e-42ff-8b6d-cf8e441c3190 662 +605 uri://ed-fi.org/CountryDescriptor VA Holy See Holy See \N \N \N 2021-11-05 18:59:17.325183 2021-11-05 18:59:17.325109 97c86104-6d64-4936-8129-019fc4d33448 665 +607 uri://ed-fi.org/CountryDescriptor VE Venezuela, Bolivarian Republic of Venezuela, Bolivarian Republic of \N \N \N 2021-11-05 18:59:17.329717 2021-11-05 18:59:17.329681 bcfa13f2-0429-475d-9546-ba09c7542daf 667 +609 uri://ed-fi.org/CountryDescriptor VI Virgin Islands, U.S. Virgin Islands, U.S. \N \N \N 2021-11-05 18:59:17.335367 2021-11-05 18:59:17.335314 583c1070-f97f-45a0-ad0c-f347a41dfb8e 669 +612 uri://ed-fi.org/CountryDescriptor WF Wallis and Futuna Wallis and Futuna \N \N \N 2021-11-05 18:59:17.341806 2021-11-05 18:59:17.341778 22000fe1-e2f7-47c5-83c2-c7b320b040eb 672 +614 uri://ed-fi.org/CountryDescriptor YE Yemen Yemen \N \N \N 2021-11-05 18:59:17.346712 2021-11-05 18:59:17.346673 ea791a10-4f01-430c-884a-96fa2cfde4aa 674 +615 uri://ed-fi.org/CountryDescriptor YT Mayotte Mayotte \N \N \N 2021-11-05 18:59:17.35016 2021-11-05 18:59:17.349907 a459d9b7-2ca1-4e98-a15e-ada42578d022 675 +622 uri://ed-fi.org/CourseAttemptResultDescriptor Fail Fail Fail \N \N \N 2021-11-05 18:59:17.402459 2021-11-05 18:59:17.400971 457a9138-c4d4-4f6a-9f53-463cc01ecb3a 682 +624 uri://ed-fi.org/CourseDefinedByDescriptor LEA LEA LEA \N \N \N 2021-11-05 18:59:17.453497 2021-11-05 18:59:17.452249 259c2018-a258-41a4-9b7c-74e2e00b2077 684 +629 uri://ed-fi.org/CourseGPAApplicabilityDescriptor Weighted Weighted Weighted \N \N \N 2021-11-05 18:59:17.5075 2021-11-05 18:59:17.506321 00a9775b-9971-44c9-94ee-e26a1a75c2fe 689 +633 uri://ed-fi.org/CourseIdentificationSystemDescriptor LEA course code LEA course code LEA course code \N \N \N 2021-11-05 18:59:17.525112 2021-11-05 18:59:17.525033 29719fc5-f8e4-432f-b910-6eb2bee3de05 693 +637 uri://ed-fi.org/CourseIdentificationSystemDescriptor State course code State course code State course code \N \N \N 2021-11-05 18:59:17.539903 2021-11-05 18:59:17.539698 a19b54d8-3c24-484c-a4e2-cfa6b9799a33 697 +640 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Advanced Advanced Advanced \N \N \N 2021-11-05 18:59:17.588317 2021-11-05 18:59:17.587149 c4b099a9-3b0c-416e-a975-81711a2de8a1 700 +645 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Career and Technical Education Career and Technical Education Career and Technical Education \N \N \N 2021-11-05 18:59:17.604191 2021-11-05 18:59:17.603996 e270ace2-b354-439f-b6e2-38f0ee4e5122 705 +647 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Distance Learning Distance Learning Distance Learning \N \N \N 2021-11-05 18:59:17.614681 2021-11-05 18:59:17.614615 e4f05b5c-60d2-49b3-88e9-97959421ee58 707 +650 uri://ed-fi.org/CourseLevelCharacteristicDescriptor General General General \N \N \N 2021-11-05 18:59:17.61926 2021-11-05 18:59:17.61924 7009f6a8-4af3-4f6d-a73c-20c9d12cfc47 710 +653 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Graduation Credit Graduation Credit Graduation Credit \N \N \N 2021-11-05 18:59:17.629344 2021-11-05 18:59:17.62929 cfd79d15-cf31-4ab0-a61b-16a68937affb 713 +655 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Magnet Magnet Magnet \N \N \N 2021-11-05 18:59:17.63436 2021-11-05 18:59:17.63401 8156c27f-a72b-43ee-bfac-6454e7e3b0b8 715 +657 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Pre-AP Pre-AP Pre-AP \N \N \N 2021-11-05 18:59:17.63881 2021-11-05 18:59:17.638766 d5f87b12-ab90-4f94-bd72-f0a5bf9b2a63 717 +660 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Students with disabilities Students with disabilities Students with disabilities \N \N \N 2021-11-05 18:59:17.648289 2021-11-05 18:59:17.648243 a9bf30ce-d423-44b0-a73e-938a1f488003 720 +662 uri://ed-fi.org/CourseRepeatCodeDescriptor Repeat NotCounted Repeat NotCounted Repeat NotCounted \N \N \N 2021-11-05 18:59:17.693093 2021-11-05 18:59:17.691897 a742ad80-621f-487e-bdf5-83261fc61d4a 722 +669 uri://ed-fi.org/CredentialFieldDescriptor Mathematics Mathematics Mathematics \N \N \N 2021-11-05 18:59:17.75218 2021-11-05 18:59:17.750986 da66e1b7-d44f-4335-8cd5-65fc4e25b588 729 +672 uri://ed-fi.org/CredentialFieldDescriptor Art Art Art \N \N \N 2021-11-05 18:59:17.766256 2021-11-05 18:59:17.765627 73afaa4e-b2f6-4649-91fe-6863585c2f42 732 +677 uri://ed-fi.org/CredentialFieldDescriptor Physical Education Physical Education Physical Education \N \N \N 2021-11-05 18:59:17.775849 2021-11-05 18:59:17.775806 22e5e769-e45e-42c6-8d42-c865849af6e1 737 +678 uri://ed-fi.org/CredentialFieldDescriptor Health Health Health \N \N \N 2021-11-05 18:59:17.77917 2021-11-05 18:59:17.779151 bcacc392-1f36-45fa-a4ab-3c507d8d63ac 738 +682 uri://ed-fi.org/CredentialFieldDescriptor Master Teacher Master Teacher Master Teacher \N \N \N 2021-11-05 18:59:17.791603 2021-11-05 18:59:17.791538 99537063-a085-40f7-a54f-67935fb89224 742 +683 uri://ed-fi.org/CredentialTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:17.852191 2021-11-05 18:59:17.851017 304fcbf2-24ee-4c34-a852-3f5321943cc9 743 +689 uri://gbisd.edu/CreditCategoryDescriptor Advanced Placement Advanced Placement Advanced Placement \N \N \N 2021-11-05 18:59:17.909931 2021-11-05 18:59:17.908743 3b102fde-11a6-4407-8f43-bd058f7d4af8 749 +692 uri://ed-fi.org/CreditTypeDescriptor Adult education credit Adult education credit Adult education credit \N \N \N 2021-11-05 18:59:17.965986 2021-11-05 18:59:17.964839 7b133b82-8b39-4448-9596-c48feaa7ec6b 752 +697 uri://ed-fi.org/CreditTypeDescriptor Correspondence credit Correspondence credit Correspondence credit \N \N \N 2021-11-05 18:59:17.980709 2021-11-05 18:59:17.978658 f0bdcb11-db32-46cb-a39d-22b1ab5f3204 757 +700 uri://ed-fi.org/CreditTypeDescriptor Mini-term hour credit Mini-term hour credit Mini-term hour credit \N \N \N 2021-11-05 18:59:17.989899 2021-11-05 18:59:17.989838 d302c4bc-34e3-4652-b7c7-c087636fd8e2 760 +702 uri://ed-fi.org/CreditTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:17.995177 2021-11-05 18:59:17.9948 239668b0-7ff9-4329-8caa-0790ff99bb83 762 +705 uri://ed-fi.org/CreditTypeDescriptor Quinmester hour credit Quinmester hour credit Quinmester hour credit \N \N \N 2021-11-05 18:59:18.003557 2021-11-05 18:59:18.003367 a0d83219-93a5-4404-99a9-b58a8428c2af 765 +710 uri://ed-fi.org/CTEProgramServiceDescriptor Arts, A/V Technology and Communications Arts, A/V Technology and Communications Arts, A/V Technology and Communications \N \N \N 2021-11-05 18:59:18.063816 2021-11-05 18:59:18.062654 893f5291-d465-4764-9d08-923dbe6f857e 770 +713 uri://ed-fi.org/CTEProgramServiceDescriptor Education and Training Education and Training Education and Training \N \N \N 2021-11-05 18:59:18.077909 2021-11-05 18:59:18.077858 39e3e00d-219a-492c-a13f-d8cd7d8b5fb5 773 +716 uri://ed-fi.org/CTEProgramServiceDescriptor Finance Finance Finance \N \N \N 2021-11-05 18:59:18.081624 2021-11-05 18:59:18.081587 c5bbd592-e081-4971-bd37-29d2da7f7a28 776 +719 uri://ed-fi.org/CTEProgramServiceDescriptor Human Services Human Services Human Services \N \N \N 2021-11-05 18:59:18.091583 2021-11-05 18:59:18.091559 7945b01e-d3da-40ff-b4bc-8360639d3406 779 +723 uri://ed-fi.org/CTEProgramServiceDescriptor Marketing, Sales and Service Marketing, Sales and Service Marketing, Sales and Service \N \N \N 2021-11-05 18:59:18.111125 2021-11-05 18:59:18.111041 d9063abc-eca4-4eb8-9fd6-7f11a0d4ed4d 783 +728 uri://ed-fi.org/CurriculumUsedDescriptor Creative curriculum family child care Creative curriculum family child care Creative curriculum family child care \N \N \N 2021-11-05 18:59:18.166107 2021-11-05 18:59:18.164925 18894897-55c7-41e9-87f9-751b4a60bf9d 788 +732 uri://ed-fi.org/CurriculumUsedDescriptor None None None \N \N \N 2021-11-05 18:59:18.18488 2021-11-05 18:59:18.183749 3be0f8ea-a266-473c-b79d-0b5f0fad64b7 792 +734 uri://ed-fi.org/CurriculumUsedDescriptor Other curriculum Other curriculum Other curriculum \N \N \N 2021-11-05 18:59:18.187825 2021-11-05 18:59:18.187784 bcf29607-b288-4c6c-bc5d-5b1a529edfa8 794 +737 uri://ed-fi.org/DeliveryMethodDescriptor Individual Individual Individual \N \N \N 2021-11-05 18:59:18.234781 2021-11-05 18:59:18.233615 8782d0dd-34ad-4703-be5c-ea76c0454758 797 +739 uri://ed-fi.org/DiplomaLevelDescriptor Distinguished Distinguished Distinguished \N \N \N 2021-11-05 18:59:18.298637 2021-11-05 18:59:18.297416 b303efa4-39ca-4a5e-ad51-a8cefed387a4 799 +744 uri://ed-fi.org/DiplomaLevelDescriptor Minimum Minimum Minimum \N \N \N 2021-11-05 18:59:18.314113 2021-11-05 18:59:18.314048 7edf58d7-36e7-4b74-bb82-2b01be99b887 804 +748 uri://ed-fi.org/DiplomaTypeDescriptor Apprenticeship Certificate Apprenticeship Certificate Apprenticeship Certificate \N \N \N 2021-11-05 18:59:18.371928 2021-11-05 18:59:18.370771 98280958-966f-4011-a056-da9e2d9e4510 808 +755 uri://ed-fi.org/DiplomaTypeDescriptor Endorsed/advanced diploma Endorsed/advanced diploma Endorsed/advanced diploma \N \N \N 2021-11-05 18:59:18.390331 2021-11-05 18:59:18.390294 04904493-9290-401b-b796-b8f7b9953f01 815 +649 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Dual Credit Dual Credit Dual Credit \N \N \N 2021-11-05 18:59:17.617409 2021-11-05 18:59:17.61725 82d38926-8fa0-47f3-bdd8-19c15681e1ee 709 +651 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Gifted and Talented Gifted and Talented Gifted and Talented \N \N \N 2021-11-05 18:59:17.623464 2021-11-05 18:59:17.623423 d7a703a2-d29f-4f6d-a74f-f01186a19714 711 +652 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Honors Honors Honors \N \N \N 2021-11-05 18:59:17.62803 2021-11-05 18:59:17.628008 20a7e262-daa0-43cd-a152-f3379ed2b8c5 712 +654 uri://ed-fi.org/CourseLevelCharacteristicDescriptor International Baccalaureate International Baccalaureate International Baccalaureate \N \N \N 2021-11-05 18:59:17.631848 2021-11-05 18:59:17.631758 deb55f03-da1d-4886-91fc-fe9705a5bd8b 714 +656 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Other Other Other \N \N \N 2021-11-05 18:59:17.63666 2021-11-05 18:59:17.636611 19d6e978-53e3-4576-a442-63fae9848993 716 +658 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Pre-IB Pre-IB Pre-IB \N \N \N 2021-11-05 18:59:17.642437 2021-11-05 18:59:17.642403 87ce57d6-c6b7-4928-808d-6ce01dfb40c1 718 +659 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Remedial Remedial Remedial \N \N \N 2021-11-05 18:59:17.64643 2021-11-05 18:59:17.646366 00d35983-d554-474f-b183-93f605942af6 719 +661 uri://ed-fi.org/CourseLevelCharacteristicDescriptor Untracked Untracked Untracked \N \N \N 2021-11-05 18:59:17.650277 2021-11-05 18:59:17.650207 53049a5c-271f-4729-97d3-f5a90cb5b4b9 721 +665 uri://ed-fi.org/CourseRepeatCodeDescriptor Not Counted Other Not Counted Other Not Counted Other \N \N \N 2021-11-05 18:59:17.693094 2021-11-05 18:59:17.691891 b55cf44a-f2b8-4387-9331-2aae435f0a7f 725 +666 uri://ed-fi.org/CourseRepeatCodeDescriptor Replaced NotCounted Replaced NotCounted Replaced NotCounted \N \N \N 2021-11-05 18:59:17.70615 2021-11-05 18:59:17.706071 c32c43e2-c2ce-49bd-9e3b-7a58a9814065 726 +667 uri://ed-fi.org/CourseRepeatCodeDescriptor Replacement Counted Replacement Counted Replacement Counted \N \N \N 2021-11-05 18:59:17.70961 2021-11-05 18:59:17.709567 09607f94-e546-4500-9150-4d3efafef0d4 727 +668 uri://ed-fi.org/CredentialFieldDescriptor Agricultural Science and Technology Agricultural Science and Technology Agricultural Science and Technology \N \N \N 2021-11-05 18:59:17.752202 2021-11-05 18:59:17.750981 ad7c538c-6318-402c-a3c0-4c22b8fa84fa 728 +673 uri://ed-fi.org/CredentialFieldDescriptor Social Studies Social Studies Social Studies \N \N \N 2021-11-05 18:59:17.766989 2021-11-05 18:59:17.766401 c7a95f33-728b-46ac-86cf-02d83d5f3c82 733 +675 uri://ed-fi.org/CredentialFieldDescriptor Life and Physical Sciences Life and Physical Sciences Life and Physical Sciences \N \N \N 2021-11-05 18:59:17.769771 2021-11-05 18:59:17.769753 d7a267d5-ed26-49b6-8176-230f7eec44ec 735 +676 uri://ed-fi.org/CredentialFieldDescriptor Music Music Music \N \N \N 2021-11-05 18:59:17.773913 2021-11-05 18:59:17.77389 5dc18b10-73c5-4752-9418-3cc25cf14370 736 +679 uri://ed-fi.org/CredentialFieldDescriptor Psychology Psychology Psychology \N \N \N 2021-11-05 18:59:17.780821 2021-11-05 18:59:17.780802 10dd0533-1584-4cc0-a711-7fdc9575ecaa 739 +680 uri://ed-fi.org/CredentialFieldDescriptor Bilingual Generalist-Spanish Bilingual Generalist-Spanish Bilingual Generalist-Spanish \N \N \N 2021-11-05 18:59:17.785722 2021-11-05 18:59:17.785683 0f62aaaa-1d27-40a9-8555-f35b6e3f0101 740 +681 uri://ed-fi.org/CredentialFieldDescriptor Elementary Education Elementary Education Elementary Education \N \N \N 2021-11-05 18:59:17.789117 2021-11-05 18:59:17.78909 89c96d9a-2100-4cbc-a08c-e86684950184 741 +686 uri://ed-fi.org/CredentialTypeDescriptor Certification Certification Certification \N \N \N 2021-11-05 18:59:17.852169 2021-11-05 18:59:17.851 9dee65fa-87a9-479a-afdb-cd544b6cd446 746 +687 uri://ed-fi.org/CredentialTypeDescriptor Registration Registration Registration \N \N \N 2021-11-05 18:59:17.866348 2021-11-05 18:59:17.866257 20bff62b-45c0-4fb7-b6f9-260a360f0223 747 +688 uri://gbisd.edu/CreditCategoryDescriptor International Baccalaureate International Baccalaureate International Baccalaureate \N \N \N 2021-11-05 18:59:17.909929 2021-11-05 18:59:17.908745 a8796bd1-34f2-4201-85cc-e88b3de35429 748 +695 uri://ed-fi.org/CreditTypeDescriptor Converted occupational experience credit Converted occupational experience credit Converted occupational experience credit \N \N \N 2021-11-05 18:59:17.965984 2021-11-05 18:59:17.964834 236f85c8-e2bb-41d6-b506-4f1250975705 755 +696 uri://ed-fi.org/CreditTypeDescriptor Credit by examination Credit by examination Credit by examination \N \N \N 2021-11-05 18:59:17.978674 2021-11-05 18:59:17.978578 f9385f5c-b3bf-43a6-beea-2f78721a27fe 756 +698 uri://ed-fi.org/CreditTypeDescriptor Long session hour credit Long session hour credit Long session hour credit \N \N \N 2021-11-05 18:59:17.982949 2021-11-05 18:59:17.982902 9914a62c-49e7-400c-a838-cc4c9ff65fa8 758 +699 uri://ed-fi.org/CreditTypeDescriptor Intersession hour credit Intersession hour credit Intersession hour credit \N \N \N 2021-11-05 18:59:17.985897 2021-11-05 18:59:17.985763 d91aae4d-6646-48ef-a5fc-628d2106176d 759 +701 uri://ed-fi.org/CreditTypeDescriptor Nine month year hour credit Nine month year hour credit Nine month year hour credit \N \N \N 2021-11-05 18:59:17.991414 2021-11-05 18:59:17.991293 58b0e2c5-1c88-44ab-8f35-7b8c6b97a483 761 +703 uri://ed-fi.org/CreditTypeDescriptor Quarter hour credit Quarter hour credit Quarter hour credit \N \N \N 2021-11-05 18:59:17.998456 2021-11-05 18:59:17.996981 dabaf6bd-8fe9-4278-a6fe-13461eba1495 763 +704 uri://ed-fi.org/CreditTypeDescriptor Semester hour credit Semester hour credit Semester hour credit \N \N \N 2021-11-05 18:59:18.003417 2021-11-05 18:59:18.002746 eb5f3c3e-fc13-4ca0-94b2-0088de36431e 764 +706 uri://ed-fi.org/CreditTypeDescriptor Summer term hour credit Summer term hour credit Summer term hour credit \N \N \N 2021-11-05 18:59:18.00755 2021-11-05 18:59:18.007281 cdb13309-7563-46cb-bcb8-a76c17f0799f 766 +707 uri://ed-fi.org/CreditTypeDescriptor Trimester hour credit Trimester hour credit Trimester hour credit \N \N \N 2021-11-05 18:59:18.010065 2021-11-05 18:59:18.009843 69c30319-8ff2-4a84-a236-fb1961d0461e 767 +708 uri://ed-fi.org/CreditTypeDescriptor Twelve month year hour credit Twelve month year hour credit Twelve month year hour credit \N \N \N 2021-11-05 18:59:18.013474 2021-11-05 18:59:18.013437 29113a3f-cd7f-406e-adbb-4eebdc8c622b 768 +709 uri://ed-fi.org/CTEProgramServiceDescriptor Business, Management and Administration Business, Management and Administration Business, Management and Administration \N \N \N 2021-11-05 18:59:18.063818 2021-11-05 18:59:18.062652 af1fee0a-eae2-4e88-92b5-97ccc84dd411 769 +715 uri://ed-fi.org/CTEProgramServiceDescriptor Health Science Health Science Health Science \N \N \N 2021-11-05 18:59:18.081125 2021-11-05 18:59:18.081089 7d38261d-84b8-4639-877f-ac1f428dab14 775 +717 uri://ed-fi.org/CTEProgramServiceDescriptor Hospitality and Tourism Hospitality and Tourism Hospitality and Tourism \N \N \N 2021-11-05 18:59:18.087314 2021-11-05 18:59:18.087231 1d30768f-a34b-42fb-b713-65fef39ccf53 777 +718 uri://ed-fi.org/CTEProgramServiceDescriptor Information Technology Information Technology Information Technology \N \N \N 2021-11-05 18:59:18.091376 2021-11-05 18:59:18.091336 156cb9e4-bbb3-4a94-a5d2-0ec8de078a21 778 +720 uri://ed-fi.org/CTEProgramServiceDescriptor Law, Public Safety, Corrections and Security Law, Public Safety, Corrections and Security Law, Public Safety, Corrections and Security \N \N \N 2021-11-05 18:59:18.103155 2021-11-05 18:59:18.103102 e3d82541-c52e-49a1-9730-f46d1842b3f5 780 +721 uri://ed-fi.org/CTEProgramServiceDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.109227 2021-11-05 18:59:18.109075 b8754637-538e-48f0-b283-8ac4080e13fd 781 +724 uri://ed-fi.org/CTEProgramServiceDescriptor Science, Technology, Engineering and Mathematics Science, Technology, Engineering and Mathematics Science, Technology, Engineering and Mathematics \N \N \N 2021-11-05 18:59:18.114791 2021-11-05 18:59:18.114703 08d61da1-444d-48e9-97b0-5aba82c486aa 784 +725 uri://ed-fi.org/CTEProgramServiceDescriptor Transportation, Distribution and Logistics Transportation, Distribution and Logistics Transportation, Distribution and Logistics \N \N \N 2021-11-05 18:59:18.117526 2021-11-05 18:59:18.117498 078fe5ef-9853-42a2-b5f7-74861eaa300f 785 +727 uri://ed-fi.org/CurriculumUsedDescriptor Creative curriculum infants/toddlers Creative curriculum infants/toddlers Creative curriculum infants/toddlers \N \N \N 2021-11-05 18:59:18.166123 2021-11-05 18:59:18.164922 0fe39b08-78e0-4997-b308-e9aeb72bd9c8 787 +730 uri://ed-fi.org/CurriculumUsedDescriptor Highscope preschoolers Highscope preschoolers Highscope preschoolers \N \N \N 2021-11-05 18:59:18.178262 2021-11-05 18:59:18.178108 32eb10b9-0753-4bba-9f1f-3ff4bf3a6018 790 +731 uri://ed-fi.org/CurriculumUsedDescriptor Locally designed curriculum Locally designed curriculum Locally designed curriculum \N \N \N 2021-11-05 18:59:18.182057 2021-11-05 18:59:18.181951 ba17f29a-7886-4f1b-92fa-5cf900ae02c2 791 +729 uri://ed-fi.org/CurriculumUsedDescriptor Highscope infants/toddlers Highscope infants/toddlers Highscope infants/toddlers \N \N \N 2021-11-05 18:59:18.1667 2021-11-05 18:59:18.164946 6beb40a2-2cba-40b5-b0f0-d23cc560107a 789 +736 uri://ed-fi.org/DeliveryMethodDescriptor Whole Class Whole Class Whole Class \N \N \N 2021-11-05 18:59:18.234781 2021-11-05 18:59:18.233636 eb194f5a-a826-4d37-a442-fdb2095e9518 796 +742 uri://ed-fi.org/DiagnosisDescriptor Dropout Risk Dropout Risk Dropout Risk \N \N \N 2021-11-05 18:59:18.30206 2021-11-05 18:59:18.301511 b60eb791-06a8-4f59-be7c-c6f0072cf98e 802 +750 uri://ed-fi.org/DiplomaTypeDescriptor Alternative credential Alternative credential Alternative credential \N \N \N 2021-11-05 18:59:18.372144 2021-11-05 18:59:18.370787 6c9ad610-38ac-4086-8876-1961bc57343c 810 +767 uri://ed-fi.org/DisabilityDescriptor Intellectual Disability Intellectual Disability Intellectual Disability \N \N \N 2021-11-05 18:59:18.465182 2021-11-05 18:59:18.463291 86d54724-4322-400e-9cbf-c22f14829d6e 827 +788 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor By health care provider By health care provider By health care provider \N \N \N 2021-11-05 18:59:18.577397 2021-11-05 18:59:18.576196 2952ba82-f7e9-4f01-ad15-9d82816d089a 848 +797 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor School Year Ended School Year Ended School Year Ended \N \N \N 2021-11-05 18:59:18.655784 2021-11-05 18:59:18.654641 d23055b3-ae7d-4665-aa10-508883b458f7 857 +812 uri://ed-fi.org/DisciplineDescriptor Expulsion Expulsion Expulsion \N \N \N 2021-11-05 18:59:18.753802 2021-11-05 18:59:18.751841 85dd641f-ce0c-45c4-b3a3-deaa46cadc85 872 +821 uri://ed-fi.org/DisciplineIncidentParticipationCodeDescriptor Perpetrator Perpetrator Perpetrator \N \N \N 2021-11-05 18:59:18.830066 2021-11-05 18:59:18.828754 e17e9b1e-a988-4287-be04-0ee0603d08ba 881 +825 uri://ed-fi.org/EducationalEnvironmentDescriptor In-school suspension In-school suspension In-school suspension \N \N \N 2021-11-05 18:59:18.889684 2021-11-05 18:59:18.88837 e8411a1a-1813-44d1-99e5-a8fb566b75f2 885 +829 uri://ed-fi.org/EducationalEnvironmentDescriptor Mainstream (Special Education) Mainstream (Special Education) Mainstream (Special Education) \N \N \N 2021-11-05 18:59:18.904586 2021-11-05 18:59:18.90423 fc1855bb-cda1-46d3-a2db-3cae0b1a90f3 889 +837 uri://ed-fi.org/EducationOrganizationCategoryDescriptor Education Service Center Education Service Center Education Service Center \N \N \N 2021-11-05 18:59:18.972972 2021-11-05 18:59:18.971802 e40701e3-906c-4910-bf33-14d953a1f3a2 896 +847 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor IPEDS IPEDS IPEDS \N \N \N 2021-11-05 18:59:19.044995 2021-11-05 18:59:19.043227 d37fe961-ebb0-40a8-86d6-d91323f60cab 907 +850 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.060342 2021-11-05 18:59:19.060269 606c1cb6-ee6e-4a9c-a0e1-41ce2ba48762 910 +858 uri://ed-fi.org/EducationPlanDescriptor Career Suggestions Career Suggestions Career Suggestions \N \N \N 2021-11-05 18:59:19.122336 2021-11-05 18:59:19.120986 31367ac2-aabe-4822-b30d-673322d2a37b 918 +869 uri://ed-fi.org/ElectronicMailTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.203775 2021-11-05 18:59:19.20244 17b3b525-44a0-4587-ba2f-96d40a8f2be2 929 +873 uri://ed-fi.org/EmploymentStatusDescriptor Employed or affiliated with outside organization Employed or affiliated with outside organization Employed or affiliated with outside organization \N \N \N 2021-11-05 18:59:19.262131 2021-11-05 18:59:19.260809 bc6b9adf-6611-47c5-ac6d-58433ab3f606 933 +883 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Illness Nonpromotion - Illness Nonpromotion - Illness \N \N \N 2021-11-05 18:59:19.601539 2021-11-05 18:59:19.60008 d388e035-392b-4e29-ac58-d25c330cd2fd 943 +888 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Other Nonpromotion - Other Nonpromotion - Other \N \N \N 2021-11-05 18:59:19.618623 2021-11-05 18:59:19.618575 2911b972-592a-4cb2-af31-1ed9450fbe42 948 +897 uri://ed-fi.org/EntryTypeDescriptor New to education system New to education system New to education system \N \N \N 2021-11-05 18:59:19.68871 2021-11-05 18:59:19.687598 9b2c5934-8aee-4b53-8d5e-ab92000736db 957 +902 uri://ed-fi.org/EventCircumstanceDescriptor Administration or system failure Administration or system failure Administration or system failure \N \N \N 2021-11-05 18:59:19.751882 2021-11-05 18:59:19.750623 6b10fda6-cb77-43bc-88cd-ed3c08179f83 962 +931 uri://ed-fi.org/ExitWithdrawTypeDescriptor Completed Completed Completed \N \N \N 2021-11-05 18:59:19.886412 2021-11-05 18:59:19.885234 53516c58-ae49-48f6-8eae-58c252123f57 991 +949 uri://ed-fi.org/GradebookEntryTypeDescriptor Homework Homework Homework \N \N \N 2021-11-05 18:59:19.980241 2021-11-05 18:59:19.978397 425526bb-b95b-415e-a512-e362c2d1ca71 1009 +957 uri://ed-fi.org/GradeLevelDescriptor Early Education Early Education Early Education \N \N \N 2021-11-05 18:59:20.05587 2021-11-05 18:59:20.054133 bab29c35-bb37-4973-b46b-1c5dfd17042c 1017 +960 uri://ed-fi.org/GradeLevelDescriptor Second grade Second grade Second grade \N \N \N 2021-11-05 18:59:20.070595 2021-11-05 18:59:20.07046 744b84e4-a947-4ed5-8023-fd33bba1999b 1020 +988 uri://ed-fi.org/GradingPeriodDescriptor First Semester First Semester First Semester \N \N \N 2021-11-05 18:59:20.235484 2021-11-05 18:59:20.234304 cbdc9ed7-0c69-46f1-b4f5-721df858eb65 1048 +1008 uri://ed-fi.org/GraduationPlanTypeDescriptor Minimum Minimum Minimum \N \N \N 2021-11-05 18:59:20.340612 2021-11-05 18:59:20.338699 3fa891fd-5fdd-4436-a2cf-dc48f500ec9d 1068 +1010 uri://ed-fi.org/GunFreeSchoolsActReportingStatusDescriptor No No No \N \N \N 2021-11-05 18:59:20.403683 2021-11-05 18:59:20.402569 b94c72df-b6a9-431c-b0ab-c9758d7103fd 1070 +1016 uri://ed-fi.org/HomelessPrimaryNighttimeResidenceDescriptor Hotels/motels Hotels/motels Hotels/motels \N \N \N 2021-11-05 18:59:20.467606 2021-11-05 18:59:20.466288 9a29e3a1-e4b4-4035-b3d4-a0153159cee2 1076 +1021 uri://ed-fi.org/HomelessProgramServiceDescriptor Medical Referrals Medical Referrals Medical Referrals \N \N \N 2021-11-05 18:59:20.532468 2021-11-05 18:59:20.530636 fdab0580-d3c9-40df-8d57-66a65a63b473 1081 +1062 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Administrative Administrative Administrative \N \N \N 2021-11-05 18:59:20.832643 2021-11-05 18:59:20.829273 d1fc471d-748b-44ac-a6ba-1da12510b631 1122 +1069 uri://ed-fi.org/InteractivityStyleDescriptor Other Other Other \N \N \N 2021-11-05 18:59:20.916949 2021-11-05 18:59:20.915267 666126e4-7cea-47c5-a965-fcbb68ed3d5b 1129 +1073 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Residential Broadband Residential Broadband The type of internet service used in the student’s primary place of residence is residential broadband. \N \N \N 2021-11-05 18:59:20.989874 2021-11-05 18:59:20.98872 53549a16-3c03-4743-aaac-e428d393f71b 1133 +1085 uri://ed-fi.org/InterventionClassDescriptor Curriculum Curriculum Curriculum \N \N \N 2021-11-05 18:59:21.08634 2021-11-05 18:59:21.085018 5cab3b9d-c7bd-45b3-94a3-768b46117f04 1145 +1092 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor No Discernible Effects No Discernible Effects No Discernible Effects \N \N \N 2021-11-05 18:59:21.152006 2021-11-05 18:59:21.150234 5fbca279-3019-4aca-9a47-053a98c5993b 1152 +1099 uri://ed-fi.org/LanguageDescriptor rup Aromanian Aromanian \N \N \N 2021-11-05 18:59:21.222847 2021-11-05 18:59:21.221046 7465ae4a-c47d-444c-bca5-10a20a1d103c 1159 +1141 uri://ed-fi.org/LanguageDescriptor kho Khotanese Khotanese \N \N \N 2021-11-05 18:59:21.363077 2021-11-05 18:59:21.36175 f830e824-6d52-4aba-9701-1adeef1cc300 1201 +1157 uri://ed-fi.org/LanguageDescriptor aka Akan Akan \N \N \N 2021-11-05 18:59:21.422161 2021-11-05 18:59:21.422121 6c018f97-faf0-4359-b3c0-1ec8068565be 1217 +1312 uri://ed-fi.org/LanguageDescriptor sah Yakut Yakut \N \N \N 2021-11-05 18:59:22.113264 2021-11-05 18:59:22.113206 f5239077-d2c2-4e74-8df6-6eb30de45d38 1372 +1583 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Transitional Bilingual Transitional Bilingual Transitional Bilingual \N \N \N 2021-11-05 18:59:22.939751 2021-11-05 18:59:22.937978 b2c880c4-47aa-46c5-89e8-304971d27716 1643 +1594 uri://ed-fi.org/LanguageUseDescriptor Correspondence language Correspondence language Correspondence language \N \N \N 2021-11-05 18:59:23.028306 2021-11-05 18:59:23.026622 5d900177-b682-41a4-b65f-8fde996111c9 1654 +1596 uri://ed-fi.org/LanguageUseDescriptor Other Other Other \N \N \N 2021-11-05 18:59:23.044431 2021-11-05 18:59:23.04432 46c669b2-da24-459f-b64e-3080b08c474d 1656 +1607 uri://ed-fi.org/LearningStandardScopeDescriptor School School School \N \N \N 2021-11-05 18:59:23.179343 2021-11-05 18:59:23.178181 ad43f30e-f9c2-4d69-b69c-d18ec85393d8 1667 +1615 uri://ed-fi.org/LevelOfEducationDescriptor Doctorate Doctorate Doctorate \N \N \N 2021-11-05 18:59:23.471781 2021-11-05 18:59:23.47018 893a6adb-e3bc-41dd-bbd0-628baf175ed9 1675 +1624 uri://ed-fi.org/LicenseTypeDescriptor Child Care Center Child Care Center Child Care Center \N \N \N 2021-11-05 18:59:23.569596 2021-11-05 18:59:23.569519 e0f3428d-1be6-4fdc-9243-0ae75a0fa3d8 1684 +733 uri://ed-fi.org/CurriculumUsedDescriptor Montessori curriculum Montessori curriculum Montessori curriculum \N \N \N 2021-11-05 18:59:18.186066 2021-11-05 18:59:18.185256 c7fbb942-6102-4a7a-baa2-5d71fa1c97d5 793 +735 uri://ed-fi.org/DeliveryMethodDescriptor Small Group Small Group Small Group \N \N \N 2021-11-05 18:59:18.234786 2021-11-05 18:59:18.233611 445e3c86-2f8b-459b-b699-d57d4f167d1f 795 +741 uri://ed-fi.org/DiagnosisDescriptor Low Attendance Low Attendance Low Attendance \N \N \N 2021-11-05 18:59:18.302214 2021-11-05 18:59:18.300905 62d8a447-980e-4ae0-8dd1-9c00cf5b014b 801 +743 uri://ed-fi.org/DiplomaLevelDescriptor Magna cum laude Magna cum laude Magna cum laude \N \N \N 2021-11-05 18:59:18.312007 2021-11-05 18:59:18.311453 48dae407-f9e5-4ebe-b6bb-d135e1cba1e8 803 +746 uri://ed-fi.org/DiplomaLevelDescriptor Recommended Recommended Recommended \N \N \N 2021-11-05 18:59:18.31835 2021-11-05 18:59:18.318306 5c0fe4f4-ad71-45d2-a068-f50999cc6770 806 +747 uri://ed-fi.org/DiplomaLevelDescriptor Summa cum laude Summa cum laude Summa cum laude \N \N \N 2021-11-05 18:59:18.32396 2021-11-05 18:59:18.32392 fb0ee75f-7ea2-48f0-a9c7-b21d75ee8739 807 +749 uri://ed-fi.org/DiplomaTypeDescriptor Certificate of attendance Certificate of attendance Certificate of attendance \N \N \N 2021-11-05 18:59:18.371943 2021-11-05 18:59:18.370762 cba0a68b-aee1-4236-96f7-1bef29a8a35b 809 +752 uri://ed-fi.org/DiplomaTypeDescriptor Certificate of completion Certificate of completion Certificate of completion \N \N \N 2021-11-05 18:59:18.386026 2021-11-05 18:59:18.386 19fe03ea-8fc1-410c-9d50-69823b08a52d 812 +753 uri://ed-fi.org/DiplomaTypeDescriptor General Educational Development (GED) credential General Educational Development (GED) credential General Educational Development (GED) credential \N \N \N 2021-11-05 18:59:18.38911 2021-11-05 18:59:18.389066 379811d5-a930-4c72-ad3d-f4e0e4d4b29a 813 +756 uri://ed-fi.org/DiplomaTypeDescriptor Industry-recognized Certification Industry-recognized Certification Industry-recognized Certification \N \N \N 2021-11-05 18:59:18.394412 2021-11-05 18:59:18.394378 330eff53-c8a7-45a9-9a95-170024c5c406 816 +757 uri://ed-fi.org/DiplomaTypeDescriptor International Baccalaureate International Baccalaureate International Baccalaureate \N \N \N 2021-11-05 18:59:18.398483 2021-11-05 18:59:18.398447 a6248b2a-3a87-4131-ba59-1e1fe7a5434e 817 +759 uri://ed-fi.org/DiplomaTypeDescriptor Occupational License Occupational License Occupational License \N \N \N 2021-11-05 18:59:18.403035 2021-11-05 18:59:18.402972 17ad668f-bb20-4502-b5d7-c6846b94b818 819 +760 uri://ed-fi.org/DiplomaTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.40638 2021-11-05 18:59:18.406338 c3dc5502-4104-4db5-99eb-deb6545ec683 820 +763 uri://ed-fi.org/DiplomaTypeDescriptor Regents diploma Regents diploma Regents diploma \N \N \N 2021-11-05 18:59:18.413434 2021-11-05 18:59:18.41329 760f3f18-48e3-4dc3-8b0a-fcf93cc16644 823 +764 uri://ed-fi.org/DiplomaTypeDescriptor Regular diploma Regular diploma Regular diploma \N \N \N 2021-11-05 18:59:18.416289 2021-11-05 18:59:18.416181 1a85b7b6-5ee5-4ec2-9c0b-28c00383b00f 824 +765 uri://ed-fi.org/DisabilityDescriptor Hearing Impairment, including Deafness Hearing Impairment, including Deafness Hearing Impairment, including Deafness \N \N \N 2021-11-05 18:59:18.464508 2021-11-05 18:59:18.463266 30ff0308-ff95-4849-96cf-b39f0f04a8c2 825 +769 uri://ed-fi.org/DisabilityDescriptor Infant/Toddler with a Disability Infant/Toddler with a Disability Infant/Toddler with a Disability \N \N \N 2021-11-05 18:59:18.477081 2021-11-05 18:59:18.476872 152af479-fb7e-4014-9aac-fd84574edf7a 829 +770 uri://ed-fi.org/DisabilityDescriptor Mental impairment Mental impairment Mental impairment \N \N \N 2021-11-05 18:59:18.480312 2021-11-05 18:59:18.480053 827588d1-65a7-4886-9f4e-f8607c582da1 830 +772 uri://ed-fi.org/DisabilityDescriptor Motor impairment Motor impairment Motor impairment \N \N \N 2021-11-05 18:59:18.483458 2021-11-05 18:59:18.483432 fb2d2a50-e61a-4744-a812-2640e65b9e69 832 +773 uri://ed-fi.org/DisabilityDescriptor Multiple Disabilities Multiple Disabilities Multiple disabilities \N \N \N 2021-11-05 18:59:18.488297 2021-11-05 18:59:18.488254 129ce9f1-67b7-46ea-b9f4-0e312a6c975c 833 +774 uri://ed-fi.org/DisabilityDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.492561 2021-11-05 18:59:18.491966 45f72b39-7678-484d-91eb-bf65ad1dc598 834 +776 uri://ed-fi.org/DisabilityDescriptor Other Health Impairment Other Health Impairment Other Health Impairment \N \N \N 2021-11-05 18:59:18.496048 2021-11-05 18:59:18.496005 5a494db1-af79-4331-b6aa-739d0ec6b53d 836 +777 uri://ed-fi.org/DisabilityDescriptor Physical Disability Physical Disability Physical Disability \N \N \N 2021-11-05 18:59:18.498455 2021-11-05 18:59:18.498408 e5d79073-7b7f-49b0-aed5-3978c722f61b 837 +778 uri://ed-fi.org/DisabilityDescriptor Preschooler with a Disability Preschooler with a Disability Preschooler with a Disability \N \N \N 2021-11-05 18:59:18.501443 2021-11-05 18:59:18.501398 6f276f51-a766-4f76-825e-13f79691cfd7 838 +779 uri://ed-fi.org/DisabilityDescriptor Sensory impairment Sensory impairment Sensory impairment \N \N \N 2021-11-05 18:59:18.50509 2021-11-05 18:59:18.505047 2088a072-ebff-4f11-aa51-a8aa009be8c4 839 +780 uri://ed-fi.org/DisabilityDescriptor Serious Emotional Disability Serious Emotional Disability Serious Emotional Disability \N \N \N 2021-11-05 18:59:18.509877 2021-11-05 18:59:18.509818 43b43089-7469-40e6-b0e2-496d469b0f7f 840 +782 uri://ed-fi.org/DisabilityDescriptor Specific Learning Disability Specific Learning Disability Specific Learning Disability \N \N \N 2021-11-05 18:59:18.514737 2021-11-05 18:59:18.514478 95221857-905b-4db0-ab94-de92759ce1ed 842 +784 uri://ed-fi.org/DisabilityDescriptor Visual Impairment, including Blindness Visual Impairment, including Blindness Visual Impairment, including Blindness \N \N \N 2021-11-05 18:59:18.518925 2021-11-05 18:59:18.518868 f5728735-8edc-45b6-aae8-33f6e579def0 844 +785 uri://ed-fi.org/DisabilityDesignationDescriptor Section 504 Section 504 Section 504 \N \N \N 2021-11-05 18:59:18.572769 2021-11-05 18:59:18.571537 1b191cc9-0b16-4fef-afc6-91ba6825810e 845 +790 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor By licensed physical therapist By licensed physical therapist By licensed physical therapist \N \N \N 2021-11-05 18:59:18.588016 2021-11-05 18:59:18.587939 6bb5b649-035f-44b5-96e6-606cc6db41f4 850 +792 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor By social service or other type of agency By social service or other type of agency By social service or other type of agency \N \N \N 2021-11-05 18:59:18.591323 2021-11-05 18:59:18.5913 05d93e9e-acca-40c1-b60a-70a63b60bf8e 852 +793 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor Not applicable to the student Not applicable to the student Not applicable to the student \N \N \N 2021-11-05 18:59:18.596697 2021-11-05 18:59:18.596662 0f3d6598-a04e-4243-86ce-e7956feb03a4 853 +794 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.601533 2021-11-05 18:59:18.601483 ee3ff544-671a-4f0b-9ffc-53e8253233fc 854 +796 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor Self-reported Self-reported Self-reported \N \N \N 2021-11-05 18:59:18.605311 2021-11-05 18:59:18.604902 86080dd2-d83d-4f67-a62f-e08d9196a378 856 +799 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor No Difference No Difference No Difference \N \N \N 2021-11-05 18:59:18.655782 2021-11-05 18:59:18.654621 143f6b2d-19f3-4917-a84c-616f0e701c9e 859 +801 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Completed Term Requirements Sooner Than Expected Student Completed Term Requirements Sooner Than Expected Student Completed Term Requirements Sooner Than Expected \N \N \N 2021-11-05 18:59:18.669152 2021-11-05 18:59:18.669111 ab7ec49e-51b2-48ff-b999-22530dc4ca4a 861 +804 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Term Decreased Due To Health-Related Circumstances Term Decreased Due To Extenuating Health-Related Circumstances Term Decreased Due To Extenuating Health-Related Circumstances \N \N \N 2021-11-05 18:59:18.674076 2021-11-05 18:59:18.67403 208082d4-5253-4deb-bde8-f21af8b381b2 864 +805 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Term Modified By Court Order Term Modified By Court Order Term Modified By Court Order \N \N \N 2021-11-05 18:59:18.678121 2021-11-05 18:59:18.678075 25501de9-8c44-4a78-ad6c-794bfa72cb06 865 +806 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Term Modified By District Term Modified By District Term Modified By District \N \N \N 2021-11-05 18:59:18.680586 2021-11-05 18:59:18.680567 40cacf7d-0d64-4e2a-a2c3-662fa0177877 866 +807 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Term Modified By Mutual Agreement Term Modified By Mutual Agreement Term Modified By Mutual Agreement \N \N \N 2021-11-05 18:59:18.685976 2021-11-05 18:59:18.685874 33a3d093-2479-4017-b569-5732522b8d71 867 +758 uri://ed-fi.org/DiplomaTypeDescriptor Modified diploma Modified diploma Modified diploma \N \N \N 2021-11-05 18:59:18.402061 2021-11-05 18:59:18.402002 5fd40805-5a20-4beb-872a-d5ef2aaec4b0 818 +761 uri://ed-fi.org/DiplomaTypeDescriptor Other diploma Other diploma Other diploma \N \N \N 2021-11-05 18:59:18.408743 2021-11-05 18:59:18.408694 a605591c-d01e-40f1-b108-cf694a13062f 821 +762 uri://ed-fi.org/DiplomaTypeDescriptor Post graduate certificate (grade 13) Post graduate certificate (grade 13) Post graduate certificate (grade 13) \N \N \N 2021-11-05 18:59:18.412645 2021-11-05 18:59:18.412382 56286a0c-80a8-4b52-a152-97a46314129e 822 +766 uri://ed-fi.org/DisabilityDescriptor Autism Spectrum Disorders Autism Spectrum Disorders Autism Spectrum Disorders \N \N \N 2021-11-05 18:59:18.464686 2021-11-05 18:59:18.463274 3d5fe791-6e6e-4054-ac99-9ffbd6f8f913 826 +771 uri://ed-fi.org/DisabilityDescriptor Medical condition Medical condition Medical condition \N \N \N 2021-11-05 18:59:18.480879 2021-11-05 18:59:18.480815 43c83727-5b53-47d4-93db-04971c60189e 831 +775 uri://ed-fi.org/DisabilityDescriptor Orthopedic Impairment Orthopedic Impairment Orthopedic Impairment \N \N \N 2021-11-05 18:59:18.49396 2021-11-05 18:59:18.49331 ea59133c-b78b-4c69-8d08-9fa6ccde909f 835 +781 uri://ed-fi.org/DisabilityDescriptor Speech or Language Impairment Speech or Language Impairment Speech or Language Impairment \N \N \N 2021-11-05 18:59:18.510406 2021-11-05 18:59:18.510366 4c8dc1d8-303f-4323-b3b6-8cec11c73934 841 +783 uri://ed-fi.org/DisabilityDescriptor Traumatic Brain Injury Traumatic Brain Injury Traumatic Brain Injury \N \N \N 2021-11-05 18:59:18.516007 2021-11-05 18:59:18.515847 29147484-5be5-4d33-bcab-98d6d2e4a3e5 843 +786 uri://ed-fi.org/DisabilityDesignationDescriptor Individuals with Disabilities Education Act Individuals with Disabilities Education Act Individuals with Disabilities Education Act \N \N \N 2021-11-05 18:59:18.572829 2021-11-05 18:59:18.571543 3f5d6b1a-48b6-454a-9d27-7a255668c490 846 +789 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor By physician By physician By physician \N \N \N 2021-11-05 18:59:18.586949 2021-11-05 18:59:18.58683 5aa6c1fe-35ff-41d9-879e-8b7b15008aa4 849 +791 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor By school psychologist or other psychologist By school psychologist or other psychologist By school psychologist or other psychologist \N \N \N 2021-11-05 18:59:18.590886 2021-11-05 18:59:18.590798 5b52d00c-dfa8-4c77-abd5-9ce04aeb6319 851 +795 uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor Unknown or Unreported Unknown or Unreported Unknown or Unreported \N \N \N 2021-11-05 18:59:18.60367 2021-11-05 18:59:18.603619 4c298e2f-37e9-412b-91e6-8b099b38d353 855 +798 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.655783 2021-11-05 18:59:18.654623 8a4f6841-8bb5-46e3-a443-ad4e8063d5c0 858 +802 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Student Incarcerated Student Incarcerated Student Incarcerated \N \N \N 2021-11-05 18:59:18.671136 2021-11-05 18:59:18.671116 fd1f478b-0be1-47d9-a89d-abffa31a9de0 862 +808 uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor Term Modified By Placement Program Due To Behavior Term Modified By Placement Program Due To Student Behavior Term Modified By Placement Program Due To Student Behavior While In The Placement \N \N \N 2021-11-05 18:59:18.686871 2021-11-05 18:59:18.686409 5d4db7db-d347-4f54-8cbd-286e64c247d1 868 +810 uri://ed-fi.org/DisciplineDescriptor Removal from Classroom Removal from Classroom Removal from Classroom \N \N \N 2021-11-05 18:59:18.752988 2021-11-05 18:59:18.751833 6d0d0aa3-cddc-4529-8bfd-44bb1da10aeb 870 +816 uri://ed-fi.org/DisciplineDescriptor No action for incident No action for incident No action for incident \N \N \N 2021-11-05 18:59:18.770661 2021-11-05 18:59:18.770638 7cf1a083-9cd5-4111-b545-ed9a7a0d1afe 876 +819 uri://ed-fi.org/DisciplineIncidentParticipationCodeDescriptor Victim Victim Victim \N \N \N 2021-11-05 18:59:18.829885 2021-11-05 18:59:18.828734 e3ea3142-c81d-4523-ae99-8c77398e75ff 879 +824 uri://ed-fi.org/EducationalEnvironmentDescriptor Hospital class Hospital class Hospital class \N \N \N 2021-11-05 18:59:18.889499 2021-11-05 18:59:18.888358 432cb2ee-f9fc-4481-bc5c-31e4820367e3 884 +830 uri://ed-fi.org/EducationalEnvironmentDescriptor Laboratory Laboratory Laboratory \N \N \N 2021-11-05 18:59:18.90596 2021-11-05 18:59:18.90576 895cd562-44b4-410f-bd83-633ff0a19b0d 890 +833 uri://ed-fi.org/EducationalEnvironmentDescriptor Self-contained (Special Education) Self-contained (Special Education) Self-contained (Special Education) \N \N \N 2021-11-05 18:59:18.918239 2021-11-05 18:59:18.918016 dc9d4d3e-e93f-42ec-9925-35e659af0a64 893 +835 uri://ed-fi.org/EducationalEnvironmentDescriptor Single sex classroom Single sex classroom Single sex classroom \N \N \N 2021-11-05 18:59:18.92277 2021-11-05 18:59:18.922523 cb798b54-81a8-4277-a36d-acf9c8e25db6 895 +836 uri://ed-fi.org/EducationOrganizationCategoryDescriptor Local Education Agency Local Education Agency Local Education Agency \N \N \N 2021-11-05 18:59:18.972978 2021-11-05 18:59:18.971822 82b465d4-6427-4821-8be6-5dc04695482f 898 +841 uri://ed-fi.org/EducationOrganizationCategoryDescriptor School School School \N \N \N 2021-11-05 18:59:18.986246 2021-11-05 18:59:18.986034 3b7980c0-db64-4fda-a781-5d0db1ae369b 901 +842 uri://ed-fi.org/EducationOrganizationCategoryDescriptor Post Secondary Institution Post Secondary Institution Post Secondary Institution \N \N \N 2021-11-05 18:59:18.989683 2021-11-05 18:59:18.989594 11733dd1-86e1-44cf-915f-279057a2531e 902 +845 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor Federal Federal Federal \N \N \N 2021-11-05 18:59:19.044396 2021-11-05 18:59:19.043222 91bf3b7a-195b-4476-89da-f522ba513ce4 905 +853 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor SEA SEA SEA \N \N \N 2021-11-05 18:59:19.072354 2021-11-05 18:59:19.072253 66824e9b-4d17-4857-aab0-5ce11b16120c 913 +856 uri://ed-fi.org/EducationPlanDescriptor Completion and Reach Age 22 Completion and Reach Age 22 Completion and Reach Age 22 \N \N \N 2021-11-05 18:59:19.122101 2021-11-05 18:59:19.120966 dbe979d9-5715-4067-be40-bd4df6040c7a 916 +861 uri://ed-fi.org/EducationPlanDescriptor High School Education Plan High School Education Plan High School Education Plan \N \N \N 2021-11-05 18:59:19.137705 2021-11-05 18:59:19.137682 797103f9-5f3a-4515-9aed-d49bdddedaa4 921 +865 uri://ed-fi.org/EducationPlanDescriptor Personal Graduation Plan Personal Graduation Plan Personal Graduation Plan \N \N \N 2021-11-05 18:59:19.150065 2021-11-05 18:59:19.150023 916bc851-affb-4537-9ab2-74b19b1c1218 925 +868 uri://ed-fi.org/ElectronicMailTypeDescriptor Organization Organization Organization \N \N \N 2021-11-05 18:59:19.2036 2021-11-05 18:59:19.20242 40e4bf6d-abb0-4db3-8835-a5c466a741bb 928 +872 uri://ed-fi.org/EmploymentStatusDescriptor Probationary Probationary Probationary \N \N \N 2021-11-05 18:59:19.261945 2021-11-05 18:59:19.260794 c295c68f-b315-4d44-b34a-0e39fafd9ab4 932 +876 uri://ed-fi.org/EmploymentStatusDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.2757 2021-11-05 18:59:19.275619 9ad4ec85-d2f6-45dd-b5a9-b59d0eb6365e 936 +877 uri://ed-fi.org/EmploymentStatusDescriptor Non-contractual Non-contractual Non-contractual \N \N \N 2021-11-05 18:59:19.537588 2021-11-05 18:59:19.537382 eda9d4c6-0b85-4d16-a893-be94536b6a72 937 +879 uri://ed-fi.org/EmploymentStatusDescriptor Volunteer/no contract Volunteer/no contract Volunteer/no contract \N \N \N 2021-11-05 18:59:19.544563 2021-11-05 18:59:19.544524 0d5ef523-514d-4d17-b22b-58fdb1ff0c13 939 +882 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Failed to meet testing requirements Nonpromotion - Failed to meet testing requirements Nonpromotion - Failed to meet testing requirements \N \N \N 2021-11-05 18:59:19.601292 2021-11-05 18:59:19.60006 5089a1f2-2b34-4ae5-acf4-017df9e5ef82 942 +886 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Prolonged absence Nonpromotion - Prolonged absence Nonpromotion - Prolonged absence \N \N \N 2021-11-05 18:59:19.617335 2021-11-05 18:59:19.617122 e84f90d1-be0f-42a1-973b-038990d267c9 946 +892 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Promotion - Regular promotion Promotion - Regular promotion Promotion - Regular promotion \N \N \N 2021-11-05 18:59:19.632922 2021-11-05 18:59:19.632861 8b03e84f-ee06-4c63-91f8-7e60717af623 952 +894 uri://ed-fi.org/EntryTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.688708 2021-11-05 18:59:19.68758 561fd2af-a835-4b7b-a0e9-9171095325a7 954 +900 uri://ed-fi.org/EventCircumstanceDescriptor Cheating Cheating Cheating \N \N \N 2021-11-05 18:59:19.751747 2021-11-05 18:59:19.750605 a893ac31-6794-4322-8cb2-d8a56febe61a 960 +903 uri://ed-fi.org/EventCircumstanceDescriptor Earlier truancy Earlier truancy Earlier truancy \N \N \N 2021-11-05 18:59:19.766923 2021-11-05 18:59:19.766851 235219f7-de13-4175-b539-15299bcd1211 963 +809 uri://ed-fi.org/DisciplineDescriptor In School Suspension In School Suspension In School Suspension \N \N \N 2021-11-05 18:59:18.752981 2021-11-05 18:59:18.751822 b45cc720-a733-4be9-a02f-697dc8633165 869 +814 uri://ed-fi.org/DisciplineDescriptor Community Service Community Service Community Service \N \N \N 2021-11-05 18:59:18.769407 2021-11-05 18:59:18.769295 6097522a-ddd6-4ec7-b01a-9107969e17fa 874 +822 uri://ed-fi.org/DisciplineIncidentParticipationCodeDescriptor Reporter Reporter Reporter \N \N \N 2021-11-05 18:59:18.829897 2021-11-05 18:59:18.828746 97e777cc-f0d0-484a-9d76-8a2a63be34a2 882 +826 uri://ed-fi.org/EducationalEnvironmentDescriptor Homebound Homebound Homebound \N \N \N 2021-11-05 18:59:18.889507 2021-11-05 18:59:18.888362 7732653f-0935-4187-85f2-745c8dfd3a1d 886 +828 uri://ed-fi.org/EducationalEnvironmentDescriptor Pull-out class Pull-out class Pull-out class \N \N \N 2021-11-05 18:59:18.904465 2021-11-05 18:59:18.903946 4994f1a4-5dea-4d5a-a775-04f15b18f7f3 888 +838 uri://ed-fi.org/EducationOrganizationCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.972972 2021-11-05 18:59:18.971821 a7610c54-4537-4e91-bcab-479857a3e5ed 897 +846 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor ACT ACT ACT \N \N \N 2021-11-05 18:59:19.044393 2021-11-05 18:59:19.043211 69f89574-6f99-488d-96d4-7e14ef35e228 906 +849 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor NCES NCES NCES \N \N \N 2021-11-05 18:59:19.058535 2021-11-05 18:59:19.058476 edd84284-6136-4fff-a706-31fd09a573ee 909 +857 uri://ed-fi.org/EducationPlanDescriptor Career Pathways Career Pathways Career Pathways \N \N \N 2021-11-05 18:59:19.122102 2021-11-05 18:59:19.120978 e4646e16-0ac3-4de1-9dee-3e43500c83b2 917 +860 uri://ed-fi.org/EducationPlanDescriptor Full Time Employment Full Time Employment Full Time Employment \N \N \N 2021-11-05 18:59:19.136312 2021-11-05 18:59:19.13619 b3c13f46-1a7e-4b9b-8f7d-08aae152a79c 920 +870 uri://ed-fi.org/ElectronicMailTypeDescriptor Home/Personal Home/Personal Home/Personal \N \N \N 2021-11-05 18:59:19.203627 2021-11-05 18:59:19.202432 298b0c8a-ea40-4451-ba9b-c6427993bab8 930 +871 uri://ed-fi.org/EmploymentStatusDescriptor Contractual Contractual Contractual \N \N \N 2021-11-05 18:59:19.261953 2021-11-05 18:59:19.260803 35543250-fd00-46e3-85c1-a80ff4fb43f4 931 +884 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Immaturity Nonpromotion - Immaturity Nonpromotion - Immaturity \N \N \N 2021-11-05 18:59:19.601326 2021-11-05 18:59:19.600072 a654a5ac-1c64-40fe-9fcd-8db21f77f249 944 +887 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Promotion - Accelerated promotion Promotion - Accelerated promotion Promotion - Accelerated promotion \N \N \N 2021-11-05 18:59:19.618312 2021-11-05 18:59:19.618264 4e33cb55-3df4-457f-8174-cdd53c9e6ed1 947 +891 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Promotion - Probationary promotion Promotion - Probationary promotion Promotion - Probationary promotion \N \N \N 2021-11-05 18:59:19.632178 2021-11-05 18:59:19.632161 129036e6-3be4-4055-841b-8dd826d82fea 951 +896 uri://ed-fi.org/EntryTypeDescriptor Transfer Transfer Transfer \N \N \N 2021-11-05 18:59:19.688879 2021-11-05 18:59:19.687593 c3e1107b-5756-4c75-9278-2b3ca673ff50 956 +901 uri://ed-fi.org/EventCircumstanceDescriptor Chronic absences Chronic absences Chronic absences \N \N \N 2021-11-05 18:59:19.751748 2021-11-05 18:59:19.750616 c5bf3d43-e1a6-4b67-80d2-e7eb85ad7e35 961 +909 uri://ed-fi.org/EventCircumstanceDescriptor Left testing Left testing Left testing \N \N \N 2021-11-05 18:59:19.781452 2021-11-05 18:59:19.781428 a51c90b8-32e8-4591-be1b-fb8e8e6b6a19 969 +934 uri://ed-fi.org/ExitWithdrawTypeDescriptor Dropout Dropout Dropout \N \N \N 2021-11-05 18:59:19.886963 2021-11-05 18:59:19.885228 fd9d80b2-2cbd-4274-87d3-1d78a0d80a68 994 +937 uri://ed-fi.org/ExitWithdrawTypeDescriptor Enrolled in a high school diploma program Enrolled in a high school diploma program Enrolled in a high school diploma program \N \N \N 2021-11-05 18:59:19.902207 2021-11-05 18:59:19.902158 074cf55d-4fb4-4998-93ed-ce1227249c83 997 +941 uri://ed-fi.org/ExitWithdrawTypeDescriptor No show No show No show \N \N \N 2021-11-05 18:59:19.914379 2021-11-05 18:59:19.914187 a221298c-ff73-490d-a80c-c54d522c1ff5 1001 +948 uri://ed-fi.org/GradebookEntryTypeDescriptor Assignment Assignment Assignment \N \N \N 2021-11-05 18:59:19.979531 2021-11-05 18:59:19.978388 fe36e530-0bff-47d1-9200-2e9725eacbed 1008 +951 uri://ed-fi.org/GradebookEntryTypeDescriptor Lesson Lesson Lesson \N \N \N 2021-11-05 18:59:19.994326 2021-11-05 18:59:19.993807 47f0f7fc-a18d-453d-bad6-80d4d3aff367 1011 +954 uri://ed-fi.org/GradeLevelDescriptor Infant/toddler Infant/toddler Infant/toddler \N \N \N 2021-11-05 18:59:20.055303 2021-11-05 18:59:20.054142 92559200-18f9-49ee-89b3-00eb1fdfbd04 1014 +959 uri://ed-fi.org/GradeLevelDescriptor First grade First grade First grade \N \N \N 2021-11-05 18:59:20.070566 2021-11-05 18:59:20.069817 6681b9fc-90a0-4721-a64d-86c855a20b2a 1019 +971 uri://ed-fi.org/GradeLevelDescriptor Postsecondary Postsecondary Postsecondary \N \N \N 2021-11-05 18:59:20.099814 2021-11-05 18:59:20.0998 36011f57-0563-4855-89f5-1c2de59c98ba 1031 +977 uri://ed-fi.org/GradePointAverageTypeDescriptor Weighted Weighted Weighted \N \N \N 2021-11-05 18:59:20.163486 2021-11-05 18:59:20.162349 8a509b5c-e491-4632-9e68-490b37a92c17 1037 +987 uri://ed-fi.org/GradingPeriodDescriptor Second Semester Second Semester Second Semester \N \N \N 2021-11-05 18:59:20.235651 2021-11-05 18:59:20.234309 06ab99d9-39b7-412a-96c2-94a4f3fed8b4 1047 +990 uri://ed-fi.org/GradingPeriodDescriptor Second Summer Session Second Summer Session Second Summer Session \N \N \N 2021-11-05 18:59:20.248526 2021-11-05 18:59:20.248498 4b983266-8f28-4f10-829b-84465316a262 1050 +1007 uri://ed-fi.org/GraduationPlanTypeDescriptor Recommended Recommended Recommended \N \N \N 2021-11-05 18:59:20.339867 2021-11-05 18:59:20.338693 501ac765-2424-4067-9db6-78d8fdff06d7 1067 +1013 uri://ed-fi.org/GunFreeSchoolsActReportingStatusDescriptor Not applicable Not applicable Not applicable \N \N \N 2021-11-05 18:59:20.403682 2021-11-05 18:59:20.402556 851d9622-2d3a-4a74-99a4-90acd0d394eb 1073 +1017 uri://ed-fi.org/HomelessPrimaryNighttimeResidenceDescriptor Unsheltered Unsheltered Unsheltered \N \N \N 2021-11-05 18:59:20.467446 2021-11-05 18:59:20.466279 b562ab92-5880-4534-bb37-880f58d6ada4 1077 +1020 uri://ed-fi.org/HomelessProgramServiceDescriptor Expedited Evaluations Expedited Evaluations Expedited Evaluations \N \N \N 2021-11-05 18:59:20.531773 2021-11-05 18:59:20.530626 a919c0bb-184d-4d19-b32a-b59e24a580df 1080 +1023 uri://ed-fi.org/HomelessProgramServiceDescriptor Specialized Instructional Support Services Specialized Instructional Support Services Specialized Instructional Support Services \N \N \N 2021-11-05 18:59:20.547926 2021-11-05 18:59:20.547876 66033f14-ef9f-4064-b795-033ab39cf352 1083 +1028 uri://ed-fi.org/IdentificationDocumentUseDescriptor Foreign Citizenship Identification Foreign Citizenship Identification Foreign Citizenship Identification \N \N \N 2021-11-05 18:59:20.609804 2021-11-05 18:59:20.608515 87358750-03a2-4e8b-9055-e06ce3364d9a 1088 +1058 uri://gbisd.edu/IndicatorLevelDescriptor Low Retention Low Retention Staff retention from previous school year is under 80 percent of staff retained. \N \N \N 2021-11-05 18:59:20.766205 2021-11-05 18:59:20.764965 9d690876-e44c-44e8-809d-97e7bfd72263 1118 +1060 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Fax Fax Fax \N \N \N 2021-11-05 18:59:20.830703 2021-11-05 18:59:20.829273 5b7994e0-b8c0-4953-bffe-8d0497910feb 1120 +1064 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:20.855396 2021-11-05 18:59:20.854244 2918052b-521d-4820-8034-648ae51e98cd 1124 +1066 uri://ed-fi.org/InteractivityStyleDescriptor Expositive Expositive Expositive \N \N \N 2021-11-05 18:59:20.916403 2021-11-05 18:59:20.915262 aa3b190a-f8eb-4811-b875-19f2e24777dd 1126 +1072 uri://ed-fi.org/InternetAccessDescriptor High Speed High Speed High Speed \N \N \N 2021-11-05 18:59:20.985052 2021-11-05 18:59:20.983691 2f7ff638-fd3e-4355-a229-74b1a91f86fc 1132 +1075 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Hot Spot Hot Spot The type of internet service used in the student’s primary place of residence is a standalone hot spot device that is not a cell phone that allows for additional device access. \N \N \N 2021-11-05 18:59:21.000619 2021-11-05 18:59:21.000172 07548079-8c1f-46d1-b74e-d36ebf6ca0c9 1135 +1083 uri://ed-fi.org/InternetPerformanceInResidenceDescriptor Sometimes Sometimes The student regularly experiences interruptions in learning activities caused by poor internet performance in their primary place of residence. \N \N \N 2021-11-05 18:59:21.08126 2021-11-05 18:59:21.079967 5c232c5e-ad94-4ad8-a7f4-8ef1b1ab086f 1143 +1087 uri://ed-fi.org/InterventionClassDescriptor Practice Practice Practice \N \N \N 2021-11-05 18:59:21.096677 2021-11-05 18:59:21.096576 4bdb75c1-7003-4fd4-83c5-083eb5b48f32 1147 +811 uri://ed-fi.org/DisciplineDescriptor Out of School Suspension Out of School Suspension Out of School Suspension \N \N \N 2021-11-05 18:59:18.752977 2021-11-05 18:59:18.751819 817c0314-d857-48ec-8ba0-358ac7d95e29 871 +813 uri://ed-fi.org/DisciplineDescriptor Expulsion with Services Expulsion with Services Expulsion with Services \N \N \N 2021-11-05 18:59:18.767858 2021-11-05 18:59:18.767802 87de4aa0-1d5d-43c5-b207-dbfae04128e9 873 +815 uri://ed-fi.org/DisciplineDescriptor Other Other Other \N \N \N 2021-11-05 18:59:18.770515 2021-11-05 18:59:18.770438 afb10471-d775-4244-90cd-3ede1cb59f9c 875 +817 uri://ed-fi.org/DisciplineDescriptor Expulsion under Guns Free School Act Expulsion under Guns Free School Act Expulsion under Guns Free School Act \N \N \N 2021-11-05 18:59:18.777559 2021-11-05 18:59:18.777508 8ce3ac82-236a-4837-a05d-ee4bb5178e1b 877 +818 uri://ed-fi.org/DisciplineDescriptor Expulsion under Guns Free School Act with Services Expulsion under Guns Free School Act with Services Expulsion under Guns Free School Act with Services \N \N \N 2021-11-05 18:59:18.783593 2021-11-05 18:59:18.782806 cf02525f-b089-4835-b00d-a6d9b608f3e3 878 +820 uri://ed-fi.org/DisciplineIncidentParticipationCodeDescriptor Witness Witness Witness \N \N \N 2021-11-05 18:59:18.829894 2021-11-05 18:59:18.828732 556dc3f4-5578-4729-ad85-2aa862f00a34 880 +823 uri://ed-fi.org/EducationalEnvironmentDescriptor Classroom Classroom Classroom \N \N \N 2021-11-05 18:59:18.889496 2021-11-05 18:59:18.88835 42f50ae3-cce4-47ba-b92f-fd5e389235b0 883 +827 uri://ed-fi.org/EducationalEnvironmentDescriptor Off-school center Off-school center Off-school center \N \N \N 2021-11-05 18:59:18.904064 2021-11-05 18:59:18.903691 f930b0d4-df34-48e7-94a5-b43a80464528 887 +831 uri://ed-fi.org/EducationalEnvironmentDescriptor Resource room Resource room Resource room \N \N \N 2021-11-05 18:59:18.912336 2021-11-05 18:59:18.912288 dca31d0a-27ec-4552-97c7-309ccf35e934 891 +832 uri://ed-fi.org/EducationalEnvironmentDescriptor Shop Shop Shop \N \N \N 2021-11-05 18:59:18.91635 2021-11-05 18:59:18.91623 fc9d05ad-8eba-40aa-9f5a-3833377ff259 892 +834 uri://ed-fi.org/EducationalEnvironmentDescriptor Self-study Self-study Self-study \N \N \N 2021-11-05 18:59:18.920089 2021-11-05 18:59:18.920041 f99fa7af-851f-44ed-bd94-ba85920bcc3f 894 +839 uri://ed-fi.org/EducationOrganizationCategoryDescriptor Education Organization Network Education Organization Network Education Organization Network \N \N \N 2021-11-05 18:59:18.973682 2021-11-05 18:59:18.971799 2ea75fdd-8bb7-47bc-8c00-4aa57ae2ff90 899 +840 uri://ed-fi.org/EducationOrganizationCategoryDescriptor State Education Agency State Education Agency State Education Agency \N \N \N 2021-11-05 18:59:18.986142 2021-11-05 18:59:18.985607 bc168e7f-90f3-4991-9d43-ddff7fce5cd9 900 +843 uri://ed-fi.org/EducationOrganizationCategoryDescriptor Organization Department Organization Department An organizational unit of another education organization, often devoted to a particular academic discipline, area of study, or organization function. \N \N \N 2021-11-05 18:59:18.990808 2021-11-05 18:59:18.990754 989e130f-e064-4b9a-ab38-980030ce9da4 903 +844 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor DUNS DUNS DUNS \N \N \N 2021-11-05 18:59:19.044385 2021-11-05 18:59:19.043209 503bc481-4328-4c69-b5c3-21eb97348878 904 +848 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor LEA LEA LEA \N \N \N 2021-11-05 18:59:19.058341 2021-11-05 18:59:19.05774 97b8b6a8-859b-46f5-a7df-f697c293d3d6 908 +851 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor Other Federal Other Federal Other Federal \N \N \N 2021-11-05 18:59:19.061767 2021-11-05 18:59:19.061729 eac8e211-88e1-4267-88d8-917654e8a2ff 911 +852 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor School School School \N \N \N 2021-11-05 18:59:19.069367 2021-11-05 18:59:19.069334 0748fbd2-9ee7-4199-be03-c8b41acf057f 912 +854 uri://ed-fi.org/EducationOrganizationIdentificationSystemDescriptor USDE - OPE USDE - OPE USDE - OPE \N \N \N 2021-11-05 18:59:19.074071 2021-11-05 18:59:19.074003 6ffaff7b-5e44-43d5-9b28-3355d4a68c51 914 +855 uri://ed-fi.org/EducationPlanDescriptor 504 Plan 504 Plan 504 Plan \N \N \N 2021-11-05 18:59:19.122107 2021-11-05 18:59:19.12096 9b1ad374-e833-4df9-90e1-6e7f21575254 915 +859 uri://ed-fi.org/EducationPlanDescriptor Employability Skills Employability Skills Employability Skills \N \N \N 2021-11-05 18:59:19.13599 2021-11-05 18:59:19.135756 bbc7a39f-6c79-4ca8-9377-c1b5bcadd853 919 +862 uri://ed-fi.org/EducationPlanDescriptor IDEA IEP IDEA IEP IDEA IEP \N \N \N 2021-11-05 18:59:19.140283 2021-11-05 18:59:19.140256 c60b4746-5f57-44fd-a318-e5fed3eedfdd 922 +863 uri://ed-fi.org/EducationPlanDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.145368 2021-11-05 18:59:19.14533 5d888384-8e86-4245-b033-eaccd8810e0a 923 +864 uri://ed-fi.org/EducationPlanDescriptor Outside Service Access Outside Service Access Outside Service Access \N \N \N 2021-11-05 18:59:19.149121 2021-11-05 18:59:19.148866 48960ee2-104c-46e8-80f6-ba70afbe0160 924 +866 uri://ed-fi.org/EducationPlanDescriptor Student Success Plan Student Success Plan Student Success Plan \N \N \N 2021-11-05 18:59:19.153217 2021-11-05 18:59:19.153122 5eb0123d-a555-4f8f-a132-28593bfa5e7e 926 +867 uri://ed-fi.org/ElectronicMailTypeDescriptor Work Work Work \N \N \N 2021-11-05 18:59:19.203593 2021-11-05 18:59:19.202417 ac8291e2-baea-4c2a-9a27-e0402ff3025f 927 +874 uri://ed-fi.org/EmploymentStatusDescriptor Employed or affiliated with outside agency part-ti Employed or affiliated with outside agency part-time Employed or affiliated with outside agency part-time \N \N \N 2021-11-05 18:59:19.261946 2021-11-05 18:59:19.260791 2cd80193-e464-44b8-865f-1bd55d6e05b0 934 +875 uri://ed-fi.org/EmploymentStatusDescriptor Employed part-time Employed part-time Employed part-time \N \N \N 2021-11-05 18:59:19.275546 2021-11-05 18:59:19.275494 7902dc5c-4bd6-4ac7-893b-5160804c92dc 935 +878 uri://ed-fi.org/EmploymentStatusDescriptor Substitute/temporary Substitute/temporary Substitute/temporary \N \N \N 2021-11-05 18:59:19.537635 2021-11-05 18:59:19.537383 db5c26c4-9360-4e00-8949-e62a2ec6de14 938 +880 uri://ed-fi.org/EmploymentStatusDescriptor Tenured or permanent Tenured or permanent Tenured or permanent \N \N \N 2021-11-05 18:59:19.544557 2021-11-05 18:59:19.544353 00f3dfed-c6c5-467a-8f8d-c0888f831c6d 940 +881 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Inadequate performance Nonpromotion - Inadequate performance Nonpromotion - Inadequate performance \N \N \N 2021-11-05 18:59:19.601296 2021-11-05 18:59:19.600054 935560f7-861f-4608-b8f0-dbf5b24a11ab 941 +885 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Nonpromotion - Insufficient credits Nonpromotion - Insufficient credits Nonpromotion - Insufficient credits \N \N \N 2021-11-05 18:59:19.617233 2021-11-05 18:59:19.616934 96bbc833-a102-4137-b5ba-fca50cf79484 945 +889 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Promotion - Continuous promotion Promotion - Continuous promotion Promotion - Continuous promotion \N \N \N 2021-11-05 18:59:19.628223 2021-11-05 18:59:19.628178 4f6b3d72-d0d5-4878-8544-25493107c809 949 +890 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Promotion - Other Promotion - Other Promotion - Other \N \N \N 2021-11-05 18:59:19.631912 2021-11-05 18:59:19.631719 06e71d7e-fdd9-4baf-99e2-0e9f6a0322da 950 +893 uri://ed-fi.org/EntryGradeLevelReasonDescriptor Promotion - Variable progress Promotion - Variable progress Promotion - Variable progress \N \N \N 2021-11-05 18:59:19.637326 2021-11-05 18:59:19.637241 0fd74214-2a19-4b2e-b03b-746bb8a9c4b8 953 +895 uri://ed-fi.org/EntryTypeDescriptor Next year school Next year school Next year school \N \N \N 2021-11-05 18:59:19.688707 2021-11-05 18:59:19.687575 01351845-07fd-4149-aa96-03f811db433d 955 +898 uri://ed-fi.org/EntryTypeDescriptor Re-entry Re-entry Re-entry \N \N \N 2021-11-05 18:59:19.705235 2021-11-05 18:59:19.7052 b628e1af-0706-453c-ad76-f7f5a53d966b 958 +899 uri://ed-fi.org/EventCircumstanceDescriptor Catastrophic illness or accident Catastrophic illness or accident Catastrophic illness or accident \N \N \N 2021-11-05 18:59:19.751747 2021-11-05 18:59:19.7506 2255efae-4438-4168-877c-a021fa454d5c 959 +904 uri://ed-fi.org/EventCircumstanceDescriptor Cross-enrolled Cross-enrolled Cross-enrolled \N \N \N 2021-11-05 18:59:19.767622 2021-11-05 18:59:19.767563 875ebb01-f822-480a-bcfb-330a3827e3d0 964 +906 uri://ed-fi.org/EventCircumstanceDescriptor Fire alarm Fire alarm Fire alarm \N \N \N 2021-11-05 18:59:19.770329 2021-11-05 18:59:19.770254 b62293a7-840c-47ed-ad69-8c7ecb89be70 966 +907 uri://ed-fi.org/EventCircumstanceDescriptor Home schooled for assessed subjects Home schooled for assessed subjects Home schooled for assessed subjects \N \N \N 2021-11-05 18:59:19.775514 2021-11-05 18:59:19.775468 5d2044c8-f40f-48b7-a3bd-0866685469c1 967 +908 uri://ed-fi.org/EventCircumstanceDescriptor Homebound Homebound Homebound \N \N \N 2021-11-05 18:59:19.779731 2021-11-05 18:59:19.779305 49a3ff2c-9130-4f26-82dc-8c4ccc8068e2 968 +905 uri://ed-fi.org/EventCircumstanceDescriptor Foreign exchange student Foreign exchange student Foreign exchange student \N \N \N 2021-11-05 18:59:19.770345 2021-11-05 18:59:19.770282 3d857371-c3eb-4f57-b46c-d3aa3ab2e069 965 +910 uri://ed-fi.org/EventCircumstanceDescriptor Incarcerated at adult facility Incarcerated at adult facility Incarcerated at adult facility \N \N \N 2021-11-05 18:59:19.782413 2021-11-05 18:59:19.782317 6cb414b7-695a-492c-aae5-673def2c6fcc 970 +912 uri://ed-fi.org/EventCircumstanceDescriptor Non-special ed student used calculator Non-special education student used calculator on non-calculator items Non-special education student used calculator on non-calculator items \N \N \N 2021-11-05 18:59:19.789326 2021-11-05 18:59:19.789286 805c7150-f3ec-4bcf-84fe-f38226d68a9f 972 +918 uri://ed-fi.org/EventCircumstanceDescriptor Psychological factors of emotional trauma Psychological factors of emotional trauma Psychological factors of emotional trauma \N \N \N 2021-11-05 18:59:19.805311 2021-11-05 18:59:19.805242 fa9cdd67-54d2-4bb7-b8c9-66b806aa903a 978 +920 uri://ed-fi.org/EventCircumstanceDescriptor Short-term suspension - non-special education Short-term suspension - non-special education Short-term suspension - non-special education \N \N \N 2021-11-05 18:59:19.809293 2021-11-05 18:59:19.809015 b12c56a1-7c14-43aa-884f-64f79c9023bc 980 +922 uri://ed-fi.org/EventCircumstanceDescriptor Special treatment center Special treatment center Special treatment center \N \N \N 2021-11-05 18:59:19.81708 2021-11-05 18:59:19.817031 ac1607f6-da18-4410-a988-281aed420b26 982 +925 uri://ed-fi.org/EventCircumstanceDescriptor Student took this grade level assessment last year Student took this grade level assessment last year Student took this grade level assessment last year \N \N \N 2021-11-05 18:59:19.822087 2021-11-05 18:59:19.822045 02dd1f13-8d60-4d90-a45c-48e37aa25df5 985 +927 uri://ed-fi.org/EventCircumstanceDescriptor Suspension - special education Suspension - special education Suspension - special education \N \N \N 2021-11-05 18:59:19.828205 2021-11-05 18:59:19.828167 06842d7c-c7c0-47a5-974b-7afa96dd04df 987 +928 uri://ed-fi.org/EventCircumstanceDescriptor Teacher cheating or mis-admin Teacher cheating or mis-admin Teacher cheating or mis-admin \N \N \N 2021-11-05 18:59:19.831062 2021-11-05 18:59:19.830998 8ed22395-df63-43be-abca-e2bd3d30d45e 988 +932 uri://ed-fi.org/ExitWithdrawTypeDescriptor Died or is permanently incapacitated Died or is permanently incapacitated Died or is permanently incapacitated \N \N \N 2021-11-05 18:59:19.88641 2021-11-05 18:59:19.885218 ec647025-57b4-4ad1-a959-7bcaa45f77c1 993 +936 uri://ed-fi.org/ExitWithdrawTypeDescriptor Graduated Graduated Graduated \N \N \N 2021-11-05 18:59:19.902204 2021-11-05 18:59:19.902086 815df763-fd76-4baf-9502-cdb0ded1481d 996 +940 uri://ed-fi.org/ExitWithdrawTypeDescriptor Involuntarily Removed Involuntarily Removed Involuntarily Removed \N \N \N 2021-11-05 18:59:19.914108 2021-11-05 18:59:19.913816 db0e35a4-fce8-4e00-ad5a-551fcb1b5de7 1000 +944 uri://ed-fi.org/ExitWithdrawTypeDescriptor Transferred Transferred Transferred \N \N \N 2021-11-05 18:59:19.925217 2021-11-05 18:59:19.925149 a1c0bb14-0149-466e-a5b4-69339dda8b9d 1004 +946 uri://ed-fi.org/GradebookEntryTypeDescriptor Classroom Assessment Classroom Assessment Classroom Assessment \N \N \N 2021-11-05 18:59:19.979529 2021-11-05 18:59:19.978377 01f25b26-786b-4b1d-8021-050eaa6c615a 1006 +950 uri://ed-fi.org/GradebookEntryTypeDescriptor Oral Presentation Oral Presentation Oral Presentation \N \N \N 2021-11-05 18:59:19.993925 2021-11-05 18:59:19.993519 7d37766e-3555-458b-b2c0-85479f51da06 1010 +956 uri://ed-fi.org/GradeLevelDescriptor Preschool/Prekindergarten Preschool/Prekindergarten Preschool/Prekindergarten \N \N \N 2021-11-05 18:59:20.055303 2021-11-05 18:59:20.054148 8b47a38d-fe18-44fb-becb-db9d00b6f6fb 1016 +958 uri://ed-fi.org/GradeLevelDescriptor Third grade Third grade Third grade \N \N \N 2021-11-05 18:59:20.068025 2021-11-05 18:59:20.06799 53ac418e-bec7-4865-9b40-d77b5bfebfd8 1018 +964 uri://ed-fi.org/GradeLevelDescriptor Seventh grade Seventh grade Seventh grade \N \N \N 2021-11-05 18:59:20.082006 2021-11-05 18:59:20.081873 dead0cd1-52e6-45df-a2a0-0608057ad40e 1024 +966 uri://ed-fi.org/GradeLevelDescriptor Ninth grade Ninth grade Ninth grade \N \N \N 2021-11-05 18:59:20.087222 2021-11-05 18:59:20.087185 83096547-11fb-4318-a3da-46f2ea189c97 1026 +967 uri://ed-fi.org/GradeLevelDescriptor Tenth grade Tenth grade Tenth grade \N \N \N 2021-11-05 18:59:20.091421 2021-11-05 18:59:20.091381 2e3b30b5-9a5a-4e44-be84-2aed1d4189fd 1027 +969 uri://ed-fi.org/GradeLevelDescriptor Grade 13 Grade 13 Grade 13 \N \N \N 2021-11-05 18:59:20.09734 2021-11-05 18:59:20.097098 2a1912e2-2d32-4387-a420-f79952ba022b 1029 +973 uri://ed-fi.org/GradeLevelDescriptor No grade level No grade level No grade level \N \N \N 2021-11-05 18:59:20.104543 2021-11-05 18:59:20.104506 6847da54-0971-4166-9630-fd199f9f73da 1033 +979 uri://ed-fi.org/GradeTypeDescriptor Exam Exam Exam \N \N \N 2021-11-05 18:59:20.173257 2021-11-05 18:59:20.171828 f5f96bb9-f771-457d-8e23-367457491911 1039 +980 uri://ed-fi.org/GradeTypeDescriptor Grading Period Grading Period Grading Period \N \N \N 2021-11-05 18:59:20.179144 2021-11-05 18:59:20.178941 66e3ac27-0261-4b10-a868-7489f1441841 1040 +983 uri://ed-fi.org/GradeTypeDescriptor Progress Report Progress Report Progress Report \N \N \N 2021-11-05 18:59:20.186082 2021-11-05 18:59:20.185903 e4c1e8e3-2d7f-463a-8c85-049a1c60508a 1043 +985 uri://ed-fi.org/GradingPeriodDescriptor First Summer Session First Summer Session First Summer Session \N \N \N 2021-11-05 18:59:20.235483 2021-11-05 18:59:20.234272 8275d5f7-9c73-456d-a03e-0a5dc02ac34b 1045 +991 uri://ed-fi.org/GradingPeriodDescriptor Third Summer Session Third Summer Session Third Summer Session \N \N \N 2021-11-05 18:59:20.249759 2021-11-05 18:59:20.249457 f1931ac5-f905-4aad-9ed0-bf8482146caa 1051 +995 uri://ed-fi.org/GradingPeriodDescriptor Second Nine Weeks Second Nine Weeks Second Nine Weeks \N \N \N 2021-11-05 18:59:20.261686 2021-11-05 18:59:20.261634 152d39c3-b7d5-409e-a204-2a74c5356154 1055 +996 uri://ed-fi.org/GradingPeriodDescriptor Third Nine Weeks Third Nine Weeks Third Nine Weeks \N \N \N 2021-11-05 18:59:20.265409 2021-11-05 18:59:20.265346 64d87f83-1f8d-4d9e-b4d8-34e4d7c2bb61 1056 +999 uri://ed-fi.org/GradingPeriodDescriptor First Six Weeks First Six Weeks First Six Weeks \N \N \N 2021-11-05 18:59:20.272117 2021-11-05 18:59:20.271988 a11975e7-3e48-4295-a095-de29c176e279 1059 +1001 uri://ed-fi.org/GradingPeriodDescriptor Fourth Six Weeks Fourth Six Weeks Fourth Six Weeks \N \N \N 2021-11-05 18:59:20.280622 2021-11-05 18:59:20.280584 020d0f25-5836-4287-aa5a-d1a14334bfc7 1061 +1002 uri://ed-fi.org/GradingPeriodDescriptor Fifth Six Weeks Fifth Six Weeks Fifth Six Weeks \N \N \N 2021-11-05 18:59:20.283783 2021-11-05 18:59:20.283509 6b09ea2c-cba1-433b-91b2-cbec8b855a1a 1062 +1006 uri://ed-fi.org/GraduationPlanTypeDescriptor Distinguished Distinguished Distinguished \N \N \N 2021-11-05 18:59:20.339863 2021-11-05 18:59:20.338681 fde0b900-82cd-4859-8902-9ef5405fe736 1066 +1012 uri://ed-fi.org/GunFreeSchoolsActReportingStatusDescriptor Yes, with one or more student offenses Yes, with reporting of one or more students for an offense Yes, with reporting of one or more students for an offense \N \N \N 2021-11-05 18:59:20.403884 2021-11-05 18:59:20.402578 ab0e110b-6280-4087-879d-e26311dbc002 1072 +1014 uri://ed-fi.org/HomelessPrimaryNighttimeResidenceDescriptor Doubled-up Doubled-up Doubled-up \N \N \N 2021-11-05 18:59:20.467436 2021-11-05 18:59:20.466264 aae1f06d-8eb7-49c1-baa1-5510cbf850ab 1074 +1019 uri://ed-fi.org/HomelessProgramServiceDescriptor Instructional Services Instructional Services Instructional Services \N \N \N 2021-11-05 18:59:20.531765 2021-11-05 18:59:20.530614 46e9f304-9acf-4adb-9047-2918f6b5c899 1079 +1025 uri://ed-fi.org/HomelessProgramServiceDescriptor External Instructional Services External Instructional Services External Instructional Services \N \N \N 2021-11-05 18:59:20.549847 2021-11-05 18:59:20.549508 ca270a19-2f63-4b2f-b3cd-9275bcfc3010 1085 +1026 uri://ed-fi.org/IdentificationDocumentUseDescriptor Personal Information Verification Personal Information Verification Personal Information Verification \N \N \N 2021-11-05 18:59:20.609811 2021-11-05 18:59:20.608523 bbf1086d-f016-45e8-aa8b-7413b7df7e5a 1086 +1031 uri://ed-fi.org/IncidentLocationDescriptor Auditorium Auditorium Auditorium \N \N \N 2021-11-05 18:59:20.626369 2021-11-05 18:59:20.626319 cbeddcfd-66cf-42cd-815f-3045b012b845 1091 +1032 uri://ed-fi.org/IncidentLocationDescriptor Bus stop Bus stop Bus stop \N \N \N 2021-11-05 18:59:20.630278 2021-11-05 18:59:20.629695 a20819e6-6913-43ee-b868-12f52bc3bfc7 1092 +1034 uri://ed-fi.org/IncidentLocationDescriptor Classroom Classroom Classroom \N \N \N 2021-11-05 18:59:20.636517 2021-11-05 18:59:20.636479 49de3e9d-8762-4088-8626-030add2072c9 1094 +1036 uri://ed-fi.org/IncidentLocationDescriptor Hallway or stairs Hallway or stairs Hallway or stairs \N \N \N 2021-11-05 18:59:20.640715 2021-11-05 18:59:20.640678 579e6006-8bca-4249-b2a5-b6bea049a339 1096 +911 uri://ed-fi.org/EventCircumstanceDescriptor Long-term suspension - non-special education Long-term suspension - non-special education Long-term suspension - non-special education \N \N \N 2021-11-05 18:59:19.785323 2021-11-05 18:59:19.785278 850f835e-8a0f-4031-a85e-0629f60ba5bf 971 +913 uri://ed-fi.org/EventCircumstanceDescriptor Only for writing Only for writing Only for writing \N \N \N 2021-11-05 18:59:19.790342 2021-11-05 18:59:19.790255 8c70cb58-0adf-4f6b-8260-fd8cb139ff11 973 +914 uri://ed-fi.org/EventCircumstanceDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.792917 2021-11-05 18:59:19.792847 60996eca-2684-433d-bd3e-0dcb62b629d3 974 +915 uri://ed-fi.org/EventCircumstanceDescriptor Other reason for ineligibility Other reason for ineligibility Other reason for ineligibility \N \N \N 2021-11-05 18:59:19.795598 2021-11-05 18:59:19.79556 d6a4f505-ea61-4e71-8593-ac3946bf527a 975 +916 uri://ed-fi.org/EventCircumstanceDescriptor Other reason for nonparticipation Other reason for nonparticipation Other reason for nonparticipation \N \N \N 2021-11-05 18:59:19.80114 2021-11-05 18:59:19.801097 9c06b8a9-e537-4b34-8dae-46dbff26eaef 976 +917 uri://ed-fi.org/EventCircumstanceDescriptor Parent refusal Parent refusal Parent refusal \N \N \N 2021-11-05 18:59:19.803579 2021-11-05 18:59:19.803492 7a0616da-047e-46ac-8981-185a8ec0ddc2 977 +919 uri://ed-fi.org/EventCircumstanceDescriptor Reading passage read to student (IEP) Reading passage read to student (IEP) Reading passage read to student (IEP) \N \N \N 2021-11-05 18:59:19.80728 2021-11-05 18:59:19.807218 c89ad951-e623-4756-9a55-7084993927b2 979 +921 uri://ed-fi.org/EventCircumstanceDescriptor Special detention center Special detention center Special detention center \N \N \N 2021-11-05 18:59:19.812784 2021-11-05 18:59:19.812744 8a9e8fa9-5b01-4882-a815-66a35740bcc1 981 +923 uri://ed-fi.org/EventCircumstanceDescriptor Student not showing adequate effort Student not showing adequate effort Student not showing adequate effort \N \N \N 2021-11-05 18:59:19.818216 2021-11-05 18:59:19.818046 1b574bdd-9131-4c2c-8b96-cba525966a42 983 +924 uri://ed-fi.org/EventCircumstanceDescriptor Student refusal Student refusal Student refusal \N \N \N 2021-11-05 18:59:19.821183 2021-11-05 18:59:19.820843 11820920-237d-4f27-ad81-61682703800d 984 +926 uri://ed-fi.org/EventCircumstanceDescriptor Student used math journal (non-IEP) Student used math journal (non-IEP) Student used math journal (non-IEP) \N \N \N 2021-11-05 18:59:19.826217 2021-11-05 18:59:19.826168 9bd75a2f-106b-4c6d-a91c-fb4e35fd3e3a 986 +929 uri://ed-fi.org/EventCircumstanceDescriptor Truancy - no paperwork filed Truancy - no paperwork filed Truancy - no paperwork filed \N \N \N 2021-11-05 18:59:19.832657 2021-11-05 18:59:19.83261 6cccdfaf-eb3f-471c-87f0-d9980b768c84 989 +930 uri://ed-fi.org/EventCircumstanceDescriptor Truancy - paperwork filed Truancy - paperwork filed Truancy - paperwork filed \N \N \N 2021-11-05 18:59:19.835815 2021-11-05 18:59:19.83577 cd125581-f29f-4e40-be35-1b58b6ca306c 990 +933 uri://ed-fi.org/ExitWithdrawTypeDescriptor End of school year End of school year End of school year \N \N \N 2021-11-05 18:59:19.88641 2021-11-05 18:59:19.885216 2eb2cb9c-2381-4ae4-92b3-bb168ae1c0d5 992 +935 uri://ed-fi.org/ExitWithdrawTypeDescriptor Expelled Expelled Expelled \N \N \N 2021-11-05 18:59:19.902138 2021-11-05 18:59:19.90196 5b61d7bc-16b9-4463-a040-0e87ba93ffa5 995 +938 uri://ed-fi.org/ExitWithdrawTypeDescriptor Incarcerated Incarcerated Incarcerated \N \N \N 2021-11-05 18:59:19.90485 2021-11-05 18:59:19.904824 ece7d682-4107-4f83-b683-d2135d782f41 998 +939 uri://ed-fi.org/ExitWithdrawTypeDescriptor Invalid enrollment Invalid enrollment Invalid enrollment \N \N \N 2021-11-05 18:59:19.911303 2021-11-05 18:59:19.911125 6a200fb3-9df6-464f-bddb-0fcac75e29af 999 +942 uri://ed-fi.org/ExitWithdrawTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:19.917227 2021-11-05 18:59:19.917193 8003b72d-fde2-4ccd-871a-a6dfcd5d346f 1002 +943 uri://ed-fi.org/ExitWithdrawTypeDescriptor Reached maximum age Reached maximum age Reached maximum age \N \N \N 2021-11-05 18:59:19.922608 2021-11-05 18:59:19.922567 335b348c-1a08-412f-b05e-2e3af7e7e697 1003 +945 uri://ed-fi.org/ExitWithdrawTypeDescriptor Withdrawn Withdrawn Withdrawn \N \N \N 2021-11-05 18:59:19.927312 2021-11-05 18:59:19.927121 414157f2-0144-41df-887f-6a1b320fe080 1005 +947 uri://ed-fi.org/GradebookEntryTypeDescriptor Activity Activity Activity \N \N \N 2021-11-05 18:59:19.979529 2021-11-05 18:59:19.978373 c6e1603c-2159-43db-bfd8-289949090568 1007 +952 uri://ed-fi.org/GradebookEntryTypeDescriptor Quiz Quiz Quiz \N \N \N 2021-11-05 18:59:19.994634 2021-11-05 18:59:19.994527 12ee9b33-c146-498a-a2f4-649dadbff74a 1012 +953 uri://ed-fi.org/GradebookEntryTypeDescriptor Unit Test Unit Test Unit Test \N \N \N 2021-11-05 18:59:19.998248 2021-11-05 18:59:19.998204 27292131-dab8-44a3-b2b7-c0852ad7aa52 1013 +955 uri://ed-fi.org/GradeLevelDescriptor Kindergarten Kindergarten Kindergarten \N \N \N 2021-11-05 18:59:20.055301 2021-11-05 18:59:20.05413 6c612585-c482-4700-97b0-a0ff9b596c8a 1015 +961 uri://ed-fi.org/GradeLevelDescriptor Fourth grade Fourth grade Fourth grade \N \N \N 2021-11-05 18:59:20.072235 2021-11-05 18:59:20.072117 dd2daddb-a147-49a9-995e-f173e5e1165c 1021 +962 uri://ed-fi.org/GradeLevelDescriptor Fifth grade Fifth grade Fifth grade \N \N \N 2021-11-05 18:59:20.076811 2021-11-05 18:59:20.076771 2eb4748d-322a-42cd-bf40-d25664ffe537 1022 +963 uri://ed-fi.org/GradeLevelDescriptor Sixth grade Sixth grade Sixth grade \N \N \N 2021-11-05 18:59:20.080842 2021-11-05 18:59:20.080784 5672c7a3-48b8-44b3-90a2-7c69dfae834f 1023 +965 uri://ed-fi.org/GradeLevelDescriptor Eighth grade Eighth grade Eighth grade \N \N \N 2021-11-05 18:59:20.08711 2021-11-05 18:59:20.08707 f26a5773-0951-499a-a83f-6cf3c8683264 1025 +968 uri://ed-fi.org/GradeLevelDescriptor Eleventh grade Eleventh grade Eleventh grade \N \N \N 2021-11-05 18:59:20.09299 2021-11-05 18:59:20.092887 f3c82061-5656-4179-aec8-9bb78a2a3a6c 1028 +970 uri://ed-fi.org/GradeLevelDescriptor Twelfth grade Twelfth grade Twelfth grade \N \N \N 2021-11-05 18:59:20.097927 2021-11-05 18:59:20.097892 4fdc7cb7-05af-455f-851e-8c6b97ef005f 1030 +972 uri://ed-fi.org/GradeLevelDescriptor Adult Education Adult Education Adult Education \N \N \N 2021-11-05 18:59:20.102753 2021-11-05 18:59:20.102668 b6cf313f-e78a-4a8b-87d2-166a17fc9fc4 1032 +974 uri://ed-fi.org/GradeLevelDescriptor Other Other Other \N \N \N 2021-11-05 18:59:20.107059 2021-11-05 18:59:20.107019 2c1c429a-1bb5-419a-98bb-d656dfe6b060 1034 +975 uri://ed-fi.org/GradeLevelDescriptor Ungraded Ungraded Ungraded \N \N \N 2021-11-05 18:59:20.112303 2021-11-05 18:59:20.112105 52228440-7bc1-4cf3-bc56-36cdef7a7da8 1035 +976 uri://ed-fi.org/GradePointAverageTypeDescriptor Unweighted Unweighted Unweighted \N \N \N 2021-11-05 18:59:20.163499 2021-11-05 18:59:20.162349 e2d86283-94fd-4355-b38d-03c1db855d05 1036 +978 uri://ed-fi.org/GradeTypeDescriptor Conduct Conduct Conduct \N \N \N 2021-11-05 18:59:20.173027 2021-11-05 18:59:20.171825 e9f0b527-a2b7-40ad-817d-20d8f676c546 1038 +981 uri://ed-fi.org/GradeTypeDescriptor Final Final Final \N \N \N 2021-11-05 18:59:20.179673 2021-11-05 18:59:20.179627 614daa7b-35fe-49f4-adc3-d21146f57e45 1041 +982 uri://ed-fi.org/GradeTypeDescriptor Mid-Term Grade Mid-Term Grade Mid-Term Grade \N \N \N 2021-11-05 18:59:20.185938 2021-11-05 18:59:20.185843 fec5d2a8-316f-482b-8a11-bdce255d9ee1 1042 +984 uri://ed-fi.org/GradeTypeDescriptor Semester Semester Semester \N \N \N 2021-11-05 18:59:20.191149 2021-11-05 18:59:20.191111 2469215b-e9e7-47d5-b6a2-7d5c15b6688b 1044 +986 uri://ed-fi.org/GradingPeriodDescriptor Summer Semester Summer Semester Summer Semester \N \N \N 2021-11-05 18:59:20.235483 2021-11-05 18:59:20.234272 73d36b4d-b586-4ecc-b110-980b2dd3d99e 1046 +989 uri://ed-fi.org/GradingPeriodDescriptor First Trimester First Trimester First Trimester \N \N \N 2021-11-05 18:59:20.248306 2021-11-05 18:59:20.248207 b8eacf9c-f724-48a3-9e44-4749af950e4d 1049 +992 uri://ed-fi.org/GradingPeriodDescriptor Second Trimester Second Trimester Second Trimester \N \N \N 2021-11-05 18:59:20.253133 2021-11-05 18:59:20.253098 33628045-36e2-4533-b689-383e94190c33 1052 +993 uri://ed-fi.org/GradingPeriodDescriptor Third Trimester Third Trimester Third Trimester \N \N \N 2021-11-05 18:59:20.25641 2021-11-05 18:59:20.256338 bfa9b5a1-9613-48f1-a30f-1e8e0b1515db 1053 +994 uri://ed-fi.org/GradingPeriodDescriptor First Nine Weeks First Nine Weeks First Nine Weeks \N \N \N 2021-11-05 18:59:20.26045 2021-11-05 18:59:20.260396 a8d6f970-10fd-4b99-9c4f-28692e730944 1054 +997 uri://ed-fi.org/GradingPeriodDescriptor Fourth Nine Weeks Fourth Nine Weeks Fourth Nine Weeks \N \N \N 2021-11-05 18:59:20.266833 2021-11-05 18:59:20.266778 41c251e9-5764-45b6-9e03-b88046ca6a9c 1057 +998 uri://ed-fi.org/GradingPeriodDescriptor Second Six Weeks Second Six Weeks Second Six Weeks \N \N \N 2021-11-05 18:59:20.272014 2021-11-05 18:59:20.271861 d4a38dbe-4207-4432-b1fb-34c0007ce78d 1058 +1000 uri://ed-fi.org/GradingPeriodDescriptor Third Six Weeks Third Six Weeks Third Six Weeks \N \N \N 2021-11-05 18:59:20.278284 2021-11-05 18:59:20.278246 e7e0fe8b-09cf-444d-9bb1-8dbf3c5b93b8 1060 +1003 uri://ed-fi.org/GradingPeriodDescriptor Sixth Six Weeks Sixth Six Weeks Sixth Six Weeks \N \N \N 2021-11-05 18:59:20.284426 2021-11-05 18:59:20.284375 9ac1b31b-4593-472f-86b7-6eeb4c04f53a 1063 +1004 uri://ed-fi.org/GradingPeriodDescriptor End of Year End of Year End of Year \N \N \N 2021-11-05 18:59:20.287279 2021-11-05 18:59:20.287264 895a7367-6caf-4bb7-b671-53680be42f82 1064 +1005 uri://ed-fi.org/GraduationPlanTypeDescriptor Career and Technical Education Career and Technical Education Career and Technical Education \N \N \N 2021-11-05 18:59:20.339862 2021-11-05 18:59:20.33868 7563dc2a-4f75-40e5-bf7b-2532a9319293 1065 +1009 uri://ed-fi.org/GraduationPlanTypeDescriptor Standard Standard Standard \N \N \N 2021-11-05 18:59:20.352967 2021-11-05 18:59:20.352924 35f4e457-0a3e-410b-bc54-b3a3a9539ddb 1069 +1011 uri://ed-fi.org/GunFreeSchoolsActReportingStatusDescriptor Yes, with no reported offenses Yes, with no reported offenses Yes, with no reported offenses \N \N \N 2021-11-05 18:59:20.403682 2021-11-05 18:59:20.402553 277ded3f-78b7-4240-8731-f3d5f50e1579 1071 +1015 uri://ed-fi.org/HomelessPrimaryNighttimeResidenceDescriptor Shelters Shelters Shelters \N \N \N 2021-11-05 18:59:20.467434 2021-11-05 18:59:20.466263 95fccdf7-8809-4918-8c6e-3eaf425d3d41 1075 +1018 uri://ed-fi.org/HomelessProgramServiceDescriptor Transportation Services Transportation Services Transportation Services \N \N \N 2021-11-05 18:59:20.531766 2021-11-05 18:59:20.53061 42d7fba7-2754-4f26-8b27-2066c0e6d356 1078 +1022 uri://ed-fi.org/HomelessProgramServiceDescriptor Early Childhood Education Programs Early Childhood Education Programs Early Childhood Education Programs \N \N \N 2021-11-05 18:59:20.54617 2021-11-05 18:59:20.546084 8f3c5441-08d6-4554-9cb9-e2f432252e53 1082 +1024 uri://ed-fi.org/HomelessProgramServiceDescriptor Emergency Assistance Emergency Assistance Emergency Assistance \N \N \N 2021-11-05 18:59:20.548689 2021-11-05 18:59:20.548632 2333924b-28bf-4b1e-96b7-8927a4ab591d 1084 +1027 uri://ed-fi.org/IdentificationDocumentUseDescriptor US Citizenship Identification US Citizenship Identification US Citizenship Identification \N \N \N 2021-11-05 18:59:20.609792 2021-11-05 18:59:20.608515 3db623de-29e1-47ba-8dd3-f5a410b564bd 1087 +1029 uri://ed-fi.org/IncidentLocationDescriptor Administrative offices area Administrative offices area Administrative offices area \N \N \N 2021-11-05 18:59:20.617175 2021-11-05 18:59:20.615875 bc05b887-8afc-4775-ba0f-395b6207f220 1089 +1030 uri://ed-fi.org/IncidentLocationDescriptor Athletic field or playground Athletic field or playground Athletic field or playground \N \N \N 2021-11-05 18:59:20.626034 2021-11-05 18:59:20.625993 6d7d2725-6415-4bc0-b972-68a5e0051de8 1090 +1033 uri://ed-fi.org/IncidentLocationDescriptor Cafeteria area Cafeteria area Cafeteria area \N \N \N 2021-11-05 18:59:20.630708 2021-11-05 18:59:20.630661 a06a29ac-4c56-4ed4-a0cc-e6f680719533 1093 +1035 uri://ed-fi.org/IncidentLocationDescriptor Computer lab Computer lab Computer lab \N \N \N 2021-11-05 18:59:20.637208 2021-11-05 18:59:20.637184 1c6ae77a-8a62-404a-8433-082284bf8483 1095 +1037 uri://ed-fi.org/IncidentLocationDescriptor Library/media center Library/media center Library/media center \N \N \N 2021-11-05 18:59:20.641829 2021-11-05 18:59:20.641749 23957308-6bf1-4107-b564-6801adad6299 1097 +1038 uri://ed-fi.org/IncidentLocationDescriptor Locker room or gym areas Locker room or gym areas Locker room or gym areas \N \N \N 2021-11-05 18:59:20.646072 2021-11-05 18:59:20.646032 7ee707f1-c53d-4e99-be38-3af342d13cdf 1098 +1040 uri://ed-fi.org/IncidentLocationDescriptor Off-campus at a school sponsored activity Off-campus at a school sponsored activity Off-campus at a school sponsored activity \N \N \N 2021-11-05 18:59:20.651512 2021-11-05 18:59:20.651373 a2bc4661-029a-4b8d-bc10-d2edc2c2b2db 1100 +1043 uri://ed-fi.org/IncidentLocationDescriptor Off-campus at other school Off-campus at other school Off-campus at other school \N \N \N 2021-11-05 18:59:20.657829 2021-11-05 18:59:20.657785 18d4d80e-e779-44c0-8d77-7b7fb8d3aa09 1103 +1044 uri://ed-fi.org/IncidentLocationDescriptor On campus On campus On campus \N \N \N 2021-11-05 18:59:20.661773 2021-11-05 18:59:20.661633 9201119e-2460-471f-a0f4-40d8190c23f2 1104 +1046 uri://ed-fi.org/IncidentLocationDescriptor On-campus other outside area On-campus other outside area On-campus other outside area \N \N \N 2021-11-05 18:59:20.666122 2021-11-05 18:59:20.666072 ac63f5a2-b25a-40dd-9052-f56708fa1a44 1106 +1047 uri://ed-fi.org/IncidentLocationDescriptor Online Online Online \N \N \N 2021-11-05 18:59:20.668685 2021-11-05 18:59:20.668663 d0232622-994d-418f-b589-5f2f0a7a4226 1107 +1049 uri://ed-fi.org/IncidentLocationDescriptor Restroom Restroom Restroom \N \N \N 2021-11-05 18:59:20.674563 2021-11-05 18:59:20.674485 8077816d-f6e0-4532-bb57-0a261ab2e86a 1109 +1050 uri://ed-fi.org/IncidentLocationDescriptor School bus School bus School bus \N \N \N 2021-11-05 18:59:20.677584 2021-11-05 18:59:20.677542 705030f3-e8d0-49fe-a84d-29cbd44b2a94 1110 +1052 uri://ed-fi.org/IncidentLocationDescriptor Stadium Stadium Stadium \N \N \N 2021-11-05 18:59:20.683017 2021-11-05 18:59:20.682954 fc0c4ea9-5407-4f6d-9239-a8cb1e185abd 1112 +1053 uri://ed-fi.org/IncidentLocationDescriptor Walking to or from school Walking to or from school Walking to or from school \N \N \N 2021-11-05 18:59:20.685574 2021-11-05 18:59:20.685486 46bdd465-45a4-405b-a836-ec15e8cc3a0e 1113 +1055 uri://gbisd.edu/IndicatorGroupDescriptor Staff Indicator Staff Indicator Indicators related to organization staffing. \N \N \N 2021-11-05 18:59:20.758902 2021-11-05 18:59:20.757793 81a2cffb-17fe-4ffe-8ff6-002498238540 1115 +1056 uri://gbisd.edu/IndicatorLevelDescriptor High Retention High Retention Staff retention from previous school year is between 90-100 percent of staff retained. \N \N \N 2021-11-05 18:59:20.766075 2021-11-05 18:59:20.764944 1142723f-7867-4057-8ec6-a7b135ac3d06 1116 +1059 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Food Service Food Service Food Service \N \N \N 2021-11-05 18:59:20.830475 2021-11-05 18:59:20.829267 48d6a005-384e-4980-b36b-5ed66717912d 1119 +1065 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Main Main Main \N \N \N 2021-11-05 18:59:20.855549 2021-11-05 18:59:20.855318 773d0491-fec8-4b7e-b6be-b2e2e618f6b0 1125 +1067 uri://ed-fi.org/InteractivityStyleDescriptor Mixed Mixed Mixed \N \N \N 2021-11-05 18:59:20.916401 2021-11-05 18:59:20.915244 2a9fb868-899c-47be-9cd7-71780d584577 1127 +1070 uri://ed-fi.org/InternetAccessDescriptor None None None \N \N \N 2021-11-05 18:59:20.985052 2021-11-05 18:59:20.983689 d124199d-5a85-4fd2-a876-a21a49358221 1130 +1076 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Community Provided Wi-Fi Community Provided Wi-Fi The type of internet service used in the student’s primary place of residence is community provided Wi-Fi. \N \N \N 2021-11-05 18:59:21.002179 2021-11-05 18:59:21.00205 6dac1512-9c61-4ac9-9b1b-2aa94bfb4626 1136 +1077 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Satellite Satellite The type of internet service used in the student’s primary place of residence is satellite. \N \N \N 2021-11-05 18:59:21.007256 2021-11-05 18:59:21.00721 089cf3a3-79c4-4b6f-b838-414bacd728ce 1137 +1079 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor None None There is no internet service in the student’s primary place of residence. \N \N \N 2021-11-05 18:59:21.014328 2021-11-05 18:59:21.013768 a8874d89-2aac-41f2-bf74-126bfd2d54e7 1139 +1081 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Unknown Unknown It is not known whether there is internet service in the student’s primary place of residence. \N \N \N 2021-11-05 18:59:21.019594 2021-11-05 18:59:21.019553 5e301711-de17-4682-b519-ffe615dd54b9 1141 +1082 uri://ed-fi.org/InternetPerformanceInResidenceDescriptor Yes Yes The student experiences very few or no interruptions in learning activities caused by poor internet performance in their primary place of residence. \N \N \N 2021-11-05 18:59:21.0811 2021-11-05 18:59:21.079962 2c0434f8-bf52-4f79-ab27-2e576e8185e5 1142 +1086 uri://ed-fi.org/InterventionClassDescriptor Other Other Other \N \N \N 2021-11-05 18:59:21.096099 2021-11-05 18:59:21.096034 ad09f940-6e8a-4132-a614-ce2e591d0ca6 1146 +1091 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor Other Other Other \N \N \N 2021-11-05 18:59:21.151353 2021-11-05 18:59:21.15021 307241d0-8fa7-43ac-8f6a-3d57b6da3f49 1151 +1095 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor Potentially Positive Effects Potentially Positive Effects Potentially Positive Effects \N \N \N 2021-11-05 18:59:21.167157 2021-11-05 18:59:21.166595 c5446193-29f7-48aa-ac49-de554ae340bc 1155 +1096 uri://ed-fi.org/LanguageDescriptor ast Asturian Asturian \N \N \N 2021-11-05 18:59:21.222195 2021-11-05 18:59:21.221029 0d5720f9-8c86-45ff-aca4-84fddb5dae50 1157 +1101 uri://ed-fi.org/LanguageDescriptor byn Blin Blin \N \N \N 2021-11-05 18:59:21.237665 2021-11-05 18:59:21.237409 aaf1717e-0bc1-42cc-a2c5-d3486200ae24 1161 +1104 uri://ed-fi.org/LanguageDescriptor nya Chichewa Chichewa \N \N \N 2021-11-05 18:59:21.246045 2021-11-05 18:59:21.246009 ad289e63-2e60-48ee-836d-724dc7c9f232 1164 +1039 uri://ed-fi.org/IncidentLocationDescriptor Off campus Off campus Off campus \N \N \N 2021-11-05 18:59:20.647786 2021-11-05 18:59:20.64775 20cd267d-914f-4b4c-a5fd-8992f2aa340d 1099 +1041 uri://ed-fi.org/IncidentLocationDescriptor Off-campus at another location unrelated to school Off-campus at another location unrelated to school Off-campus at another location unrelated to school \N \N \N 2021-11-05 18:59:20.652683 2021-11-05 18:59:20.652665 8fd5789e-eb3b-4aba-bccd-2a247dec011c 1101 +1042 uri://ed-fi.org/IncidentLocationDescriptor Off-campus at other school district facility Off-campus at other school district facility Off-campus at other school district facility \N \N \N 2021-11-05 18:59:20.656957 2021-11-05 18:59:20.656753 48d54153-8dcd-4cc7-bbb1-f1736f864cef 1102 +1045 uri://ed-fi.org/IncidentLocationDescriptor On-campus other inside area On-campus other inside area On-campus other inside area \N \N \N 2021-11-05 18:59:20.66408 2021-11-05 18:59:20.664041 fbd8ed5c-2f6c-4325-bb1a-f39129557962 1105 +1048 uri://ed-fi.org/IncidentLocationDescriptor Parking lot Parking lot Parking lot \N \N \N 2021-11-05 18:59:20.670818 2021-11-05 18:59:20.670777 c915f3da-af48-4662-b5a5-65b0d523a92b 1108 +1051 uri://ed-fi.org/IncidentLocationDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:20.681435 2021-11-05 18:59:20.681389 43451720-ad70-4cc7-9662-7bac927690ec 1111 +1054 uri://gbisd.edu/IndicatorDescriptor Retention Rate Percent of staff retained The percent of staff retained for the education organization \N \N \N 2021-11-05 18:59:20.744756 2021-11-05 18:59:20.743303 36a3514d-ae9b-4a14-a0f8-058012b3dbd2 1114 +1057 uri://gbisd.edu/IndicatorLevelDescriptor Medium Retention Medium Retention Staff retention from previous school year is between 80-90 percent of staff retained. \N \N \N 2021-11-05 18:59:20.766285 2021-11-05 18:59:20.76495 3a10eb72-69d9-48f3-9959-3d68b398645a 1117 +1061 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Attendance Attendance Attendance \N \N \N 2021-11-05 18:59:20.831737 2021-11-05 18:59:20.829281 16fd70ba-d08b-4919-a97a-8d3e5e8aae0e 1121 +1063 uri://ed-fi.org/InstitutionTelephoneNumberTypeDescriptor Health Clinic Health Clinic Health Clinic \N \N \N 2021-11-05 18:59:20.854255 2021-11-05 18:59:20.852922 3c1c0ecf-c903-4f8e-bf6f-507a545c5b28 1123 +1068 uri://ed-fi.org/InteractivityStyleDescriptor Active Active Active \N \N \N 2021-11-05 18:59:20.916403 2021-11-05 18:59:20.915248 5ea8895a-1b94-4e49-9061-59ca4e67b07d 1128 +1071 uri://ed-fi.org/InternetAccessDescriptor Less Than High Speed Less Than High Speed Less Than High Speed \N \N \N 2021-11-05 18:59:20.985052 2021-11-05 18:59:20.983691 f663a640-cb35-46fe-8ff1-02eb95154891 1131 +1074 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Cellular Network Cellular Network The type of internet service used in the student’s primary place of residence is a cellular network that creates a hot spot using a cell phone for additional device access or access to the internet is only available through a cellular device. \N \N \N 2021-11-05 18:59:21.000926 2021-11-05 18:59:21.000908 dcc6b06a-3588-4233-8e13-ae92a119e152 1134 +1078 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Dial-up Dial-up The type of internet service used in the student’s primary place of residence is dial-up. \N \N \N 2021-11-05 18:59:21.012997 2021-11-05 18:59:21.012954 b95413af-6aea-4a97-96b4-8dfccd416b72 1138 +1080 uri://ed-fi.org/InternetAccessTypeInResidenceDescriptor Other Other The type of internet service used in the student’s primary place of residence is not yet defined. \N \N \N 2021-11-05 18:59:21.016346 2021-11-05 18:59:21.016305 eeb631ce-56ad-4315-bc07-829f53eb98cc 1140 +1084 uri://ed-fi.org/InternetPerformanceInResidenceDescriptor No No The student is unable to complete learning activities due to poor internet performance in their primary place of residence. \N \N \N 2021-11-05 18:59:21.081099 2021-11-05 18:59:21.079958 1f087227-1370-456b-a69b-eb974adc75a0 1144 +1088 uri://ed-fi.org/InterventionClassDescriptor Supplement Supplement Supplement \N \N \N 2021-11-05 18:59:21.097299 2021-11-05 18:59:21.097259 66ccfdf6-3ad0-4dbc-ad37-1f9936a5a133 1148 +1089 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor Mixed Effects Mixed Effects Mixed Effects \N \N \N 2021-11-05 18:59:21.151357 2021-11-05 18:59:21.150214 0d9cd427-1b82-41e1-bf61-3f1a40073dba 1149 +1093 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor Potentially Negative Effects Potentially Negative Effects Potentially Negative Effects \N \N \N 2021-11-05 18:59:21.165985 2021-11-05 18:59:21.165854 a3a5455b-bfbf-433a-b586-c12b32054184 1153 +1097 uri://ed-fi.org/LanguageDescriptor gsw Swiss German Swiss German \N \N \N 2021-11-05 18:59:21.222195 2021-11-05 18:59:21.221029 3cdd20a6-116e-4698-9dbd-5c938f0b727e 1156 +1102 uri://ed-fi.org/LanguageDescriptor zbl Blissymbols Blissymbols \N \N \N 2021-11-05 18:59:21.239389 2021-11-05 18:59:21.239335 2fbaefab-e931-4602-81d9-867b41ec52a7 1162 +1105 uri://ed-fi.org/LanguageDescriptor zha Zhuang Zhuang \N \N \N 2021-11-05 18:59:21.249081 2021-11-05 18:59:21.248732 9a610592-ee37-4c69-b2dc-c06f3fd79310 1165 +1112 uri://ed-fi.org/LanguageDescriptor zza Zaza Zaza \N \N \N 2021-11-05 18:59:21.271473 2021-11-05 18:59:21.271068 c4eff05f-ace6-4a82-bfb5-af9cd95df2e7 1172 +1116 uri://ed-fi.org/LanguageDescriptor kal Kalaallisut Kalaallisut \N \N \N 2021-11-05 18:59:21.283318 2021-11-05 18:59:21.283249 1f34b1d6-1baf-4db7-a11d-b9c81e6705cd 1176 +1118 uri://ed-fi.org/LanguageDescriptor pam Pampanga Pampanga \N \N \N 2021-11-05 18:59:21.291436 2021-11-05 18:59:21.291395 bf76d0b0-3cb9-4044-9175-1b29b5839a06 1178 +1124 uri://ed-fi.org/LanguageDescriptor arn Mapudungun Mapudungun \N \N \N 2021-11-05 18:59:21.313492 2021-11-05 18:59:21.313338 f1c552e2-965e-4805-9610-e286f6bf5f26 1184 +1128 uri://ed-fi.org/LanguageDescriptor new Nepal Bhasa Nepal Bhasa \N \N \N 2021-11-05 18:59:21.323654 2021-11-05 18:59:21.323635 0f2c8f5b-1263-43d8-9a12-a14993e92685 1188 +1134 uri://ed-fi.org/LanguageDescriptor pro Provençal, Old (to 1500) Provençal, Old (to 1500) \N \N \N 2021-11-05 18:59:21.3383 2021-11-05 18:59:21.338264 46db3ad2-c6fa-4051-83bf-0fcf4df30ad2 1194 +1138 uri://ed-fi.org/LanguageDescriptor oss Ossetian Ossetian \N \N \N 2021-11-05 18:59:21.349901 2021-11-05 18:59:21.349621 12cd35a0-324f-44e1-a3bd-35f28884531e 1198 +1140 uri://ed-fi.org/LanguageDescriptor pan Panjabi Panjabi \N \N \N 2021-11-05 18:59:21.362734 2021-11-05 18:59:21.361151 39513738-851b-4e84-87f3-01057d8ce691 1200 +1143 uri://ed-fi.org/LanguageDescriptor gla Gaelic Gaelic \N \N \N 2021-11-05 18:59:21.373667 2021-11-05 18:59:21.372367 72bd7f16-a651-4878-b85c-ed457e488e8c 1203 +1147 uri://ed-fi.org/LanguageDescriptor tlh Klingon Klingon \N \N \N 2021-11-05 18:59:21.391469 2021-11-05 18:59:21.390045 12eb58a2-7d32-4e51-9643-8b8259ead7ad 1207 +1151 uri://ed-fi.org/LanguageDescriptor wal Wolaitta Wolaitta \N \N \N 2021-11-05 18:59:21.406363 2021-11-05 18:59:21.406214 a96513c6-d2c1-42e2-bb1b-45e492891e7e 1211 +1155 uri://ed-fi.org/LanguageDescriptor afa Afro-Asiatic languages Afro-Asiatic languages \N \N \N 2021-11-05 18:59:21.418252 2021-11-05 18:59:21.418071 def959ce-07ed-472b-90d5-7efdcf4d1f60 1215 +1159 uri://ed-fi.org/LanguageDescriptor alg Algonquian languages Algonquian languages \N \N \N 2021-11-05 18:59:21.663386 2021-11-05 18:59:21.662274 492529f6-1bf3-41c5-a9d8-a7847fa1e831 1219 +1161 uri://ed-fi.org/LanguageDescriptor anp Angika Angika \N \N \N 2021-11-05 18:59:21.666889 2021-11-05 18:59:21.666635 205a9c28-af0d-4640-b7d8-7ca509884885 1221 +1163 uri://ed-fi.org/LanguageDescriptor arg Aragonese Aragonese \N \N \N 2021-11-05 18:59:21.676883 2021-11-05 18:59:21.676605 b0538b43-9cd8-4f6d-bcc7-996abd2208c8 1223 +1167 uri://ed-fi.org/LanguageDescriptor ava Avaric Avaric \N \N \N 2021-11-05 18:59:21.689581 2021-11-05 18:59:21.689418 be380bd9-d658-49e6-8469-24a03a9d0ff8 1227 +1168 uri://ed-fi.org/LanguageDescriptor aze Azerbaijani Azerbaijani \N \N \N 2021-11-05 18:59:21.692637 2021-11-05 18:59:21.692573 0fe89b9d-ebd9-434a-a581-e111183156ed 1228 +1176 uri://ed-fi.org/LanguageDescriptor bih Bihari languages Bihari languages \N \N \N 2021-11-05 18:59:21.723736 2021-11-05 18:59:21.723684 0ab43f0d-f827-495c-9908-e65d9a5d399b 1236 +1178 uri://ed-fi.org/LanguageDescriptor bos Bosnian Bosnian \N \N \N 2021-11-05 18:59:21.726723 2021-11-05 18:59:21.726545 21b16a12-ae72-4e05-a05b-55df473e7467 1238 +1180 uri://ed-fi.org/LanguageDescriptor bua Buriat Buriat \N \N \N 2021-11-05 18:59:21.735819 2021-11-05 18:59:21.735737 c98c136e-9b5a-4a9f-9663-ff63cfa74a1e 1240 +1182 uri://ed-fi.org/LanguageDescriptor cai Central American Indian languages Central American Indian languages \N \N \N 2021-11-05 18:59:21.739103 2021-11-05 18:59:21.739043 03c4a367-6947-4917-a06c-76bf2b72fb38 1242 +1184 uri://ed-fi.org/LanguageDescriptor cha Chamorro Chamorro \N \N \N 2021-11-05 18:59:21.745787 2021-11-05 18:59:21.745325 fde4572f-ffa2-467f-b665-8a905da198ab 1244 +1186 uri://ed-fi.org/LanguageDescriptor chi Chinese Chinese \N \N \N 2021-11-05 18:59:21.752048 2021-11-05 18:59:21.752011 2fa96e8c-5fa6-4600-bcb3-7ae407db1508 1246 +1189 uri://ed-fi.org/LanguageDescriptor chr Cherokee Cherokee \N \N \N 2021-11-05 18:59:21.758379 2021-11-05 18:59:21.757954 b0a01c31-efeb-439f-8b71-362bc1468f06 1249 +1090 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor Negative Effects Negative Effects Negative Effects \N \N \N 2021-11-05 18:59:21.151358 2021-11-05 18:59:21.150226 73d716f2-b0be-4627-a153-7a8c09f80bc1 1150 +1094 uri://ed-fi.org/InterventionEffectivenessRatingDescriptor Positive Effects Positive Effects Positive Effects \N \N \N 2021-11-05 18:59:21.166015 2021-11-05 18:59:21.165946 080e89df-e1ac-4bae-ac35-2610eb9fa289 1154 +1098 uri://ed-fi.org/LanguageDescriptor ady Adyghe Adyghe \N \N \N 2021-11-05 18:59:21.222209 2021-11-05 18:59:21.221041 5be4e093-a45e-4bda-bfb0-29b8d1493fa5 1158 +1100 uri://ed-fi.org/LanguageDescriptor bej Beja Beja \N \N \N 2021-11-05 18:59:21.236015 2021-11-05 18:59:21.235962 bb554707-f1c3-496c-8d7e-e1e56dafcae3 1160 +1103 uri://ed-fi.org/LanguageDescriptor spa Spanish Spanish \N \N \N 2021-11-05 18:59:21.239513 2021-11-05 18:59:21.23946 5d2ca55d-70ea-4469-8410-648988950105 1163 +1107 uri://ed-fi.org/LanguageDescriptor rar Rarotongan Rarotongan \N \N \N 2021-11-05 18:59:21.253422 2021-11-05 18:59:21.253073 947c403c-97de-46b3-9f33-4ed5b42c22fc 1167 +1111 uri://ed-fi.org/LanguageDescriptor dut Dutch Dutch \N \N \N 2021-11-05 18:59:21.27042 2021-11-05 18:59:21.270102 ccf98a9a-3d06-4f77-b247-1332eaaac52f 1171 +1114 uri://ed-fi.org/LanguageDescriptor arc Official Aramaic (700-300 BCE) Official Aramaic (700-300 BCE) \N \N \N 2021-11-05 18:59:21.281938 2021-11-05 18:59:21.281513 580217e3-a46b-4c52-9670-1c34cd0bdee1 1174 +1126 uri://ed-fi.org/LanguageDescriptor mic Mi'kmaq Mi'kmaq \N \N \N 2021-11-05 18:59:21.315624 2021-11-05 18:59:21.315391 2b5593a4-0e66-40d3-a7f1-9ad56b84386f 1186 +1144 uri://ed-fi.org/LanguageDescriptor nso Pedi Pedi \N \N \N 2021-11-05 18:59:21.374481 2021-11-05 18:59:21.374006 39b4f4db-b416-4fd0-b79b-1405fe3deb62 1204 +1149 uri://ed-fi.org/LanguageDescriptor cat Catalan Catalan \N \N \N 2021-11-05 18:59:21.392923 2021-11-05 18:59:21.39271 52faee26-f2e3-4713-b0ae-c90252a2ee88 1209 +1153 uri://ed-fi.org/LanguageDescriptor aar Afar Afar \N \N \N 2021-11-05 18:59:21.409814 2021-11-05 18:59:21.409588 5941fcd4-f622-46ed-a43a-ae9d9a0b7907 1213 +1156 uri://ed-fi.org/LanguageDescriptor afr Afrikaans Afrikaans \N \N \N 2021-11-05 18:59:21.420114 2021-11-05 18:59:21.420042 f03e61e5-b501-4101-bfec-fc7fa126d88c 1216 +1164 uri://ed-fi.org/LanguageDescriptor art Artificial languages Artificial languages \N \N \N 2021-11-05 18:59:21.678021 2021-11-05 18:59:21.677562 cc1b747b-5801-4e15-a748-30af25c971a2 1224 +1170 uri://ed-fi.org/LanguageDescriptor bai Bamileke languages Bamileke languages \N \N \N 2021-11-05 18:59:21.695239 2021-11-05 18:59:21.694104 d1fb41c0-7a6d-4176-a53d-caf69311d802 1230 +1187 uri://ed-fi.org/LanguageDescriptor chm Mari Mari \N \N \N 2021-11-05 18:59:21.755314 2021-11-05 18:59:21.754732 97737dac-d3df-437c-bec2-fb57099b1b7b 1247 +1192 uri://ed-fi.org/LanguageDescriptor cor Cornish Cornish \N \N \N 2021-11-05 18:59:21.770166 2021-11-05 18:59:21.770103 48d931d7-6834-4fee-9ffb-ce2716f013cd 1252 +1197 uri://ed-fi.org/LanguageDescriptor day Land Dayak languages Land Dayak languages \N \N \N 2021-11-05 18:59:21.784259 2021-11-05 18:59:21.784216 e3d21f6b-3a93-466d-8423-e6c60c187ffc 1257 +1201 uri://ed-fi.org/LanguageDescriptor dsb Lower Sorbian Lower Sorbian \N \N \N 2021-11-05 18:59:21.795861 2021-11-05 18:59:21.795825 73171da1-e73f-4b24-90a8-a025732760ab 1261 +1207 uri://ed-fi.org/LanguageDescriptor eng English English \N \N \N 2021-11-05 18:59:21.812448 2021-11-05 18:59:21.811929 7262be55-54ce-44e8-bad0-d4b63c8a1f4d 1267 +1215 uri://ed-fi.org/LanguageDescriptor frs Eastern Frisian Eastern Frisian \N \N \N 2021-11-05 18:59:21.834263 2021-11-05 18:59:21.832926 ffee27fe-e57f-4841-9277-c422a58f97c4 1275 +1220 uri://ed-fi.org/LanguageDescriptor gez Geez Geez \N \N \N 2021-11-05 18:59:21.851701 2021-11-05 18:59:21.851666 ea4df8ff-1988-420d-9ba5-1090d4c38690 1280 +1225 uri://ed-fi.org/LanguageDescriptor grc Greek, Ancient (to 1453) Greek, Ancient (to 1453) \N \N \N 2021-11-05 18:59:21.865206 2021-11-05 18:59:21.865185 8ece2612-f61e-4618-8963-e382fb2e372f 1285 +1321 uri://ed-fi.org/LanguageDescriptor sla Slavic languages Slavic languages \N \N \N 2021-11-05 18:59:22.138096 2021-11-05 18:59:22.138074 9aed4ebe-d15e-4bfc-a4cc-ca87c529d920 1381 +1369 uri://ed-fi.org/LanguageDescriptor zun Zuni Zuni \N \N \N 2021-11-05 18:59:22.273533 2021-11-05 18:59:22.273312 9691ce46-bad0-4c52-b95e-16e531a83dc9 1429 +1445 uri://ed-fi.org/LanguageDescriptor haw Hawaiian Hawaiian \N \N \N 2021-11-05 18:59:22.486938 2021-11-05 18:59:22.486647 4d5531a0-6379-41c2-aaea-9a067f5e60d4 1505 +1501 uri://ed-fi.org/LanguageDescriptor nah Nahuatl languages Nahuatl languages \N \N \N 2021-11-05 18:59:22.643269 2021-11-05 18:59:22.643235 e3ab57f7-2bd0-4170-9a2b-020d87e4f823 1561 +1547 uri://ed-fi.org/LanguageDescriptor sux Sumerian Sumerian \N \N \N 2021-11-05 18:59:22.780267 2021-11-05 18:59:22.780232 b2328b2c-8e70-48d0-9ea4-f8f85277df4c 1607 +1582 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Dual Language Dual Language Dual Language \N \N \N 2021-11-05 18:59:22.939278 2021-11-05 18:59:22.937972 0142fbd1-b53a-47ef-aca5-358c50769fbe 1642 +1587 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Heritage Language Heritage Language Heritage Language \N \N \N 2021-11-05 18:59:22.957465 2021-11-05 18:59:22.957447 109da851-9a17-481d-8386-03cb0fa9a26a 1647 +1593 uri://ed-fi.org/LanguageUseDescriptor Dominant language Dominant language Dominant language \N \N \N 2021-11-05 18:59:23.027778 2021-11-05 18:59:23.026616 20ac1684-b46d-494d-bc89-bae17dfa8f06 1653 +1600 uri://ed-fi.org/LearningStandardCategoryDescriptor Practices Practices Practices \N \N \N 2021-11-05 18:59:23.110386 2021-11-05 18:59:23.109218 7f503ff5-7c15-4bd0-b70c-500c60422a70 1660 +1606 uri://ed-fi.org/LearningStandardScopeDescriptor Local education agency Local education agency Local education agency \N \N \N 2021-11-05 18:59:23.179325 2021-11-05 18:59:23.178175 c9aa2f1e-cbdb-4edb-8501-46197c509216 1666 +1614 uri://ed-fi.org/LevelOfEducationDescriptor Bachelor's Bachelor's Bachelor's \N \N \N 2021-11-05 18:59:23.471305 2021-11-05 18:59:23.470171 d1f544bc-ff3f-490a-8f9a-535851543f3f 1674 +1621 uri://ed-fi.org/LicenseStatusDescriptor Unregulated Unregulated Unregulated \N \N \N 2021-11-05 18:59:23.551431 2021-11-05 18:59:23.550289 3321618a-8b64-4f84-8de3-5631ed14e981 1681 +1623 uri://ed-fi.org/LicenseTypeDescriptor Child Placing Agency Child Placing Agency Child Placing Agency \N \N \N 2021-11-05 18:59:23.568971 2021-11-05 18:59:23.568522 c042e95d-6b86-4910-abc2-82d269653cab 1683 +1629 uri://ed-fi.org/LicenseTypeDescriptor Large Family Child Care Home Large Family Child Care Home Large Family Child Care Home \N \N \N 2021-11-05 18:59:23.585766 2021-11-05 18:59:23.585502 2e9da893-ca8c-41f7-83a5-641c52e4c8a6 1689 +1639 uri://ed-fi.org/LimitedEnglishProficiencyDescriptor Limited Monitored 1 Limited Monitored 1 Limited Monitored 1 \N \N \N 2021-11-05 18:59:23.663935 2021-11-05 18:59:23.662786 a83c8661-9d65-4c6d-aebe-50fa77b75314 1699 +1643 uri://ed-fi.org/LocaleDescriptor City-Midsize City-Midsize City-Midsize \N \N \N 2021-11-05 18:59:23.735516 2021-11-05 18:59:23.734344 e2b014ec-0783-4328-9384-48f911729187 1703 +1647 uri://ed-fi.org/LocaleDescriptor Town-Fringe Town-Fringe Town-Fringe \N \N \N 2021-11-05 18:59:23.751936 2021-11-05 18:59:23.751855 688af0d9-75b9-400c-99cd-e2d51f73ff5f 1707 +1660 uri://ed-fi.org/MediumOfInstructionDescriptor Correspondence instruction Correspondence instruction Correspondence instruction \N \N \N 2021-11-05 18:59:23.902848 2021-11-05 18:59:23.901688 ddf4a452-4b87-49fa-9baf-d724659f09e6 1720 +1664 uri://ed-fi.org/MediumOfInstructionDescriptor Other Other Other \N \N \N 2021-11-05 18:59:23.920493 2021-11-05 18:59:23.919962 3ff50a42-39a1-4ac0-a66c-3be8bfc865cc 1724 +1669 uri://ed-fi.org/MediumOfInstructionDescriptor Televised Televised Televised \N \N \N 2021-11-05 18:59:23.936414 2021-11-05 18:59:23.936146 97e67ef6-e56a-446b-bb2f-d29a38db2445 1729 +1672 uri://ed-fi.org/MethodCreditEarnedDescriptor Converted occupational experience credit Converted occupational experience credit Converted occupational experience credit \N \N \N 2021-11-05 18:59:24.004138 2021-11-05 18:59:24.002976 40bbc2b2-6b0b-47da-96c7-a74c51f633a0 1732 +1680 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor Instructional Services Instructional Services Instructional Services \N \N \N 2021-11-05 18:59:24.086186 2021-11-05 18:59:24.085017 6af0fdad-cf06-4ccb-941a-a7e93b1746ec 1740 +1684 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor Support Services Support Services Support Services \N \N \N 2021-11-05 18:59:24.101605 2021-11-05 18:59:24.101228 d6160ef4-68d3-491f-8347-505e0a3e2a36 1744 +1687 uri://ed-fi.org/MonitoredDescriptor Year 2 Year 2 Year 2 \N \N \N 2021-11-05 18:59:24.169389 2021-11-05 18:59:24.168197 b47a4295-561c-42e5-a240-eb6c8fc37fc6 1747 +1696 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor Special Programs Special Programs Special Programs \N \N \N 2021-11-05 18:59:24.252722 2021-11-05 18:59:24.251564 535b915a-ee0c-461e-bc8a-01fed719b3e7 1756 +1700 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor Pay For Success Initiatives Pay For Success Initiatives Pay For Success Initiatives \N \N \N 2021-11-05 18:59:24.272916 2021-11-05 18:59:24.272876 f1ee6031-0b62-4c4c-8ebf-87e4a3ec0d35 1760 +1106 uri://ed-fi.org/LanguageDescriptor crh Crimean Tatar Crimean Tatar \N \N \N 2021-11-05 18:59:21.253102 2021-11-05 18:59:21.253048 a17f6cd0-fda6-490f-b14c-401d26fa7fab 1166 +1108 uri://ed-fi.org/LanguageDescriptor chp Chipewyan Chipewyan \N \N \N 2021-11-05 18:59:21.256498 2021-11-05 18:59:21.256452 3f254bf1-2d01-49d2-aea9-7b216756079c 1168 +1109 uri://ed-fi.org/LanguageDescriptor div Divehi Divehi \N \N \N 2021-11-05 18:59:21.262231 2021-11-05 18:59:21.262189 edad7ef6-7d3f-42b5-a337-1f8ef5001958 1169 +1110 uri://ed-fi.org/LanguageDescriptor bin Bini Bini \N \N \N 2021-11-05 18:59:21.270224 2021-11-05 18:59:21.266291 88976b7d-acef-463e-b429-001129a1c821 1170 +1113 uri://ed-fi.org/LanguageDescriptor kik Kikuyu Kikuyu \N \N \N 2021-11-05 18:59:21.275839 2021-11-05 18:59:21.275797 9b98eb7a-52e0-4569-b006-ba11a847a56b 1173 +1115 uri://ed-fi.org/LanguageDescriptor hat Haitian Haitian \N \N \N 2021-11-05 18:59:21.283019 2021-11-05 18:59:21.282928 09e1c797-3ca5-4840-91a1-0973ce2cd804 1175 +1117 uri://ed-fi.org/LanguageDescriptor kac Kachin Kachin \N \N \N 2021-11-05 18:59:21.287473 2021-11-05 18:59:21.28743 a8c2da2b-1895-4bfd-bb38-bfc6dbe56b2f 1177 +1119 uri://ed-fi.org/LanguageDescriptor kua Kuanyama Kuanyama \N \N \N 2021-11-05 18:59:21.292355 2021-11-05 18:59:21.292303 cff616a6-9f5c-421c-9de0-fe1901dd6895 1179 +1120 uri://ed-fi.org/LanguageDescriptor kir Kirghiz Kirghiz \N \N \N 2021-11-05 18:59:21.296278 2021-11-05 18:59:21.296235 656d75ef-11bf-4852-9317-f6ccfb25f3f5 1180 +1121 uri://ed-fi.org/LanguageDescriptor ltz Luxembourgish Luxembourgish \N \N \N 2021-11-05 18:59:21.30002 2021-11-05 18:59:21.299623 7a8b6d74-a8a0-4ff0-a3c7-5b8fc728cb05 1181 +1122 uri://ed-fi.org/LanguageDescriptor lim Limburgan Limburgan \N \N \N 2021-11-05 18:59:21.303303 2021-11-05 18:59:21.303264 e31475bc-012a-4bcb-8a6c-7963e03e2783 1182 +1123 uri://ed-fi.org/LanguageDescriptor nds Low German Low German \N \N \N 2021-11-05 18:59:21.310368 2021-11-05 18:59:21.310004 7ddb2204-7f24-4461-aef5-05258f89d998 1183 +1125 uri://ed-fi.org/LanguageDescriptor hmn Hmong Hmong \N \N \N 2021-11-05 18:59:21.314993 2021-11-05 18:59:21.314789 da425df6-88ba-46df-a03a-e5cd344be9b0 1185 +1127 uri://ed-fi.org/LanguageDescriptor nav Navajo Navajo \N \N \N 2021-11-05 18:59:21.319291 2021-11-05 18:59:21.319246 744fd0e4-28fe-4be3-ac11-31459945ee97 1187 +1129 uri://ed-fi.org/LanguageDescriptor nde Ndebele, North Ndebele, North \N \N \N 2021-11-05 18:59:21.32478 2021-11-05 18:59:21.324712 f329635d-0329-4e72-9ee2-1ed54b2c762a 1189 +1130 uri://ed-fi.org/LanguageDescriptor nob Bokmål, Norwegian Bokmål, Norwegian \N \N \N 2021-11-05 18:59:21.328223 2021-11-05 18:59:21.327685 102be8e4-1e8c-4537-bb01-43ad500ec1cf 1190 +1131 uri://ed-fi.org/LanguageDescriptor iii Sichuan Yi Sichuan Yi \N \N \N 2021-11-05 18:59:21.331628 2021-11-05 18:59:21.331581 4d0727ad-ded4-4654-9fda-768c9ad97556 1191 +1132 uri://ed-fi.org/LanguageDescriptor nno Norwegian Nynorsk Norwegian Nynorsk \N \N \N 2021-11-05 18:59:21.335127 2021-11-05 18:59:21.33508 e2a1d086-1017-4e2d-a4e7-6537dcbd2ca6 1192 +1133 uri://ed-fi.org/LanguageDescriptor ile Interlingue Interlingue \N \N \N 2021-11-05 18:59:21.338102 2021-11-05 18:59:21.337972 0440f67a-7c27-42ba-8f5a-ecb67a2584e8 1193 +1135 uri://ed-fi.org/LanguageDescriptor xal Kalmyk Kalmyk \N \N \N 2021-11-05 18:59:21.341925 2021-11-05 18:59:21.341848 a7fcaf67-ddbc-4fe2-90d0-170a0f9dbd77 1195 +1136 uri://ed-fi.org/LanguageDescriptor nwc Classical Newari Classical Newari \N \N \N 2021-11-05 18:59:21.344471 2021-11-05 18:59:21.344422 1c6e2993-cdb6-424a-a279-2afdcb4612f5 1196 +1137 uri://ed-fi.org/LanguageDescriptor chu Church Slavic Church Slavic \N \N \N 2021-11-05 18:59:21.347733 2021-11-05 18:59:21.347461 03a4d208-7367-47d3-92c0-bbc658ae558b 1197 +1139 uri://ed-fi.org/LanguageDescriptor pus Pushto Pushto \N \N \N 2021-11-05 18:59:21.359669 2021-11-05 18:59:21.357952 849f7d2f-7a25-472e-bf7a-db54ef0da4a5 1199 +1142 uri://ed-fi.org/LanguageDescriptor fil Filipino Filipino \N \N \N 2021-11-05 18:59:21.364261 2021-11-05 18:59:21.364028 105b7f7e-d9b6-4956-8649-0341acd11b4e 1202 +1145 uri://ed-fi.org/LanguageDescriptor nbl Ndebele, South Ndebele, South \N \N \N 2021-11-05 18:59:21.377339 2021-11-05 18:59:21.375728 85ff13b2-519c-43c8-a53b-94fb0a3d1d79 1205 +1146 uri://ed-fi.org/LanguageDescriptor sin Sinhala Sinhala \N \N \N 2021-11-05 18:59:21.384973 2021-11-05 18:59:21.38487 f8a3fc30-be4d-4da2-8d3d-6afbf3274916 1206 +1148 uri://ed-fi.org/LanguageDescriptor uig Uighur Uighur \N \N \N 2021-11-05 18:59:21.392246 2021-11-05 18:59:21.391225 32c3cc8f-a951-496a-b600-a25eb546dd58 1208 +1150 uri://ed-fi.org/LanguageDescriptor him Himachali languages Himachali languages \N \N \N 2021-11-05 18:59:21.399334 2021-11-05 18:59:21.398818 20f258f7-8542-4a00-97d6-ace2668a8766 1210 +1152 uri://ed-fi.org/LanguageDescriptor ace Achinese Achinese \N \N \N 2021-11-05 18:59:21.407065 2021-11-05 18:59:21.407029 8251310c-6b9a-40a4-b1e2-8ff82a38fd06 1212 +1154 uri://ed-fi.org/LanguageDescriptor ada Adangme Adangme \N \N \N 2021-11-05 18:59:21.414148 2021-11-05 18:59:21.413682 6d0847c9-236b-4056-99c2-d468081ae2b6 1214 +1158 uri://ed-fi.org/LanguageDescriptor alb Albanian Albanian \N \N \N 2021-11-05 18:59:21.662111 2021-11-05 18:59:21.66179 16181c6a-d82c-495c-b5e6-b3f08e3c833c 1218 +1160 uri://ed-fi.org/LanguageDescriptor amh Amharic Amharic \N \N \N 2021-11-05 18:59:21.666836 2021-11-05 18:59:21.666517 6e82bbb3-b58d-4e5a-9aca-48f4552cda48 1220 +1162 uri://ed-fi.org/LanguageDescriptor ara Arabic Arabic \N \N \N 2021-11-05 18:59:21.673242 2021-11-05 18:59:21.673195 7770e3ac-5012-4fcb-8c7e-cd746f35fc54 1222 +1165 uri://ed-fi.org/LanguageDescriptor asm Assamese Assamese \N \N \N 2021-11-05 18:59:21.679239 2021-11-05 18:59:21.67859 d287b302-8af5-4afb-afe2-380782c52c2c 1225 +1166 uri://ed-fi.org/LanguageDescriptor ath Athapascan languages Athapascan languages \N \N \N 2021-11-05 18:59:21.682859 2021-11-05 18:59:21.682799 6c7de13a-16ca-4dfd-b2c9-8971d7557ed1 1226 +1169 uri://ed-fi.org/LanguageDescriptor awa Awadhi Awadhi \N \N \N 2021-11-05 18:59:21.694188 2021-11-05 18:59:21.692873 1224c469-9c27-4e20-96d9-82ca8c7d7f62 1229 +1171 uri://ed-fi.org/LanguageDescriptor bal Baluchi Baluchi \N \N \N 2021-11-05 18:59:21.699224 2021-11-05 18:59:21.699113 ccfc8893-6a01-49f1-9cc9-6cc5a9391fa9 1231 +1172 uri://ed-fi.org/LanguageDescriptor ban Balinese Balinese \N \N \N 2021-11-05 18:59:21.702336 2021-11-05 18:59:21.702291 c70a29db-df5a-47b6-ab11-4775eef740f9 1232 +1173 uri://ed-fi.org/LanguageDescriptor bas Basa Basa \N \N \N 2021-11-05 18:59:21.705158 2021-11-05 18:59:21.705122 21010bb6-925b-450c-81f7-1decc4998576 1233 +1174 uri://ed-fi.org/LanguageDescriptor bem Bemba Bemba \N \N \N 2021-11-05 18:59:21.71558 2021-11-05 18:59:21.715531 6986dd0f-0afa-4f14-b2f5-a62be31a0ee6 1234 +1175 uri://ed-fi.org/LanguageDescriptor ber Berber languages Berber languages \N \N \N 2021-11-05 18:59:21.7207 2021-11-05 18:59:21.720641 d0188447-598d-42f9-9498-32f6734e7d1b 1235 +1177 uri://ed-fi.org/LanguageDescriptor bla Siksika Siksika \N \N \N 2021-11-05 18:59:21.724812 2021-11-05 18:59:21.724272 b3a56b23-ae95-4050-878f-e34c61ef30c3 1237 +1179 uri://ed-fi.org/LanguageDescriptor bre Breton Breton \N \N \N 2021-11-05 18:59:21.732975 2021-11-05 18:59:21.732891 d86734ea-3ead-479c-8157-415513e298f2 1239 +1181 uri://ed-fi.org/LanguageDescriptor bul Bulgarian Bulgarian \N \N \N 2021-11-05 18:59:21.738979 2021-11-05 18:59:21.738939 94a95db7-d99e-4165-b09c-095a21558023 1241 +1183 uri://ed-fi.org/LanguageDescriptor ceb Cebuano Cebuano \N \N \N 2021-11-05 18:59:21.743625 2021-11-05 18:59:21.74349 049a39b3-b462-48c2-9d17-1a60ba72c687 1243 +1185 uri://ed-fi.org/LanguageDescriptor che Chechen Chechen \N \N \N 2021-11-05 18:59:21.750071 2021-11-05 18:59:21.750036 bc3a1136-180b-48c3-b5a9-bff2044bfdee 1245 +1188 uri://ed-fi.org/LanguageDescriptor cho Choctaw Choctaw \N \N \N 2021-11-05 18:59:21.756169 2021-11-05 18:59:21.756145 de2aebe2-6e76-4f3e-b1ff-bc67ffefa95c 1248 +1191 uri://ed-fi.org/LanguageDescriptor chv Chuvash Chuvash \N \N \N 2021-11-05 18:59:21.768183 2021-11-05 18:59:21.768084 dbf77451-f045-4a16-840f-c3420499dcd0 1251 +1193 uri://ed-fi.org/LanguageDescriptor cpe Creoles and pidgins, English based Creoles and pidgins, English based \N \N \N 2021-11-05 18:59:21.771203 2021-11-05 18:59:21.771168 6c7c6949-eb1b-47c9-9ed7-4d1f389854ee 1253 +1195 uri://ed-fi.org/LanguageDescriptor csb Kashubian Kashubian \N \N \N 2021-11-05 18:59:21.778549 2021-11-05 18:59:21.778512 2eb2ad5c-6bf5-4405-8925-33e4d81ba095 1255 +1198 uri://ed-fi.org/LanguageDescriptor dan Danish Danish \N \N \N 2021-11-05 18:59:21.785259 2021-11-05 18:59:21.785175 5e8c9654-83eb-4773-9e34-d1646b7e33bd 1258 +1199 uri://ed-fi.org/LanguageDescriptor den Slave (Athapascan) Slave (Athapascan) \N \N \N 2021-11-05 18:59:21.788685 2021-11-05 18:59:21.788645 f379b52a-77c1-4ef4-ad07-c8f4980e7155 1259 +1200 uri://ed-fi.org/LanguageDescriptor din Dinka Dinka \N \N \N 2021-11-05 18:59:21.792077 2021-11-05 18:59:21.792041 f73620f3-d1c0-4eb4-b3ab-ccfab9df8c04 1260 +1202 uri://ed-fi.org/LanguageDescriptor doi Dogri Dogri \N \N \N 2021-11-05 18:59:21.796597 2021-11-05 18:59:21.796563 85dc4ae2-aae1-454b-a2c1-0b39b2e8e10d 1262 +1204 uri://ed-fi.org/LanguageDescriptor dyu Dyula Dyula \N \N \N 2021-11-05 18:59:21.803091 2021-11-05 18:59:21.803053 ec55ba28-5131-4b9f-80ef-609899e43f29 1264 +1205 uri://ed-fi.org/LanguageDescriptor efi Efik Efik \N \N \N 2021-11-05 18:59:21.80686 2021-11-05 18:59:21.806752 04492e82-182c-4b15-b069-84dac2bfa50a 1265 +1190 uri://ed-fi.org/LanguageDescriptor cmc Chamic languages Chamic languages \N \N \N 2021-11-05 18:59:21.766334 2021-11-05 18:59:21.766293 33f50fdc-f97c-442a-b641-cea4a05bf288 1250 +1194 uri://ed-fi.org/LanguageDescriptor cpp Creoles and pidgins, Portuguese-based Creoles and pidgins, Portuguese-based \N \N \N 2021-11-05 18:59:21.773825 2021-11-05 18:59:21.773805 d1dcfddc-2c08-4aa9-9fef-85774c81ec91 1254 +1196 uri://ed-fi.org/LanguageDescriptor cze Czech Czech \N \N \N 2021-11-05 18:59:21.783556 2021-11-05 18:59:21.783359 355e1ae0-d1b3-4636-8b1c-5cfe19e6cfba 1256 +1203 uri://ed-fi.org/LanguageDescriptor dum Dutch, Middle (ca.1050-1350) Dutch, Middle (ca.1050-1350) \N \N \N 2021-11-05 18:59:21.798935 2021-11-05 18:59:21.798915 e372960a-88bf-4208-a771-2923f98be299 1263 +1206 uri://ed-fi.org/LanguageDescriptor eka Ekajuk Ekajuk \N \N \N 2021-11-05 18:59:21.812296 2021-11-05 18:59:21.811048 acac8a39-a13d-4c91-80ac-ef9bfccbb23e 1266 +1211 uri://ed-fi.org/LanguageDescriptor fiu Finno-Ugrian languages Finno-Ugrian languages \N \N \N 2021-11-05 18:59:21.824899 2021-11-05 18:59:21.824726 9c82aa54-9c8b-4ccc-b99e-d3a2b01dc567 1271 +1213 uri://ed-fi.org/LanguageDescriptor fre French French \N \N \N 2021-11-05 18:59:21.831253 2021-11-05 18:59:21.830291 3fe5767c-ad7c-471e-8461-484da8465dc2 1273 +1218 uri://ed-fi.org/LanguageDescriptor gba Gbaya Gbaya \N \N \N 2021-11-05 18:59:21.848372 2021-11-05 18:59:21.848328 49b94835-ca3c-4e04-a835-2888f2b721a4 1278 +1224 uri://ed-fi.org/LanguageDescriptor got Gothic Gothic \N \N \N 2021-11-05 18:59:21.864076 2021-11-05 18:59:21.863899 2dab9726-0ae4-4288-9f80-73763be424ae 1284 +1229 uri://ed-fi.org/LanguageDescriptor hau Hausa Hausa \N \N \N 2021-11-05 18:59:21.878888 2021-11-05 18:59:21.878795 a2f750cf-26d2-46ab-ae32-bd5c80e7deee 1289 +1234 uri://ed-fi.org/LanguageDescriptor hun Hungarian Hungarian \N \N \N 2021-11-05 18:59:21.892188 2021-11-05 18:59:21.89215 7d10bb2d-a4be-4a6f-b90f-d6f5ffe626c4 1294 +1236 uri://ed-fi.org/LanguageDescriptor ice Icelandic Icelandic \N \N \N 2021-11-05 18:59:21.897912 2021-11-05 18:59:21.897814 cd650202-7a9e-4b3f-a860-f53914e9e00e 1296 +1238 uri://ed-fi.org/LanguageDescriptor ilo Iloko Iloko \N \N \N 2021-11-05 18:59:21.904416 2021-11-05 18:59:21.904377 2c0ef847-5d4b-4987-a508-fec6dd5914d7 1298 +1239 uri://ed-fi.org/LanguageDescriptor ine Indo-European languages Indo-European languages \N \N \N 2021-11-05 18:59:21.907813 2021-11-05 18:59:21.907769 7a05d06b-fa8e-4051-a69d-677a32b48c4e 1299 +1242 uri://ed-fi.org/LanguageDescriptor ipk Inupiaq Inupiaq \N \N \N 2021-11-05 18:59:21.914249 2021-11-05 18:59:21.91421 827d0ae6-f319-4953-8133-cc8452dc7c5c 1302 +1243 uri://ed-fi.org/LanguageDescriptor jav Javanese Javanese \N \N \N 2021-11-05 18:59:21.921319 2021-11-05 18:59:21.921277 de493e08-d0f5-4052-a0ad-dee5acaa9c39 1303 +1247 uri://ed-fi.org/LanguageDescriptor kan Kannada Kannada \N \N \N 2021-11-05 18:59:21.932603 2021-11-05 18:59:21.932562 ee678a16-0e78-47d3-8a35-ef4975a18182 1307 +1248 uri://ed-fi.org/LanguageDescriptor kas Kashmiri Kashmiri \N \N \N 2021-11-05 18:59:21.936319 2021-11-05 18:59:21.935999 0fa9ac02-9298-44f7-a0a5-9af6c9b664b2 1308 +1253 uri://ed-fi.org/LanguageDescriptor kmb Kimbundu Kimbundu \N \N \N 2021-11-05 18:59:21.94846 2021-11-05 18:59:21.948436 2e507a46-c1a2-4ccc-9b6e-b4ff29e80f7d 1313 +1254 uri://ed-fi.org/LanguageDescriptor kom Komi Komi \N \N \N 2021-11-05 18:59:21.952305 2021-11-05 18:59:21.952246 22b175ac-4f04-4688-ba7f-d964e4300fa0 1314 +1257 uri://ed-fi.org/LanguageDescriptor krl Karelian Karelian \N \N \N 2021-11-05 18:59:21.959123 2021-11-05 18:59:21.959087 7623262f-c404-4b5a-b007-deb886374c6d 1317 +1258 uri://ed-fi.org/LanguageDescriptor kru Kurukh Kurukh \N \N \N 2021-11-05 18:59:21.965333 2021-11-05 18:59:21.96522 5b0478c4-46e0-48ef-94c7-4c198a88519f 1318 +1262 uri://ed-fi.org/LanguageDescriptor lao Lao Lao \N \N \N 2021-11-05 18:59:21.97485 2021-11-05 18:59:21.974754 3be2f56d-35eb-4ebc-b02a-53ab3d34a62a 1322 +1264 uri://ed-fi.org/LanguageDescriptor lit Lithuanian Lithuanian \N \N \N 2021-11-05 18:59:21.982483 2021-11-05 18:59:21.982209 7e5fb3c4-51e5-4cfd-9e70-3376ab580b3e 1324 +1266 uri://ed-fi.org/LanguageDescriptor lua Luba-Lulua Luba-Lulua \N \N \N 2021-11-05 18:59:21.986139 2021-11-05 18:59:21.986057 1bae092c-c5aa-478e-a4ca-c343d75f046c 1326 +1271 uri://ed-fi.org/LanguageDescriptor mah Marshallese Marshallese \N \N \N 2021-11-05 18:59:22.000495 2021-11-05 18:59:22.00045 561e17c5-b077-4ff3-942c-6a31724419f9 1331 +1273 uri://ed-fi.org/LanguageDescriptor man Mandingo Mandingo \N \N \N 2021-11-05 18:59:22.005882 2021-11-05 18:59:22.005844 fdb308d3-1807-46cb-8a06-f69b6f5a6527 1333 +1275 uri://ed-fi.org/LanguageDescriptor map Austronesian languages Austronesian languages \N \N \N 2021-11-05 18:59:22.011647 2021-11-05 18:59:22.011609 1f9468ed-2502-4eff-9752-4651308af36a 1335 +1277 uri://ed-fi.org/LanguageDescriptor men Mende Mende \N \N \N 2021-11-05 18:59:22.016131 2021-11-05 18:59:22.015963 d70571db-fde5-4ba9-afdd-8247a19bebae 1337 +1279 uri://ed-fi.org/LanguageDescriptor mlg Malagasy Malagasy \N \N \N 2021-11-05 18:59:22.021301 2021-11-05 18:59:22.021222 a67a25e1-e4fb-4f40-9ef9-c3ac5f7bbfd6 1339 +1280 uri://ed-fi.org/LanguageDescriptor mnc Manchu Manchu \N \N \N 2021-11-05 18:59:22.025018 2021-11-05 18:59:22.024965 def03da3-d8ca-46be-b497-96c9db53602a 1340 +1283 uri://ed-fi.org/LanguageDescriptor mul Multiple languages Multiple languages \N \N \N 2021-11-05 18:59:22.035319 2021-11-05 18:59:22.035275 f5d6cbf7-02fa-475f-a0c2-4223882dbd32 1343 +1285 uri://ed-fi.org/LanguageDescriptor mwr Marwari Marwari \N \N \N 2021-11-05 18:59:22.038959 2021-11-05 18:59:22.038706 f547ad53-c7b9-4471-8915-325206bf3982 1345 +1288 uri://ed-fi.org/LanguageDescriptor nau Nauru Nauru \N \N \N 2021-11-05 18:59:22.048436 2021-11-05 18:59:22.04835 73a578e1-f1c0-4c3e-a20c-2d8127012352 1348 +1291 uri://ed-fi.org/LanguageDescriptor nia Nias Nias \N \N \N 2021-11-05 18:59:22.054729 2021-11-05 18:59:22.054688 d2291a14-011f-4ec7-9960-5f4f9654ca19 1351 +1293 uri://ed-fi.org/LanguageDescriptor non Norse, Old Norse, Old \N \N \N 2021-11-05 18:59:22.059402 2021-11-05 18:59:22.059348 a1f1119b-8316-463e-8204-bd37d05e22ac 1353 +1294 uri://ed-fi.org/LanguageDescriptor nqo N'Ko N'Ko \N \N \N 2021-11-05 18:59:22.063267 2021-11-05 18:59:22.063082 adc34979-8130-41a0-82b4-db47dd581eb6 1354 +1297 uri://ed-fi.org/LanguageDescriptor nzi Nzima Nzima \N \N \N 2021-11-05 18:59:22.070722 2021-11-05 18:59:22.070681 7b59e2e9-3cb3-4f2b-bcbc-33e99d5c53ff 1357 +1299 uri://ed-fi.org/LanguageDescriptor orm Oromo Oromo \N \N \N 2021-11-05 18:59:22.076236 2021-11-05 18:59:22.076198 37d1d860-a0ff-44e0-9018-aede81cb58b8 1359 +1300 uri://ed-fi.org/LanguageDescriptor oto Otomian languages Otomian languages \N \N \N 2021-11-05 18:59:22.079892 2021-11-05 18:59:22.07987 edba384f-b345-47b8-adaa-663f0cf92875 1360 +1304 uri://ed-fi.org/LanguageDescriptor pli Pali Pali \N \N \N 2021-11-05 18:59:22.094569 2021-11-05 18:59:22.094526 44e6e2cc-01c1-411d-87bd-76305f8fd906 1364 +1307 uri://ed-fi.org/LanguageDescriptor pra Prakrit languages Prakrit languages \N \N \N 2021-11-05 18:59:22.099186 2021-11-05 18:59:22.099133 2500dca8-ca76-4d01-8c13-a8ac5df451bf 1367 +1309 uri://ed-fi.org/LanguageDescriptor raj Rajasthani Rajasthani \N \N \N 2021-11-05 18:59:22.106306 2021-11-05 18:59:22.106235 0c090948-b856-4a53-b264-660435166b5b 1369 +1311 uri://ed-fi.org/LanguageDescriptor sad Sandawe Sandawe \N \N \N 2021-11-05 18:59:22.11129 2021-11-05 18:59:22.111079 8e55a6d2-a6b1-4048-b54b-05f42bc72454 1371 +1313 uri://ed-fi.org/LanguageDescriptor sal Salishan languages Salishan languages \N \N \N 2021-11-05 18:59:22.114983 2021-11-05 18:59:22.114858 2a18c0ca-d69c-41a8-a566-950ae9a8020a 1373 +1315 uri://ed-fi.org/LanguageDescriptor sat Santali Santali \N \N \N 2021-11-05 18:59:22.121379 2021-11-05 18:59:22.121361 463d0e1d-9cf6-4817-898e-71a1d5bfff4a 1375 +1318 uri://ed-fi.org/LanguageDescriptor sgn Sign Languages Sign Languages \N \N \N 2021-11-05 18:59:22.132951 2021-11-05 18:59:22.132893 d3e190d5-023a-4913-ac4d-b799f85c8128 1378 +1320 uri://ed-fi.org/LanguageDescriptor sio Siouan languages Siouan languages \N \N \N 2021-11-05 18:59:22.136726 2021-11-05 18:59:22.136688 636dccf1-a319-4576-9e48-a44e2ed58bd5 1380 +1323 uri://ed-fi.org/LanguageDescriptor sme Northern Sami Northern Sami \N \N \N 2021-11-05 18:59:22.146564 2021-11-05 18:59:22.146522 b6c8ace1-7fdf-40d7-bbea-b3dee110c536 1383 +1326 uri://ed-fi.org/LanguageDescriptor sna Shona Shona \N \N \N 2021-11-05 18:59:22.156359 2021-11-05 18:59:22.156324 9be11beb-2de1-41db-8fb9-a30907339e28 1386 +1329 uri://ed-fi.org/LanguageDescriptor sot Sotho, Southern Sotho, Southern \N \N \N 2021-11-05 18:59:22.162809 2021-11-05 18:59:22.162773 9bb47885-3cad-4abc-aaf5-8f51e2e3855b 1389 +1331 uri://ed-fi.org/LanguageDescriptor srp Serbian Serbian \N \N \N 2021-11-05 18:59:22.168333 2021-11-05 18:59:22.168244 2a745e77-76ba-4af0-9600-d00deccd0bf8 1391 +1333 uri://ed-fi.org/LanguageDescriptor suk Sukuma Sukuma \N \N \N 2021-11-05 18:59:22.17297 2021-11-05 18:59:22.172935 3f259b52-cb45-47cc-9346-02f9db564bcf 1393 +1337 uri://ed-fi.org/LanguageDescriptor tah Tahitian Tahitian \N \N \N 2021-11-05 18:59:22.184958 2021-11-05 18:59:22.184922 b9c27744-9b41-42d8-85a9-c69cec47ebf9 1397 +1339 uri://ed-fi.org/LanguageDescriptor tel Telugu Telugu \N \N \N 2021-11-05 18:59:22.191958 2021-11-05 18:59:22.190308 2c73ed82-e8c1-434f-86f9-c5a23bc22ad7 1399 +1341 uri://ed-fi.org/LanguageDescriptor tgk Tajik Tajik \N \N \N 2021-11-05 18:59:22.195351 2021-11-05 18:59:22.195316 b56fe850-37f1-49d7-a09b-8572183ed29f 1401 +1208 uri://ed-fi.org/LanguageDescriptor epo Esperanto Esperanto \N \N \N 2021-11-05 18:59:21.813 2021-11-05 18:59:21.812893 7cce6a71-0a51-4b41-ae9e-b177e5a4c7d8 1268 +1209 uri://ed-fi.org/LanguageDescriptor ewe Ewe Ewe \N \N \N 2021-11-05 18:59:21.815887 2021-11-05 18:59:21.815778 da13d1b9-fc6c-40b8-acf5-ecd3dd3c63ac 1269 +1210 uri://ed-fi.org/LanguageDescriptor fan Fang Fang \N \N \N 2021-11-05 18:59:21.821527 2021-11-05 18:59:21.821469 58b6e8ce-6996-4682-830b-924d74258242 1270 +1212 uri://ed-fi.org/LanguageDescriptor fat Fanti Fanti \N \N \N 2021-11-05 18:59:21.826674 2021-11-05 18:59:21.826171 56959d9c-32ee-46e6-b81f-09ce2e53d2af 1272 +1214 uri://ed-fi.org/LanguageDescriptor fro French, Old (842-ca.1400) French, Old (842-ca.1400) \N \N \N 2021-11-05 18:59:21.83373 2021-11-05 18:59:21.831619 6e5ffa1f-446c-4703-a0bb-bbd0df8e5486 1274 +1216 uri://ed-fi.org/LanguageDescriptor ful Fulah Fulah \N \N \N 2021-11-05 18:59:21.83744 2021-11-05 18:59:21.837399 f4e1aab0-2088-497f-9e97-847f2c2632bd 1276 +1217 uri://ed-fi.org/LanguageDescriptor gaa Ga Ga \N \N \N 2021-11-05 18:59:21.844023 2021-11-05 18:59:21.843979 4d878397-ee43-46e7-9f74-0e81f7b4a2ba 1277 +1219 uri://ed-fi.org/LanguageDescriptor geo Georgian Georgian \N \N \N 2021-11-05 18:59:21.849738 2021-11-05 18:59:21.849683 91b7ec71-eae2-4f7a-a338-440303ce42d0 1279 +1221 uri://ed-fi.org/LanguageDescriptor glg Galician Galician \N \N \N 2021-11-05 18:59:21.853269 2021-11-05 18:59:21.853067 f4d7fb30-d0ca-4863-815a-e98cd1d357b4 1281 +1222 uri://ed-fi.org/LanguageDescriptor gmh German, Middle High (ca.1050-1500) German, Middle High (ca.1050-1500) \N \N \N 2021-11-05 18:59:21.859862 2021-11-05 18:59:21.859821 c7c5cb52-0aff-48de-95e1-66047977181f 1282 +1223 uri://ed-fi.org/LanguageDescriptor gon Gondi Gondi \N \N \N 2021-11-05 18:59:21.862971 2021-11-05 18:59:21.862731 5a771981-2acf-468b-839e-88665482846a 1283 +1226 uri://ed-fi.org/LanguageDescriptor grn Guarani Guarani \N \N \N 2021-11-05 18:59:21.86842 2021-11-05 18:59:21.868401 7a6df8a9-5be2-4b3a-b1b2-ffbba3692bb8 1286 +1227 uri://ed-fi.org/LanguageDescriptor guj Gujarati Gujarati \N \N \N 2021-11-05 18:59:21.874468 2021-11-05 18:59:21.874424 ee3b6cad-150e-4b79-946e-f7ace30c5b21 1287 +1228 uri://ed-fi.org/LanguageDescriptor hai Haida Haida \N \N \N 2021-11-05 18:59:21.877458 2021-11-05 18:59:21.877423 3306a063-0801-4a60-8985-278b4c3f8ed2 1288 +1230 uri://ed-fi.org/LanguageDescriptor heb Hebrew Hebrew \N \N \N 2021-11-05 18:59:21.880127 2021-11-05 18:59:21.879998 e9c3d1ae-07ef-4238-a8fe-fbffd170fb05 1290 +1231 uri://ed-fi.org/LanguageDescriptor hil Hiligaynon Hiligaynon \N \N \N 2021-11-05 18:59:21.882905 2021-11-05 18:59:21.882861 19087f1d-200b-4834-9d2d-53b05978e2c0 1291 +1232 uri://ed-fi.org/LanguageDescriptor hin Hindi Hindi \N \N \N 2021-11-05 18:59:21.886114 2021-11-05 18:59:21.886016 23ae8295-dc0e-4fd3-851d-d06b9328edaa 1292 +1233 uri://ed-fi.org/LanguageDescriptor hrv Croatian Croatian \N \N \N 2021-11-05 18:59:21.890184 2021-11-05 18:59:21.890043 11d5d35b-5125-4423-a4b5-214509d6c63e 1293 +1235 uri://ed-fi.org/LanguageDescriptor iba Iban Iban \N \N \N 2021-11-05 18:59:21.897006 2021-11-05 18:59:21.896769 80f00ffc-91b4-48ea-913b-6d3e3ef92388 1295 +1237 uri://ed-fi.org/LanguageDescriptor iku Inuktitut Inuktitut \N \N \N 2021-11-05 18:59:21.902209 2021-11-05 18:59:21.902102 8338a931-9685-47ef-a3ca-cc6994bc968d 1297 +1240 uri://ed-fi.org/LanguageDescriptor inc Indic languages Indic languages \N \N \N 2021-11-05 18:59:21.909189 2021-11-05 18:59:21.90905 66dad81d-acd3-48b5-819d-53fd599f35ce 1300 +1241 uri://ed-fi.org/LanguageDescriptor iro Iroquoian languages Iroquoian languages \N \N \N 2021-11-05 18:59:21.913017 2021-11-05 18:59:21.912934 6bd66efc-f0f7-49a7-8615-5c6a98718b9b 1301 +1244 uri://ed-fi.org/LanguageDescriptor jpn Japanese Japanese \N \N \N 2021-11-05 18:59:21.922385 2021-11-05 18:59:21.922133 89abfba2-9ccc-4be3-87f7-0619bd7cecd4 1304 +1245 uri://ed-fi.org/LanguageDescriptor jrb Judeo-Arabic Judeo-Arabic \N \N \N 2021-11-05 18:59:21.926588 2021-11-05 18:59:21.926537 f27e8d96-f584-4147-be23-cd9c63ed22d7 1305 +1246 uri://ed-fi.org/LanguageDescriptor kab Kabyle Kabyle \N \N \N 2021-11-05 18:59:21.929788 2021-11-05 18:59:21.929749 4970acd9-51c1-4ecf-ac81-2507770f17f1 1306 +1249 uri://ed-fi.org/LanguageDescriptor kaw Kawi Kawi \N \N \N 2021-11-05 18:59:21.937198 2021-11-05 18:59:21.936898 af5058c5-6409-49c2-af7c-b7894af0dfc1 1309 +1250 uri://ed-fi.org/LanguageDescriptor kbd Kabardian Kabardian \N \N \N 2021-11-05 18:59:21.94076 2021-11-05 18:59:21.94074 ac921091-9c14-4405-9ddc-6a48e17ffb41 1310 +1251 uri://ed-fi.org/LanguageDescriptor khi Khoisan languages Khoisan languages \N \N \N 2021-11-05 18:59:21.943482 2021-11-05 18:59:21.943443 083746fe-6556-4544-9ab8-377acb243173 1311 +1252 uri://ed-fi.org/LanguageDescriptor kin Kinyarwanda Kinyarwanda \N \N \N 2021-11-05 18:59:21.948373 2021-11-05 18:59:21.948334 bf1ff0b9-b041-4011-9c83-b54fda6fc0ed 1312 +1255 uri://ed-fi.org/LanguageDescriptor kor Korean Korean \N \N \N 2021-11-05 18:59:21.953907 2021-11-05 18:59:21.953841 25d7e47b-59ba-43a8-99e6-5a4af23dba11 1315 +1256 uri://ed-fi.org/LanguageDescriptor kpe Kpelle Kpelle \N \N \N 2021-11-05 18:59:21.958706 2021-11-05 18:59:21.958675 1d15e34c-db2c-435b-8b8c-db558bc0e4d8 1316 +1259 uri://ed-fi.org/LanguageDescriptor kum Kumyk Kumyk \N \N \N 2021-11-05 18:59:21.966668 2021-11-05 18:59:21.966649 5b0e407f-374c-41cd-9913-0d6043f786ba 1319 +1260 uri://ed-fi.org/LanguageDescriptor kut Kutenai Kutenai \N \N \N 2021-11-05 18:59:21.969985 2021-11-05 18:59:21.969951 9fc6bf5f-f4c9-416c-b005-7ade3e6d6bf7 1320 +1261 uri://ed-fi.org/LanguageDescriptor lah Lahnda Lahnda \N \N \N 2021-11-05 18:59:21.972928 2021-11-05 18:59:21.972911 5a3b74fa-ba25-4997-a728-499f55dd9d9c 1321 +1263 uri://ed-fi.org/LanguageDescriptor lav Latvian Latvian \N \N \N 2021-11-05 18:59:21.978669 2021-11-05 18:59:21.978627 f461f5b4-1393-4120-acc2-2520d64ab7e1 1323 +1265 uri://ed-fi.org/LanguageDescriptor loz Lozi Lozi \N \N \N 2021-11-05 18:59:21.983585 2021-11-05 18:59:21.983226 1235e736-b29b-495b-b7e8-1502335e74b4 1325 +1267 uri://ed-fi.org/LanguageDescriptor lug Ganda Ganda \N \N \N 2021-11-05 18:59:21.988046 2021-11-05 18:59:21.987781 d6fe0714-bfc5-432e-bb29-121fa2f4fe97 1327 +1268 uri://ed-fi.org/LanguageDescriptor lun Lunda Lunda \N \N \N 2021-11-05 18:59:21.993 2021-11-05 18:59:21.992706 eb770c5a-19c0-4561-ac7f-a5c8ed81c3a1 1328 +1269 uri://ed-fi.org/LanguageDescriptor lus Lushai Lushai \N \N \N 2021-11-05 18:59:21.9959 2021-11-05 18:59:21.995875 a6f2635a-5fa6-458a-a47a-14f8c1bf07be 1329 +1270 uri://ed-fi.org/LanguageDescriptor mad Madurese Madurese \N \N \N 2021-11-05 18:59:21.999586 2021-11-05 18:59:21.999222 0007a5c2-31d1-4aa2-8ba9-6e0ba989830a 1330 +1272 uri://ed-fi.org/LanguageDescriptor mak Makasar Makasar \N \N \N 2021-11-05 18:59:22.003832 2021-11-05 18:59:22.003811 fdf8997b-813e-4719-ae7c-06ed4a894803 1332 +1274 uri://ed-fi.org/LanguageDescriptor mas Masai Masai \N \N \N 2021-11-05 18:59:22.009816 2021-11-05 18:59:22.009643 971312c8-2e39-4deb-b643-5cd5169d3b4e 1334 +1276 uri://ed-fi.org/LanguageDescriptor mdf Moksha Moksha \N \N \N 2021-11-05 18:59:22.015508 2021-11-05 18:59:22.015449 e66f3fc7-c6ba-481f-83d3-bd7e2819c5c6 1336 +1278 uri://ed-fi.org/LanguageDescriptor mis Uncoded languages Uncoded languages \N \N \N 2021-11-05 18:59:22.019641 2021-11-05 18:59:22.019533 288e2937-a55f-43c3-a3ff-34ea8937e1c1 1338 +1281 uri://ed-fi.org/LanguageDescriptor mno Manobo languages Manobo languages \N \N \N 2021-11-05 18:59:22.026479 2021-11-05 18:59:22.026439 1da2115f-2546-4e36-8838-743447a17712 1341 +1282 uri://ed-fi.org/LanguageDescriptor mon Mongolian Mongolian \N \N \N 2021-11-05 18:59:22.033276 2021-11-05 18:59:22.033171 ac160691-92f9-4a28-bd50-3f239705d717 1342 +1284 uri://ed-fi.org/LanguageDescriptor mus Creek Creek \N \N \N 2021-11-05 18:59:22.037859 2021-11-05 18:59:22.037412 97ce54d5-9b53-4f22-9343-d9723bafaccb 1344 +1286 uri://ed-fi.org/LanguageDescriptor myv Erzya Erzya \N \N \N 2021-11-05 18:59:22.04244 2021-11-05 18:59:22.042331 b31b2b20-760e-4497-ac3e-b01d9827e0f4 1346 +1287 uri://ed-fi.org/LanguageDescriptor nai North American Indian languages North American Indian languages \N \N \N 2021-11-05 18:59:22.044793 2021-11-05 18:59:22.044746 2b3095f9-2cfb-453d-8117-1241882f5b25 1347 +1289 uri://ed-fi.org/LanguageDescriptor ndo Ndonga Ndonga \N \N \N 2021-11-05 18:59:22.049189 2021-11-05 18:59:22.049166 c76d23b9-8d5c-463d-ba33-df19fa5574ec 1349 +1290 uri://ed-fi.org/LanguageDescriptor nep Nepali Nepali \N \N \N 2021-11-05 18:59:22.052948 2021-11-05 18:59:22.052912 d21ba78a-7fb1-4b04-8715-31eb6bfb4b6a 1350 +1292 uri://ed-fi.org/LanguageDescriptor niu Niuean Niuean \N \N \N 2021-11-05 18:59:22.059176 2021-11-05 18:59:22.059134 33b30a7c-91a1-459e-a17b-115ee4d4c9e5 1352 +1295 uri://ed-fi.org/LanguageDescriptor nub Nubian languages Nubian languages \N \N \N 2021-11-05 18:59:22.064638 2021-11-05 18:59:22.06462 ee52a963-ace1-461b-8b35-f02bbf172a95 1355 +1296 uri://ed-fi.org/LanguageDescriptor nyn Nyankole Nyankole \N \N \N 2021-11-05 18:59:22.068877 2021-11-05 18:59:22.068819 cf4b364f-083b-4fa1-b33e-54868b8e98d4 1356 +1298 uri://ed-fi.org/LanguageDescriptor oji Ojibwa Ojibwa \N \N \N 2021-11-05 18:59:22.075001 2021-11-05 18:59:22.074899 a8fc6b73-e1cc-4774-a40d-1e55ceb90aff 1358 +1301 uri://ed-fi.org/LanguageDescriptor pag Pangasinan Pangasinan \N \N \N 2021-11-05 18:59:22.081269 2021-11-05 18:59:22.081229 58d65a95-1324-4b0f-85cf-98afa45a05cd 1361 +1302 uri://ed-fi.org/LanguageDescriptor pap Papiamento Papiamento \N \N \N 2021-11-05 18:59:22.084742 2021-11-05 18:59:22.084703 03670148-2a14-4023-82f2-fac87fd5f9a0 1362 +1303 uri://ed-fi.org/LanguageDescriptor peo Persian, Old (ca.600-400 B.C.) Persian, Old (ca.600-400 B.C.) \N \N \N 2021-11-05 18:59:22.088817 2021-11-05 18:59:22.088777 b9f47684-a32c-4f37-9b69-5737b9d08858 1363 +1305 uri://ed-fi.org/LanguageDescriptor phi Philippine languages Philippine languages \N \N \N 2021-11-05 18:59:22.09552 2021-11-05 18:59:22.095485 4d51bf6e-b47d-4ba7-afcc-835695e2e867 1365 +1306 uri://ed-fi.org/LanguageDescriptor pon Pohnpeian Pohnpeian \N \N \N 2021-11-05 18:59:22.097969 2021-11-05 18:59:22.097952 dc43b082-ae9b-4063-8110-0dcfed299593 1366 +1308 uri://ed-fi.org/LanguageDescriptor roh Romansh Romansh \N \N \N 2021-11-05 18:59:22.104416 2021-11-05 18:59:22.104375 b208fdbb-e96f-4229-8c9a-ceea80382ccd 1368 +1310 uri://ed-fi.org/LanguageDescriptor rum Romanian Romanian \N \N \N 2021-11-05 18:59:22.110069 2021-11-05 18:59:22.10991 8dc47c3e-333e-4970-9a7e-2d2b8b64b9ad 1370 +1314 uri://ed-fi.org/LanguageDescriptor san Sanskrit Sanskrit \N \N \N 2021-11-05 18:59:22.119329 2021-11-05 18:59:22.1193 fa1be01a-3fd1-461c-9340-b97ceb61f9ed 1374 +1316 uri://ed-fi.org/LanguageDescriptor sco Scots Scots \N \N \N 2021-11-05 18:59:22.124124 2021-11-05 18:59:22.124084 dc12b7f7-1348-4991-af29-89000dda6907 1376 +1317 uri://ed-fi.org/LanguageDescriptor sem Semitic languages Semitic languages \N \N \N 2021-11-05 18:59:22.127794 2021-11-05 18:59:22.127754 19e65e2b-67ad-4300-b6ea-c8fc399af704 1377 +1319 uri://ed-fi.org/LanguageDescriptor sid Sidamo Sidamo \N \N \N 2021-11-05 18:59:22.13447 2021-11-05 18:59:22.134336 75cb067a-e3c7-4dff-9a5c-cb845e1921be 1379 +1322 uri://ed-fi.org/LanguageDescriptor slv Slovenian Slovenian \N \N \N 2021-11-05 18:59:22.14436 2021-11-05 18:59:22.144236 4db1389d-fa74-491d-bca2-9da23b40f3f5 1382 +1324 uri://ed-fi.org/LanguageDescriptor smj Lule Sami Lule Sami \N \N \N 2021-11-05 18:59:22.149325 2021-11-05 18:59:22.149285 66108db0-2608-49ae-be76-1be5121e8f9a 1384 +1325 uri://ed-fi.org/LanguageDescriptor smo Samoan Samoan \N \N \N 2021-11-05 18:59:22.152601 2021-11-05 18:59:22.15256 50fc1139-4bb0-4eb0-b2e9-7ec2ccaf08a8 1385 +1327 uri://ed-fi.org/LanguageDescriptor snk Soninke Soninke \N \N \N 2021-11-05 18:59:22.157124 2021-11-05 18:59:22.157068 aec3156f-7b4e-4e44-9547-60192b8f8367 1387 +1328 uri://ed-fi.org/LanguageDescriptor som Somali Somali \N \N \N 2021-11-05 18:59:22.160459 2021-11-05 18:59:22.160421 faf15a85-4a0a-4bf1-b776-85eb0c243e0f 1388 +1330 uri://ed-fi.org/LanguageDescriptor srd Sardinian Sardinian \N \N \N 2021-11-05 18:59:22.166573 2021-11-05 18:59:22.166536 8783d1f4-84d5-4b21-99ff-d7b3a67c4917 1390 +1332 uri://ed-fi.org/LanguageDescriptor ssa Nilo-Saharan languages Nilo-Saharan languages \N \N \N 2021-11-05 18:59:22.171128 2021-11-05 18:59:22.171091 6d0097c1-97d5-4da3-bd26-241998272060 1392 +1334 uri://ed-fi.org/LanguageDescriptor sus Susu Susu \N \N \N 2021-11-05 18:59:22.176023 2021-11-05 18:59:22.176006 f209a9ac-4205-4b5d-b4b5-7ef2837c338b 1394 +1335 uri://ed-fi.org/LanguageDescriptor swa Swahili Swahili \N \N \N 2021-11-05 18:59:22.178943 2021-11-05 18:59:22.178909 06b27d18-0620-4bb5-a8d7-71075630ef3f 1395 +1336 uri://ed-fi.org/LanguageDescriptor syc Classical Syriac Classical Syriac \N \N \N 2021-11-05 18:59:22.181607 2021-11-05 18:59:22.181578 a8a0fde2-2a9e-4573-a72e-1cc8676109ae 1396 +1338 uri://ed-fi.org/LanguageDescriptor tam Tamil Tamil \N \N \N 2021-11-05 18:59:22.185698 2021-11-05 18:59:22.18567 722ff115-9be6-48c7-b4da-a4c58f790611 1398 +1340 uri://ed-fi.org/LanguageDescriptor ter Tereno Tereno \N \N \N 2021-11-05 18:59:22.192143 2021-11-05 18:59:22.191113 676084f0-3eb8-49b6-94d9-577932abc0c6 1400 +1342 uri://ed-fi.org/LanguageDescriptor tha Thai Thai \N \N \N 2021-11-05 18:59:22.197475 2021-11-05 18:59:22.19744 fcbbac68-7527-4ac8-b3cf-47369b0f1351 1402 +1343 uri://ed-fi.org/LanguageDescriptor tig Tigre Tigre \N \N \N 2021-11-05 18:59:22.201624 2021-11-05 18:59:22.201577 12c8ce16-3a6b-4d0e-ae11-f8341bc55b08 1403 +1344 uri://ed-fi.org/LanguageDescriptor tiv Tiv Tiv \N \N \N 2021-11-05 18:59:22.205352 2021-11-05 18:59:22.205313 0eabf472-6622-4621-ac22-c6c20b954564 1404 +1346 uri://ed-fi.org/LanguageDescriptor ton Tonga (Tonga Islands) Tonga (Tonga Islands) \N \N \N 2021-11-05 18:59:22.211367 2021-11-05 18:59:22.211327 25c7c84c-7f3d-4360-88c9-a760f4844e48 1406 +1349 uri://ed-fi.org/LanguageDescriptor tum Tumbuka Tumbuka \N \N \N 2021-11-05 18:59:22.21856 2021-11-05 18:59:22.21852 b705f6dc-a61c-4e2b-8604-42b79a1bc037 1409 +1351 uri://ed-fi.org/LanguageDescriptor tur Turkish Turkish \N \N \N 2021-11-05 18:59:22.223602 2021-11-05 18:59:22.223564 51506c9d-f432-4856-8024-f4a66a32467c 1411 +1352 uri://ed-fi.org/LanguageDescriptor tyv Tuvinian Tuvinian \N \N \N 2021-11-05 18:59:22.228194 2021-11-05 18:59:22.228156 1cea9df4-f425-41ae-96fe-1b2db9f877bb 1412 +1353 uri://ed-fi.org/LanguageDescriptor uga Ugaritic Ugaritic \N \N \N 2021-11-05 18:59:22.230832 2021-11-05 18:59:22.230813 1d290bde-4613-481c-976f-a424dade274a 1413 +1354 uri://ed-fi.org/LanguageDescriptor und Undetermined Undetermined \N \N \N 2021-11-05 18:59:22.234473 2021-11-05 18:59:22.234355 46ebecce-456a-4dee-8652-6709f54786a0 1414 +1356 uri://ed-fi.org/LanguageDescriptor uzb Uzbek Uzbek \N \N \N 2021-11-05 18:59:22.238841 2021-11-05 18:59:22.238741 c057d517-4c46-4cdf-9050-68a6fa5734d7 1416 +1357 uri://ed-fi.org/LanguageDescriptor ven Venda Venda \N \N \N 2021-11-05 18:59:22.24119 2021-11-05 18:59:22.241079 e2954394-beb7-4034-abcf-2f7684defb5e 1417 +1358 uri://ed-fi.org/LanguageDescriptor vol Volapük Volapük \N \N \N 2021-11-05 18:59:22.24429 2021-11-05 18:59:22.244067 8ab18bde-3486-45ee-bc0a-ffed94f38b11 1418 +1360 uri://ed-fi.org/LanguageDescriptor war Waray Waray \N \N \N 2021-11-05 18:59:22.249915 2021-11-05 18:59:22.249869 aae23fdd-b9e3-403f-8cf5-9f608131645a 1420 +1361 uri://ed-fi.org/LanguageDescriptor wel Welsh Welsh \N \N \N 2021-11-05 18:59:22.252409 2021-11-05 18:59:22.252371 ecd27731-aeda-4a04-9215-2f5db8fa5987 1421 +1363 uri://ed-fi.org/LanguageDescriptor yao Yao Yao \N \N \N 2021-11-05 18:59:22.257775 2021-11-05 18:59:22.257501 ca8fa747-510f-4eec-8c7d-98aaf298e917 1423 +1365 uri://ed-fi.org/LanguageDescriptor ypk Yupik languages Yupik languages \N \N \N 2021-11-05 18:59:22.262723 2021-11-05 18:59:22.262704 245d2562-f7c0-468c-b319-86b094dc1d42 1425 +1366 uri://ed-fi.org/LanguageDescriptor zgh Standard Moroccan Tamazight Standard Moroccan Tamazight \N \N \N 2021-11-05 18:59:22.265 2021-11-05 18:59:22.264956 9da2a96c-ab16-486f-b716-13fd5099bf8e 1426 +1368 uri://ed-fi.org/LanguageDescriptor abk Abkhazian Abkhazian \N \N \N 2021-11-05 18:59:22.273197 2021-11-05 18:59:22.27295 217e78ad-2efb-43e4-b437-894041226dd0 1428 +1370 uri://ed-fi.org/LanguageDescriptor ach Acoli Acoli \N \N \N 2021-11-05 18:59:22.276256 2021-11-05 18:59:22.276221 9f9bd77f-25cc-471b-a9a2-706b9c5bc2cf 1430 +1371 uri://ed-fi.org/LanguageDescriptor afh Afrihili Afrihili \N \N \N 2021-11-05 18:59:22.282327 2021-11-05 18:59:22.282292 b50f55f3-3d8f-4d4f-8428-94601675a623 1431 +1373 uri://ed-fi.org/LanguageDescriptor ain Ainu Ainu \N \N \N 2021-11-05 18:59:22.288667 2021-11-05 18:59:22.288518 2e3f7230-dea8-4116-9475-07cf6c01c572 1433 +1374 uri://ed-fi.org/LanguageDescriptor ale Aleut Aleut \N \N \N 2021-11-05 18:59:22.291198 2021-11-05 18:59:22.291104 6fbcc4bf-e287-4e9c-abe6-a6db80c0e2cd 1434 +1376 uri://ed-fi.org/LanguageDescriptor ang English, Old (ca.450-1100) English, Old (ca.450-1100) \N \N \N 2021-11-05 18:59:22.295305 2021-11-05 18:59:22.295266 3d741d8f-849b-4517-bffa-fbc37fdd8128 1436 +1377 uri://ed-fi.org/LanguageDescriptor apa Apache languages Apache languages \N \N \N 2021-11-05 18:59:22.299206 2021-11-05 18:59:22.299009 3779bb33-1bba-4877-b998-1e4d9bd69448 1437 +1379 uri://ed-fi.org/LanguageDescriptor arp Arapaho Arapaho \N \N \N 2021-11-05 18:59:22.305583 2021-11-05 18:59:22.305552 1e0a1e81-ee5d-47eb-8d6a-ede3e6e92c03 1439 +1381 uri://ed-fi.org/LanguageDescriptor aus Australian languages Australian languages \N \N \N 2021-11-05 18:59:22.311247 2021-11-05 18:59:22.311207 ab4c4dcb-99da-41e7-9962-481d16d5fce3 1441 +1383 uri://ed-fi.org/LanguageDescriptor aym Aymara Aymara \N \N \N 2021-11-05 18:59:22.315523 2021-11-05 18:59:22.31549 108d9a3f-2241-466d-9e9d-cde800dd7953 1443 +1385 uri://ed-fi.org/LanguageDescriptor bak Bashkir Bashkir \N \N \N 2021-11-05 18:59:22.320434 2021-11-05 18:59:22.320409 ec2cb804-5074-405f-bc73-f0069e133e4a 1445 +1386 uri://ed-fi.org/LanguageDescriptor bam Bambara Bambara \N \N \N 2021-11-05 18:59:22.323567 2021-11-05 18:59:22.323436 c11bc992-b5a4-4439-8d42-4d16b587c05b 1446 +1388 uri://ed-fi.org/LanguageDescriptor bat Baltic languages Baltic languages \N \N \N 2021-11-05 18:59:22.332728 2021-11-05 18:59:22.332684 63b45e81-b987-4041-8116-8ce24400ee09 1448 +1390 uri://ed-fi.org/LanguageDescriptor bho Bhojpuri Bhojpuri \N \N \N 2021-11-05 18:59:22.337982 2021-11-05 18:59:22.337821 aaf54caa-f16a-4274-9d54-f0cc5c0cf7e3 1450 +1392 uri://ed-fi.org/LanguageDescriptor bik Bikol Bikol \N \N \N 2021-11-05 18:59:22.342479 2021-11-05 18:59:22.342446 a2440a5e-8a7c-48d7-9bcf-61799f3c99ed 1452 +1393 uri://ed-fi.org/LanguageDescriptor bis Bislama Bislama \N \N \N 2021-11-05 18:59:22.347493 2021-11-05 18:59:22.347452 9b693626-ddca-4009-bbb4-cb9be66b4aac 1453 +1394 uri://ed-fi.org/LanguageDescriptor bnt Bantu languages Bantu languages \N \N \N 2021-11-05 18:59:22.35101 2021-11-05 18:59:22.350988 793257c3-dc9c-4956-8a0b-861e742626d9 1454 +1395 uri://ed-fi.org/LanguageDescriptor bra Braj Braj \N \N \N 2021-11-05 18:59:22.353606 2021-11-05 18:59:22.353588 6877d883-9ca7-4b50-9e22-be02dfaf67b5 1455 +1345 uri://ed-fi.org/LanguageDescriptor tmh Tamashek Tamashek \N \N \N 2021-11-05 18:59:22.207562 2021-11-05 18:59:22.207518 7fac8701-fb2d-49cf-bb14-e86fbc9a6c67 1405 +1347 uri://ed-fi.org/LanguageDescriptor tsi Tsimshian Tsimshian \N \N \N 2021-11-05 18:59:22.213694 2021-11-05 18:59:22.213654 d9762154-4375-4f38-869c-213187bd959e 1407 +1348 uri://ed-fi.org/LanguageDescriptor tso Tsonga Tsonga \N \N \N 2021-11-05 18:59:22.216846 2021-11-05 18:59:22.2168 e62b836f-fdf1-4377-98b2-b6dae227ee40 1408 +1350 uri://ed-fi.org/LanguageDescriptor tvl Tuvalu Tuvalu \N \N \N 2021-11-05 18:59:22.223007 2021-11-05 18:59:22.222872 20e51b3d-243b-470a-835d-3f67a548e3ac 1410 +1355 uri://ed-fi.org/LanguageDescriptor ukr Ukrainian Ukrainian \N \N \N 2021-11-05 18:59:22.235171 2021-11-05 18:59:22.235124 bcce18ef-896a-4a61-b91e-e0cff9ea9547 1415 +1359 uri://ed-fi.org/LanguageDescriptor wak Wakashan languages Wakashan languages \N \N \N 2021-11-05 18:59:22.246309 2021-11-05 18:59:22.246271 df428df4-e2e3-4459-b0d6-f6a687b01bc8 1419 +1362 uri://ed-fi.org/LanguageDescriptor wln Walloon Walloon \N \N \N 2021-11-05 18:59:22.254885 2021-11-05 18:59:22.254826 fea936f3-fc12-4532-86d4-c17d6befa839 1422 +1364 uri://ed-fi.org/LanguageDescriptor yid Yiddish Yiddish \N \N \N 2021-11-05 18:59:22.259544 2021-11-05 18:59:22.259516 e94bbc49-0108-4f0e-be11-58e19ce66956 1424 +1367 uri://ed-fi.org/LanguageDescriptor znd Zande languages Zande languages \N \N \N 2021-11-05 18:59:22.271202 2021-11-05 18:59:22.271163 4bb0b5d9-04b2-4970-b394-d241c6b765aa 1427 +1372 uri://ed-fi.org/LanguageDescriptor akk Akkadian Akkadian \N \N \N 2021-11-05 18:59:22.287077 2021-11-05 18:59:22.286864 0cdbf660-2e69-4c36-ab6b-de2bde4d110a 1432 +1375 uri://ed-fi.org/LanguageDescriptor alt Southern Altai Southern Altai \N \N \N 2021-11-05 18:59:22.292236 2021-11-05 18:59:22.291642 1318a4f7-f352-4793-b36c-4b43c380e90f 1435 +1378 uri://ed-fi.org/LanguageDescriptor arm Armenian Armenian \N \N \N 2021-11-05 18:59:22.301252 2021-11-05 18:59:22.30122 98f9ffea-b84a-472f-b3f9-344a3eaa63fd 1438 +1380 uri://ed-fi.org/LanguageDescriptor arw Arawak Arawak \N \N \N 2021-11-05 18:59:22.307745 2021-11-05 18:59:22.307705 85933a04-5f1e-403b-bbac-9d2a0e37dc71 1440 +1382 uri://ed-fi.org/LanguageDescriptor ave Avestan Avestan \N \N \N 2021-11-05 18:59:22.313147 2021-11-05 18:59:22.31311 9ae0573f-533b-4b09-8a97-68460a0f5a2e 1442 +1384 uri://ed-fi.org/LanguageDescriptor bad Banda languages Banda languages \N \N \N 2021-11-05 18:59:22.317886 2021-11-05 18:59:22.317847 1fbb6b08-f414-45e3-b6e7-365dd1402512 1444 +1387 uri://ed-fi.org/LanguageDescriptor baq Basque Basque \N \N \N 2021-11-05 18:59:22.325817 2021-11-05 18:59:22.325775 b83107ab-c39f-41e8-bd47-dd2bba0a258f 1447 +1389 uri://ed-fi.org/LanguageDescriptor bel Belarusian Belarusian \N \N \N 2021-11-05 18:59:22.337211 2021-11-05 18:59:22.337176 7b258272-70fb-4452-bb44-a349695dc759 1449 +1391 uri://ed-fi.org/LanguageDescriptor ben Bengali Bengali \N \N \N 2021-11-05 18:59:22.340581 2021-11-05 18:59:22.340539 aaae8488-dfc9-46f8-9892-98b9cf945ce6 1451 +1398 uri://ed-fi.org/LanguageDescriptor bur Burmese Burmese \N \N \N 2021-11-05 18:59:22.360603 2021-11-05 18:59:22.360541 8bb06c1d-566c-4156-8a1e-f73cfabbc138 1458 +1400 uri://ed-fi.org/LanguageDescriptor car Galibi Carib Galibi Carib \N \N \N 2021-11-05 18:59:22.365699 2021-11-05 18:59:22.365657 6e40277d-0a13-4593-a455-31f672eb0882 1460 +1402 uri://ed-fi.org/LanguageDescriptor cel Celtic languages Celtic languages \N \N \N 2021-11-05 18:59:22.371516 2021-11-05 18:59:22.371473 94e08848-c0ed-41ef-9622-d3442be5e0ef 1462 +1403 uri://ed-fi.org/LanguageDescriptor chb Chibcha Chibcha \N \N \N 2021-11-05 18:59:22.375135 2021-11-05 18:59:22.37505 e11ec9ff-c7c3-48ff-8aaa-1e4deee24e4c 1463 +1405 uri://ed-fi.org/LanguageDescriptor chk Chuukese Chuukese \N \N \N 2021-11-05 18:59:22.379689 2021-11-05 18:59:22.379579 e56d5581-17d8-4892-8591-4237076f2b27 1465 +1407 uri://ed-fi.org/LanguageDescriptor chy Cheyenne Cheyenne \N \N \N 2021-11-05 18:59:22.386413 2021-11-05 18:59:22.386318 ddf09ec0-61c2-4e87-a12b-58018d837767 1467 +1409 uri://ed-fi.org/LanguageDescriptor cpf Creoles and pidgins, French-based Creoles and pidgins, French-based \N \N \N 2021-11-05 18:59:22.391175 2021-11-05 18:59:22.391153 fba69d4f-1b80-48fe-a091-5a3c0778cea6 1469 +1411 uri://ed-fi.org/LanguageDescriptor cre Cree Cree \N \N \N 2021-11-05 18:59:22.397215 2021-11-05 18:59:22.397182 9459bf74-61d3-438a-be71-84b2f3c91138 1471 +1414 uri://ed-fi.org/LanguageDescriptor dak Dakota Dakota \N \N \N 2021-11-05 18:59:22.402538 2021-11-05 18:59:22.402459 cc0cfaf6-0bb3-40e9-a68e-7e192963e6b5 1474 +1416 uri://ed-fi.org/LanguageDescriptor del Delaware Delaware \N \N \N 2021-11-05 18:59:22.408786 2021-11-05 18:59:22.408756 e3eed698-cb92-473b-81e6-4e488081e2c0 1476 +1423 uri://ed-fi.org/LanguageDescriptor enm English, Middle (1100-1500) English, Middle (1100-1500) \N \N \N 2021-11-05 18:59:22.428488 2021-11-05 18:59:22.428446 20823b2b-91e6-48bc-81a5-e2807b1bb7bb 1483 +1424 uri://ed-fi.org/LanguageDescriptor est Estonian Estonian \N \N \N 2021-11-05 18:59:22.431269 2021-11-05 18:59:22.431187 ec9f1cea-231b-485f-8a0f-0c8f7c7c1fb3 1484 +1429 uri://ed-fi.org/LanguageDescriptor fon Fon Fon \N \N \N 2021-11-05 18:59:22.443633 2021-11-05 18:59:22.443597 0ef4ea01-4897-4c99-af24-a3ec7d402329 1489 +1432 uri://ed-fi.org/LanguageDescriptor fry Western Frisian Western Frisian \N \N \N 2021-11-05 18:59:22.451832 2021-11-05 18:59:22.451806 30cff5e5-d15d-45fb-b188-c80f1bd154db 1492 +1435 uri://ed-fi.org/LanguageDescriptor ger German German \N \N \N 2021-11-05 18:59:22.462041 2021-11-05 18:59:22.461853 76256f73-f248-4754-8c55-40778f18e3c7 1495 +1438 uri://ed-fi.org/LanguageDescriptor gle Irish Irish \N \N \N 2021-11-05 18:59:22.468059 2021-11-05 18:59:22.468008 baca3f15-24ac-4c9f-9075-615520c0a8df 1498 +1444 uri://ed-fi.org/LanguageDescriptor gwi Gwich'in Gwich'in \N \N \N 2021-11-05 18:59:22.484422 2021-11-05 18:59:22.484388 73a0a860-eabe-4eea-82df-33afa4ca7a00 1504 +1450 uri://ed-fi.org/LanguageDescriptor hsb Upper Sorbian Upper Sorbian \N \N \N 2021-11-05 18:59:22.500666 2021-11-05 18:59:22.500625 401d08a7-6417-450b-9a06-cbacce8bf986 1510 +1451 uri://ed-fi.org/LanguageDescriptor ibo Igbo Igbo \N \N \N 2021-11-05 18:59:22.503983 2021-11-05 18:59:22.503564 f7bc6181-0b56-47d9-8777-799064bea25b 1511 +1453 uri://ed-fi.org/LanguageDescriptor ijo Ijo languages Ijo languages \N \N \N 2021-11-05 18:59:22.50828 2021-11-05 18:59:22.508241 51f6d1d4-393d-4dda-a75f-5f68dbb9d869 1513 +1456 uri://ed-fi.org/LanguageDescriptor inh Ingush Ingush \N \N \N 2021-11-05 18:59:22.516279 2021-11-05 18:59:22.516237 30091535-7d26-45cd-82a2-a71a4e8ba488 1516 +1458 uri://ed-fi.org/LanguageDescriptor ita Italian Italian \N \N \N 2021-11-05 18:59:22.521609 2021-11-05 18:59:22.521572 09065b10-61de-48d7-9dc2-1fe54fd6d806 1518 +1460 uri://ed-fi.org/LanguageDescriptor jpr Judeo-Persian Judeo-Persian \N \N \N 2021-11-05 18:59:22.526715 2021-11-05 18:59:22.526681 ccd7ed74-ae72-4371-8cd5-6e9b7fcafadb 1520 +1461 uri://ed-fi.org/LanguageDescriptor kam Kamba Kamba \N \N \N 2021-11-05 18:59:22.53076 2021-11-05 18:59:22.530736 f49391b2-96c1-4a55-913a-058fed88c645 1521 +1463 uri://ed-fi.org/LanguageDescriptor kar Karen languages Karen languages \N \N \N 2021-11-05 18:59:22.535352 2021-11-05 18:59:22.535176 93eacc17-f186-48ae-9519-c2dcb125514a 1523 +1466 uri://ed-fi.org/LanguageDescriptor kha Khasi Khasi \N \N \N 2021-11-05 18:59:22.542563 2021-11-05 18:59:22.54253 ecfeac61-ab0a-4873-ad06-3495ac64c863 1526 +1468 uri://ed-fi.org/LanguageDescriptor kok Konkani Konkani \N \N \N 2021-11-05 18:59:22.548755 2021-11-05 18:59:22.548714 67769d41-51e1-4024-ad40-40738882626c 1528 +1470 uri://ed-fi.org/LanguageDescriptor kos Kosraean Kosraean \N \N \N 2021-11-05 18:59:22.552744 2021-11-05 18:59:22.552681 3bc8b4fc-ff8b-41c5-922c-a27f5893da32 1530 +1472 uri://ed-fi.org/LanguageDescriptor kro Kru languages Kru languages \N \N \N 2021-11-05 18:59:22.5583 2021-11-05 18:59:22.558272 d372e0da-aa27-454f-ab72-b0f42ae09500 1532 +1473 uri://ed-fi.org/LanguageDescriptor kur Kurdish Kurdish \N \N \N 2021-11-05 18:59:22.563969 2021-11-05 18:59:22.56392 1e66e966-09c6-42aa-8719-017561f422c3 1533 +1475 uri://ed-fi.org/LanguageDescriptor lam Lamba Lamba \N \N \N 2021-11-05 18:59:22.567926 2021-11-05 18:59:22.567833 b21c3eeb-aac6-437f-8c85-82ee716792a7 1535 +1477 uri://ed-fi.org/LanguageDescriptor lez Lezghian Lezghian \N \N \N 2021-11-05 18:59:22.573336 2021-11-05 18:59:22.573298 00717f5a-c3bc-455a-8e53-6962baf81d87 1537 +1480 uri://ed-fi.org/LanguageDescriptor lub Luba-Katanga Luba-Katanga \N \N \N 2021-11-05 18:59:22.580027 2021-11-05 18:59:22.579997 2c4b82eb-b047-44f2-aac8-01b5ed50558d 1540 +1482 uri://ed-fi.org/LanguageDescriptor lui Luiseno Luiseno \N \N \N 2021-11-05 18:59:22.585436 2021-11-05 18:59:22.585402 b6eb0123-9e91-402f-bd46-bfdec06c196d 1542 +1483 uri://ed-fi.org/LanguageDescriptor mag Magahi Magahi \N \N \N 2021-11-05 18:59:22.591397 2021-11-05 18:59:22.591362 43be94aa-10d0-47e5-8a6d-84d5a0faf6d6 1543 +1485 uri://ed-fi.org/LanguageDescriptor mal Malayalam Malayalam \N \N \N 2021-11-05 18:59:22.595818 2021-11-05 18:59:22.59578 0bdaef20-bdac-45cb-94d5-fe338183d8b5 1545 +1490 uri://ed-fi.org/LanguageDescriptor mdr Mandar Mandar \N \N \N 2021-11-05 18:59:22.611819 2021-11-05 18:59:22.611783 045e1dbb-d748-4c57-a7a5-7de440ebe478 1550 +1491 uri://ed-fi.org/LanguageDescriptor min Minangkabau Minangkabau \N \N \N 2021-11-05 18:59:22.617236 2021-11-05 18:59:22.61716 d3e55363-56dd-4e91-a59d-af156c91e620 1551 +1396 uri://ed-fi.org/LanguageDescriptor btk Batak languages Batak languages \N \N \N 2021-11-05 18:59:22.356 2021-11-05 18:59:22.355968 ec17ab4e-0288-44f4-a3f0-9985706ddaeb 1456 +1397 uri://ed-fi.org/LanguageDescriptor bug Buginese Buginese \N \N \N 2021-11-05 18:59:22.358553 2021-11-05 18:59:22.358413 ce08bbb3-e4b2-47fb-a5dd-c43c45f5a389 1457 +1399 uri://ed-fi.org/LanguageDescriptor cad Caddo Caddo \N \N \N 2021-11-05 18:59:22.363207 2021-11-05 18:59:22.363166 235ce18b-d35b-411a-b596-39b9f481a6a6 1459 +1401 uri://ed-fi.org/LanguageDescriptor cau Caucasian languages Caucasian languages \N \N \N 2021-11-05 18:59:22.369788 2021-11-05 18:59:22.369743 ef47a0cf-9619-4da8-ba23-5576782cba7f 1461 +1404 uri://ed-fi.org/LanguageDescriptor chg Chagatai Chagatai \N \N \N 2021-11-05 18:59:22.376021 2021-11-05 18:59:22.375956 e541ed2d-db44-4895-b705-04367fd6936f 1464 +1406 uri://ed-fi.org/LanguageDescriptor chn Chinook jargon Chinook jargon \N \N \N 2021-11-05 18:59:22.381957 2021-11-05 18:59:22.38192 31158ddb-3a5c-4c09-9b04-282b426c0c3d 1466 +1408 uri://ed-fi.org/LanguageDescriptor cop Coptic Coptic \N \N \N 2021-11-05 18:59:22.38733 2021-11-05 18:59:22.387292 f7b65067-cb41-49c8-b04b-acffe0134d95 1468 +1410 uri://ed-fi.org/LanguageDescriptor cos Corsican Corsican \N \N \N 2021-11-05 18:59:22.392555 2021-11-05 18:59:22.392459 a2cc92a2-1ea2-4f4e-a6e0-0f4f83983816 1470 +1412 uri://ed-fi.org/LanguageDescriptor crp Creoles and pidgins Creoles and pidgins \N \N \N 2021-11-05 18:59:22.398214 2021-11-05 18:59:22.398177 c2a0354b-deeb-4199-820d-2374e84a585e 1472 +1413 uri://ed-fi.org/LanguageDescriptor cus Cushitic languages Cushitic languages \N \N \N 2021-11-05 18:59:22.40234 2021-11-05 18:59:22.402303 043587f6-38e5-4e54-a0a2-88a8e6b32f3f 1473 +1415 uri://ed-fi.org/LanguageDescriptor dar Dargwa Dargwa \N \N \N 2021-11-05 18:59:22.406901 2021-11-05 18:59:22.406873 6faa3465-7924-4c4d-9ae1-dc66cbfd091f 1475 +1417 uri://ed-fi.org/LanguageDescriptor dgr Dogrib Dogrib \N \N \N 2021-11-05 18:59:22.412416 2021-11-05 18:59:22.412373 b6d566cf-cf73-42c8-825d-98cee7540d77 1477 +1418 uri://ed-fi.org/LanguageDescriptor dra Dravidian languages Dravidian languages \N \N \N 2021-11-05 18:59:22.414962 2021-11-05 18:59:22.414808 09fa8c53-c70a-4505-bf76-4f6c7b8cd2fc 1478 +1419 uri://ed-fi.org/LanguageDescriptor dua Duala Duala \N \N \N 2021-11-05 18:59:22.417419 2021-11-05 18:59:22.417339 fcae6499-a31b-451a-86bc-c8e45b59cdc9 1479 +1420 uri://ed-fi.org/LanguageDescriptor dzo Dzongkha Dzongkha \N \N \N 2021-11-05 18:59:22.420691 2021-11-05 18:59:22.420652 09b383d5-74dd-489e-8a9e-16ace1acb9f8 1480 +1421 uri://ed-fi.org/LanguageDescriptor egy Egyptian (Ancient) Egyptian (Ancient) \N \N \N 2021-11-05 18:59:22.423758 2021-11-05 18:59:22.423697 58830770-e86f-4235-972f-a6bf5713058f 1481 +1422 uri://ed-fi.org/LanguageDescriptor elx Elamite Elamite \N \N \N 2021-11-05 18:59:22.426484 2021-11-05 18:59:22.42638 128f6f04-090e-4f8b-a1ef-1439d6f65c23 1482 +1425 uri://ed-fi.org/LanguageDescriptor ewo Ewondo Ewondo \N \N \N 2021-11-05 18:59:22.432936 2021-11-05 18:59:22.43291 383bbad0-3da7-435a-9b60-65cfcc62c095 1485 +1426 uri://ed-fi.org/LanguageDescriptor fao Faroese Faroese \N \N \N 2021-11-05 18:59:22.436374 2021-11-05 18:59:22.436336 b1e2ca0b-00f4-4fd2-a374-7c0b28a08320 1486 +1427 uri://ed-fi.org/LanguageDescriptor fij Fijian Fijian \N \N \N 2021-11-05 18:59:22.4392 2021-11-05 18:59:22.439144 abe0c26a-bb36-4109-bbd9-ea662c2c34dc 1487 +1428 uri://ed-fi.org/LanguageDescriptor fin Finnish Finnish \N \N \N 2021-11-05 18:59:22.442485 2021-11-05 18:59:22.442452 921c8d58-a1a9-4814-a2cb-35834e747998 1488 +1430 uri://ed-fi.org/LanguageDescriptor frm French, Middle (ca.1400-1600) French, Middle (ca.1400-1600) \N \N \N 2021-11-05 18:59:22.447337 2021-11-05 18:59:22.44705 e535919b-5bf2-458c-b210-e3bc9d960b91 1490 +1431 uri://ed-fi.org/LanguageDescriptor frr Northern Frisian Northern Frisian \N \N \N 2021-11-05 18:59:22.449702 2021-11-05 18:59:22.449663 c45ba184-df34-49b9-b97a-d3fe6c0e3dcd 1491 +1433 uri://ed-fi.org/LanguageDescriptor fur Friulian Friulian \N \N \N 2021-11-05 18:59:22.455573 2021-11-05 18:59:22.455534 d6a74761-031e-4121-bbc3-fb72e3257afe 1493 +1434 uri://ed-fi.org/LanguageDescriptor gay Gayo Gayo \N \N \N 2021-11-05 18:59:22.458254 2021-11-05 18:59:22.458235 e9a056ff-0b34-403a-b600-566d594cf412 1494 +1436 uri://ed-fi.org/LanguageDescriptor gem Germanic languages Germanic languages \N \N \N 2021-11-05 18:59:22.463297 2021-11-05 18:59:22.463274 bb9fbdfa-d769-46af-9b35-8478ba498353 1496 +1437 uri://ed-fi.org/LanguageDescriptor gil Gilbertese Gilbertese \N \N \N 2021-11-05 18:59:22.466677 2021-11-05 18:59:22.466583 2b2e40fd-373d-41f9-a823-5c6201a4ffd2 1497 +1439 uri://ed-fi.org/LanguageDescriptor glv Manx Manx \N \N \N 2021-11-05 18:59:22.471032 2021-11-05 18:59:22.471 ff52448b-2f39-4560-80af-d8bb313eec74 1499 +1440 uri://ed-fi.org/LanguageDescriptor goh German, Old High (ca.750-1050) German, Old High (ca.750-1050) \N \N \N 2021-11-05 18:59:22.473361 2021-11-05 18:59:22.473338 ccff6858-d820-475b-a7d2-bf6b05e1a78c 1500 +1441 uri://ed-fi.org/LanguageDescriptor gor Gorontalo Gorontalo \N \N \N 2021-11-05 18:59:22.476565 2021-11-05 18:59:22.476528 44e109d9-9d0e-4016-af89-e97419a93e60 1501 +1442 uri://ed-fi.org/LanguageDescriptor grb Grebo Grebo \N \N \N 2021-11-05 18:59:22.479965 2021-11-05 18:59:22.479947 ed8168c6-2bab-440c-95f8-034269a5ae84 1502 +1443 uri://ed-fi.org/LanguageDescriptor gre Greek, Modern (1453-) Greek, Modern (1453-) \N \N \N 2021-11-05 18:59:22.482913 2021-11-05 18:59:22.482671 3067e0ba-b08e-4ec1-9bc6-45faf8a825e5 1503 +1446 uri://ed-fi.org/LanguageDescriptor her Herero Herero \N \N \N 2021-11-05 18:59:22.488434 2021-11-05 18:59:22.488416 7e7cb50d-5fce-416f-87e4-3602da76d7db 1506 +1447 uri://ed-fi.org/LanguageDescriptor hit Hittite Hittite \N \N \N 2021-11-05 18:59:22.492995 2021-11-05 18:59:22.492923 5d9df307-876a-4f4a-a4ac-087907944846 1507 +1448 uri://ed-fi.org/LanguageDescriptor hmo Hiri Motu Hiri Motu \N \N \N 2021-11-05 18:59:22.496765 2021-11-05 18:59:22.496725 9b41900f-f558-462b-a45c-ded813a480b8 1508 +1449 uri://ed-fi.org/LanguageDescriptor hup Hupa Hupa \N \N \N 2021-11-05 18:59:22.49912 2021-11-05 18:59:22.499072 f45d3a0c-7e9f-4347-9ba2-c510f0b8f978 1509 +1452 uri://ed-fi.org/LanguageDescriptor ido Ido Ido \N \N \N 2021-11-05 18:59:22.505159 2021-11-05 18:59:22.505124 720dc30e-04cb-4986-8514-6d6a4bf5e2d3 1512 +1454 uri://ed-fi.org/LanguageDescriptor ina Interlingua (International Auxiliary Language Association) Interlingua (International Auxiliary Language Association) \N \N \N 2021-11-05 18:59:22.509768 2021-11-05 18:59:22.50973 f0ea6c4b-133a-49e9-9551-3602c0010891 1514 +1455 uri://ed-fi.org/LanguageDescriptor ind Indonesian Indonesian \N \N \N 2021-11-05 18:59:22.514534 2021-11-05 18:59:22.514495 e9c814f4-eae9-45d8-b442-dbf95ca63522 1515 +1457 uri://ed-fi.org/LanguageDescriptor ira Iranian languages Iranian languages \N \N \N 2021-11-05 18:59:22.519704 2021-11-05 18:59:22.519578 50df3046-ae99-4776-9f69-b45de2f67680 1517 +1459 uri://ed-fi.org/LanguageDescriptor jbo Lojban Lojban \N \N \N 2021-11-05 18:59:22.524955 2021-11-05 18:59:22.524827 4553e91b-6d0f-47cf-a79d-0a8a05531648 1519 +1462 uri://ed-fi.org/LanguageDescriptor kaa Kara-Kalpak Kara-Kalpak \N \N \N 2021-11-05 18:59:22.532101 2021-11-05 18:59:22.532049 32a12917-e5d3-4a87-ab74-b2a5960e60f9 1522 +1464 uri://ed-fi.org/LanguageDescriptor kau Kanuri Kanuri \N \N \N 2021-11-05 18:59:22.536747 2021-11-05 18:59:22.536728 c18b008e-8a60-471e-a3e5-a89dd202309d 1524 +1465 uri://ed-fi.org/LanguageDescriptor kaz Kazakh Kazakh \N \N \N 2021-11-05 18:59:22.540554 2021-11-05 18:59:22.540409 cffe693a-2306-4fa5-8678-221d567f2099 1525 +1467 uri://ed-fi.org/LanguageDescriptor khm Central Khmer Central Khmer \N \N \N 2021-11-05 18:59:22.546621 2021-11-05 18:59:22.546594 636b022e-9d9e-47b8-b8f0-6e23c8291114 1527 +1469 uri://ed-fi.org/LanguageDescriptor kon Kongo Kongo \N \N \N 2021-11-05 18:59:22.552511 2021-11-05 18:59:22.552283 17715c78-7585-4594-8a0f-a12bf42c015e 1529 +1471 uri://ed-fi.org/LanguageDescriptor krc Karachay-Balkar Karachay-Balkar \N \N \N 2021-11-05 18:59:22.556483 2021-11-05 18:59:22.556447 5d9eb3b6-70c6-4279-8497-18947beaf989 1531 +1474 uri://ed-fi.org/LanguageDescriptor lad Ladino Ladino \N \N \N 2021-11-05 18:59:22.564791 2021-11-05 18:59:22.564732 b1de7aed-e232-4f23-8eb0-30f2f1f11ee9 1534 +1476 uri://ed-fi.org/LanguageDescriptor lat Latin Latin \N \N \N 2021-11-05 18:59:22.569208 2021-11-05 18:59:22.569171 c5522d6a-8cb6-4e7c-8e38-d43841143b84 1536 +1478 uri://ed-fi.org/LanguageDescriptor lin Lingala Lingala \N \N \N 2021-11-05 18:59:22.574097 2021-11-05 18:59:22.574047 a3b35b43-c11b-470e-ba0a-a8c8e8205bc3 1538 +1479 uri://ed-fi.org/LanguageDescriptor lol Mongo Mongo \N \N \N 2021-11-05 18:59:22.578901 2021-11-05 18:59:22.57881 bbb091b1-45b5-4da2-a012-b4a448030bfe 1539 +1481 uri://ed-fi.org/LanguageDescriptor luo Luo (Kenya and Tanzania) Luo (Kenya and Tanzania) \N \N \N 2021-11-05 18:59:22.58505 2021-11-05 18:59:22.584988 0bc7c850-9133-47c2-ae14-33ceec4755bc 1541 +1484 uri://ed-fi.org/LanguageDescriptor mac Macedonian Macedonian \N \N \N 2021-11-05 18:59:22.591389 2021-11-05 18:59:22.591244 24c97020-c329-40db-a46f-ae40a54a1ca9 1544 +1486 uri://ed-fi.org/LanguageDescriptor mai Maithili Maithili \N \N \N 2021-11-05 18:59:22.597405 2021-11-05 18:59:22.597354 769c5d69-04c6-4b7b-8be1-13ea35a7162d 1546 +1487 uri://ed-fi.org/LanguageDescriptor mao Maori Maori \N \N \N 2021-11-05 18:59:22.601165 2021-11-05 18:59:22.60113 fea98226-03a7-469f-871b-12373b04488f 1547 +1488 uri://ed-fi.org/LanguageDescriptor mar Marathi Marathi \N \N \N 2021-11-05 18:59:22.603463 2021-11-05 18:59:22.603425 342a8ff4-8c1d-42da-963a-0e9ed7abc1b3 1548 +1489 uri://ed-fi.org/LanguageDescriptor may Malay Malay \N \N \N 2021-11-05 18:59:22.610901 2021-11-05 18:59:22.610682 c47777c6-1d80-4d08-a7ad-de69692c7bcf 1549 +1492 uri://ed-fi.org/LanguageDescriptor mga Irish, Middle (900-1200) Irish, Middle (900-1200) \N \N \N 2021-11-05 18:59:22.618163 2021-11-05 18:59:22.618147 8238a6ed-fed3-4dd2-ba59-e7f906b66a75 1552 +1493 uri://ed-fi.org/LanguageDescriptor mkh Mon-Khmer languages Mon-Khmer languages \N \N \N 2021-11-05 18:59:22.622454 2021-11-05 18:59:22.622307 5f0f1147-1c66-48fe-90f2-6f5516e4c682 1553 +1496 uri://ed-fi.org/LanguageDescriptor moh Mohawk Mohawk \N \N \N 2021-11-05 18:59:22.629083 2021-11-05 18:59:22.629058 04583961-64e8-4587-b847-721eff3e9701 1556 +1497 uri://ed-fi.org/LanguageDescriptor mos Mossi Mossi \N \N \N 2021-11-05 18:59:22.633588 2021-11-05 18:59:22.633551 e14e27e2-4b1f-430f-a8a9-73d400ae6a31 1557 +1498 uri://ed-fi.org/LanguageDescriptor mun Munda languages Munda languages \N \N \N 2021-11-05 18:59:22.637613 2021-11-05 18:59:22.637502 9d021b3a-94ac-4388-acd0-4e21874765e8 1558 +1499 uri://ed-fi.org/LanguageDescriptor mwl Mirandese Mirandese \N \N \N 2021-11-05 18:59:22.640973 2021-11-05 18:59:22.640917 9712cad8-09f8-459e-8a0e-5e92646b4437 1559 +1502 uri://ed-fi.org/LanguageDescriptor nap Neapolitan Neapolitan \N \N \N 2021-11-05 18:59:22.646039 2021-11-05 18:59:22.645892 bcfffc19-a0af-4b87-bf0e-55a42adb08a2 1562 +1504 uri://ed-fi.org/LanguageDescriptor nog Nogai Nogai \N \N \N 2021-11-05 18:59:22.6549 2021-11-05 18:59:22.654862 85f86b93-d2ea-4ed6-ae2b-b9d0b54e419d 1564 +1505 uri://ed-fi.org/LanguageDescriptor nor Norwegian Norwegian \N \N \N 2021-11-05 18:59:22.658111 2021-11-05 18:59:22.658026 60fe2413-0bd0-4185-a999-20ea99f370b5 1565 +1507 uri://ed-fi.org/LanguageDescriptor nyo Nyoro Nyoro \N \N \N 2021-11-05 18:59:22.664502 2021-11-05 18:59:22.664462 28e47ba2-b71f-4710-99fc-e2d3780d6680 1567 +1509 uri://ed-fi.org/LanguageDescriptor ori Oriya Oriya \N \N \N 2021-11-05 18:59:22.669597 2021-11-05 18:59:22.669358 8762efac-e616-437c-b5b3-247ab58fd70a 1569 +1511 uri://ed-fi.org/LanguageDescriptor ota Turkish, Ottoman (1500-1928) Turkish, Ottoman (1500-1928) \N \N \N 2021-11-05 18:59:22.673204 2021-11-05 18:59:22.672782 579471cd-f59c-41e2-914e-da362f47dc80 1571 +1513 uri://ed-fi.org/LanguageDescriptor pal Pahlavi Pahlavi \N \N \N 2021-11-05 18:59:22.681421 2021-11-05 18:59:22.681326 4396b23f-355f-422f-84ca-14940750c407 1573 +1515 uri://ed-fi.org/LanguageDescriptor pau Palauan Palauan \N \N \N 2021-11-05 18:59:22.686524 2021-11-05 18:59:22.686483 a0692e55-cb50-4bc8-bbb6-cd0a3995ff79 1575 +1516 uri://ed-fi.org/LanguageDescriptor pol Polish Polish \N \N \N 2021-11-05 18:59:22.690423 2021-11-05 18:59:22.690275 a4fd91d2-a978-4e18-94b6-bd783bd2d7b6 1576 +1518 uri://ed-fi.org/LanguageDescriptor por Portuguese Portuguese \N \N \N 2021-11-05 18:59:22.696638 2021-11-05 18:59:22.696599 9d427314-822e-4a6e-8785-0b4f768f20cf 1578 +1520 uri://ed-fi.org/LanguageDescriptor roa Romance languages Romance languages \N \N \N 2021-11-05 18:59:22.701608 2021-11-05 18:59:22.701475 69010d5a-993c-4d35-b9e3-5c0937836740 1580 +1522 uri://ed-fi.org/LanguageDescriptor rom Romany Romany \N \N \N 2021-11-05 18:59:22.707061 2021-11-05 18:59:22.706782 42624a66-3047-4a20-99cd-661663291cfb 1582 +1524 uri://ed-fi.org/LanguageDescriptor rus Russian Russian \N \N \N 2021-11-05 18:59:22.712015 2021-11-05 18:59:22.711968 0af9ba77-11d3-4816-8215-a3157815339f 1584 +1525 uri://ed-fi.org/LanguageDescriptor sag Sango Sango \N \N \N 2021-11-05 18:59:22.715016 2021-11-05 18:59:22.714983 2a59333d-6dc4-4664-be71-6ccf634a485c 1585 +1526 uri://ed-fi.org/LanguageDescriptor sai South American Indian languages South American Indian languages \N \N \N 2021-11-05 18:59:22.718212 2021-11-05 18:59:22.718171 92478912-e43d-4e59-abed-f29c2999fc85 1586 +1527 uri://ed-fi.org/LanguageDescriptor sam Samaritan Aramaic Samaritan Aramaic \N \N \N 2021-11-05 18:59:22.722332 2021-11-05 18:59:22.722293 03ee2255-ddda-4713-a19e-6ebdc63c1e8a 1587 +1529 uri://ed-fi.org/LanguageDescriptor scn Sicilian Sicilian \N \N \N 2021-11-05 18:59:22.726213 2021-11-05 18:59:22.726171 2b16d76d-c3ae-43dd-af1c-f7db3d3fb1a7 1589 +1530 uri://ed-fi.org/LanguageDescriptor sel Selkup Selkup \N \N \N 2021-11-05 18:59:22.728841 2021-11-05 18:59:22.728787 17c818d2-eb6c-4d5b-9ebf-5d54c0a48eb9 1590 +1532 uri://ed-fi.org/LanguageDescriptor shn Shan Shan \N \N \N 2021-11-05 18:59:22.734421 2021-11-05 18:59:22.734324 88ee052e-6857-43ae-8c7d-10b9441cc895 1592 +1534 uri://ed-fi.org/LanguageDescriptor sma Southern Sami Southern Sami \N \N \N 2021-11-05 18:59:22.740305 2021-11-05 18:59:22.740275 4281b64f-ae8b-4398-aa68-f30c981c5243 1594 +1537 uri://ed-fi.org/LanguageDescriptor smn Inari Sami Inari Sami \N \N \N 2021-11-05 18:59:22.747301 2021-11-05 18:59:22.746945 75df246c-020a-43bb-afb8-7249405bc102 1597 +1538 uri://ed-fi.org/LanguageDescriptor sms Skolt Sami Skolt Sami \N \N \N 2021-11-05 18:59:22.749917 2021-11-05 18:59:22.749749 50eb4951-acad-44f7-b470-3179ce8bbd6d 1598 +1541 uri://ed-fi.org/LanguageDescriptor son Songhai languages Songhai languages \N \N \N 2021-11-05 18:59:22.758844 2021-11-05 18:59:22.758809 03e5d4c5-d176-4e5d-a0fc-09f41d29d1ca 1601 +1542 uri://ed-fi.org/LanguageDescriptor srn Sranan Tongo Sranan Tongo \N \N \N 2021-11-05 18:59:22.762811 2021-11-05 18:59:22.762661 eca08153-d817-4a8d-89aa-8e18fd5a73b8 1602 +1544 uri://ed-fi.org/LanguageDescriptor ssw Swati Swati \N \N \N 2021-11-05 18:59:22.774926 2021-11-05 18:59:22.774479 5599be6b-5223-43a9-88dc-a429ba514f97 1604 +1546 uri://ed-fi.org/LanguageDescriptor swe Swedish Swedish \N \N \N 2021-11-05 18:59:22.780198 2021-11-05 18:59:22.778928 db1433f2-8f0c-40fd-9000-598a1e8b6ed1 1606 +1548 uri://ed-fi.org/LanguageDescriptor syr Syriac Syriac \N \N \N 2021-11-05 18:59:22.784584 2021-11-05 18:59:22.784226 747af358-ad81-4b27-8e00-180124450642 1608 +1549 uri://ed-fi.org/LanguageDescriptor tai Tai languages Tai languages \N \N \N 2021-11-05 18:59:22.788008 2021-11-05 18:59:22.78797 ab2a9ed4-cdcd-4f4a-b718-89031278bd8d 1609 +1550 uri://ed-fi.org/LanguageDescriptor tat Tatar Tatar \N \N \N 2021-11-05 18:59:22.791895 2021-11-05 18:59:22.791858 1f45b6b0-9fff-4667-bf7e-4bdf60c17dec 1610 +1552 uri://ed-fi.org/LanguageDescriptor tet Tetum Tetum \N \N \N 2021-11-05 18:59:22.797557 2021-11-05 18:59:22.797518 985484b6-1596-4e88-96ec-bcfd29db6d27 1612 +1554 uri://ed-fi.org/LanguageDescriptor tib Tibetan Tibetan \N \N \N 2021-11-05 18:59:22.802842 2021-11-05 18:59:22.802804 35170aff-142d-419c-ac06-e6383172e4d4 1614 +1557 uri://ed-fi.org/LanguageDescriptor tli Tlingit Tlingit \N \N \N 2021-11-05 18:59:22.809704 2021-11-05 18:59:22.809663 9f55a29c-310e-478e-b9c1-b7a56cbf8258 1617 +1558 uri://ed-fi.org/LanguageDescriptor tog Tonga (Nyasa) Tonga (Nyasa) \N \N \N 2021-11-05 18:59:22.814652 2021-11-05 18:59:22.814539 a4fc9e31-64aa-4a29-b6fc-41e807c8bc5d 1618 +1561 uri://ed-fi.org/LanguageDescriptor tuk Turkmen Turkmen \N \N \N 2021-11-05 18:59:22.820373 2021-11-05 18:59:22.820337 59a8d331-021d-4e4b-832f-1129b188dd40 1621 +1562 uri://ed-fi.org/LanguageDescriptor tup Tupi languages Tupi languages \N \N \N 2021-11-05 18:59:22.824787 2021-11-05 18:59:22.824751 1e8ba622-8ac8-4a2d-a72d-7e473ec47f0a 1622 +1563 uri://ed-fi.org/LanguageDescriptor tut Altaic languages Altaic languages \N \N \N 2021-11-05 18:59:22.827315 2021-11-05 18:59:22.827281 7f44bb22-3210-443a-b576-c733eab0bbe8 1623 +1564 uri://ed-fi.org/LanguageDescriptor twi Twi Twi \N \N \N 2021-11-05 18:59:22.831542 2021-11-05 18:59:22.831296 848377d0-31cf-4bec-90e0-52cb26195afd 1624 +1567 uri://ed-fi.org/LanguageDescriptor urd Urdu Urdu \N \N \N 2021-11-05 18:59:22.83811 2021-11-05 18:59:22.838074 667eae08-2498-4730-bf0e-266f253f0e86 1627 +1568 uri://ed-fi.org/LanguageDescriptor vai Vai Vai \N \N \N 2021-11-05 18:59:22.843803 2021-11-05 18:59:22.843319 65bc89ac-5ffb-472b-8a16-75c8abb2ffd1 1628 +1570 uri://ed-fi.org/LanguageDescriptor was Washo Washo \N \N \N 2021-11-05 18:59:22.849379 2021-11-05 18:59:22.84904 b567efb6-8574-4014-a0bb-61c804378890 1630 +1573 uri://ed-fi.org/LanguageDescriptor wol Wolof Wolof \N \N \N 2021-11-05 18:59:22.857633 2021-11-05 18:59:22.856158 f3ad75a3-d866-4ba5-8d0c-12215e8eb265 1633 +1575 uri://ed-fi.org/LanguageDescriptor yap Yapese Yapese \N \N \N 2021-11-05 18:59:22.86332 2021-11-05 18:59:22.862727 4ab3cd39-6520-4280-bae8-bd3c0f3af41c 1635 +1577 uri://ed-fi.org/LanguageDescriptor zap Zapotec Zapotec \N \N \N 2021-11-05 18:59:22.870513 2021-11-05 18:59:22.868825 381f3ca3-4489-41d1-9d47-2241156c81f1 1637 +1579 uri://ed-fi.org/LanguageDescriptor zul Zulu Zulu \N \N \N 2021-11-05 18:59:22.881162 2021-11-05 18:59:22.876439 7660df75-f584-48cd-997b-62d2237badf5 1639 +1581 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Two-Way Immersion Two-Way Immersion Two-Way Immersion \N \N \N 2021-11-05 18:59:22.939124 2021-11-05 18:59:22.93795 c9add5b6-f68a-4654-9987-8e836bb48c27 1641 +1584 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Sheltered English Instruction Sheltered English Instruction Sheltered English Instruction \N \N \N 2021-11-05 18:59:22.954132 2021-11-05 18:59:22.953991 e6cc60ae-1bed-4472-9e20-c3cb621f271c 1644 +2759 uri://ed-fi.org/TribalAffiliationDescriptor Nisqually Nisqually Nisqually Indian Tribe \N \N \N 2021-11-05 18:59:33.203857 2021-11-05 18:59:33.203543 4bfaaec1-d20d-4eaf-a58a-a850ddabd9a0 2819 +1494 uri://ed-fi.org/LanguageDescriptor mlt Maltese Maltese \N \N \N 2021-11-05 18:59:22.624429 2021-11-05 18:59:22.624389 113409f5-8abf-4250-90f1-eda8b903c1b2 1554 +1495 uri://ed-fi.org/LanguageDescriptor mni Manipuri Manipuri \N \N \N 2021-11-05 18:59:22.627598 2021-11-05 18:59:22.627505 cb1e04bd-c73a-4d0e-9cb0-8a96539278eb 1555 +1500 uri://ed-fi.org/LanguageDescriptor myn Mayan languages Mayan languages \N \N \N 2021-11-05 18:59:22.643043 2021-11-05 18:59:22.642834 c97b23b1-4738-40ec-a417-ae8d94f64dc5 1560 +1503 uri://ed-fi.org/LanguageDescriptor nic Niger-Kordofanian languages Niger-Kordofanian languages \N \N \N 2021-11-05 18:59:22.654277 2021-11-05 18:59:22.654238 ebc7894b-ecbd-4056-8bea-38bcc21d593a 1563 +1506 uri://ed-fi.org/LanguageDescriptor nym Nyamwezi Nyamwezi \N \N \N 2021-11-05 18:59:22.658461 2021-11-05 18:59:22.658357 b5286566-68b5-47e9-97ab-a936783f457f 1566 +1508 uri://ed-fi.org/LanguageDescriptor oci Occitan (post 1500) Occitan (post 1500) \N \N \N 2021-11-05 18:59:22.668103 2021-11-05 18:59:22.667793 57d7c043-1fe3-4451-9108-4c7e77266dcf 1568 +1510 uri://ed-fi.org/LanguageDescriptor osa Osage Osage \N \N \N 2021-11-05 18:59:22.671477 2021-11-05 18:59:22.671441 b56bd11c-c0ff-4bfe-84b8-5c90fd957813 1570 +1512 uri://ed-fi.org/LanguageDescriptor paa Papuan languages Papuan languages \N \N \N 2021-11-05 18:59:22.680003 2021-11-05 18:59:22.67994 8c40dd3c-8238-453f-9cea-3c8137dbe257 1572 +1514 uri://ed-fi.org/LanguageDescriptor per Persian Persian \N \N \N 2021-11-05 18:59:22.685907 2021-11-05 18:59:22.685638 aa2eaaef-4afe-493c-bc7a-aa3b77aa2080 1574 +1517 uri://ed-fi.org/LanguageDescriptor phn Phoenician Phoenician \N \N \N 2021-11-05 18:59:22.692003 2021-11-05 18:59:22.691976 bb246550-b7d9-4c0b-b486-f2fef054a7ec 1577 +1519 uri://ed-fi.org/LanguageDescriptor que Quechua Quechua \N \N \N 2021-11-05 18:59:22.697742 2021-11-05 18:59:22.69768 6d2643fd-8354-4cf4-9e4e-c51690b6e0c8 1579 +1521 uri://ed-fi.org/LanguageDescriptor rap Rapanui Rapanui \N \N \N 2021-11-05 18:59:22.703706 2021-11-05 18:59:22.703684 3636319d-f9a6-48fc-8e21-85ba63bbde47 1581 +1523 uri://ed-fi.org/LanguageDescriptor run Rundi Rundi \N \N \N 2021-11-05 18:59:22.708974 2021-11-05 18:59:22.708936 d6a5cd87-d085-41b5-abfd-27ed15c53470 1583 +1528 uri://ed-fi.org/LanguageDescriptor sas Sasak Sasak \N \N \N 2021-11-05 18:59:22.724351 2021-11-05 18:59:22.724302 f53afe39-f124-459e-a2d0-118261e02843 1588 +1531 uri://ed-fi.org/LanguageDescriptor sga Irish, Old (to 900) Irish, Old (to 900) \N \N \N 2021-11-05 18:59:22.731368 2021-11-05 18:59:22.73133 747ce6f2-e9d9-42e4-bd22-54e6300c63c0 1591 +1533 uri://ed-fi.org/LanguageDescriptor sit Sino-Tibetan languages Sino-Tibetan languages \N \N \N 2021-11-05 18:59:22.736393 2021-11-05 18:59:22.736354 43247d32-941a-435a-883e-c8055808055f 1593 +1535 uri://ed-fi.org/LanguageDescriptor slo Slovak Slovak \N \N \N 2021-11-05 18:59:22.742447 2021-11-05 18:59:22.742399 3efe4c33-2a8c-4dc8-b289-e1f1fa5e7fae 1595 +1536 uri://ed-fi.org/LanguageDescriptor smi Sami languages Sami languages \N \N \N 2021-11-05 18:59:22.745801 2021-11-05 18:59:22.74561 e8fd24f4-aafb-41da-8889-20873bf6092f 1596 +1539 uri://ed-fi.org/LanguageDescriptor snd Sindhi Sindhi \N \N \N 2021-11-05 18:59:22.751361 2021-11-05 18:59:22.751148 580de34a-20c0-48f0-bb44-c2d9e54c6a4d 1599 +1540 uri://ed-fi.org/LanguageDescriptor sog Sogdian Sogdian \N \N \N 2021-11-05 18:59:22.757973 2021-11-05 18:59:22.757792 34590584-c1d1-46c4-9bd5-7117e524b4be 1600 +1543 uri://ed-fi.org/LanguageDescriptor srr Serer Serer \N \N \N 2021-11-05 18:59:22.764471 2021-11-05 18:59:22.764454 2a3fb4e7-4ec3-49a7-8c74-b1d935eadd3e 1603 +1545 uri://ed-fi.org/LanguageDescriptor sun Sundanese Sundanese \N \N \N 2021-11-05 18:59:22.776785 2021-11-05 18:59:22.776653 e75384d1-1c75-4b62-8643-ebe46709db4a 1605 +1551 uri://ed-fi.org/LanguageDescriptor tem Timne Timne \N \N \N 2021-11-05 18:59:22.793896 2021-11-05 18:59:22.793855 5ae2bd27-e783-479b-82fa-7044bcbe8025 1611 +1553 uri://ed-fi.org/LanguageDescriptor tgl Tagalog Tagalog \N \N \N 2021-11-05 18:59:22.799648 2021-11-05 18:59:22.799625 21048bde-60d4-4f0b-a728-a5985f3f5306 1613 +1555 uri://ed-fi.org/LanguageDescriptor tir Tigrinya Tigrinya \N \N \N 2021-11-05 18:59:22.804793 2021-11-05 18:59:22.804754 02e39f6d-8358-4d6c-b762-35909b690bdc 1615 +1556 uri://ed-fi.org/LanguageDescriptor tkl Tokelau Tokelau \N \N \N 2021-11-05 18:59:22.808155 2021-11-05 18:59:22.808094 122a358c-4cd2-4542-80b9-c88e79636737 1616 +1559 uri://ed-fi.org/LanguageDescriptor tpi Tok Pisin Tok Pisin \N \N \N 2021-11-05 18:59:22.81517 2021-11-05 18:59:22.81514 ebed85d8-16fe-44a8-95ce-d04fcc8593a6 1619 +1560 uri://ed-fi.org/LanguageDescriptor tsn Tswana Tswana \N \N \N 2021-11-05 18:59:22.818999 2021-11-05 18:59:22.818896 f3324f5e-1d5f-45df-84aa-f92abdf8d8a3 1620 +1565 uri://ed-fi.org/LanguageDescriptor udm Udmurt Udmurt \N \N \N 2021-11-05 18:59:22.832587 2021-11-05 18:59:22.832455 13d41e85-c3be-4405-b18d-57140541d19f 1625 +1566 uri://ed-fi.org/LanguageDescriptor umb Umbundu Umbundu \N \N \N 2021-11-05 18:59:22.837214 2021-11-05 18:59:22.837059 fa07df41-7c71-4973-8f4e-d992f5f40ad5 1626 +1569 uri://ed-fi.org/LanguageDescriptor vie Vietnamese Vietnamese \N \N \N 2021-11-05 18:59:22.845831 2021-11-05 18:59:22.845381 e6441cb4-429e-4467-8bf5-1557b3f4437f 1629 +1571 uri://ed-fi.org/LanguageDescriptor vot Votic Votic \N \N \N 2021-11-05 18:59:22.85221 2021-11-05 18:59:22.851228 5abbffa4-6b48-43b1-bba5-8bc610bf07d9 1631 +1572 uri://ed-fi.org/LanguageDescriptor wen Sorbian languages Sorbian languages \N \N \N 2021-11-05 18:59:22.856302 2021-11-05 18:59:22.85541 ffb38289-7b11-4f28-82b4-9bef57409e5d 1632 +1574 uri://ed-fi.org/LanguageDescriptor xho Xhosa Xhosa \N \N \N 2021-11-05 18:59:22.862877 2021-11-05 18:59:22.861854 aedb13bc-bb3f-41d1-b496-6e9e5e7e1654 1634 +1576 uri://ed-fi.org/LanguageDescriptor yor Yoruba Yoruba \N \N \N 2021-11-05 18:59:22.869505 2021-11-05 18:59:22.868052 106bafa0-6dc7-4d94-98a1-76d2ffbeca36 1636 +1578 uri://ed-fi.org/LanguageDescriptor zen Zenaga Zenaga \N \N \N 2021-11-05 18:59:22.874639 2021-11-05 18:59:22.87454 aeed1a3a-2930-4530-a306-dd69d541dc8a 1638 +1580 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Developmental Bilingual Developmental Bilingual Developmental Bilingual \N \N \N 2021-11-05 18:59:22.939138 2021-11-05 18:59:22.937956 d0d454e2-ff7a-4806-8f95-511ac83b14b8 1640 +1585 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Structured English Immersion Structured English Immersion Structured English Immersion \N \N \N 2021-11-05 18:59:22.955443 2021-11-05 18:59:22.955397 40d17af7-de85-4708-bb71-4fd7e41603b5 1645 +1592 uri://ed-fi.org/LanguageUseDescriptor Native language Native language Native language \N \N \N 2021-11-05 18:59:23.027769 2021-11-05 18:59:23.026602 34cef9a6-c6a7-4571-90c2-5c2a39d347e5 1652 +1595 uri://ed-fi.org/LanguageUseDescriptor Written language Written language Written language \N \N \N 2021-11-05 18:59:23.042631 2021-11-05 18:59:23.042481 23a614c2-dc75-4ec0-a881-617f2c5ad11e 1655 +1598 uri://ed-fi.org/LanguageUseDescriptor Spoken language Spoken language Spoken language \N \N \N 2021-11-05 18:59:23.045935 2021-11-05 18:59:23.045868 30f490a6-75fd-40f9-ae69-c731951558d7 1658 +1601 uri://ed-fi.org/LearningStandardCategoryDescriptor Crosscutting Concepts Crosscutting Concepts Crosscutting Concepts \N \N \N 2021-11-05 18:59:23.110391 2021-11-05 18:59:23.109214 72957027-8b61-4761-8053-620b0aeb20ba 1661 +1603 uri://ed-fi.org/LearningStandardEquivalenceStrengthDescriptor Partially equivalent Partially equivalent Partially equivalent \N \N \N 2021-11-05 18:59:23.126511 2021-11-05 18:59:23.126422 c53874d7-4b9f-48cc-95eb-875352b9e8ce 1663 +1605 uri://ed-fi.org/LearningStandardEquivalenceStrengthDescriptor Minimally equivalent Minimally equivalent Minimally equivalent \N \N \N 2021-11-05 18:59:23.130682 2021-11-05 18:59:23.130474 d35c9e47-e85f-4624-9658-d5b05011978f 1665 +1611 uri://ed-fi.org/LearningStandardScopeDescriptor International International International \N \N \N 2021-11-05 18:59:23.414192 2021-11-05 18:59:23.413893 3e8dc56f-b4e2-46c0-b596-8ec2ebea9e88 1671 +1613 uri://ed-fi.org/LevelOfEducationDescriptor Associate's Degree (two years or more) Associate's Degree (two years or more) Associate's Degree (two years or more) \N \N \N 2021-11-05 18:59:23.471292 2021-11-05 18:59:23.470159 ed3c7c79-76dc-407e-b009-188688cfa9c9 1673 +1618 uri://ed-fi.org/LevelOfEducationDescriptor Master's Master's Master's \N \N \N 2021-11-05 18:59:23.491395 2021-11-05 18:59:23.490875 90d5e985-7599-40d0-84a4-93a40a9148e5 1678 +1619 uri://ed-fi.org/LicenseStatusDescriptor Regulated Regulated Regulated \N \N \N 2021-11-05 18:59:23.551413 2021-11-05 18:59:23.550281 cb705359-db15-4562-b89d-0093ded39777 1679 +1625 uri://ed-fi.org/LicenseTypeDescriptor Child Care Program Child Care Program Child Care Program \N \N \N 2021-11-05 18:59:23.570196 2021-11-05 18:59:23.56949 97a98934-0065-49e1-9093-ec217656fe5a 1685 +1628 uri://ed-fi.org/LicenseTypeDescriptor Independent Foster Home Independent Foster Home Independent Foster Home \N \N \N 2021-11-05 18:59:23.583859 2021-11-05 18:59:23.583747 49b925a0-f33e-4f08-ac87-dd91cbf29ac5 1688 +1631 uri://ed-fi.org/LicenseTypeDescriptor Purchase of Care Purchase of Care Purchase of Care \N \N \N 2021-11-05 18:59:23.593304 2021-11-05 18:59:23.593267 e2cc8288-b30f-4d26-909a-bffc579b0996 1691 +1586 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor SDAIE SDAIE - Specially Designed Academic Instruction Delivered In English SDAIE - Specially Designed Academic Instruction Delivered In English \N \N \N 2021-11-05 18:59:22.957418 2021-11-05 18:59:22.957288 49af832e-50d9-4f85-aaad-1e5d07409e86 1646 +1588 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Content-Based ESL Content-Based ESL Content-Based ESL \N \N \N 2021-11-05 18:59:22.96247 2021-11-05 18:59:22.962425 8269de77-ecb0-49f4-a2e6-a656d98eac40 1648 +1589 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Pull-Out ESL Pull-Out ESL Pull-Out ESL \N \N \N 2021-11-05 18:59:22.964955 2021-11-05 18:59:22.964809 c5a0cb45-d6f5-4464-8762-bd3f16113145 1649 +1590 uri://ed-fi.org/LanguageInstructionProgramServiceDescriptor Other Other Other \N \N \N 2021-11-05 18:59:22.967853 2021-11-05 18:59:22.967626 953047d9-d8b1-4e1a-9292-6a79217ccdb5 1650 +1591 uri://ed-fi.org/LanguageUseDescriptor Home language Home language Home language \N \N \N 2021-11-05 18:59:23.027769 2021-11-05 18:59:23.026598 3efa98c7-46bb-4665-8772-613cb753bc06 1651 +1597 uri://ed-fi.org/LanguageUseDescriptor Other language proficiency Other language proficiency Other language proficiency \N \N \N 2021-11-05 18:59:23.045611 2021-11-05 18:59:23.045392 62ad4650-7945-47c9-b71b-7af1e2c2bcbe 1657 +1599 uri://ed-fi.org/LearningStandardCategoryDescriptor Core Ideas Core Ideas Core Ideas \N \N \N 2021-11-05 18:59:23.110386 2021-11-05 18:59:23.109212 c6091c69-92b2-4751-af2e-ece272201930 1659 +1602 uri://ed-fi.org/LearningStandardEquivalenceStrengthDescriptor Equivalent Equivalent Equivalent \N \N \N 2021-11-05 18:59:23.118523 2021-11-05 18:59:23.11736 930168d2-e4ec-4a22-a74c-9b350417a88f 1662 +1604 uri://ed-fi.org/LearningStandardEquivalenceStrengthDescriptor Mostly equivalent Mostly equivalent Mostly equivalent \N \N \N 2021-11-05 18:59:23.127585 2021-11-05 18:59:23.127527 7140ad31-8bb2-48f0-a245-18670635c147 1664 +1608 uri://ed-fi.org/LearningStandardScopeDescriptor State State State \N \N \N 2021-11-05 18:59:23.179342 2021-11-05 18:59:23.178172 471e2ecd-2e30-4df8-8623-64dcee5e54a7 1668 +1609 uri://ed-fi.org/LearningStandardScopeDescriptor Classroom Classroom Classroom \N \N \N 2021-11-05 18:59:23.408009 2021-11-05 18:59:23.407734 53b8df9f-71f5-4405-bde0-581e0657f82c 1669 +1610 uri://ed-fi.org/LearningStandardScopeDescriptor Multi-state or National Multi-state or National Multi-state or National \N \N \N 2021-11-05 18:59:23.411111 2021-11-05 18:59:23.410952 1ddc3470-9236-47e3-aacb-729dadd3f04d 1670 +1612 uri://ed-fi.org/LevelOfEducationDescriptor Did Not Graduate High School Did Not Graduate High School Did Not Graduate High School \N \N \N 2021-11-05 18:59:23.471291 2021-11-05 18:59:23.470155 4fd0269d-f249-4dfd-a090-b62403952962 1672 +1616 uri://ed-fi.org/LevelOfEducationDescriptor High School Diploma High School Diploma High School Diploma \N \N \N 2021-11-05 18:59:23.48623 2021-11-05 18:59:23.486185 af2fbbce-3d38-4392-a7e5-dd7d239ddd6f 1676 +1617 uri://ed-fi.org/LevelOfEducationDescriptor Some College No Degree Some College No Degree Some College No Degree \N \N \N 2021-11-05 18:59:23.489785 2021-11-05 18:59:23.489627 879b16a6-8f5c-40cf-81d6-fa796b4d33cc 1677 +1620 uri://ed-fi.org/LicenseStatusDescriptor Exempt Exempt Exempt \N \N \N 2021-11-05 18:59:23.551478 2021-11-05 18:59:23.550277 db6ee7c5-bf57-44de-8ae4-123b16b9b0de 1680 +1622 uri://ed-fi.org/LicenseTypeDescriptor Before- and After-School Programs Before- and After-School Programs Before- and After-School Programs \N \N \N 2021-11-05 18:59:23.567504 2021-11-05 18:59:23.565634 ed24cf68-4b0e-466f-9b4f-549707102518 1682 +1626 uri://ed-fi.org/LicenseTypeDescriptor Day Treatment Program Day Treatment Program Day Treatment Program \N \N \N 2021-11-05 18:59:23.580582 2021-11-05 18:59:23.580542 6a8edcf8-bb99-43fb-8afc-a4a8f70ab28c 1686 +1627 uri://ed-fi.org/LicenseTypeDescriptor Family Child Care Home Family Child Care Home Family Child Care Home \N \N \N 2021-11-05 18:59:23.583316 2021-11-05 18:59:23.583279 1b3ce8b1-739d-4cd6-8772-8238b06af627 1687 +1630 uri://ed-fi.org/LicenseTypeDescriptor Night Care Night Care Night Care \N \N \N 2021-11-05 18:59:23.591108 2021-11-05 18:59:23.590981 5445d3dc-6c6f-4c18-b7de-3f45e3655d8f 1690 +1632 uri://ed-fi.org/LicenseTypeDescriptor Residential Child Care Residential Child Care Residential Child Care \N \N \N 2021-11-05 18:59:23.597049 2021-11-05 18:59:23.596811 0ae41ed6-2f1e-4a34-9bea-eb792f25afb2 1692 +1634 uri://ed-fi.org/LicenseTypeDescriptor Shelter Care Shelter Care Shelter Care \N \N \N 2021-11-05 18:59:23.601154 2021-11-05 18:59:23.601064 19da9f26-e648-4353-b0bd-3a1cf9a1a421 1694 +1636 uri://ed-fi.org/LicenseTypeDescriptor Temporary Shelter Care Temporary Shelter Care Temporary Shelter Care \N \N \N 2021-11-05 18:59:23.608025 2021-11-05 18:59:23.607987 2c58cef7-7d8e-4d9c-99a3-a215a72cef73 1696 +1637 uri://ed-fi.org/LimitedEnglishProficiencyDescriptor Limited Monitored 2 Limited Monitored 2 Limited Monitored 2 \N \N \N 2021-11-05 18:59:23.663927 2021-11-05 18:59:23.662772 07c7d8ec-7f18-44e6-9ce4-8762e2720842 1697 +1642 uri://ed-fi.org/LocaleDescriptor City-Large City-Large City-Large \N \N \N 2021-11-05 18:59:23.735514 2021-11-05 18:59:23.734329 d526f5d5-d262-4eb3-b6f0-7dacba9f21db 1702 +1645 uri://ed-fi.org/LocaleDescriptor Suburban-Small Suburban-Small Suburban-Small \N \N \N 2021-11-05 18:59:23.751728 2021-11-05 18:59:23.751672 e96a8692-bf8a-4909-b595-dc1d3fc33a9d 1705 +1648 uri://ed-fi.org/LocaleDescriptor Town-Distant Town-Distant Town-Distant \N \N \N 2021-11-05 18:59:23.75453 2021-11-05 18:59:23.754498 19c41a82-5795-481d-821b-6cbe69ef270b 1708 +1649 uri://ed-fi.org/LocaleDescriptor Town-Remote Town-Remote Town-Remote \N \N \N 2021-11-05 18:59:23.76192 2021-11-05 18:59:23.76182 5a77ea11-e0cf-4756-8ab3-d48be3af5225 1709 +1651 uri://ed-fi.org/LocaleDescriptor Rural-Distant Rural-Distant Rural-Distant \N \N \N 2021-11-05 18:59:23.766964 2021-11-05 18:59:23.766947 8612d7a5-20ad-44da-9362-ed0d037d2a91 1711 +1654 uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor Charter Charter Charter \N \N \N 2021-11-05 18:59:23.834056 2021-11-05 18:59:23.832833 8b2f3bfa-f36f-414d-a039-96e27e42e5eb 1714 +1655 uri://ed-fi.org/MagnetSpecialProgramEmphasisSchoolDescriptor All students participate All students participate All students participate \N \N \N 2021-11-05 18:59:23.842406 2021-11-05 18:59:23.840089 35608881-6c6f-43ea-86ab-2f07f9cbd929 1715 +1657 uri://ed-fi.org/MagnetSpecialProgramEmphasisSchoolDescriptor Some, but not all, students participate Some, but not all, students participate Some, but not all, students participate \N \N \N 2021-11-05 18:59:23.850085 2021-11-05 18:59:23.849036 4c28c716-f353-45fe-99a3-76fd3c3efe42 1717 +1659 uri://ed-fi.org/MediumOfInstructionDescriptor Face-to-face instruction Face-to-face instruction Face-to-face instruction \N \N \N 2021-11-05 18:59:23.902848 2021-11-05 18:59:23.901686 23d22514-c8f4-43fd-b8c8-70ee25880971 1719 +1663 uri://ed-fi.org/MediumOfInstructionDescriptor Internship Internship Internship \N \N \N 2021-11-05 18:59:23.920092 2021-11-05 18:59:23.919875 57077611-6da4-4129-93dd-8f00fbaee538 1723 +1667 uri://ed-fi.org/MediumOfInstructionDescriptor Telepresence/video conference Telepresence/video conference Telepresence/video conference \N \N \N 2021-11-05 18:59:23.933179 2021-11-05 18:59:23.933146 1dbef407-4103-455d-8d12-abc20d9f2e85 1727 +1670 uri://ed-fi.org/MediumOfInstructionDescriptor Virtual/On-line Distance learning Virtual/On-line Distance learning Virtual/On-line Distance learning \N \N \N 2021-11-05 18:59:23.942663 2021-11-05 18:59:23.942621 424e7d64-5a58-42d4-bd7b-5c79ec5e2234 1730 +1673 uri://ed-fi.org/MethodCreditEarnedDescriptor Credit by examination Credit by examination Credit by examination \N \N \N 2021-11-05 18:59:24.004138 2021-11-05 18:59:24.002972 6705a339-18e5-4d73-aec0-23f2424eb9d6 1733 +1675 uri://ed-fi.org/MethodCreditEarnedDescriptor Credit recovery Credit recovery Credit recovery \N \N \N 2021-11-05 18:59:24.018808 2021-11-05 18:59:24.01876 42dc6644-3f9b-4182-9ae5-7c389c28d6e9 1735 +1677 uri://ed-fi.org/MethodCreditEarnedDescriptor Transfer credit Transfer credit Transfer credit \N \N \N 2021-11-05 18:59:24.021586 2021-11-05 18:59:24.021552 a0b12efb-0ba2-4195-a6a5-3caf09ddd008 1737 +1681 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor Mathematics Instruction Mathematics Instruction Mathematics Instruction \N \N \N 2021-11-05 18:59:24.087051 2021-11-05 18:59:24.085002 71f5adda-1e91-4241-9940-537730a2bf85 1741 +1685 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor Reading Instruction Reading Instruction Reading Instruction \N \N \N 2021-11-05 18:59:24.102824 2021-11-05 18:59:24.102598 16263e9d-a25c-4de7-a5f1-0eedf830a4f6 1745 +1688 uri://ed-fi.org/MonitoredDescriptor Not Monitored Not Monitored Not Monitored \N \N \N 2021-11-05 18:59:24.169399 2021-11-05 18:59:24.168197 640794d8-62e7-4ee1-80c5-e8e90dd4520d 1748 +1689 uri://ed-fi.org/NeglectedOrDelinquentProgramDescriptor Neglected Programs Neglected Programs Neglected Programs \N \N \N 2021-11-05 18:59:24.178643 2021-11-05 18:59:24.1775 b168a5b5-c6ae-4cb3-83b0-9e942c5b4495 1749 +1633 uri://ed-fi.org/LicenseTypeDescriptor School Age Program School Age Program School Age Program \N \N \N 2021-11-05 18:59:23.597289 2021-11-05 18:59:23.597181 9e1cb0a2-5197-4c8e-a5f4-ff68679d98ec 1693 +1635 uri://ed-fi.org/LicenseTypeDescriptor Specialized Day Care Specialized Day Care Specialized Day Care \N \N \N 2021-11-05 18:59:23.603139 2021-11-05 18:59:23.603105 268c5a3d-456d-4748-98b8-b18d364318dc 1695 +1638 uri://ed-fi.org/LimitedEnglishProficiencyDescriptor NotLimited NotLimited NotLimited \N \N \N 2021-11-05 18:59:23.663931 2021-11-05 18:59:23.662778 bd881915-f85f-4225-b646-2dbcb3940050 1698 +1641 uri://ed-fi.org/LocaleDescriptor Suburban-Large Suburban-Large Suburban-Large \N \N \N 2021-11-05 18:59:23.735513 2021-11-05 18:59:23.734332 453ef8b8-96a4-4c81-b6b1-364a758b0448 1701 +1646 uri://ed-fi.org/LocaleDescriptor Suburban-Midsize Suburban-Midsize Suburban-Midsize \N \N \N 2021-11-05 18:59:23.751806 2021-11-05 18:59:23.751769 3e39f4f8-5f99-42ac-8e76-3a70f9186cf5 1706 +1650 uri://ed-fi.org/LocaleDescriptor Rural-Fringe Rural-Fringe Rural-Fringe \N \N \N 2021-11-05 18:59:23.763924 2021-11-05 18:59:23.763884 30a4870a-c1ad-4818-b17b-70d8bdeb4d4b 1710 +1652 uri://ed-fi.org/LocaleDescriptor Rural-Remote Rural-Remote Rural-Remote \N \N \N 2021-11-05 18:59:23.767284 2021-11-05 18:59:23.76725 c8952fdc-0cc6-44ce-9558-94ee9fb1408d 1712 +1653 uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor Independent Independent Independent \N \N \N 2021-11-05 18:59:23.834064 2021-11-05 18:59:23.832833 35c3f5bc-84cb-45bd-a508-4b648c7c1dd3 1713 +1656 uri://ed-fi.org/MagnetSpecialProgramEmphasisSchoolDescriptor No students participate No students participate No students participate \N \N \N 2021-11-05 18:59:23.842524 2021-11-05 18:59:23.840089 9e3abe63-67ee-4021-bbb1-9501baf3854a 1716 +1658 uri://ed-fi.org/MediumOfInstructionDescriptor Distance Learning (other than online) Distance Learning (other than online) Distance Learning (other than online) \N \N \N 2021-11-05 18:59:23.902848 2021-11-05 18:59:23.9017 db38025d-81ed-4c48-950f-886a763a8757 1718 +1662 uri://ed-fi.org/MediumOfInstructionDescriptor Independent study Independent study Independent study \N \N \N 2021-11-05 18:59:23.919951 2021-11-05 18:59:23.91978 bf310755-2299-4e45-848c-ae213ce87f9d 1722 +1666 uri://ed-fi.org/MediumOfInstructionDescriptor Technology-based instruction in classroom Technology-based instruction in classroom Technology-based instruction in classroom \N \N \N 2021-11-05 18:59:23.932445 2021-11-05 18:59:23.932395 ee5e7e76-5412-4a10-8f63-a39380777eee 1726 +1668 uri://ed-fi.org/MediumOfInstructionDescriptor Videotaped/prerecorded video Videotaped/prerecorded video Videotaped/prerecorded video \N \N \N 2021-11-05 18:59:23.935795 2021-11-05 18:59:23.935746 831cb2d3-072c-4545-8137-e17a8c078780 1728 +1674 uri://ed-fi.org/MethodCreditEarnedDescriptor Classroom credit Classroom credit Classroom credit \N \N \N 2021-11-05 18:59:24.004633 2021-11-05 18:59:24.002993 c7af2b21-9185-47fa-9eb2-eabfa4af232b 1734 +1676 uri://ed-fi.org/MethodCreditEarnedDescriptor Other Other Other \N \N \N 2021-11-05 18:59:24.018902 2021-11-05 18:59:24.018867 15741906-1a9f-42e6-91d4-16907a274b90 1736 +1678 uri://ed-fi.org/MethodCreditEarnedDescriptor Online credit Online credit Online credit \N \N \N 2021-11-05 18:59:24.023481 2021-11-05 18:59:24.023459 ebad75db-4bab-4714-9431-adcff829052f 1738 +1679 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor High School Accrual High School Accrual High School Accrual \N \N \N 2021-11-05 18:59:24.086197 2021-11-05 18:59:24.085008 65dd914a-8ebf-4070-a48a-898a88f3b048 1739 +1683 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor Referral Services Referral Services Referral Services \N \N \N 2021-11-05 18:59:24.101217 2021-11-05 18:59:24.101145 244ef91b-b5ce-4bd5-946f-57a940ab1232 1743 +1686 uri://ed-fi.org/MonitoredDescriptor Year 1 Year 1 Year 1 \N \N \N 2021-11-05 18:59:24.169388 2021-11-05 18:59:24.168194 1c9b34b2-a62b-47cb-88bb-6e8bbbea1280 1746 +1690 uri://ed-fi.org/NeglectedOrDelinquentProgramDescriptor Juvenile Corrections Juvenile Corrections Juvenile Corrections \N \N \N 2021-11-05 18:59:24.184571 2021-11-05 18:59:24.18452 d9c3ce63-982a-46f0-ab41-d537d467d703 1750 +1695 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor Health And Social Services Health And Social Services Health And Social Services \N \N \N 2021-11-05 18:59:24.252722 2021-11-05 18:59:24.251549 428c6bde-3efb-4b53-a6d3-49d34dce84e5 1755 +1699 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor At-risk Indian Youth Programs At-risk Indian Youth Programs At-risk Indian Youth Programs \N \N \N 2021-11-05 18:59:24.271868 2021-11-05 18:59:24.271638 15522f7d-914c-42d8-afd7-dbb2bf3b464f 1759 +1704 uri://ed-fi.org/OldEthnicityDescriptor Asian Or Pacific Islander Asian Or Pacific Islander Asian Or Pacific Islander \N \N \N 2021-11-05 18:59:24.348358 2021-11-05 18:59:24.347207 bf8a5bdc-4c01-4296-9e45-45c15c70e305 1764 +1706 uri://ed-fi.org/OldEthnicityDescriptor Black, Not Of Hispanic Origin Black, Not Of Hispanic Origin Black, Not Of Hispanic Origin \N \N \N 2021-11-05 18:59:24.354483 2021-11-05 18:59:24.354411 49d11832-1e46-4adc-9cf7-6987406d6f4f 1766 +1711 uri://ed-fi.org/OperationalStatusDescriptor Added Added Added \N \N \N 2021-11-05 18:59:24.42444 2021-11-05 18:59:24.423131 d95fbd0b-6066-4a03-9f9c-df610c85363b 1771 +1712 uri://ed-fi.org/OperationalStatusDescriptor New New New \N \N \N 2021-11-05 18:59:24.438329 2021-11-05 18:59:24.438137 c304ab31-9e34-48c3-a2e3-1d16dbac0052 1772 +1718 uri://ed-fi.org/OtherNameTypeDescriptor Alias Alias Alias \N \N \N 2021-11-05 18:59:24.508856 2021-11-05 18:59:24.507659 ccfc78b1-d4c9-4366-97d2-89f8393104e0 1778 +1720 uri://ed-fi.org/ParticipationDescriptor Did Not Take Did Not Take Did Not Take \N \N \N 2021-11-05 18:59:24.581932 2021-11-05 18:59:24.58079 d3fc1e3d-a7b0-4df1-b9a3-2f64918d1103 1780 +1724 uri://ed-fi.org/ParticipationStatusDescriptor Active in Program Active in Program Active in Program \N \N \N 2021-11-05 18:59:24.653293 2021-11-05 18:59:24.65216 c41fd7ab-2c13-4536-935d-bc183e6d8f42 1784 +1728 uri://ed-fi.org/ParticipationStatusDescriptor Refused Refused Refused \N \N \N 2021-11-05 18:59:24.664108 2021-11-05 18:59:24.664069 6c20b3d5-dcc5-49ce-b885-577d569b42ea 1788 +1730 uri://ed-fi.org/PerformanceBaseConversionDescriptor Basic Basic Basic \N \N \N 2021-11-05 18:59:24.936896 2021-11-05 18:59:24.935728 f19c98cd-a638-40bd-b305-5fdfc183a96d 1790 +1734 uri://ed-fi.org/PerformanceBaseConversionDescriptor Pass Pass Pass \N \N \N 2021-11-05 18:59:24.954522 2021-11-05 18:59:24.954265 b5c1ee76-79e4-43b6-8b2d-411be442156d 1794 +1736 uri://ed-fi.org/PerformanceLevelDescriptor Well Below Basic Well Below Basic Well Below Basic \N \N \N 2021-11-05 18:59:25.016063 2021-11-05 18:59:25.0149 206caf0c-34ab-489f-8a59-f88e7023a8be 1796 +1742 uri://ed-fi.org/PerformanceLevelDescriptor Did Not Meet Standard Did Not Meet Standard Did Not Meet Standard \N \N \N 2021-11-05 18:59:25.037712 2021-11-05 18:59:25.037672 789ab30f-01ed-41e0-88df-7e599f678929 1802 +1744 uri://ed-fi.org/PerformanceLevelDescriptor Commended Performance DEPRECATED: Commended Performance DEPRECATED: Commended Performance \N \N \N 2021-11-05 18:59:25.041778 2021-11-05 18:59:25.041742 1322d58c-16d2-440d-b85e-6de643f5113a 1804 +1746 uri://ed-fi.org/PerformanceLevelDescriptor Proficient DEPRECATED: Proficient DEPRECATED: Proficient \N \N \N 2021-11-05 18:59:25.049735 2021-11-05 18:59:25.049688 65a0204e-e04e-483e-a03e-ae87407d590e 1806 +1747 uri://ed-fi.org/PerformanceLevelDescriptor Satisfactory DEPRECATED: Satisfactory DEPRECATED: Satisfactory \N \N \N 2021-11-05 18:59:25.053418 2021-11-05 18:59:25.053377 33200b5e-731b-428f-b489-321d948f5b19 1807 +1752 uri://ed-fi.org/PersonalInformationVerificationDescriptor Entry in family Bible Entry in family Bible Entry in family Bible \N \N \N 2021-11-05 18:59:25.118629 2021-11-05 18:59:25.117459 f645132b-c6e7-492f-aae2-aeb67dedbd4c 1812 +1755 uri://ed-fi.org/PersonalInformationVerificationDescriptor Immigration document/visa Immigration document/visa Immigration document/visa \N \N \N 2021-11-05 18:59:25.13398 2021-11-05 18:59:25.13354 40ac0830-275a-4c24-b81f-f1141a14c0bf 1815 +1760 uri://ed-fi.org/PersonalInformationVerificationDescriptor Passport Passport Passport \N \N \N 2021-11-05 18:59:25.149649 2021-11-05 18:59:25.149186 fc9c2de9-ad8b-4ec2-834e-50359196800f 1820 +1765 uri://ed-fi.org/PlatformTypeDescriptor Paper-based Paper-based Paper-based \N \N \N 2021-11-05 18:59:25.227444 2021-11-05 18:59:25.226288 5232ac51-8ea3-4da3-9711-50aca4b342f8 1825 +1768 uri://ed-fi.org/PopulationServedDescriptor Bilingual Students Bilingual Students Bilingual Students \N \N \N 2021-11-05 18:59:25.244031 2021-11-05 18:59:25.242435 ae45bf3f-dc80-4e34-bb8e-cfa00c1170de 1828 +1770 uri://ed-fi.org/PopulationServedDescriptor Career and Technical Education Students Career and Technical Education Students Career and Technical Education Students \N \N \N 2021-11-05 18:59:25.249777 2021-11-05 18:59:25.249713 80212780-e386-43f7-ac53-f58d6d0c7ab6 1830 +1772 uri://ed-fi.org/PopulationServedDescriptor ESL Students ESL Students ESL Students \N \N \N 2021-11-05 18:59:25.262144 2021-11-05 18:59:25.262031 81fcdea3-a479-4e2f-a729-9c15036013a1 1832 +1640 uri://ed-fi.org/LimitedEnglishProficiencyDescriptor Limited Limited Limited \N \N \N 2021-11-05 18:59:23.664583 2021-11-05 18:59:23.662793 94d861e2-ab6d-48be-955c-223f448dd932 1700 +1644 uri://ed-fi.org/LocaleDescriptor City-Small City-Small City-Small \N \N \N 2021-11-05 18:59:23.736147 2021-11-05 18:59:23.734352 85709f28-4c2c-4697-b92c-356a7f96621b 1704 +1661 uri://ed-fi.org/MediumOfInstructionDescriptor Center-based instruction Center-based instruction Center-based instruction \N \N \N 2021-11-05 18:59:23.90338 2021-11-05 18:59:23.901704 a09bbdcc-9565-4fef-bf13-beaab7d8b5c7 1721 +1665 uri://ed-fi.org/MediumOfInstructionDescriptor Other technology-based instruction Other technology-based instruction Other technology-based instruction \N \N \N 2021-11-05 18:59:23.921098 2021-11-05 18:59:23.92043 a2b7ecf9-882f-4cbc-b8f0-83f17e2e8380 1725 +1671 uri://ed-fi.org/MethodCreditEarnedDescriptor Correspondence credit Correspondence credit Correspondence credit \N \N \N 2021-11-05 18:59:24.004138 2021-11-05 18:59:24.002987 f7b1dfd8-393c-4ed0-b446-7ff37596d818 1731 +1682 uri://ed-fi.org/MigrantEducationProgramServiceDescriptor Counseling Services Counseling Services Counseling Services \N \N \N 2021-11-05 18:59:24.087052 2021-11-05 18:59:24.085026 01f98ea3-b611-4f01-8285-ddb665d19d82 1742 +1697 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor Dropout Prevention Programs Dropout Prevention Programs Dropout Prevention Programs \N \N \N 2021-11-05 18:59:24.252835 2021-11-05 18:59:24.251573 160d630f-04f3-4bb8-8ea7-a33c97a5c066 1757 +1702 uri://ed-fi.org/NetworkPurposeDescriptor Shared Services Shared Services Shared Services \N \N \N 2021-11-05 18:59:24.336207 2021-11-05 18:59:24.334974 75f4dd2d-82a9-457a-b4b1-3dfcd1e6e61b 1762 +1710 uri://ed-fi.org/OperationalStatusDescriptor Changed Changed Changed \N \N \N 2021-11-05 18:59:24.424327 2021-11-05 18:59:24.423143 3acaede1-75ef-42c1-9f84-77b44dc50743 1770 +1719 uri://ed-fi.org/OtherNameTypeDescriptor Previous Legal Name Previous Legal Name Previous Legal Name \N \N \N 2021-11-05 18:59:24.509331 2021-11-05 18:59:24.507681 72454b69-72d5-4eff-bc27-19a38c1b6c2c 1779 +1722 uri://ed-fi.org/ParticipationDescriptor Attempted Attempted Attempted but did not complete \N \N \N 2021-11-05 18:59:24.581939 2021-11-05 18:59:24.580799 31310fc9-512c-433a-a605-4c77129d8f96 1782 +1727 uri://ed-fi.org/ParticipationStatusDescriptor Referred Referred Referred \N \N \N 2021-11-05 18:59:24.654101 2021-11-05 18:59:24.652176 681ff09c-d1ab-4727-9437-6b1c3d41ffb5 1787 +1732 uri://ed-fi.org/PerformanceBaseConversionDescriptor Fail Fail Fail \N \N \N 2021-11-05 18:59:24.937411 2021-11-05 18:59:24.935764 0114855d-455f-41eb-b0f9-e1e8e2ab27fa 1792 +1739 uri://ed-fi.org/PerformanceLevelDescriptor Basic Basic Basic \N \N \N 2021-11-05 18:59:25.01657 2021-11-05 18:59:25.01492 5523d0f0-51f5-4386-896e-936b9504f050 1799 +1753 uri://ed-fi.org/PersonalInformationVerificationDescriptor Drivers license Drivers license Drivers license \N \N \N 2021-11-05 18:59:25.118742 2021-11-05 18:59:25.117477 ce13f887-00dd-4c92-b81f-2e6ebadbb0fa 1813 +1799 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor Tablet Tablet A Tablet is the type of device the student uses most often to complete learning activities away from school. \N \N \N 2021-11-05 18:59:25.56961 2021-11-05 18:59:25.568268 b215ce69-b66e-4f79-8267-34e1ad41cdb5 1859 +1812 uri://ed-fi.org/ProgramAssignmentDescriptor Bilingual/English as a Second Language Bilingual/English as a Second Language Bilingual/English as a Second Language \N \N \N 2021-11-05 18:59:25.75667 2021-11-05 18:59:25.754741 67165817-ee9c-46ee-8607-e98176257933 1872 +1830 uri://ed-fi.org/ProgramTypeDescriptor Athletics Athletics Athletics \N \N \N 2021-11-05 18:59:25.977724 2021-11-05 18:59:25.976559 7c3f42bf-add4-49e6-9681-00f75360280c 1890 +1834 uri://ed-fi.org/ProgramTypeDescriptor Career and Technical Education Career and Technical Education Career and Technical Education \N \N \N 2021-11-05 18:59:25.995066 2021-11-05 18:59:25.994958 0eba828d-e213-4134-b502-b5f606d5be3b 1894 +1897 uri://ed-fi.org/ProviderCategoryDescriptor Child care center Child care center Child care center \N \N \N 2021-11-05 18:59:26.32855 2021-11-05 18:59:26.327069 3a6d04ac-39be-4e61-bd41-90625df0e9dc 1957 +1925 uri://ed-fi.org/PublicationStatusDescriptor Adopted Adopted Adopted \N \N \N 2021-11-05 18:59:26.57654 2021-11-05 18:59:26.575123 a2843f5e-3427-4128-a1a4-b33fc6da9fa0 1985 +1928 uri://ed-fi.org/QuestionFormDescriptor Checkbox Checkbox Checkbox \N \N \N 2021-11-05 18:59:26.666499 2021-11-05 18:59:26.665195 ff852bad-ac95-45ba-8688-27c4ef09c015 1988 +1933 uri://ed-fi.org/QuestionFormDescriptor Matrix of textboxes Matrix of textboxes Matrix of textboxes \N \N \N 2021-11-05 18:59:26.685428 2021-11-05 18:59:26.685165 26f44476-153f-4a8b-a282-9f37225ab811 1993 +1938 uri://ed-fi.org/RaceDescriptor Asian Asian Asian \N \N \N 2021-11-05 18:59:26.764641 2021-11-05 18:59:26.762884 b915c7d1-19dd-465d-ba2d-e93989b4a2f6 1998 +1944 uri://ed-fi.org/ReasonExitedDescriptor Died or is permanently incapacitated Died or is permanently incapacitated Died or is permanently incapacitated \N \N \N 2021-11-05 18:59:26.863301 2021-11-05 18:59:26.861857 5ed2aa9b-68da-4d7a-a113-eafe4d8bb5ff 2004 +1949 uri://ed-fi.org/ReasonExitedDescriptor Reached maximum age Reached maximum age Reached maximum age \N \N \N 2021-11-05 18:59:26.882348 2021-11-05 18:59:26.882112 0f40a9c8-a800-4a67-a365-e63167852fea 2009 +1956 uri://ed-fi.org/ReasonNotTestedDescriptor Alternate assessment administered Alternate assessment administered Alternate assessment administered \N \N \N 2021-11-05 18:59:26.981896 2021-11-05 18:59:26.979849 b65fc6b1-868c-44e5-be82-75626eef6921 2016 +1959 uri://ed-fi.org/ReasonNotTestedDescriptor Not appropriate (ARD decision) Not appropriate (ARD decision) Not appropriate (ARD decision) \N \N \N 2021-11-05 18:59:27.002322 2021-11-05 18:59:27.002253 c0cbccb9-4114-40ea-ae26-7380d8f6a29d 2019 +1970 uri://ed-fi.org/RecognitionTypeDescriptor Athletic awards Athletic awards Athletic awards \N \N \N 2021-11-05 18:59:27.114434 2021-11-05 18:59:27.112334 da55abce-184a-4203-b894-77c92e420b2e 2030 +1977 uri://ed-fi.org/RecognitionTypeDescriptor Monogram/letter Monogram/letter Monogram/letter \N \N \N 2021-11-05 18:59:27.152042 2021-11-05 18:59:27.151945 cb63cded-8815-4c46-9cef-18dd739a31c0 2037 +1981 uri://ed-fi.org/RelationDescriptor CourtAppointedGuardian CourtAppointedGuardian CourtAppointedGuardian \N \N \N 2021-11-05 18:59:27.238611 2021-11-05 18:59:27.235434 097856fd-aa74-4d2d-b96a-aa2811350c4d 2041 +1988 uri://ed-fi.org/RelationDescriptor Father, step Father, step Father, step \N \N \N 2021-11-05 18:59:27.283658 2021-11-05 18:59:27.283018 ef2b62f6-c35f-45fa-a12c-cb607ad390a6 2048 +2032 uri://ed-fi.org/RepeatIdentifierDescriptor Other Other Other \N \N \N 2021-11-05 18:59:27.558241 2021-11-05 18:59:27.556255 19ae1ff5-b135-429a-be6d-6f31ec2903ec 2092 +2035 uri://ed-fi.org/RepeatIdentifierDescriptor Repeated, not counted in grade point average Repeated, not counted in grade point average Repeated, not counted in grade point average \N \N \N 2021-11-05 18:59:27.580195 2021-11-05 18:59:27.578832 731585a9-a910-488c-8682-7b97b5a211af 2095 +2040 uri://ed-fi.org/ReporterDescriptionDescriptor Parent/guardian Parent/guardian Parent/guardian \N \N \N 2021-11-05 18:59:27.676213 2021-11-05 18:59:27.674173 a52e0eb0-05b3-47c1-b737-1c437111e32a 2100 +2046 uri://ed-fi.org/ResidencyStatusDescriptor Resident of admin unit and school area Resident of administrative unit and usual school attendance area Resident of administrative unit and usual school attendance area \N \N \N 2021-11-05 18:59:27.77878 2021-11-05 18:59:27.776 40dfcd1c-65bd-42df-b149-d90cc1347ae2 2106 +2051 uri://ed-fi.org/ResponseIndicatorDescriptor Nonscorable response Nonscorable response Nonscorable response \N \N \N 2021-11-05 18:59:27.875815 2021-11-05 18:59:27.873856 8284bd7c-62c2-4ebb-9797-187746804773 2111 +2054 uri://ed-fi.org/ResponsibilityDescriptor Attendance Attendance Attendance \N \N \N 2021-11-05 18:59:27.979365 2021-11-05 18:59:27.97791 582344fa-83a8-4b60-aeec-e12386ba2f55 2114 +2059 uri://ed-fi.org/ResponsibilityDescriptor Transportation Transportation Transportation \N \N \N 2021-11-05 18:59:27.998823 2021-11-05 18:59:27.998756 bb1755ad-b272-4f01-ba9a-250395379211 2119 +2071 uri://ed-fi.org/RetestIndicatorDescriptor 2nd Retest 2nd Retest 2nd Retest \N \N \N 2021-11-05 18:59:28.214276 2021-11-05 18:59:28.212885 d3662a11-a18c-4ef3-9bfa-9d47bfad703c 2131 +2076 uri://ed-fi.org/SchoolCategoryDescriptor Adult School Adult School Adult School \N \N \N 2021-11-05 18:59:28.327628 2021-11-05 18:59:28.325374 6c8dc7e3-d117-4793-bf21-bd63423a2a91 2136 +2078 uri://ed-fi.org/SchoolCategoryDescriptor Intermediate School Intermediate School Intermediate School \N \N \N 2021-11-05 18:59:28.344411 2021-11-05 18:59:28.344216 eb27257a-0b93-450d-9739-debc8c1767bb 2138 +2091 uri://ed-fi.org/SchoolChoiceImplementStatusDescriptor Not required to implement public school choice Not required to implement public school choice Not required to implement public school choice \N \N \N 2021-11-05 18:59:28.453177 2021-11-05 18:59:28.451205 635d8fc8-d647-44f2-b295-348d0ae4c638 2151 +1691 uri://ed-fi.org/NeglectedOrDelinquentProgramDescriptor Juvenile Detention Facilities Juvenile Detention Facilities Juvenile Detention Facilities \N \N \N 2021-11-05 18:59:24.184687 2021-11-05 18:59:24.184277 0cc66d3b-c272-4e79-a01b-834abc62c638 1751 +1692 uri://ed-fi.org/NeglectedOrDelinquentProgramDescriptor Adult Corrections Adult Corrections Adult Corrections \N \N \N 2021-11-05 18:59:24.18795 2021-11-05 18:59:24.187381 ec442ed8-ca95-44a4-adc7-63c10d027cbf 1752 +1693 uri://ed-fi.org/NeglectedOrDelinquentProgramDescriptor Other Programs Other Programs Other Programs \N \N \N 2021-11-05 18:59:24.190682 2021-11-05 18:59:24.190652 3bf51fb9-2eb1-4578-84be-dfda8fcf36bb 1753 +1694 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor Transition Programs Transition Programs Transition Programs \N \N \N 2021-11-05 18:59:24.252722 2021-11-05 18:59:24.251552 b5d9151a-05a4-488b-8bba-e6514e4acbab 1754 +1698 uri://ed-fi.org/NeglectedOrDelinquentProgramServiceDescriptor Mentoring Programs Mentoring Programs Mentoring Programs \N \N \N 2021-11-05 18:59:24.271797 2021-11-05 18:59:24.270966 6191b6b8-d209-4731-a287-1d9cec9c8e4c 1758 +1703 uri://ed-fi.org/OldEthnicityDescriptor American Indian Or Alaskan Native American Indian Or Alaskan Native American Indian Or Alaskan Native \N \N \N 2021-11-05 18:59:24.348352 2021-11-05 18:59:24.347205 bafc2e68-77be-47d9-8102-2829b91b7593 1763 +1705 uri://ed-fi.org/OldEthnicityDescriptor Hispanic Hispanic Hispanic \N \N \N 2021-11-05 18:59:24.354449 2021-11-05 18:59:24.354395 af13a538-1023-476f-b9f4-f222ef5fc8a9 1765 +1707 uri://ed-fi.org/OldEthnicityDescriptor White, Not Of Hispanic Origin White, Not Of Hispanic Origin White, Not Of Hispanic Origin \N \N \N 2021-11-05 18:59:24.361912 2021-11-05 18:59:24.361846 74692b75-4f2e-46a1-b029-81c80fe67640 1767 +1709 uri://ed-fi.org/OperationalStatusDescriptor Active Active Active \N \N \N 2021-11-05 18:59:24.424318 2021-11-05 18:59:24.423126 d2810907-02b2-435f-a68f-f2b3c3414e2c 1769 +1713 uri://ed-fi.org/OperationalStatusDescriptor Inactive Inactive Inactive \N \N \N 2021-11-05 18:59:24.439278 2021-11-05 18:59:24.439021 237760f7-2a4b-4b96-9ae9-eeccfe12708d 1773 +1715 uri://ed-fi.org/OperationalStatusDescriptor Reopened Reopened Reopened \N \N \N 2021-11-05 18:59:24.442871 2021-11-05 18:59:24.442827 1c65b935-d3ea-45a3-81f0-ad0a5199df38 1775 +1716 uri://ed-fi.org/OtherNameTypeDescriptor Nickname Nickname Nickname \N \N \N 2021-11-05 18:59:24.508857 2021-11-05 18:59:24.507659 483fdbe3-26ee-4cc7-85bc-9db6594b68f1 1776 +1721 uri://ed-fi.org/ParticipationDescriptor Unable Due To Medical Emergency Unable Due To Medical Emergency Unable Due To Medical Emergency \N \N \N 2021-11-05 18:59:24.581932 2021-11-05 18:59:24.580788 7775f903-0b9c-4e78-8530-c512c5e9662d 1781 +1725 uri://ed-fi.org/ParticipationStatusDescriptor Eligible Eligible Eligible \N \N \N 2021-11-05 18:59:24.653293 2021-11-05 18:59:24.652155 77834af3-7568-4b8e-8ba0-e3a80e4f63af 1785 +1729 uri://ed-fi.org/PerformanceBaseConversionDescriptor Advanced Advanced Advanced \N \N \N 2021-11-05 18:59:24.936871 2021-11-05 18:59:24.935722 93e0ff97-a4ec-4fc0-a858-e35a4d9b12cb 1789 +1733 uri://ed-fi.org/PerformanceBaseConversionDescriptor Proficient Proficient Proficient \N \N \N 2021-11-05 18:59:24.954277 2021-11-05 18:59:24.954121 ecca812c-d671-40b8-8fd0-fb6d8d714b3b 1793 +1737 uri://ed-fi.org/PerformanceLevelDescriptor Advanced Advanced Advanced \N \N \N 2021-11-05 18:59:25.016065 2021-11-05 18:59:25.014906 70d8805f-a24e-470c-b891-2ccac0fd9f6a 1797 +1740 uri://ed-fi.org/PerformanceLevelDescriptor Pass Pass Pass \N \N \N 2021-11-05 18:59:25.03086 2021-11-05 18:59:25.030816 095cd4f5-9052-4d15-bae5-73149e7c0b08 1800 +1741 uri://ed-fi.org/PerformanceLevelDescriptor Met Standard Met Standard Met Standard \N \N \N 2021-11-05 18:59:25.037375 2021-11-05 18:59:25.03732 77ab87b2-8707-4270-bea1-f68b4ddc4c93 1801 +1743 uri://ed-fi.org/PerformanceLevelDescriptor Fail Fail Fail \N \N \N 2021-11-05 18:59:25.040127 2021-11-05 18:59:25.040084 c6d2db30-cce4-4b57-9576-1035899e41b5 1803 +1745 uri://ed-fi.org/PerformanceLevelDescriptor Above Benchmark DEPRECATED: Above Benchmark DEPRECATED: Above Benchmark \N \N \N 2021-11-05 18:59:25.047995 2021-11-05 18:59:25.047955 acac4171-0e26-485c-bdb1-30e856d082b4 1805 +1748 uri://ed-fi.org/PerformanceLevelDescriptor Minimum DEPRECATED: Minimum DEPRECATED: Minimum \N \N \N 2021-11-05 18:59:25.054338 2021-11-05 18:59:25.054304 cb16c936-04bc-437b-906b-835b0c48327e 1808 +1749 uri://ed-fi.org/PerformanceLevelDescriptor Unsatisfactory DEPRECATED: Unsatisfactory DEPRECATED: Unsatisfactory \N \N \N 2021-11-05 18:59:25.059078 2021-11-05 18:59:25.058987 d38b876a-dcea-4b73-a568-6db4033ffee6 1809 +1750 uri://ed-fi.org/PersonalInformationVerificationDescriptor Baptismal or church certificate Baptismal or church certificate Baptismal or church certificate \N \N \N 2021-11-05 18:59:25.11863 2021-11-05 18:59:25.117457 00d7e1b2-ef59-48a7-9184-ddb7feb37ca1 1810 +1754 uri://ed-fi.org/PersonalInformationVerificationDescriptor Hospital certificate Hospital certificate Hospital certificate \N \N \N 2021-11-05 18:59:25.133856 2021-11-05 18:59:25.133416 c6d0175a-8ce1-4209-ab76-4e09d4ad3c6d 1814 +1757 uri://ed-fi.org/PersonalInformationVerificationDescriptor Life insurance policy Life insurance policy Life insurance policy \N \N \N 2021-11-05 18:59:25.137831 2021-11-05 18:59:25.137545 c3be4b14-2bcf-469d-9126-d078fd7eb681 1817 +1758 uri://ed-fi.org/PersonalInformationVerificationDescriptor Other non-official document Other non-official document Other non-official document \N \N \N 2021-11-05 18:59:25.144077 2021-11-05 18:59:25.144038 8b1ced36-97e5-4478-8683-4093ce8289fb 1818 +1759 uri://ed-fi.org/PersonalInformationVerificationDescriptor Parents affidavit Parents affidavit Parents affidavit \N \N \N 2021-11-05 18:59:25.147987 2021-11-05 18:59:25.147952 d6908357-72fc-41c9-a0ec-3e480f2152b8 1819 +1762 uri://ed-fi.org/PersonalInformationVerificationDescriptor Physicians certificate Physicians certificate Physicians certificate \N \N \N 2021-11-05 18:59:25.151696 2021-11-05 18:59:25.15163 c4fddd31-718c-4652-84cf-5c12d9a7ef8f 1822 +1763 uri://ed-fi.org/PersonalInformationVerificationDescriptor Previously verified school records Previously verified school records Previously verified school records \N \N \N 2021-11-05 18:59:25.155966 2021-11-05 18:59:25.155817 51aa5c4d-9a2b-4bc2-9434-b430c928856a 1823 +1764 uri://ed-fi.org/PersonalInformationVerificationDescriptor State-issued ID State-issued ID State-issued ID \N \N \N 2021-11-05 18:59:25.158674 2021-11-05 18:59:25.158571 2a4cd6dd-46ba-4ca4-8165-4fca3a3669ec 1824 +1766 uri://ed-fi.org/PlatformTypeDescriptor Computer-based Computer-based Computer-based \N \N \N 2021-11-05 18:59:25.227436 2021-11-05 18:59:25.226292 31ac99fa-f66d-4a37-8250-986a9945d277 1826 +1767 uri://ed-fi.org/PopulationServedDescriptor Adult Basic Education Students Adult Basic Education Students Adult Basic Education Students \N \N \N 2021-11-05 18:59:25.243804 2021-11-05 18:59:25.24243 b26cb94b-8e8e-407a-87a3-73ebdf216a8d 1827 +1769 uri://ed-fi.org/PopulationServedDescriptor Compensatory/Remedial Education Students Compensatory/Remedial Education Students Compensatory/Remedial Education Students \N \N \N 2021-11-05 18:59:25.24894 2021-11-05 18:59:25.248906 0243fc54-66b2-4d3d-a902-e7dbb76cd45e 1829 +1771 uri://ed-fi.org/PopulationServedDescriptor Economic Disadvantaged Economic Disadvantaged Economic Disadvantaged \N \N \N 2021-11-05 18:59:25.258821 2021-11-05 18:59:25.258763 da38de68-22fd-4062-807e-9fd58e960089 1831 +1773 uri://ed-fi.org/PopulationServedDescriptor Gifted and Talented Students Gifted and Talented Students Gifted and Talented Students \N \N \N 2021-11-05 18:59:25.262789 2021-11-05 18:59:25.26236 13010847-1a37-43c6-860a-0929b9e1cfb1 1833 +1777 uri://ed-fi.org/PopulationServedDescriptor Regular Students Regular Students Regular Students \N \N \N 2021-11-05 18:59:25.279947 2021-11-05 18:59:25.279492 0903dd19-a70a-42d0-9d00-ffb4c0056f81 1837 +1779 uri://ed-fi.org/PostingResultDescriptor Position Filled Position Filled Position Filled \N \N \N 2021-11-05 18:59:25.35262 2021-11-05 18:59:25.351198 670359f0-d910-4c39-8880-a2355684e4d2 1839 +1781 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor Certification Received Certification Received Certification Received \N \N \N 2021-11-05 18:59:25.365926 2021-11-05 18:59:25.364662 c40cdc93-c23d-484b-960d-1bb63d4990e2 1841 +1782 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor College Application College Application College Application \N \N \N 2021-11-05 18:59:25.372942 2021-11-05 18:59:25.372826 6adf70aa-d7fa-4214-92e2-89c7c7f85a88 1842 +1784 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor College Exit Date College Exit Date College Exit Date \N \N \N 2021-11-05 18:59:25.37969 2021-11-05 18:59:25.379471 214d73d0-e764-4eaa-bc4d-c61601ed763b 1844 +1787 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor FAFSA Application FAFSA Application FAFSA Application \N \N \N 2021-11-05 18:59:25.384875 2021-11-05 18:59:25.384822 1e996f04-c43f-4497-9cb3-a40540ba61b6 1847 +2761 uri://ed-fi.org/TribalAffiliationDescriptor Noatak Noatak Native Village of Noatak \N \N \N 2021-11-05 18:59:33.208329 2021-11-05 18:59:33.20809 0fbf0f42-84c8-42b0-b78a-0620b0d6eda5 2821 +1701 uri://ed-fi.org/NetworkPurposeDescriptor Collective Procurement Collective Procurement Collective Procurement \N \N \N 2021-11-05 18:59:24.336209 2021-11-05 18:59:24.334974 6befaf3f-e616-46cc-882e-fa518cea7ccd 1761 +1708 uri://ed-fi.org/OperationalStatusDescriptor Closed Closed Closed \N \N \N 2021-11-05 18:59:24.424326 2021-11-05 18:59:24.423149 305c8573-6306-4c3d-a873-df73f4cea52e 1768 +1714 uri://ed-fi.org/OperationalStatusDescriptor Future Future Future \N \N \N 2021-11-05 18:59:24.4396 2021-11-05 18:59:24.439323 23e4b14a-f37d-41dc-b14f-1fdc4f782d6d 1774 +1717 uri://ed-fi.org/OtherNameTypeDescriptor Other Name Other Name Other Name \N \N \N 2021-11-05 18:59:24.508863 2021-11-05 18:59:24.507675 8f4dc5a7-4de7-4f3b-89ed-fab09b2cdc5f 1777 +1723 uri://ed-fi.org/ParticipationDescriptor Completed Completed Completed \N \N \N 2021-11-05 18:59:24.582494 2021-11-05 18:59:24.580809 872d9aa7-459e-43eb-94ae-8d926f682dea 1783 +1726 uri://ed-fi.org/ParticipationStatusDescriptor Not Eligible Not Eligible Not Eligible \N \N \N 2021-11-05 18:59:24.653299 2021-11-05 18:59:24.652173 6b4da370-711c-4620-befd-d9fad600c4a0 1786 +1731 uri://ed-fi.org/PerformanceBaseConversionDescriptor Below Basic Below Basic Below Basic \N \N \N 2021-11-05 18:59:24.936871 2021-11-05 18:59:24.93574 0e103dea-5676-4b69-9547-3cc61183a490 1791 +1735 uri://ed-fi.org/PerformanceBaseConversionDescriptor Well Below Basic Well Below Basic Well Below Basic \N \N \N 2021-11-05 18:59:24.954532 2021-11-05 18:59:24.954453 e1417015-4ba9-4272-9e00-b6ec99fac196 1795 +1738 uri://ed-fi.org/PerformanceLevelDescriptor Below Basic Below Basic Below Basic \N \N \N 2021-11-05 18:59:25.016066 2021-11-05 18:59:25.014915 e186232a-3565-4e55-bac4-f605da1e4b56 1798 +1751 uri://ed-fi.org/PersonalInformationVerificationDescriptor Birth certificate Birth certificate Birth certificate \N \N \N 2021-11-05 18:59:25.118631 2021-11-05 18:59:25.11747 745584da-1c04-4a63-847e-38e7aeff6dc3 1811 +1756 uri://ed-fi.org/PersonalInformationVerificationDescriptor Other Other Other \N \N \N 2021-11-05 18:59:25.136747 2021-11-05 18:59:25.136712 2841337f-9bd6-4900-9757-eb2a1b419275 1816 +1761 uri://ed-fi.org/PersonalInformationVerificationDescriptor Other official document Other official document Other official document \N \N \N 2021-11-05 18:59:25.149955 2021-11-05 18:59:25.149383 d12c959e-4964-4bbe-a3bf-4173d5e8faf2 1821 +1774 uri://ed-fi.org/PopulationServedDescriptor Honors Students Honors Students Honors Students \N \N \N 2021-11-05 18:59:25.264352 2021-11-05 18:59:25.263738 50263e31-b0d0-4f7f-9e7c-3d74fab74173 1834 +1793 uri://ed-fi.org/PostSecondaryInstitutionLevelDescriptor Less than 2 years (below associate) Less than 2 years (below associate) Less than 2 years (below associate) \N \N \N 2021-11-05 18:59:25.472577 2021-11-05 18:59:25.470969 530ff83c-01a1-48e9-b402-824660ceef2a 1853 +1798 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor Chromebook Chromebook A Chromebook is the type of device the student uses most often to complete learning activities away from school. \N \N \N 2021-11-05 18:59:25.569596 2021-11-05 18:59:25.568262 73c82310-0e1b-4c8c-a31c-eb59365e044e 1858 +1803 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor None None There is not a device the student uses to complete learning activities away from school. \N \N \N 2021-11-05 18:59:25.589182 2021-11-05 18:59:25.589115 39ac3ab6-c7e1-4c5f-b8f1-a7e1185ca511 1863 +1806 uri://ed-fi.org/PrimaryLearningDeviceProviderDescriptor Other Other The provider of the primary learning device is not yet defined. \N \N \N 2021-11-05 18:59:25.665506 2021-11-05 18:59:25.664314 8d321796-f05e-4d68-aa8f-8f4b7308f808 1866 +1810 uri://ed-fi.org/ProgramAssignmentDescriptor Special Education Special Education Special Education \N \N \N 2021-11-05 18:59:25.755918 2021-11-05 18:59:25.754719 a4091e3e-1089-4276-b44f-b995360133a8 1870 +1816 uri://ed-fi.org/ProgramSponsorDescriptor Business Business Business \N \N \N 2021-11-05 18:59:25.858951 2021-11-05 18:59:25.857607 d52e90be-d414-48ab-99a5-29e2fd2968a3 1876 +1821 uri://ed-fi.org/ProgramSponsorDescriptor Local Education Agency Local Education Agency Local Education Agency \N \N \N 2021-11-05 18:59:25.873976 2021-11-05 18:59:25.873936 412e6aa6-7ee8-47f6-b4ca-e0db227f6e13 1881 +1824 uri://ed-fi.org/ProgramSponsorDescriptor Postsecondary institution Postsecondary institution Postsecondary institution \N \N \N 2021-11-05 18:59:25.889044 2021-11-05 18:59:25.888883 ec9bb4cc-73e3-4481-95ae-b384a4f6c493 1884 +1831 uri://ed-fi.org/ProgramTypeDescriptor Bilingual Bilingual Bilingual \N \N \N 2021-11-05 18:59:25.977865 2021-11-05 18:59:25.976576 ec715d09-572b-4cd0-a1dc-b3a7def57dfa 1891 +1837 uri://ed-fi.org/ProgramTypeDescriptor Community/Junior College Education Program Community/Junior College Education Program Community/Junior College Education Program \N \N \N 2021-11-05 18:59:26.004031 2021-11-05 18:59:26.00399 33cc3b57-3b23-4c0c-b086-2f7206dc2ddf 1897 +1843 uri://ed-fi.org/ProgramTypeDescriptor English as a Second Language (ESL) English as a Second Language (ESL) English as a Second Language (ESL) \N \N \N 2021-11-05 18:59:26.018523 2021-11-05 18:59:26.018441 b9b6aa39-5368-4b1e-9204-699a2720cf9a 1903 +1851 uri://ed-fi.org/ProgramTypeDescriptor Health Services Program Health Services Program Health Services Program \N \N \N 2021-11-05 18:59:26.040525 2021-11-05 18:59:26.040457 d0ee6106-1918-4b55-8fcf-5a80345e78b4 1911 +1888 uri://ed-fi.org/ProgressDescriptor Proficient Proficient Proficient \N \N \N 2021-11-05 18:59:26.219701 2021-11-05 18:59:26.218517 07a833f6-df0d-406d-b8ea-b492fc6d125c 1948 +1894 uri://ed-fi.org/ProgressLevelDescriptor No Change No Change No Change \N \N \N 2021-11-05 18:59:26.240016 2021-11-05 18:59:26.239123 631d36a1-9b66-4bc7-962e-d233a05a89cb 1954 +1898 uri://ed-fi.org/ProviderCategoryDescriptor Family child care home Family child care home Family child care home \N \N \N 2021-11-05 18:59:26.328349 2021-11-05 18:59:26.327062 d918a023-e9bc-4248-9ce9-1f53eaedf53f 1958 +1901 uri://ed-fi.org/ProviderCategoryDescriptor Ministry care Ministry care Ministry care \N \N \N 2021-11-05 18:59:26.347366 2021-11-05 18:59:26.34698 971266e5-ec1d-4215-826c-406df0846d10 1961 +1905 uri://ed-fi.org/ProviderCategoryDescriptor Resident camps Resident camps Resident camps \N \N \N 2021-11-05 18:59:26.359089 2021-11-05 18:59:26.359049 c50283d3-0be1-4aba-8458-e52f60703026 1965 +1912 uri://ed-fi.org/ProviderCategoryDescriptor Licensed Day Care Center DEPRECATED: Licensed Day Care Center DEPRECATED: Licensed Day Care Center \N \N \N 2021-11-05 18:59:26.378103 2021-11-05 18:59:26.378052 a82468dd-dbda-400e-8846-a65da4668ad5 1972 +1917 uri://ed-fi.org/ProviderProfitabilityDescriptor Nonprofit Nonprofit Nonprofit \N \N \N 2021-11-05 18:59:26.479706 2021-11-05 18:59:26.478481 a1a24a20-bbe0-44b3-96e8-1f96f4d13e12 1977 +1921 uri://ed-fi.org/ProviderStatusDescriptor Inactive Inactive Inactive \N \N \N 2021-11-05 18:59:26.499932 2021-11-05 18:59:26.499413 42595ab0-3a6f-4a5e-9d6a-52b3ce2724ed 1981 +1922 uri://ed-fi.org/PublicationStatusDescriptor Published Published Published \N \N \N 2021-11-05 18:59:26.576367 2021-11-05 18:59:26.575116 9c04a26e-6665-4b36-a2e0-0e758d30b330 1982 +1930 uri://ed-fi.org/QuestionFormDescriptor Dropdown Dropdown Dropdown \N \N \N 2021-11-05 18:59:26.667231 2021-11-05 18:59:26.665195 24475db8-4b8f-4d40-b491-6cf28f94bd0b 1990 +1934 uri://ed-fi.org/QuestionFormDescriptor Textbox Textbox Textbox \N \N \N 2021-11-05 18:59:26.68616 2021-11-05 18:59:26.686089 c7f522d6-45d4-4de5-8d1a-7bbc46698f68 1994 +1935 uri://ed-fi.org/RaceDescriptor American Indian - Alaska Native American Indian - Alaska Native American Indian - Alaska Native \N \N \N 2021-11-05 18:59:26.764045 2021-11-05 18:59:26.762871 12eb8745-f0d0-404a-908e-5416de429b2a 1995 +1940 uri://ed-fi.org/RaceDescriptor White White White \N \N \N 2021-11-05 18:59:26.781182 2021-11-05 18:59:26.779857 36f3f770-26f7-497d-bbf1-f713f0fb24d4 2000 +1945 uri://ed-fi.org/ReasonExitedDescriptor Moved out of state Moved out of state Moved out of state \N \N \N 2021-11-05 18:59:26.86374 2021-11-05 18:59:26.861851 1c1d49a2-251b-4fde-a360-88f370bcdbaa 2005 +1948 uri://ed-fi.org/ReasonExitedDescriptor Suspended or expelled from school Suspended or expelled from school Suspended or expelled from school \N \N \N 2021-11-05 18:59:26.882136 2021-11-05 18:59:26.882012 02445385-cea8-461c-9d99-836de7057273 2008 +1953 uri://ed-fi.org/ReasonNotTestedDescriptor Absent Absent Absent \N \N \N 2021-11-05 18:59:26.981033 2021-11-05 18:59:26.979831 faeaf343-5a7c-4bdb-83dc-057060e0f52e 2013 +1960 uri://ed-fi.org/ReasonNotTestedDescriptor LEP postponement LEP postponement LEP postponement \N \N \N 2021-11-05 18:59:27.004542 2021-11-05 18:59:27.004507 4f8376e6-3c05-4d17-ab53-6636bc35d900 2020 +1961 uri://ed-fi.org/ReasonNotTestedDescriptor Not tested (ARD decision) Not tested (ARD decision) Not tested (ARD decision) \N \N \N 2021-11-05 18:59:27.015184 2021-11-05 18:59:27.015021 aebefff1-0571-404d-bee2-1e0ced34d799 2021 +1964 uri://ed-fi.org/ReasonNotTestedDescriptor Previously passed the examination Previously passed the examination Previously passed the examination \N \N \N 2021-11-05 18:59:27.019529 2021-11-05 18:59:27.019477 6894db63-c55a-4ec7-8ced-7d8fbc1ad2c4 2024 +1775 uri://ed-fi.org/PopulationServedDescriptor Migrant Students Migrant Students Migrant Students \N \N \N 2021-11-05 18:59:25.268056 2021-11-05 18:59:25.268012 df7e355a-a326-499d-9bc5-131aac7b2ea7 1835 +1776 uri://ed-fi.org/PopulationServedDescriptor Special Education Students Special Education Students Special Education Students \N \N \N 2021-11-05 18:59:25.277816 2021-11-05 18:59:25.277744 cee6a650-4168-49ff-8aaa-b691d69c4be8 1836 +1778 uri://ed-fi.org/PostingResultDescriptor Posting Cancelled Posting Cancelled Posting Cancelled \N \N \N 2021-11-05 18:59:25.352623 2021-11-05 18:59:25.351198 de68eebc-7209-4348-8d9f-bc7400b26244 1838 +1780 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor College Acceptance College Acceptance College Acceptance \N \N \N 2021-11-05 18:59:25.365855 2021-11-05 18:59:25.364664 bcd1d21c-2764-4d65-bb69-4339fc441f67 1840 +1783 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor College Degree Received College Degree Received College Degree Received \N \N \N 2021-11-05 18:59:25.373313 2021-11-05 18:59:25.372957 24c5d298-fffd-4e70-b88b-3c6f53542202 1843 +1785 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor College Enrollment College Enrollment College Enrollment \N \N \N 2021-11-05 18:59:25.379706 2021-11-05 18:59:25.379585 d7f0c20c-24c8-494d-a370-d9a6fcd65726 1845 +1786 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor College Selection College Selection College Selection \N \N \N 2021-11-05 18:59:25.384025 2021-11-05 18:59:25.383976 eb96d840-d44e-4879-825e-a218fc782b2d 1846 +1789 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor Remedial Enrollment - ELA Remedial Enrollment - ELA Remedial Enrollment - ELA \N \N \N 2021-11-05 18:59:25.391554 2021-11-05 18:59:25.391513 cae74433-9fa3-4268-aa33-3df28d578610 1849 +1790 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor Student Interest Student Interest Student Interest \N \N \N 2021-11-05 18:59:25.394824 2021-11-05 18:59:25.394767 fc4dc20c-ea76-4619-b438-471b33e17c29 1850 +1791 uri://ed-fi.org/PostSecondaryInstitutionLevelDescriptor At least 2 but less than 4 years At least 2 but less than 4 years At least 2 but less than 4 years \N \N \N 2021-11-05 18:59:25.472593 2021-11-05 18:59:25.470933 f6528644-5307-43c7-903b-54b3ee281ee0 1851 +1796 uri://ed-fi.org/PrimaryLearningDeviceAccessDescriptor Not Shared Not Shared The primary learning device is not shared with another individual. \N \N \N 2021-11-05 18:59:25.493695 2021-11-05 18:59:25.493239 f8f65739-0418-4b74-bdc5-13597fe0a2b3 1856 +1800 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor Desktop Computer Desktop Computer A desktop computer is the type of device the student uses most often to complete learning activities away from school. \N \N \N 2021-11-05 18:59:25.570597 2021-11-05 18:59:25.568246 ca90953d-0ca1-4ae4-9bed-02859046ebb6 1860 +1802 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor Smartphone Smartphone A Smartphone is the type of device the student uses most often to complete learning activities away from school. \N \N \N 2021-11-05 18:59:25.588618 2021-11-05 18:59:25.588573 9fceb51e-3a1e-4acc-b08f-3aa857a8a316 1862 +1804 uri://ed-fi.org/PrimaryLearningDeviceProviderDescriptor Personal Personal The provider of the primary learning device is the student or guardian. \N \N \N 2021-11-05 18:59:25.665504 2021-11-05 18:59:25.66431 b4ec5002-b64f-4f54-ac62-2425870de91d 1864 +1808 uri://ed-fi.org/ProficiencyDescriptor Not Proficient Not Proficient Not Proficient \N \N \N 2021-11-05 18:59:25.68376 2021-11-05 18:59:25.683713 c85eb59a-c660-47c5-9379-ac8eb9489418 1868 +1809 uri://ed-fi.org/ProgramAssignmentDescriptor Regular Education Regular Education Regular Education \N \N \N 2021-11-05 18:59:25.755919 2021-11-05 18:59:25.754735 37436ee1-1e64-426a-89bf-1f1992a164af 1869 +1814 uri://ed-fi.org/ProgramAssignmentDescriptor Title I-Academic Title I-Academic Title I-Academic \N \N \N 2021-11-05 18:59:25.773314 2021-11-05 18:59:25.77327 afd8688a-6734-4118-ac6c-62160d9f11ea 1874 +1815 uri://ed-fi.org/ProgramSponsorDescriptor Education organization network Education organization network Education organization network \N \N \N 2021-11-05 18:59:25.858951 2021-11-05 18:59:25.857606 80627c4b-2ed7-4ded-95ef-72800eb7a5a4 1875 +1819 uri://ed-fi.org/ProgramSponsorDescriptor Non-profit organization Non-profit organization Non-profit organization \N \N \N 2021-11-05 18:59:25.873879 2021-11-05 18:59:25.873788 4e40a219-67df-4e94-aa96-200dbff6770c 1879 +1823 uri://ed-fi.org/ProgramSponsorDescriptor Private organization Private organization Private organization \N \N \N 2021-11-05 18:59:25.888918 2021-11-05 18:59:25.88881 1c7b86f5-6241-40af-a1e5-fe38f96926f2 1883 +1828 uri://ed-fi.org/ProgramTypeDescriptor Adult/Continuing Education Adult/Continuing Education Adult/Continuing Education \N \N \N 2021-11-05 18:59:25.977722 2021-11-05 18:59:25.976569 e6c1f591-9491-45c5-b1e6-47a6c4861f10 1889 +1832 uri://ed-fi.org/ProgramTypeDescriptor Cocurricular Programs Cocurricular Programs Cocurricular Programs \N \N \N 2021-11-05 18:59:25.993029 2021-11-05 18:59:25.992666 4b76d1fe-be83-422d-ab62-18337a9506e9 1892 +1835 uri://ed-fi.org/ProgramTypeDescriptor Bilingual Summer Bilingual Summer Bilingual Summer \N \N \N 2021-11-05 18:59:25.996123 2021-11-05 18:59:25.996045 c5dff6af-a757-4a63-b1af-68eeacd6aa71 1895 +1838 uri://ed-fi.org/ProgramTypeDescriptor Compensatory Services for Disadvantaged Students Compensatory Services for Disadvantaged Students Compensatory Services for Disadvantaged Students \N \N \N 2021-11-05 18:59:26.005266 2021-11-05 18:59:26.005132 74fae78e-e272-46d3-bdd1-1d75813e7bda 1898 +1842 uri://ed-fi.org/ProgramTypeDescriptor Early Intervention Services Part C Early Intervention Services Part C Early Intervention Services Part C \N \N \N 2021-11-05 18:59:26.016801 2021-11-05 18:59:26.016237 54e7a502-0f22-461a-bd70-2fcbabcf2473 1902 +1845 uri://ed-fi.org/ProgramTypeDescriptor Extended Day/Child Care Services Extended Day/Child Care Services Extended Day/Child Care Services \N \N \N 2021-11-05 18:59:26.02644 2021-11-05 18:59:26.02638 806b1fa0-231f-46e4-b5e4-36e3ca9f75b0 1905 +1847 uri://ed-fi.org/ProgramTypeDescriptor Fee For Service Fee For Service Fee For Service \N \N \N 2021-11-05 18:59:26.031075 2021-11-05 18:59:26.031003 dce8b251-24cb-43e0-9c31-ae880c4c3758 1907 +1850 uri://ed-fi.org/ProgramTypeDescriptor Head Start Head Start Head Start \N \N \N 2021-11-05 18:59:26.037105 2021-11-05 18:59:26.037062 8637ed72-f9eb-4566-be59-95bc0143e569 1910 +1853 uri://ed-fi.org/ProgramTypeDescriptor Home Visiting Home Visiting Home Visiting \N \N \N 2021-11-05 18:59:26.047622 2021-11-05 18:59:26.047149 9aba393a-ad11-48a4-b2fd-0a0882991fa0 1913 +1856 uri://ed-fi.org/ProgramTypeDescriptor Immigrant Education Immigrant Education Immigrant Education \N \N \N 2021-11-05 18:59:26.052758 2021-11-05 18:59:26.052721 2898be69-01bc-4c9d-9fa8-721046b74535 1916 +1857 uri://ed-fi.org/ProgramTypeDescriptor Independent Study Independent Study Independent Study \N \N \N 2021-11-05 18:59:26.056798 2021-11-05 18:59:26.056707 69958d4b-997f-48a7-a2e6-8ecc4c95a927 1917 +1860 uri://ed-fi.org/ProgramTypeDescriptor Kindergarten - Extended Day Kindergarten - Extended Day Kindergarten - Extended Day \N \N \N 2021-11-05 18:59:26.062727 2021-11-05 18:59:26.062711 23b50ea4-ba58-4e0c-88f0-5ad4f22315e0 1920 +1862 uri://ed-fi.org/ProgramTypeDescriptor Kindergarten - Half Day Kindergarten - Half Day Kindergarten - Half Day \N \N \N 2021-11-05 18:59:26.067767 2021-11-05 18:59:26.067722 f7308329-12fb-43ae-83ec-f51ea818bd3a 1922 +1863 uri://ed-fi.org/ProgramTypeDescriptor Library/Media Services Program Library/Media Services Program Library/Media Services Program \N \N \N 2021-11-05 18:59:26.070581 2021-11-05 18:59:26.070556 72e8b7b5-022c-49f1-ab5c-ee57cf0ca3e3 1923 +1866 uri://ed-fi.org/ProgramTypeDescriptor Neglected and Delinquent Program Neglected and Delinquent Program Neglected and Delinquent Program \N \N \N 2021-11-05 18:59:26.078178 2021-11-05 18:59:26.07785 67e6d8a4-5955-4b7d-b213-1ab187b91ee0 1926 +1868 uri://ed-fi.org/ProgramTypeDescriptor Optional Flexible School Day Program (OFSDP) Optional Flexible School Day Program (OFSDP) Optional Flexible School Day Program (OFSDP) \N \N \N 2021-11-05 18:59:26.081995 2021-11-05 18:59:26.081442 5631f2cc-db69-46db-96e4-d07733d1ddb6 1928 +1869 uri://ed-fi.org/ProgramTypeDescriptor Prekindergarten - Extended Day Prekindergarten - Extended Day Prekindergarten - Extended Day \N \N \N 2021-11-05 18:59:26.089147 2021-11-05 18:59:26.089083 9b102b4d-b1d1-45db-a875-c39318b54fd3 1929 +1872 uri://ed-fi.org/ProgramTypeDescriptor Prekindergarten - Half Day Prekindergarten - Half Day Prekindergarten - Half Day \N \N \N 2021-11-05 18:59:26.093664 2021-11-05 18:59:26.093581 469533c4-5e10-447a-abbd-03b922f3bbe8 1932 +1873 uri://ed-fi.org/ProgramTypeDescriptor Public Preschool Public Preschool Public Preschool \N \N \N 2021-11-05 18:59:26.098786 2021-11-05 18:59:26.098734 32ddc835-d4e2-46a6-9a6d-3a72f191ba7b 1933 +1876 uri://ed-fi.org/ProgramTypeDescriptor Remedial Education Remedial Education Remedial Education \N \N \N 2021-11-05 18:59:26.104881 2021-11-05 18:59:26.104836 00a121f1-1fe0-4cb3-a546-af5c1903c0be 1936 +1788 uri://ed-fi.org/PostSecondaryEventCategoryDescriptor Remedial Enrollment - Math Remedial Enrollment - Math Remedial Enrollment - Math \N \N \N 2021-11-05 18:59:25.391469 2021-11-05 18:59:25.391419 51b4094a-38b4-47c4-823b-3c4edf7b9aa6 1848 +1792 uri://ed-fi.org/PostSecondaryInstitutionLevelDescriptor Four or more years Four or more years Four or more years \N \N \N 2021-11-05 18:59:25.472577 2021-11-05 18:59:25.470952 ee2c2827-cbef-43a6-bd84-ccfa1043eb12 1852 +1794 uri://ed-fi.org/PrimaryLearningDeviceAccessDescriptor Shared Shared The primary learning device is shared with another individual. \N \N \N 2021-11-05 18:59:25.486486 2021-11-05 18:59:25.485303 3714f0a7-a3c7-47b7-95a0-a263c7e5339d 1854 +1795 uri://ed-fi.org/PrimaryLearningDeviceAccessDescriptor Unknown Unknown It is not known whether the primary learning device is shared with another individual. \N \N \N 2021-11-05 18:59:25.492607 2021-11-05 18:59:25.492531 0f815fff-b70c-407f-ab68-fcf8b2635ab3 1855 +1797 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor Laptop Computer Laptop Computer A Laptop Computer is the type of device the student uses most often to complete learning activities away from school. \N \N \N 2021-11-05 18:59:25.569595 2021-11-05 18:59:25.568246 c8af4989-a6bc-4ec8-a628-c4c550dc87e9 1857 +1801 uri://ed-fi.org/PrimaryLearningDeviceAwayFromSchoolDescriptor Other Other The type of device the student uses most often to complete learning activities away from school is not yet defined. \N \N \N 2021-11-05 18:59:25.588542 2021-11-05 18:59:25.588477 65c22d5e-9ff1-4e69-8ddb-a845309feeb4 1861 +1805 uri://ed-fi.org/PrimaryLearningDeviceProviderDescriptor School School The provider of the primary learning device is the school. \N \N \N 2021-11-05 18:59:25.665503 2021-11-05 18:59:25.664306 fd162e7f-5c2d-493f-9d8c-28f89c3c6e18 1865 +1807 uri://ed-fi.org/ProficiencyDescriptor Proficient Proficient Proficient \N \N \N 2021-11-05 18:59:25.67868 2021-11-05 18:59:25.67746 a26d8039-f70d-4bd3-a7f4-28dd508d3c2f 1867 +1811 uri://ed-fi.org/ProgramAssignmentDescriptor Other Other Other \N \N \N 2021-11-05 18:59:25.755917 2021-11-05 18:59:25.754715 2d07a1fa-bf39-42d6-908f-701ac33bff8e 1871 +1813 uri://ed-fi.org/ProgramAssignmentDescriptor Title I-Non-Academic Title I-Non-Academic Title I-Non-Academic \N \N \N 2021-11-05 18:59:25.77327 2021-11-05 18:59:25.773213 16c0e41d-0ded-42fe-9af2-dd6469224044 1873 +1817 uri://ed-fi.org/ProgramSponsorDescriptor Education Service Center Education Service Center Education Service Center \N \N \N 2021-11-05 18:59:25.859222 2021-11-05 18:59:25.857606 c9092f45-8bb4-4626-859b-5d3223543468 1877 +1818 uri://gbisd.edu/ProgramCharacteristicDescriptor After School After School After School \N \N \N 2021-11-05 18:59:25.869396 2021-11-05 18:59:25.868158 1499a38b-746c-42b5-be35-17eb402c6f19 1878 +1820 uri://ed-fi.org/ProgramSponsorDescriptor Federal government Federal government Federal government \N \N \N 2021-11-05 18:59:25.874028 2021-11-05 18:59:25.873985 93350c26-f966-4547-9e81-f2c1218dc414 1880 +1822 uri://ed-fi.org/ProgramSponsorDescriptor Other Other Other \N \N \N 2021-11-05 18:59:25.884496 2021-11-05 18:59:25.884437 c22ea1be-df08-4d05-9d4b-14a4e9610591 1882 +1825 uri://ed-fi.org/ProgramSponsorDescriptor Religious organization Religious organization Religious organization \N \N \N 2021-11-05 18:59:25.890659 2021-11-05 18:59:25.890619 22f816b2-4c76-44ac-bcd3-7694abfd6c1c 1885 +1826 uri://ed-fi.org/ProgramSponsorDescriptor School School School \N \N \N 2021-11-05 18:59:25.894969 2021-11-05 18:59:25.894824 32cd2962-de54-48d7-a17b-c29814a8b79f 1886 +1827 uri://ed-fi.org/ProgramSponsorDescriptor State Education Agency State Education Agency State Education Agency \N \N \N 2021-11-05 18:59:25.8994 2021-11-05 18:59:25.899353 7ca324eb-d6d9-45c8-97b6-a5402533f6d6 1887 +1829 uri://ed-fi.org/ProgramTypeDescriptor Alternative Education Alternative Education Alternative Education \N \N \N 2021-11-05 18:59:25.977722 2021-11-05 18:59:25.976556 09a06228-8c6a-47ba-9141-8b030d8eaf97 1888 +1833 uri://ed-fi.org/ProgramTypeDescriptor College Preparatory College Preparatory College Preparatory \N \N \N 2021-11-05 18:59:25.993597 2021-11-05 18:59:25.993558 d104120d-0926-4a52-abbb-e6b5aa4299e7 1893 +1836 uri://ed-fi.org/ProgramTypeDescriptor Community Service Program Community Service Program Community Service Program \N \N \N 2021-11-05 18:59:26.001052 2021-11-05 18:59:26.001008 25bf4b68-1fa3-4d40-83f3-13d20613a980 1896 +1839 uri://ed-fi.org/ProgramTypeDescriptor Counseling Services Counseling Services Counseling Services \N \N \N 2021-11-05 18:59:26.006298 2021-11-05 18:59:26.006201 9b0fa228-734b-4c6d-96e5-03c051a60c1e 1899 +1840 uri://ed-fi.org/ProgramTypeDescriptor District-Funded GED District-Funded GED District-Funded GED \N \N \N 2021-11-05 18:59:26.010399 2021-11-05 18:59:26.010352 855b49c3-8709-451f-875e-f5e027d81983 1900 +1841 uri://ed-fi.org/ProgramTypeDescriptor Early Head Start Early Head Start Early Head Start \N \N \N 2021-11-05 18:59:26.015607 2021-11-05 18:59:26.015427 7877c431-ad92-4483-8612-5d5370151f1d 1901 +1844 uri://ed-fi.org/ProgramTypeDescriptor Even Start Even Start Even Start \N \N \N 2021-11-05 18:59:26.022307 2021-11-05 18:59:26.022261 9d9515ee-0e70-4812-9b16-ff343b8a9c4c 1904 +1846 uri://ed-fi.org/ProgramTypeDescriptor Expelled Education Expelled Education Expelled Education \N \N \N 2021-11-05 18:59:26.027444 2021-11-05 18:59:26.027383 0b12a32d-e4ce-47ef-82d4-8831d0898679 1906 +1848 uri://ed-fi.org/ProgramTypeDescriptor Foreign Exchange Foreign Exchange Foreign Exchange \N \N \N 2021-11-05 18:59:26.031829 2021-11-05 18:59:26.031735 4a31f457-bd5d-47b5-a4bb-979215c7bd65 1908 +1849 uri://ed-fi.org/ProgramTypeDescriptor Gifted and Talented Gifted and Talented Gifted and Talented \N \N \N 2021-11-05 18:59:26.035848 2021-11-05 18:59:26.03578 92e7028d-fa84-4667-90f9-473a084ce408 1909 +1852 uri://ed-fi.org/ProgramTypeDescriptor High School Equivalency Program (HSEP) High School Equivalency Program (HSEP) High School Equivalency Program (HSEP) \N \N \N 2021-11-05 18:59:26.041589 2021-11-05 18:59:26.04155 2d3fed83-b922-41b1-9503-8b0a0ddbdfce 1912 +1854 uri://ed-fi.org/ProgramTypeDescriptor Homeless Homeless Homeless \N \N \N 2021-11-05 18:59:26.04898 2021-11-05 18:59:26.048835 0f796fee-26ec-4ebb-b8dd-12b8ad9cbc87 1914 +1855 uri://ed-fi.org/ProgramTypeDescriptor IDEA IDEA IDEA \N \N \N 2021-11-05 18:59:26.052756 2021-11-05 18:59:26.052244 d99ce3b1-a90d-4da3-94c8-16803ef4f6b9 1915 +1858 uri://ed-fi.org/ProgramTypeDescriptor Indian Education Indian Education Indian Education \N \N \N 2021-11-05 18:59:26.058225 2021-11-05 18:59:26.058187 ea75397c-ca81-46ef-b97d-3bbeffd5c4c1 1918 +1859 uri://ed-fi.org/ProgramTypeDescriptor International Baccalaureate International Baccalaureate International Baccalaureate \N \N \N 2021-11-05 18:59:26.060898 2021-11-05 18:59:26.060809 af2dcd12-e168-4b5d-b4de-0dbf3dbeab30 1919 +1861 uri://ed-fi.org/ProgramTypeDescriptor Kindergarten - Full Day Kindergarten - Full Day Kindergarten - Full Day \N \N \N 2021-11-05 18:59:26.066937 2021-11-05 18:59:26.06647 ff7b4f9a-ee4b-476b-8fe2-aa08d79c8e67 1921 +1864 uri://ed-fi.org/ProgramTypeDescriptor Magnet/Special Program Emphasis Magnet/Special Program Emphasis Magnet/Special Program Emphasis \N \N \N 2021-11-05 18:59:26.071318 2021-11-05 18:59:26.071274 549c22be-011f-4753-b56a-9ec83afa120b 1924 +1865 uri://ed-fi.org/ProgramTypeDescriptor Migrant Education Migrant Education Migrant Education \N \N \N 2021-11-05 18:59:26.076638 2021-11-05 18:59:26.076586 fc2a2282-51f2-44a1-b505-a5e7e4eab68b 1925 +1867 uri://ed-fi.org/ProgramTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:26.081861 2021-11-05 18:59:26.08122 b2ad30c0-bdd9-4605-9263-b4b72479ba28 1927 +1870 uri://ed-fi.org/ProgramTypeDescriptor Prekindergarten - Full Day Prekindergarten - Full Day Prekindergarten - Full Day \N \N \N 2021-11-05 18:59:26.089297 2021-11-05 18:59:26.087883 fced03aa-7b81-4dcc-a743-63670ad4a627 1930 +1871 uri://ed-fi.org/ProgramTypeDescriptor Preschool Special Education Preschool Special Education Preschool Special Education \N \N \N 2021-11-05 18:59:26.093535 2021-11-05 18:59:26.093492 0bcbd078-fe16-4621-aa7f-94c38165097f 1931 +1874 uri://ed-fi.org/ProgramTypeDescriptor Regular Education Regular Education Regular Education \N \N \N 2021-11-05 18:59:26.099681 2021-11-05 18:59:26.09958 1a455107-0b46-45e3-a94c-6ef4ab1d9c53 1934 +1875 uri://ed-fi.org/ProgramTypeDescriptor Section 504 Placement Section 504 Placement Section 504 Placement \N \N \N 2021-11-05 18:59:26.104852 2021-11-05 18:59:26.104761 c1bf68f5-9f59-4ba8-b6e4-3955eef8dd45 1935 +1877 uri://ed-fi.org/ProgramTypeDescriptor Service Learning Service Learning Service Learning \N \N \N 2021-11-05 18:59:26.109607 2021-11-05 18:59:26.109426 657741cc-80d9-430e-bf46-5edeb1b66113 1937 +1880 uri://ed-fi.org/ProgramTypeDescriptor Student Retention/Dropout Prevention Student Retention/Dropout Prevention Student Retention/Dropout Prevention \N \N \N 2021-11-05 18:59:26.115816 2021-11-05 18:59:26.115732 beaf2e66-331a-4b7d-9e53-64d82691df27 1940 +2763 uri://ed-fi.org/TribalAffiliationDescriptor Nondalton Nondalton Nondalton Village \N \N \N 2021-11-05 18:59:33.216542 2021-11-05 18:59:33.216274 942d9cc5-425a-4dfb-b9aa-36c1884342ef 2823 +1878 uri://ed-fi.org/ProgramTypeDescriptor Special Education Special Education Special Education \N \N \N 2021-11-05 18:59:26.109657 2021-11-05 18:59:26.109542 f0f35f96-9fc5-40bc-8467-db2146988ab9 1938 +1879 uri://ed-fi.org/ProgramTypeDescriptor Student School Food Service Student School Food Service Student School Food Service \N \N \N 2021-11-05 18:59:26.114775 2021-11-05 18:59:26.114692 e415451a-2372-4494-9961-777601f349cc 1939 +1882 uri://ed-fi.org/ProgramTypeDescriptor Teacher Professional Development/Mentoring Teacher Professional Development/Mentoring Teacher Professional Development/Mentoring \N \N \N 2021-11-05 18:59:26.120802 2021-11-05 18:59:26.12011 3e629abe-1057-4bbf-ae34-519db70767df 1942 +1884 uri://ed-fi.org/ProgramTypeDescriptor Title I Part A Title I Part A Title I Part A \N \N \N 2021-11-05 18:59:26.126778 2021-11-05 18:59:26.126707 74e6aeda-79d5-41bc-b165-b82bc41ecd4b 1944 +1890 uri://ed-fi.org/ProgressDescriptor No Progress No Progress No Progress \N \N \N 2021-11-05 18:59:26.219773 2021-11-05 18:59:26.218538 a740e589-a0a6-40ed-bb78-b06b028d40a3 1950 +1893 uri://ed-fi.org/ProgressLevelDescriptor Up More Than One Grade Up More Than One Grade Up More Than One Grade \N \N \N 2021-11-05 18:59:26.240146 2021-11-05 18:59:26.240026 0eb174f4-15d5-4c6b-b789-f01d292ef47e 1953 +1896 uri://ed-fi.org/ProviderCategoryDescriptor Care in your own home Care in your own home Care in your own home \N \N \N 2021-11-05 18:59:26.328346 2021-11-05 18:59:26.327049 dc274cbe-a3d7-4ad3-a5c8-3be352d4a4b2 1956 +1900 uri://ed-fi.org/ProviderCategoryDescriptor Head Start and Early Head Start Head Start and Early Head Start Head Start and Early Head Start \N \N \N 2021-11-05 18:59:26.347059 2021-11-05 18:59:26.34687 df4cfb3a-bb8e-40b1-9b41-2dc98e7eeffc 1960 +1909 uri://ed-fi.org/ProviderCategoryDescriptor School-based child care School-based child care School-based child care \N \N \N 2021-11-05 18:59:26.368595 2021-11-05 18:59:26.368401 d57a0f87-1a36-4ce8-815f-a0ab6ce6271c 1969 +1911 uri://ed-fi.org/ProviderCategoryDescriptor Center-SA Only DEPRECATED: Center-SA Only DEPRECATED: Center-SA Only \N \N \N 2021-11-05 18:59:26.37441 2021-11-05 18:59:26.374355 21dc0d10-f9eb-40c0-b8dc-eb378bea7c43 1971 +1915 uri://ed-fi.org/ProviderCategoryDescriptor Not Applicable DEPRECATED: Not Applicable DEPRECATED: Not Applicable \N \N \N 2021-11-05 18:59:26.386188 2021-11-05 18:59:26.386143 6d269cd7-6274-4964-a4e0-0ef745b9b931 1975 +1918 uri://ed-fi.org/ProviderProfitabilityDescriptor Government Run Government Run Government Run \N \N \N 2021-11-05 18:59:26.479836 2021-11-05 18:59:26.47847 bee7b05d-4b0c-44c2-9e51-72aa2af9361c 1978 +1920 uri://ed-fi.org/ProviderStatusDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:26.499425 2021-11-05 18:59:26.49936 55582254-96af-4022-a638-ce8446de7705 1980 +1924 uri://ed-fi.org/PublicationStatusDescriptor Draft Draft Draft \N \N \N 2021-11-05 18:59:26.576356 2021-11-05 18:59:26.575104 3685df24-6538-45e9-954f-3247ce61540f 1984 +1929 uri://ed-fi.org/QuestionFormDescriptor Matrix of numeric ratings Matrix of numeric ratings Matrix of numeric ratings \N \N \N 2021-11-05 18:59:26.666758 2021-11-05 18:59:26.665205 1271cc55-41c1-4d4e-b677-019fc70efcc3 1989 +1931 uri://ed-fi.org/QuestionFormDescriptor Matrix of dropdowns Matrix of dropdowns Matrix of dropdowns \N \N \N 2021-11-05 18:59:26.683049 2021-11-05 18:59:26.682878 50118fea-d46a-4eed-92ab-81c541925567 1991 +1937 uri://ed-fi.org/RaceDescriptor Choose Not to Respond Choose Not to Respond Choose Not to Respond \N \N \N 2021-11-05 18:59:26.764255 2021-11-05 18:59:26.762881 f27cee2e-f336-428c-a3b3-1021efa9bdb6 1997 +1939 uri://ed-fi.org/RaceDescriptor Other Other Other \N \N \N 2021-11-05 18:59:26.779228 2021-11-05 18:59:26.778738 8bbe56fa-78a6-4fd4-8f22-bfb53755107f 1999 +1943 uri://ed-fi.org/ReasonExitedDescriptor Discontinued schooling Discontinued schooling Discontinued schooling \N \N \N 2021-11-05 18:59:26.863029 2021-11-05 18:59:26.86184 ad575943-0719-4ea4-b6d3-12c3ad2ae2ed 2003 +1947 uri://ed-fi.org/ReasonExitedDescriptor Other Other Other \N \N \N 2021-11-05 18:59:26.881983 2021-11-05 18:59:26.881797 8fff15f8-e13b-4a95-ab4f-fa73c6799b55 2007 +1951 uri://ed-fi.org/ReasonExitedDescriptor Withdrawal by a parent (or guardian) Withdrawal by a parent (or guardian) Withdrawal by a parent (or guardian) \N \N \N 2021-11-05 18:59:26.89702 2021-11-05 18:59:26.89521 df51e9d9-58d8-4e77-ae20-9e64ca9f514c 2011 +1955 uri://ed-fi.org/ReasonNotTestedDescriptor Disruptive behavior Disruptive behavior Disruptive behavior \N \N \N 2021-11-05 18:59:26.981335 2021-11-05 18:59:26.979842 b71a25df-db86-4d46-9b98-4ea954cbda49 2015 +1957 uri://ed-fi.org/ReasonNotTestedDescriptor LEP exempt LEP exempt LEP exempt \N \N \N 2021-11-05 18:59:27.001857 2021-11-05 18:59:27.001529 eb0b4d72-0851-48ed-af9b-039a032c6377 2017 +1963 uri://ed-fi.org/ReasonNotTestedDescriptor Other Other Other \N \N \N 2021-11-05 18:59:27.016738 2021-11-05 18:59:27.016542 ab031628-aa02-455e-aa5c-7972cbe9c9d1 2023 +1966 uri://ed-fi.org/ReasonNotTestedDescriptor Refusal by student Refusal by student Refusal by student \N \N \N 2021-11-05 18:59:27.030435 2021-11-05 18:59:27.030383 2cd1d453-6e72-4bbb-a955-a8080008ac85 2026 +1969 uri://ed-fi.org/RecognitionTypeDescriptor Awarding of units of value Awarding of units of value Awarding of units of value \N \N \N 2021-11-05 18:59:27.113867 2021-11-05 18:59:27.112322 be1e3544-6645-41f2-accc-8fad0a7578be 2029 +1971 uri://ed-fi.org/RecognitionTypeDescriptor Completion of requirement, but no units awarded Completion of requirement, but no units of value awarded Completion of requirement, but no units of value awarded \N \N \N 2021-11-05 18:59:27.133704 2021-11-05 18:59:27.133503 14592a13-b53e-46c8-849b-0c5e61e6b36e 2031 +1974 uri://ed-fi.org/RecognitionTypeDescriptor Honor award Honor award Honor award \N \N \N 2021-11-05 18:59:27.140497 2021-11-05 18:59:27.139932 bacbc0b2-6140-4393-8c86-b3f265e5ed18 2034 +1976 uri://ed-fi.org/RecognitionTypeDescriptor Points Points Points \N \N \N 2021-11-05 18:59:27.15027 2021-11-05 18:59:27.148607 1bfe350f-7bee-47c9-ac2e-ff60c9be3d58 2036 +1979 uri://ed-fi.org/RelationDescriptor BrotherInLaw BrotherInLaw BrotherInLaw \N \N \N 2021-11-05 18:59:27.236891 2021-11-05 18:59:27.235423 539d242d-f129-4cac-b681-6db72398313c 2039 +1983 uri://ed-fi.org/RelationDescriptor Cousin Cousin Cousin \N \N \N 2021-11-05 18:59:27.256186 2021-11-05 18:59:27.255489 e0973b92-ac89-438f-bdfc-e1a8f092721b 2043 +1987 uri://ed-fi.org/RelationDescriptor Employer Employer Employer \N \N \N 2021-11-05 18:59:27.282581 2021-11-05 18:59:27.282454 80b37045-cb64-4dfc-be6b-511e983a2391 2047 +1991 uri://ed-fi.org/RelationDescriptor FathersCivilPartner FathersCivilPartner FathersCivilPartner \N \N \N 2021-11-05 18:59:27.299135 2021-11-05 18:59:27.299017 610db499-6ed9-428c-ace8-1b3a25ba5fb7 2051 +1995 uri://ed-fi.org/RelationDescriptor Foster parent Foster parent Foster parent \N \N \N 2021-11-05 18:59:27.310015 2021-11-05 18:59:27.308626 f856c029-0e38-4f67-b3ef-64a7a9a77b73 2055 +1997 uri://ed-fi.org/RelationDescriptor Godparent Godparent Godparent \N \N \N 2021-11-05 18:59:27.314238 2021-11-05 18:59:27.313427 bd04cd1d-a2fb-4252-b50a-bf8686537288 2057 +2003 uri://ed-fi.org/RelationDescriptor Great Grandparent Great Grandparent Great Grandparent \N \N \N 2021-11-05 18:59:27.332242 2021-11-05 18:59:27.331505 2a1a248b-5707-4ebb-8dee-8601ad57f6aa 2063 +2006 uri://ed-fi.org/RelationDescriptor Mother Mother Mother \N \N \N 2021-11-05 18:59:27.343382 2021-11-05 18:59:27.342489 f5d447c0-659c-4967-ab1b-44c390a9990f 2066 +2009 uri://ed-fi.org/RelationDescriptor MothersCivilPartner MothersCivilPartner MothersCivilPartner \N \N \N 2021-11-05 18:59:27.352938 2021-11-05 18:59:27.352836 0c83eb31-2c00-4ed6-89e2-0fbe323d3622 2069 +2011 uri://ed-fi.org/RelationDescriptor MothersSignificantOther MothersSignificantOther MothersSignificantOther \N \N \N 2021-11-05 18:59:27.35805 2021-11-05 18:59:27.35787 15846f46-2740-497b-b999-4689785bdc36 2071 +2013 uri://ed-fi.org/RelationDescriptor Niece Niece Niece \N \N \N 2021-11-05 18:59:27.364184 2021-11-05 18:59:27.363706 ed4f7408-1d2e-4f02-a1b8-8f53de17f84c 2073 +2015 uri://ed-fi.org/RelationDescriptor Parent Parent Parent \N \N \N 2021-11-05 18:59:27.370012 2021-11-05 18:59:27.36972 e735f741-7af1-43e9-a9ce-db3cfb9382b9 2075 +2017 uri://ed-fi.org/RelationDescriptor Relative Relative Relative \N \N \N 2021-11-05 18:59:27.376012 2021-11-05 18:59:27.37596 b6f85077-343d-4cf4-8cf6-9d1c34c019c8 2077 +2019 uri://ed-fi.org/RelationDescriptor SisterInLaw SisterInLaw SisterInLaw \N \N \N 2021-11-05 18:59:27.388709 2021-11-05 18:59:27.387434 464bfb11-e2a6-4459-b81a-c8c5a75bf337 2079 +2026 uri://ed-fi.org/RelationDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:27.407279 2021-11-05 18:59:27.404765 96473463-51e0-4549-9cd3-b9d99cf3b8bd 2086 +2028 uri://ed-fi.org/RelationDescriptor Wife Wife Wife \N \N \N 2021-11-05 18:59:27.418886 2021-11-05 18:59:27.418832 57af0721-69f1-451e-9b1d-3d646e34982c 2088 +2031 uri://ed-fi.org/RepeatIdentifierDescriptor Repeated, counted in grade point average Repeated, counted in grade point average Repeated, counted in grade point average \N \N \N 2021-11-05 18:59:27.557786 2021-11-05 18:59:27.556232 43664d77-8915-47fa-9f5e-7e74baa5111e 2091 +1881 uri://ed-fi.org/ProgramTypeDescriptor Substance Abuse Education/Prevention Substance Abuse Education/Prevention Substance Abuse Education/Prevention \N \N \N 2021-11-05 18:59:26.12039 2021-11-05 18:59:26.119993 bea6ff70-dfcf-4d69-83b5-25456e9a5be4 1941 +1883 uri://ed-fi.org/ProgramTypeDescriptor Technical Preparatory Technical Preparatory Technical Preparatory \N \N \N 2021-11-05 18:59:26.126192 2021-11-05 18:59:26.12613 af523931-b72a-4011-b96d-ce88afd86d58 1943 +1885 uri://ed-fi.org/ProgramTypeDescriptor Title I Part D Subpart 1 Title I Part D Subpart 1 Title I Part D Subpart 1 \N \N \N 2021-11-05 18:59:26.130442 2021-11-05 18:59:26.130275 6a64aceb-bc38-49d9-a819-6833105991d5 1945 +1886 uri://ed-fi.org/ProgramTypeDescriptor Title I Part D Subpart 2 Title I Part D Subpart 2 Title I Part D Subpart 2 \N \N \N 2021-11-05 18:59:26.133497 2021-11-05 18:59:26.133442 e2e413af-bd84-4e65-90e4-2e2afc9457f1 1946 +1887 uri://ed-fi.org/ProgramTypeDescriptor Vocational Education Vocational Education Vocational Education \N \N \N 2021-11-05 18:59:26.137693 2021-11-05 18:59:26.136939 b586c19b-77c5-465a-8fa8-48bab85273d7 1947 +1889 uri://ed-fi.org/ProgressDescriptor Progress Progress Progress \N \N \N 2021-11-05 18:59:26.219701 2021-11-05 18:59:26.218518 bcec5230-d36e-4445-8f44-7e9307c9eaa1 1949 +1891 uri://ed-fi.org/ProgressLevelDescriptor Negative Grade Negative Grade Negative Grade \N \N \N 2021-11-05 18:59:26.228928 2021-11-05 18:59:26.227182 8272d8fd-a554-4597-8c3c-845febe6211e 1951 +1892 uri://ed-fi.org/ProgressLevelDescriptor Up One Grade Up One Grade Up One Grade \N \N \N 2021-11-05 18:59:26.238525 2021-11-05 18:59:26.238469 77835eae-a557-4023-a6e8-22cad38aedaf 1952 +1895 uri://ed-fi.org/ProviderCategoryDescriptor Community care Community care Community care \N \N \N 2021-11-05 18:59:26.328346 2021-11-05 18:59:26.327048 fc99c131-ad21-4f74-9312-0d3b2c199a16 1955 +1899 uri://ed-fi.org/ProviderCategoryDescriptor Family child care home - large Family child care home - large Family child care home - large \N \N \N 2021-11-05 18:59:26.345251 2021-11-05 18:59:26.345196 f880b76e-7977-4846-b3c3-909dfd698440 1959 +1902 uri://ed-fi.org/ProviderCategoryDescriptor On-premise child care On-premise child care On-premise child care \N \N \N 2021-11-05 18:59:26.348407 2021-11-05 18:59:26.348366 981f68f4-6c20-42ca-97bb-a4570eae3512 1962 +1903 uri://ed-fi.org/ProviderCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:26.355518 2021-11-05 18:59:26.355408 d5d16631-5fef-4fc5-b2c2-72881a98dd41 1963 +1904 uri://ed-fi.org/ProviderCategoryDescriptor Preschool Preschool Preschool \N \N \N 2021-11-05 18:59:26.358442 2021-11-05 18:59:26.358398 674f998d-4ccf-4149-92a5-30170d9f1b7a 1964 +1906 uri://ed-fi.org/ProviderCategoryDescriptor Residential treatment care Residential treatment care Residential treatment care \N \N \N 2021-11-05 18:59:26.361118 2021-11-05 18:59:26.360836 436a13bd-6404-4517-9d89-1c11fc8fe188 1966 +1907 uri://ed-fi.org/ProviderCategoryDescriptor School-age child care School-age child care School-age child care \N \N \N 2021-11-05 18:59:26.36439 2021-11-05 18:59:26.364367 3632d7fb-d0fb-44ea-858a-38489463582a 1967 +1908 uri://ed-fi.org/ProviderCategoryDescriptor Center-EC DEPRECATED: Center-EC DEPRECATED: Center-EC \N \N \N 2021-11-05 18:59:26.368462 2021-11-05 18:59:26.368321 df767a88-94d2-478e-83c4-5b994995b13e 1968 +1910 uri://ed-fi.org/ProviderCategoryDescriptor Center-EC with SA DEPRECATED: Center-EC with SA DEPRECATED: Center-EC with SA \N \N \N 2021-11-05 18:59:26.373486 2021-11-05 18:59:26.373017 97b7af2e-62f1-4171-9a4b-e69505bbd28e 1970 +1913 uri://ed-fi.org/ProviderCategoryDescriptor Licensed Family Child Care DEPRECATED: Licensed Family Child Care DEPRECATED: Licensed Family Child Care \N \N \N 2021-11-05 18:59:26.378779 2021-11-05 18:59:26.37876 492f1fb3-b562-414d-9500-223e2a80cee9 1973 +1914 uri://ed-fi.org/ProviderCategoryDescriptor Licensed Large Family Child Care DEPRECATED: Licensed Large Family Child Care DEPRECATED: Licensed Large Family Child Care \N \N \N 2021-11-05 18:59:26.384603 2021-11-05 18:59:26.384555 ccf60fbb-b087-440a-8d7b-d9a8d6f403ae 1974 +1916 uri://ed-fi.org/ProviderProfitabilityDescriptor ForProfit ForProfit ForProfit \N \N \N 2021-11-05 18:59:26.479707 2021-11-05 18:59:26.478466 0b2b4c05-7960-4ba8-b0f3-80e10044cef8 1976 +1919 uri://ed-fi.org/ProviderStatusDescriptor Active Active Active \N \N \N 2021-11-05 18:59:26.494629 2021-11-05 18:59:26.492552 0dd0ffee-fcb3-4332-9ef0-6512ec74b7b9 1979 +1923 uri://ed-fi.org/PublicationStatusDescriptor Deprecated Deprecated Deprecated \N \N \N 2021-11-05 18:59:26.576356 2021-11-05 18:59:26.575104 19a7b2c8-f410-4e8b-af4e-a3df727f155d 1983 +1926 uri://ed-fi.org/PublicationStatusDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:26.5961 2021-11-05 18:59:26.596041 26f132eb-ef6c-4f21-95ae-f24fd70287c2 1986 +1927 uri://ed-fi.org/QuestionFormDescriptor Radio box Radio box Radio box \N \N \N 2021-11-05 18:59:26.666499 2021-11-05 18:59:26.66521 a862a421-9d05-4eaa-96d3-19aedac4bd61 1987 +1932 uri://ed-fi.org/QuestionFormDescriptor Ranking Ranking Ranking \N \N \N 2021-11-05 18:59:26.684206 2021-11-05 18:59:26.683796 e39f7915-75a1-4e41-88a1-3869806712a3 1992 +1936 uri://ed-fi.org/RaceDescriptor Black - African American Black - African American Black - African American \N \N \N 2021-11-05 18:59:26.764039 2021-11-05 18:59:26.76287 00c9d9ff-201e-4d74-9140-90e08119c1a8 1996 +1941 uri://ed-fi.org/RaceDescriptor Native Hawaiian - Pacific Islander Native Hawaiian - Pacific Islander Native Hawaiian - Pacific Islander \N \N \N 2021-11-05 18:59:26.781798 2021-11-05 18:59:26.781119 d8fc2687-48d5-4af0-b02a-4babbfbe0e5c 2001 +1942 uri://ed-fi.org/ReasonExitedDescriptor Graduated with a high school diploma Graduated with a high school diploma Graduated with a high school diploma \N \N \N 2021-11-05 18:59:26.863022 2021-11-05 18:59:26.861834 94675fd7-c8bd-42d3-8361-2c22e9aee454 2002 +1946 uri://ed-fi.org/ReasonExitedDescriptor Received certificate of completion or equivalent Received completion certificate, modified diploma, or met IEP requirements Received certificate of completion, modified diploma, or finished IEP requirements \N \N \N 2021-11-05 18:59:26.881846 2021-11-05 18:59:26.881524 ca7237ba-0d4b-4a7d-986f-63911d9fc1a2 2006 +1950 uri://ed-fi.org/ReasonExitedDescriptor Transferred to another district or school Transferred to another district or school Transferred to another district or school \N \N \N 2021-11-05 18:59:26.895205 2021-11-05 18:59:26.895113 8e6945f7-379e-41c6-a1dc-fca8c934e033 2010 +1952 uri://ed-fi.org/ReasonExitedDescriptor Unknown reason Unknown reason Unknown reason \N \N \N 2021-11-05 18:59:26.899627 2021-11-05 18:59:26.899431 6c2f0455-a03e-4c9e-bf89-fa2249bf3f1a 2012 +1954 uri://ed-fi.org/ReasonNotTestedDescriptor Foreign exchange student waiver Foreign exchange student waiver Foreign exchange student waiver \N \N \N 2021-11-05 18:59:26.981024 2021-11-05 18:59:26.979827 7c745f99-1407-4a27-b6f4-97f8c2af1d58 2014 +1958 uri://ed-fi.org/ReasonNotTestedDescriptor Medical waiver Medical waiver Medical waiver \N \N \N 2021-11-05 18:59:27.002126 2021-11-05 18:59:27.001794 6a2c30c3-d6fa-4114-ac42-cec74edcbd22 2018 +1962 uri://ed-fi.org/ReasonNotTestedDescriptor Parental waiver Parental waiver Parental waiver \N \N \N 2021-11-05 18:59:27.016604 2021-11-05 18:59:27.016491 a3496efb-675b-4d5f-98ca-672fbb434d50 2022 +1965 uri://ed-fi.org/ReasonNotTestedDescriptor Refusal by parent Refusal by parent Refusal by parent \N \N \N 2021-11-05 18:59:27.029909 2021-11-05 18:59:27.029526 85b9bcf7-4ce2-4610-aae8-72caf1e637d8 2025 +1967 uri://ed-fi.org/RecognitionTypeDescriptor Certificate Certificate Certificate \N \N \N 2021-11-05 18:59:27.113521 2021-11-05 18:59:27.112309 b4f01de1-8914-4d2e-a318-2bd23032ebf9 2027 +1973 uri://ed-fi.org/RecognitionTypeDescriptor Medals Medals Medals \N \N \N 2021-11-05 18:59:27.136354 2021-11-05 18:59:27.135879 50ec20d7-46f4-4818-8eba-431ffd9832cc 2033 +1978 uri://ed-fi.org/RecognitionTypeDescriptor Promotion or advancement Promotion or advancement Promotion or advancement \N \N \N 2021-11-05 18:59:27.152663 2021-11-05 18:59:27.149997 a6dc6906-f88a-4bb9-9e67-cb8084a3a9cd 2038 +1982 uri://ed-fi.org/RelationDescriptor Aunt Aunt Aunt \N \N \N 2021-11-05 18:59:27.23955 2021-11-05 18:59:27.235447 97b0562f-0cc4-4564-b7f2-516c375202a4 2042 +1985 uri://ed-fi.org/RelationDescriptor Emergency DEPRECATED: Emergency DEPRECATED: Emergency \N \N \N 2021-11-05 18:59:27.258091 2021-11-05 18:59:27.257998 4cd0ce8b-8838-4796-befb-669634207a20 2045 +1986 uri://ed-fi.org/RelationDescriptor DaughterInLaw DaughterInLaw DaughterInLaw \N \N \N 2021-11-05 18:59:27.263906 2021-11-05 18:59:27.263672 2ca20ffb-ea4f-4f54-8acc-2ae8fed39651 2046 +1989 uri://ed-fi.org/RelationDescriptor Father Father Father \N \N \N 2021-11-05 18:59:27.284806 2021-11-05 18:59:27.284504 d207be95-6983-451f-82eb-28e93b22c7b2 2049 +1990 uri://ed-fi.org/RelationDescriptor FatherInLaw FatherInLaw FatherInLaw \N \N \N 2021-11-05 18:59:27.294185 2021-11-05 18:59:27.293341 e5a5a2e7-2f1a-46a3-a0d8-5594f16beae2 2050 +1993 uri://ed-fi.org/RelationDescriptor Fiance Fiance Fiance \N \N \N 2021-11-05 18:59:27.301729 2021-11-05 18:59:27.300976 aa8c075c-abad-43d0-9600-80307683823b 2053 +1968 uri://ed-fi.org/RecognitionTypeDescriptor Citizenship award/recognition Citizenship award/recognition Citizenship award/recognition \N \N \N 2021-11-05 18:59:27.113527 2021-11-05 18:59:27.112324 631d07da-bd8c-465b-8861-921a79b052c9 2028 +1972 uri://ed-fi.org/RecognitionTypeDescriptor Letter of commendation Letter of commendation Letter of commendation \N \N \N 2021-11-05 18:59:27.135995 2021-11-05 18:59:27.135934 b118306f-10fe-44ae-a05e-f51d26179ca1 2032 +1975 uri://ed-fi.org/RecognitionTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:27.147824 2021-11-05 18:59:27.147773 1b0e7fb1-d715-4491-889b-ac6a44f19ef6 2035 +1980 uri://ed-fi.org/RelationDescriptor Brother Brother Brother \N \N \N 2021-11-05 18:59:27.237697 2021-11-05 18:59:27.235425 39c6e3f9-393e-480e-b0e9-8916b3b112dc 2040 +1984 uri://ed-fi.org/RelationDescriptor Daughter Daughter Daughter \N \N \N 2021-11-05 18:59:27.256511 2021-11-05 18:59:27.25644 75774e2d-f2d1-4db1-b99f-3127ab888142 2044 +1992 uri://ed-fi.org/RelationDescriptor FathersSignificantOther FathersSignificantOther FathersSignificantOther \N \N \N 2021-11-05 18:59:27.299311 2021-11-05 18:59:27.29911 ba834aa5-cb03-42b1-9928-e230470e5009 2052 +1998 uri://ed-fi.org/RelationDescriptor Grandfather Grandfather Grandfather \N \N \N 2021-11-05 18:59:27.316926 2021-11-05 18:59:27.316248 3ae4501e-db57-43ed-9373-300fa0a606f5 2058 +2002 uri://ed-fi.org/RelationDescriptor Great uncle Great uncle Great uncle \N \N \N 2021-11-05 18:59:27.330671 2021-11-05 18:59:27.330633 b66d8c1f-93ed-4894-892c-2b5e865f627e 2062 +2007 uri://ed-fi.org/RelationDescriptor Mother, step Mother, step Mother, step \N \N \N 2021-11-05 18:59:27.345222 2021-11-05 18:59:27.34467 7b69c3ff-e333-4b1d-965b-afd835a203a4 2067 +2021 uri://ed-fi.org/RelationDescriptor Sister Sister Sister \N \N \N 2021-11-05 18:59:27.390895 2021-11-05 18:59:27.390831 58755b3e-c8cf-4181-8b68-ced11999e9e0 2081 +2024 uri://ed-fi.org/RelationDescriptor Spouse Spouse Spouse \N \N \N 2021-11-05 18:59:27.405779 2021-11-05 18:59:27.405712 26d60228-a0b6-40d6-8ccd-3ad3f7094609 2084 +2030 uri://ed-fi.org/RepeatIdentifierDescriptor Other, not counted in GPA Other, not counted in GPA Other, not counted in GPA \N \N \N 2021-11-05 18:59:27.557462 2021-11-05 18:59:27.556235 d01f9516-5738-4328-9822-a9fd31b6f2da 2090 +2034 uri://ed-fi.org/RepeatIdentifierDescriptor Repeated, other institution Repeated, other institution Repeated, other institution \N \N \N 2021-11-05 18:59:27.579248 2021-11-05 18:59:27.577768 e1c8a599-325a-4d89-9dcf-688727503ea4 2094 +2039 uri://ed-fi.org/ReporterDescriptionDescriptor Law enforcement officer Law enforcement officer Law enforcement officer \N \N \N 2021-11-05 18:59:27.67603 2021-11-05 18:59:27.674153 f505db5a-7950-4e00-9685-0a27546070f9 2099 +2044 uri://ed-fi.org/ResidencyStatusDescriptor Resident of another state Resident of another state Resident of another state \N \N \N 2021-11-05 18:59:27.777186 2021-11-05 18:59:27.775979 b214e517-ea6d-4d05-9a6c-519b4d3bee9d 2104 +2050 uri://ed-fi.org/ResponseIndicatorDescriptor Ineffective response Ineffective response Ineffective response \N \N \N 2021-11-05 18:59:27.875052 2021-11-05 18:59:27.873852 7fd0d72a-cb49-4237-96c9-6e2a89393f63 2110 +2055 uri://ed-fi.org/ResponsibilityDescriptor Funding Funding Funding \N \N \N 2021-11-05 18:59:27.979127 2021-11-05 18:59:27.977901 029cee03-b790-4b6d-9842-12e099b3fe26 2115 +2058 uri://ed-fi.org/ResponsibilityDescriptor Residency Residency Residency \N \N \N 2021-11-05 18:59:27.998125 2021-11-05 18:59:27.998043 02125b5e-eaa3-42dd-bf6c-3502db59239d 2118 +2060 uri://ed-fi.org/RestraintEventReasonDescriptor Imminent Serious Property Destruction Imminent Serious Property Destruction Imminent Serious Property Destruction \N \N \N 2021-11-05 18:59:28.102773 2021-11-05 18:59:28.101435 3f761dbe-a20e-42eb-b36e-fff0e5e52a09 2120 +2064 uri://ed-fi.org/ResultDatatypeTypeDescriptor Integer Integer Integer \N \N \N 2021-11-05 18:59:28.121589 2021-11-05 18:59:28.120953 ab39d180-58f9-4b28-8383-9fc3521e1b03 2124 +2072 uri://ed-fi.org/RetestIndicatorDescriptor Primary Administration Primary Administration Primary Administration \N \N \N 2021-11-05 18:59:28.214214 2021-11-05 18:59:28.212878 39ab238b-18e6-4afd-87e1-de45454d723d 2132 +2074 uri://ed-fi.org/SchoolCategoryDescriptor All Levels All Levels All Levels \N \N \N 2021-11-05 18:59:28.32653 2021-11-05 18:59:28.325355 8b1e4d54-a1e9-405f-9218-7a299a052414 2133 +2080 uri://ed-fi.org/SchoolCategoryDescriptor Infant/toddler School Infant/toddler School Infant/toddler School \N \N \N 2021-11-05 18:59:28.346176 2021-11-05 18:59:28.346132 40a6baa3-5b55-4488-897f-6bcb0ef14540 2140 +2082 uri://ed-fi.org/SchoolCategoryDescriptor Other Secondary Other Secondary Other Secondary \N \N \N 2021-11-05 18:59:28.357696 2021-11-05 18:59:28.357124 9ce28fc1-7d4a-4e96-9243-535656b42523 2142 +2088 uri://ed-fi.org/SchoolChoiceImplementStatusDescriptor Unable to implement at any grades levels Unable to implement at any grades levels Unable to implement at any grades levels \N \N \N 2021-11-05 18:59:28.452504 2021-11-05 18:59:28.451197 c3dab2d1-1800-45ed-b02b-aa105d72d09d 2148 +2092 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Free Snack Free Snack Free Snack \N \N \N 2021-11-05 18:59:28.556085 2021-11-05 18:59:28.554883 0fcb501c-f00c-4b27-a929-24128584d260 2152 +2099 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Full Price Milk Full Price Milk Full Price Milk \N \N \N 2021-11-05 18:59:28.576167 2021-11-05 18:59:28.576112 b18ca52a-7b73-4ca6-b0c2-097bb5ccfe12 2159 +2101 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Reduced Price Breakfast Reduced Price Breakfast Reduced Price Breakfast \N \N \N 2021-11-05 18:59:28.58726 2021-11-05 18:59:28.587231 d3146ba8-4896-4576-b999-31b50fef5f71 2161 +2107 uri://ed-fi.org/SchoolTypeDescriptor Regular Regular Regular \N \N \N 2021-11-05 18:59:28.686147 2021-11-05 18:59:28.684986 80062d7d-6923-4897-a281-f884b6c0186b 2167 +2119 uri://ed-fi.org/SeparationReasonDescriptor Family/personal relocation Family/personal relocation Family/personal relocation \N \N \N 2021-11-05 18:59:28.937183 2021-11-05 18:59:28.935991 73c6f151-ac23-4e4e-9af0-383b2e146b75 2179 +2123 uri://ed-fi.org/SeparationReasonDescriptor Illness/disability/death Illness/disability/death Illness/disability/death \N \N \N 2021-11-05 18:59:28.959238 2021-11-05 18:59:28.959188 bd23e979-c6d2-4059-af6c-9321a366349f 2183 +2128 uri://ed-fi.org/ServiceDescriptor Interpreting services Interpreting services Interpreting services \N \N \N 2021-11-05 18:59:29.067863 2021-11-05 18:59:29.066604 fe4e5e0f-80c2-4875-8bd2-05b23091573d 2188 +2133 uri://ed-fi.org/ServiceDescriptor Preschool children with disabilites program Preschool children with disabilites program Preschool children with disabilites program \N \N \N 2021-11-05 18:59:29.094912 2021-11-05 18:59:29.094819 0cc726f9-730f-42c1-8dd2-571214dd08fa 2193 +2137 uri://ed-fi.org/ServiceDescriptor Dyslexia Dyslexia Dyslexia \N \N \N 2021-11-05 18:59:29.108158 2021-11-05 18:59:29.107763 1fa826ac-3e8d-4493-99fd-d4fde48e167b 2197 +2143 uri://ed-fi.org/SexDescriptor Male Male Male \N \N \N 2021-11-05 18:59:29.212627 2021-11-05 18:59:29.211479 93a9da9a-a924-4a24-aa0a-88caab86c8a7 2203 +2148 uri://ed-fi.org/SourceSystemDescriptor Federal Federal Federal \N \N \N 2021-11-05 18:59:29.32428 2021-11-05 18:59:29.323048 aa2e3b0b-badf-4c79-a9b9-af79cdfb7fb6 2208 +2153 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Occupational And Physical Therapy Occupational And Physical Therapy Occupational And Physical Therapy \N \N \N 2021-11-05 18:59:29.428165 2021-11-05 18:59:29.426859 ea4f6548-1cb5-4afd-a7e3-8c35ea2c0fa4 2213 +2156 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Counseling Services Counseling Services (Including Rehabilitation Counseling) Counseling Services (Including Rehabilitation Counseling) \N \N \N 2021-11-05 18:59:29.445705 2021-11-05 18:59:29.445096 08e35d8b-ef4d-49ba-9a6d-d4918a36e4b2 2216 +2160 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor School Health and/or School Nurse Services School Health and/or School Nurse Services School Health and/or School Nurse Services \N \N \N 2021-11-05 18:59:29.45703 2021-11-05 18:59:29.456909 05d3dd36-aabf-4e03-a65b-1245026c6755 2220 +2165 uri://ed-fi.org/SpecialEducationSettingDescriptor Correctional Facilities Correctional Facilities Correctional Facilities \N \N \N 2021-11-05 18:59:29.557921 2021-11-05 18:59:29.556706 a76bef8e-66e3-477a-b063-a01c6e6c7b84 2225 +2168 uri://ed-fi.org/SpecialEducationSettingDescriptor Separate School Separate School Separate School \N \N \N 2021-11-05 18:59:29.576948 2021-11-05 18:59:29.576079 49f28472-0ca0-43c6-b65b-6aea25ad3218 2228 +2172 uri://ed-fi.org/StaffClassificationDescriptor Assistant Principal Assistant Principal Assistant Principal \N \N \N 2021-11-05 18:59:29.683394 2021-11-05 18:59:29.68213 9521295c-9353-4d25-952a-c97764ddff8e 2232 +2176 uri://ed-fi.org/StaffClassificationDescriptor Elementary School Counselors Elementary School Counselors Elementary School Counselors \N \N \N 2021-11-05 18:59:29.700867 2021-11-05 18:59:29.700798 f0a0b0c0-c4fc-4b01-968f-73bcd3b120e8 2236 +1994 uri://ed-fi.org/RelationDescriptor Fiancee Fiancee Fiancee \N \N \N 2021-11-05 18:59:27.306717 2021-11-05 18:59:27.30648 258e4841-84b0-4d1b-b784-37eea03a7b89 2054 +1996 uri://ed-fi.org/RelationDescriptor Friend Friend Friend \N \N \N 2021-11-05 18:59:27.314127 2021-11-05 18:59:27.313337 9e2c6b9b-33b2-4a39-9d97-c240569ee1c3 2056 +1999 uri://ed-fi.org/RelationDescriptor Grandmother Grandmother Grandmother \N \N \N 2021-11-05 18:59:27.321892 2021-11-05 18:59:27.321823 ccfc9f24-3cfe-4fc9-8e65-ec5a5e2e711f 2059 +2000 uri://ed-fi.org/RelationDescriptor Grandparent Grandparent Grandparent \N \N \N 2021-11-05 18:59:27.32741 2021-11-05 18:59:27.326819 49ba52dd-82e8-44f2-8ebb-6750f9fc0963 2060 +2001 uri://ed-fi.org/RelationDescriptor Great aunt Great aunt Great aunt \N \N \N 2021-11-05 18:59:27.330188 2021-11-05 18:59:27.329983 b34a2734-d809-4ce3-943f-11164325b878 2061 +2004 uri://ed-fi.org/RelationDescriptor Guardian DEPRECATED: Guardian DEPRECATED: Guardian \N \N \N 2021-11-05 18:59:27.337633 2021-11-05 18:59:27.337556 391ea35f-2b32-4abc-a373-dfc49d3f0c41 2064 +2005 uri://ed-fi.org/RelationDescriptor Husband Husband Husband \N \N \N 2021-11-05 18:59:27.342957 2021-11-05 18:59:27.342184 e5a18b62-f5c5-484b-8153-19117b4dc328 2065 +2008 uri://ed-fi.org/RelationDescriptor MotherInLaw MotherInLaw MotherInLaw \N \N \N 2021-11-05 18:59:27.349847 2021-11-05 18:59:27.349576 6d8ed00b-66f0-43cf-af5f-97ff67a2a402 2068 +2010 uri://ed-fi.org/RelationDescriptor Neighbor Neighbor Neighbor \N \N \N 2021-11-05 18:59:27.357883 2021-11-05 18:59:27.357505 047d567a-5e97-4475-a46c-8b5bd8fd18ea 2070 +2012 uri://ed-fi.org/RelationDescriptor Nephew Nephew Nephew \N \N \N 2021-11-05 18:59:27.363878 2021-11-05 18:59:27.363389 85dc1bb3-8325-4ad3-8544-a5c74029da45 2072 +2014 uri://ed-fi.org/RelationDescriptor Other Other Other \N \N \N 2021-11-05 18:59:27.369765 2021-11-05 18:59:27.369268 2f1727c2-16f8-4de4-b4b1-8fbdcbd9ff5e 2074 +2016 uri://ed-fi.org/RelationDescriptor Parent, step Parent, step Parent, step \N \N \N 2021-11-05 18:59:27.375669 2021-11-05 18:59:27.375583 15add471-5fa1-4b44-8a62-439e025811be 2076 +2018 uri://ed-fi.org/RelationDescriptor Sibling Sibling Sibling \N \N \N 2021-11-05 18:59:27.383743 2021-11-05 18:59:27.383265 f4665228-c438-4a8a-8238-47fcc328f189 2078 +2020 uri://ed-fi.org/RelationDescriptor SignificantOther SignificantOther SignificantOther \N \N \N 2021-11-05 18:59:27.388711 2021-11-05 18:59:27.388222 fcec720f-0e19-48cc-8c39-86c8a57a7780 2080 +2022 uri://ed-fi.org/RelationDescriptor Son Son Son \N \N \N 2021-11-05 18:59:27.393472 2021-11-05 18:59:27.393434 323868b2-3074-4243-96e0-7301535b4b7c 2082 +2023 uri://ed-fi.org/RelationDescriptor SonInLaw SonInLaw SonInLaw \N \N \N 2021-11-05 18:59:27.397618 2021-11-05 18:59:27.397554 5b3eefc2-3319-4959-8a29-505dd5a6d211 2083 +2025 uri://ed-fi.org/RelationDescriptor Uncle Uncle Uncle \N \N \N 2021-11-05 18:59:27.40606 2021-11-05 18:59:27.404705 e164dcd4-bf31-407e-949a-d1cc23465c55 2085 +2027 uri://ed-fi.org/RelationDescriptor Ward Ward Ward \N \N \N 2021-11-05 18:59:27.415802 2021-11-05 18:59:27.415714 15b2cf8e-f7d6-4ebd-8da8-591279be8a85 2087 +2029 uri://ed-fi.org/RepeatIdentifierDescriptor Not repeated Not repeated Not repeated \N \N \N 2021-11-05 18:59:27.557462 2021-11-05 18:59:27.556224 a459e9e3-cd22-402a-8ec8-2daa0695724c 2089 +2033 uri://ed-fi.org/RepeatIdentifierDescriptor Replacement not counted Replacement not counted Replacement not counted \N \N \N 2021-11-05 18:59:27.578742 2021-11-05 18:59:27.577118 fcc38dd9-039c-4c3e-b47e-3b348da3a019 2093 +2037 uri://ed-fi.org/ReporterDescriptionDescriptor Other Other Other \N \N \N 2021-11-05 18:59:27.676061 2021-11-05 18:59:27.674155 ec58c5d8-911e-47a9-a386-a748903b0978 2097 +2041 uri://ed-fi.org/ReporterDescriptionDescriptor Staff Staff Staff \N \N \N 2021-11-05 18:59:27.696835 2021-11-05 18:59:27.696754 a85b6c3b-8173-4986-b76d-7196abf9639c 2101 +2045 uri://ed-fi.org/ResidencyStatusDescriptor Resident of admin unit, but other school area Resident of administrative unit, but of other school attendance area Resident of administrative unit, but of other school attendance area \N \N \N 2021-11-05 18:59:27.778595 2021-11-05 18:59:27.775983 20fb3f77-46a2-481b-9f9d-3f85450efcdd 2105 +2047 uri://ed-fi.org/ResidencyStatusDescriptor Resident of this state, but not of this admin unit Resident of this state, but not of this administrative unit Resident of this state, but not of this administrative unit \N \N \N 2021-11-05 18:59:27.798279 2021-11-05 18:59:27.798219 63ae679c-0ed1-44f1-bb03-0e64b1812a7b 2107 +2049 uri://ed-fi.org/ResponseIndicatorDescriptor Effective response Effective response Effective response \N \N \N 2021-11-05 18:59:27.875051 2021-11-05 18:59:27.873839 9dd7a03d-67b2-4c7c-8d43-a36cc16fab4b 2109 +2053 uri://ed-fi.org/ResponsibilityDescriptor Discipline Discipline Discipline \N \N \N 2021-11-05 18:59:27.979119 2021-11-05 18:59:27.97789 a906b4b3-76e1-4ee4-8979-599e71223758 2113 +2057 uri://ed-fi.org/ResponsibilityDescriptor Graduation Graduation Graduation \N \N \N 2021-11-05 18:59:27.997504 2021-11-05 18:59:27.997438 8336ddc4-b42c-42d5-8133-f74324e00649 2117 +2062 uri://ed-fi.org/RestraintEventReasonDescriptor Imminent Serious Physical Harm To Others Imminent Serious Physical Harm To Others Imminent Serious Physical Harm To Others \N \N \N 2021-11-05 18:59:28.102772 2021-11-05 18:59:28.101432 a96ff0a6-9c75-42a6-9a73-9bf1e8b5b437 2122 +2063 uri://ed-fi.org/ResultDatatypeTypeDescriptor Decimal Decimal Decimal \N \N \N 2021-11-05 18:59:28.112523 2021-11-05 18:59:28.111373 457bfb2b-9651-4ee1-a9a3-2cb53d627af2 2123 +2065 uri://ed-fi.org/ResultDatatypeTypeDescriptor Percentage Percentage Percentage \N \N \N 2021-11-05 18:59:28.121743 2021-11-05 18:59:28.121712 2a24b465-7264-4d76-a38b-bbd031a818e3 2125 +2067 uri://ed-fi.org/ResultDatatypeTypeDescriptor Percentile Percentile Percentile \N \N \N 2021-11-05 18:59:28.127114 2021-11-05 18:59:28.127058 5c494575-5a61-437e-8821-3d2e1e674ecf 2127 +2068 uri://ed-fi.org/ResultDatatypeTypeDescriptor Range Range Range \N \N \N 2021-11-05 18:59:28.131586 2021-11-05 18:59:28.13152 92707d04-a449-4a1e-9ca6-f7e38d880e2f 2128 +2069 uri://ed-fi.org/RetestIndicatorDescriptor 3rd or more Retest 3rd or more Retest 3rd or more Retest \N \N \N 2021-11-05 18:59:28.214064 2021-11-05 18:59:28.212871 1c484032-afe9-4a6a-a282-5b0035d5c296 2129 +2075 uri://ed-fi.org/SchoolCategoryDescriptor Elementary/Secondary School Elementary/Secondary School Elementary/Secondary School \N \N \N 2021-11-05 18:59:28.326531 2021-11-05 18:59:28.325357 f7868c3c-6a39-44c4-a2d9-c6bd8aba9a3d 2135 +2077 uri://ed-fi.org/SchoolCategoryDescriptor High School High School High School \N \N \N 2021-11-05 18:59:28.343925 2021-11-05 18:59:28.343857 16922b6e-7f72-4fd4-81ca-6a0b66806bbc 2137 +2081 uri://ed-fi.org/SchoolCategoryDescriptor Middle School Middle School Middle School \N \N \N 2021-11-05 18:59:28.353597 2021-11-05 18:59:28.353546 df326cb2-0129-45f1-b633-deeb80c22bc0 2141 +2083 uri://ed-fi.org/SchoolCategoryDescriptor Other Combination Other Combination Other Combination \N \N \N 2021-11-05 18:59:28.358348 2021-11-05 18:59:28.357963 c9ede3d3-54e4-4f14-8a6b-dfe3b9dbbcc0 2143 +2085 uri://ed-fi.org/SchoolCategoryDescriptor Primary School Primary School Primary School \N \N \N 2021-11-05 18:59:28.362929 2021-11-05 18:59:28.362889 d4ff3730-d4c7-4766-8112-ed0d1274a55a 2145 +2086 uri://ed-fi.org/SchoolCategoryDescriptor SecondarySchool SecondarySchool SecondarySchool \N \N \N 2021-11-05 18:59:28.368266 2021-11-05 18:59:28.368205 083af4b2-8b57-4fe6-9f03-7756d13d3301 2146 +2087 uri://ed-fi.org/SchoolCategoryDescriptor Ungraded Ungraded Ungraded \N \N \N 2021-11-05 18:59:28.371388 2021-11-05 18:59:28.37133 3079fd18-df89-46da-b181-111ee4c9c599 2147 +2090 uri://ed-fi.org/SchoolChoiceImplementStatusDescriptor Implemented at all grade levels Implemented at all grade levels Implemented at all grade levels \N \N \N 2021-11-05 18:59:28.452492 2021-11-05 18:59:28.451183 cc2ed99f-55d7-439d-8d3d-07560ad167cd 2150 +2093 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Free Breakfast Free Breakfast Free Breakfast \N \N \N 2021-11-05 18:59:28.556085 2021-11-05 18:59:28.55488 ca9879d8-ba65-44f4-aafc-bdf16128de66 2153 +2097 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Full Price Lunch Full Price Lunch Full Price Lunch \N \N \N 2021-11-05 18:59:28.573826 2021-11-05 18:59:28.573617 45687691-3543-45cc-bdeb-9079a7afcf91 2157 +2100 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Full Price Snack Full Price Snack Full Price Snack \N \N \N 2021-11-05 18:59:28.584982 2021-11-05 18:59:28.584096 7efefd1d-963d-42ad-a9e8-72bcf324e490 2160 +2103 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Reduced Price Lunch Reduced Price Lunch Reduced Price Lunch \N \N \N 2021-11-05 18:59:28.588455 2021-11-05 18:59:28.588316 75477eef-e274-4d3b-95b9-21f458cd297c 2163 +2104 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Reduced Price Snack Reduced Price Snack Reduced Price Snack \N \N \N 2021-11-05 18:59:28.594896 2021-11-05 18:59:28.594757 201d16bc-7acc-49e0-bdbf-292e1e715dc0 2164 +2106 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Other Other Other \N \N \N 2021-11-05 18:59:28.599454 2021-11-05 18:59:28.599374 ee252490-eee7-436c-bcaa-ed553546405f 2166 +2036 uri://ed-fi.org/RepeatIdentifierDescriptor Replacement counted Replacement counted Replacement counted \N \N \N 2021-11-05 18:59:27.580622 2021-11-05 18:59:27.580438 e673216f-d74c-496b-acbc-01f2ad7db9c5 2096 +2038 uri://ed-fi.org/ReporterDescriptionDescriptor Non-school personnel Non-school personnel Non-school personnel \N \N \N 2021-11-05 18:59:27.676072 2021-11-05 18:59:27.674167 857e3cd7-1488-4761-990b-85401dc61475 2098 +2042 uri://ed-fi.org/ReporterDescriptionDescriptor Student Student Student \N \N \N 2021-11-05 18:59:27.697045 2021-11-05 18:59:27.696995 50c203a9-3a68-4ec1-acae-5ed98e8c96dd 2102 +2043 uri://ed-fi.org/ResidencyStatusDescriptor Resident of admin unit that crosses states Resident of an administrative unit that crosses state boundaries Resident of an administrative unit that crosses state boundaries \N \N \N 2021-11-05 18:59:27.777183 2021-11-05 18:59:27.775958 0f7d6916-78d7-42aa-9577-7b3cec8be380 2103 +2048 uri://ed-fi.org/ResponseIndicatorDescriptor Partial response Partial response Partial response \N \N \N 2021-11-05 18:59:27.87505 2021-11-05 18:59:27.873839 97b35b6c-1b65-468b-b3c9-44fcdd607130 2108 +2052 uri://ed-fi.org/ResponsibilityDescriptor Accountability Accountability Accountability \N \N \N 2021-11-05 18:59:27.979119 2021-11-05 18:59:27.97789 1464481a-722d-4c14-b775-7904504a9add 2112 +2056 uri://ed-fi.org/ResponsibilityDescriptor Individualized Education Program Individualized Education Program Individualized Education Program \N \N \N 2021-11-05 18:59:27.997534 2021-11-05 18:59:27.997489 7ca09cfb-7770-4f00-a9b6-42d8e7ec88ba 2116 +2061 uri://ed-fi.org/RestraintEventReasonDescriptor Imminent Serious Physical Harm To Themselves Imminent Serious Physical Harm To Themselves Imminent Serious Physical Harm To Themselves \N \N \N 2021-11-05 18:59:28.102769 2021-11-05 18:59:28.101431 24cab561-bfed-4542-932c-f400c2f42cb4 2121 +2066 uri://ed-fi.org/ResultDatatypeTypeDescriptor Level Level Level \N \N \N 2021-11-05 18:59:28.12191 2021-11-05 18:59:28.121785 95a0f784-6611-49e6-b29e-465bbb4d712a 2126 +2070 uri://ed-fi.org/RetestIndicatorDescriptor 1st Retest 1st Retest 1st Retest \N \N \N 2021-11-05 18:59:28.214064 2021-11-05 18:59:28.212873 a2b00ea6-a661-4ea3-ab14-866c99dfcccd 2130 +2073 uri://ed-fi.org/SchoolCategoryDescriptor Elementary School Elementary School Elementary School \N \N \N 2021-11-05 18:59:28.326531 2021-11-05 18:59:28.325367 6121dbf4-a3bd-43d2-b0c8-badfafc55ac0 2134 +2079 uri://ed-fi.org/SchoolCategoryDescriptor Junior High School Junior High School Junior High School \N \N \N 2021-11-05 18:59:28.345925 2021-11-05 18:59:28.345889 7bf8d6c4-da08-419e-a23f-f49ec92f02f4 2139 +2084 uri://ed-fi.org/SchoolCategoryDescriptor Preschool/early childhood Preschool/early childhood Preschool/early childhood \N \N \N 2021-11-05 18:59:28.358773 2021-11-05 18:59:28.358156 0ecd05e4-ae53-4553-952d-3c1d2d3c55ec 2144 +2089 uri://ed-fi.org/SchoolChoiceImplementStatusDescriptor Implemented at some but not all grade levels Implemented at some but not all grade levels Implemented at some but not all grade levels \N \N \N 2021-11-05 18:59:28.452481 2021-11-05 18:59:28.451185 579b7652-affc-490b-8380-cbf523f69df8 2149 +2094 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Free Lunch Free Lunch Free Lunch \N \N \N 2021-11-05 18:59:28.556091 2021-11-05 18:59:28.55489 675facc4-e2dd-44b0-8cd2-5dd0f42c58b8 2154 +2096 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Full Price Breakfast Full Price Breakfast Full Price Breakfast \N \N \N 2021-11-05 18:59:28.572824 2021-11-05 18:59:28.572768 bb99a656-0d4b-42cd-aac0-d4adada6330f 2156 +2105 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Reduced Price Supper Reduced Price Supper Reduced Price Supper \N \N \N 2021-11-05 18:59:28.596658 2021-11-05 18:59:28.596272 30e7d057-3062-449e-93c4-4cb6eb9f19a0 2165 +2108 uri://ed-fi.org/SchoolTypeDescriptor Career and Technical Education Career and Technical Education Career and Technical Education \N \N \N 2021-11-05 18:59:28.686163 2021-11-05 18:59:28.685029 bde4cf1b-0b18-4835-a48e-5bdf9d1c166d 2168 +2111 uri://ed-fi.org/SectionCharacteristicDescriptor Graded Credit Available Graded Credit Available Graded Credit Available \N \N \N 2021-11-05 18:59:28.817968 2021-11-05 18:59:28.816657 d16bb501-6bdf-41cf-b6ad-9e241cff2e36 2171 +2114 uri://ed-fi.org/SeparationDescriptor Involuntary separation Involuntary separation Involuntary separation \N \N \N 2021-11-05 18:59:28.829701 2021-11-05 18:59:28.828203 f5cca5e8-5b04-436b-b92b-dc6a0c433dde 2174 +2116 uri://ed-fi.org/SeparationDescriptor Voluntary separation Voluntary separation Voluntary separation \N \N \N 2021-11-05 18:59:28.839029 2021-11-05 18:59:28.838402 fe4f3e7f-0807-4556-b105-9422a8448d8b 2176 +2120 uri://ed-fi.org/SeparationReasonDescriptor Formal study or research Formal study or research Formal study or research \N \N \N 2021-11-05 18:59:28.937928 2021-11-05 18:59:28.936009 b9a44ac6-524c-46a1-9c11-140cd2e7d0ec 2180 +2122 uri://ed-fi.org/SeparationReasonDescriptor Layoff Layoff Layoff \N \N \N 2021-11-05 18:59:28.957725 2021-11-05 18:59:28.957527 8238491b-190e-4d01-8cd6-6e9c98a5965e 2182 +2126 uri://ed-fi.org/SeparationReasonDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:28.972936 2021-11-05 18:59:28.972622 83e30aac-1ecc-4f86-a78b-5dfd9cc3cb60 2186 +2129 uri://ed-fi.org/ServiceDescriptor Medical diagnostic services Medical diagnostic services Medical diagnostic services \N \N \N 2021-11-05 18:59:29.067863 2021-11-05 18:59:29.066602 1b4b4ae3-50e8-498e-81b2-e410af0f36d8 2189 +2132 uri://ed-fi.org/ServiceDescriptor Orientation and mobility training services Orientation and mobility training services Orientation and mobility training services \N \N \N 2021-11-05 18:59:29.094669 2021-11-05 18:59:29.094551 1dc74043-b538-4c7d-a7f2-546cfb640d12 2192 +2140 uri://ed-fi.org/ServiceDescriptor Disgraphia Disgraphia Disgraphia \N \N \N 2021-11-05 18:59:29.117277 2021-11-05 18:59:29.117212 32059723-92a9-4bd2-a9c9-8fe55e6128b0 2200 +2144 uri://ed-fi.org/SexDescriptor Female Female Female \N \N \N 2021-11-05 18:59:29.212627 2021-11-05 18:59:29.211468 d7a18163-a752-41e8-9b5e-9be6219f8c9d 2204 +2150 uri://ed-fi.org/SourceSystemDescriptor District District District \N \N \N 2021-11-05 18:59:29.324439 2021-11-05 18:59:29.323036 54cc75ec-35ea-4186-8a4d-886fe83ec927 2210 +2151 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Psychological Services Psychological Services Psychological Services \N \N \N 2021-11-05 18:59:29.42817 2021-11-05 18:59:29.426841 61f04700-f221-485b-a86c-7ff4048cc9a3 2211 +2155 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Orientation And Mobility Orientation And Mobility Orientation And Mobility \N \N \N 2021-11-05 18:59:29.445588 2021-11-05 18:59:29.445037 e69d82ff-be74-4d74-8816-055cdb71704b 2215 +2158 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Recreation, Including Therapeutic Recreation Recreation, Including Therapeutic Recreation Recreation, Including Therapeutic Recreation \N \N \N 2021-11-05 18:59:29.448398 2021-11-05 18:59:29.448379 a59e1318-533b-4346-b274-8ecf3304d803 2218 +2163 uri://ed-fi.org/SpecialEducationSettingDescriptor Homebound/Hospital Homebound/Hospital Homebound/Hospital \N \N \N 2021-11-05 18:59:29.557921 2021-11-05 18:59:29.556696 42c20cee-7af9-4363-b689-12be97e5b3c4 2223 +2170 uri://ed-fi.org/SpecialEducationSettingDescriptor Residential Facility Residential Facility Residential Facility \N \N \N 2021-11-05 18:59:29.578507 2021-11-05 18:59:29.578483 55747be3-5d0e-4d79-97a0-0c14c05fd59a 2230 +2173 uri://ed-fi.org/StaffClassificationDescriptor All Other Support Staff All Other Support Staff All Other Support Staff \N \N \N 2021-11-05 18:59:29.683394 2021-11-05 18:59:29.682123 3e5f7dfe-db98-4a9b-b44b-6ba7167fe57f 2233 +2175 uri://ed-fi.org/StaffClassificationDescriptor Instructional Aide Instructional Aide Instructional Aide \N \N \N 2021-11-05 18:59:29.70067 2021-11-05 18:59:29.700603 ba1b7c91-0dab-4af4-83ed-c8b8f0a64f8d 2235 +2180 uri://ed-fi.org/StaffClassificationDescriptor LEA Administrator LEA Administrator LEA Administrator \N \N \N 2021-11-05 18:59:29.714514 2021-11-05 18:59:29.714459 f56b68ae-5083-4956-b4e4-629080ab8126 2240 +2184 uri://ed-fi.org/StaffClassificationDescriptor LEA System Administrator LEA System Administrator LEA System Administrator \N \N \N 2021-11-05 18:59:29.725315 2021-11-05 18:59:29.725266 218f20ba-7c32-40ee-8daf-6eee78fce432 2244 +2190 uri://ed-fi.org/StaffClassificationDescriptor Pre-Kindergarten Teachers Pre-Kindergarten Teachers Pre-Kindergarten Teachers \N \N \N 2021-11-05 18:59:29.74047 2021-11-05 18:59:29.740399 d22f1f31-b693-4bfe-9035-e51571c1858d 2250 +2193 uri://ed-fi.org/StaffClassificationDescriptor School Counselors School Counselors School Counselors \N \N \N 2021-11-05 18:59:29.752405 2021-11-05 18:59:29.75236 909e703c-466a-48fb-9ada-dbbedb45b162 2253 +2196 uri://ed-fi.org/StaffClassificationDescriptor School Psychologist School Psychologist School Psychologist \N \N \N 2021-11-05 18:59:29.76373 2021-11-05 18:59:29.762614 83e3dc2d-67f6-49be-acee-acf2eac67197 2256 +2095 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Free Milk Free Milk Free Milk \N \N \N 2021-11-05 18:59:28.556238 2021-11-05 18:59:28.554899 e2efe455-e0cf-4d8a-9486-a645d9c3e70d 2155 +2098 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Free Supper Free Supper Free Supper \N \N \N 2021-11-05 18:59:28.574616 2021-11-05 18:59:28.574366 a9b69a63-1264-45c2-96fa-fd0d66dab754 2158 +2102 uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor Full Price Supper Full Price Supper Full Price Supper \N \N \N 2021-11-05 18:59:28.587275 2021-11-05 18:59:28.587254 c5cab377-a961-4b9b-b775-ac58c036ae9f 2162 +2110 uri://ed-fi.org/SchoolTypeDescriptor Special Education Special Education Special Education \N \N \N 2021-11-05 18:59:28.686311 2021-11-05 18:59:28.685047 31cdc54b-1754-4ec2-9a76-fd82fff66860 2170 +2117 uri://ed-fi.org/SeparationReasonDescriptor Change of assignment Change of assignment Change of assignment \N \N \N 2021-11-05 18:59:28.937183 2021-11-05 18:59:28.935977 6acec960-4443-4717-917c-66a7286d7882 2177 +2124 uri://ed-fi.org/SeparationReasonDescriptor Personal reason Personal reason Personal reason \N \N \N 2021-11-05 18:59:28.961644 2021-11-05 18:59:28.961604 09dba314-83c4-4931-91ac-76c2004d34b5 2184 +2130 uri://ed-fi.org/ServiceDescriptor Assistive technology device or service Assistive technology device or service Assistive technology device or service \N \N \N 2021-11-05 18:59:29.067863 2021-11-05 18:59:29.066612 44f09987-0177-4e6a-9c27-d03371aabb3e 2190 +2134 uri://ed-fi.org/ServiceDescriptor Occupational therapy Occupational therapy Occupational therapy \N \N \N 2021-11-05 18:59:29.095338 2021-11-05 18:59:29.095241 08949d1c-5d07-4123-b7a5-ca93ee0fcae0 2194 +2138 uri://ed-fi.org/ServiceDescriptor Audiological Impairment Audiological Impairment Audiological Impairment \N \N \N 2021-11-05 18:59:29.1083 2021-11-05 18:59:29.107935 41f2a497-3e41-4281-a991-1ddee2c8c51d 2198 +2146 uri://ed-fi.org/SexDescriptor Not Selected Not Selected Not Selected \N \N \N 2021-11-05 18:59:29.212776 2021-11-05 18:59:29.211488 0dbf0ccb-6d08-4c40-bdc0-1987a72a5f39 2206 +2147 uri://ed-fi.org/SourceSystemDescriptor School School School \N \N \N 2021-11-05 18:59:29.32428 2021-11-05 18:59:29.323058 e04b9ff6-0952-416a-906d-88bc97ee87b1 2207 +2154 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Speech-Language And Audiology Services Speech-Language And Audiology Services Speech-Language And Audiology Services \N \N \N 2021-11-05 18:59:29.428988 2021-11-05 18:59:29.426875 56f51b24-c529-418b-a682-010d452a8dd9 2214 +2166 uri://ed-fi.org/SpecialEducationSettingDescriptor Inside regular class less than 40% of the day Inside regular class less than 40% of the day Inside regular class less than 40% of the day \N \N \N 2021-11-05 18:59:29.558654 2021-11-05 18:59:29.556718 7cab145b-2312-4d42-ba1c-94affbefb9bd 2226 +2167 uri://ed-fi.org/SpecialEducationSettingDescriptor Inside reg class between 40-79% of the day Inside reg class between 40-79% of the day Inside regular class no more than 79% of day and no less than 40% of the day \N \N \N 2021-11-05 18:59:29.576223 2021-11-05 18:59:29.576079 ccff768c-096c-413b-b623-bfffc4ed62f7 2227 +2174 uri://ed-fi.org/StaffClassificationDescriptor Counselor Counselor Counselor \N \N \N 2021-11-05 18:59:29.684497 2021-11-05 18:59:29.682142 86fb59a2-ebe4-4f4e-8de3-4cfedcacb6dd 2234 +2178 uri://ed-fi.org/StaffClassificationDescriptor Instr Coordinators and Supervisors to the Staff Instructional Coordinators and Supervisors to the Staff Instructional Coordinators and Supervisors to the Staff \N \N \N 2021-11-05 18:59:29.703294 2021-11-05 18:59:29.70322 1f2e30fc-404e-47fe-9607-89601c87fecd 2238 +2181 uri://ed-fi.org/StaffClassificationDescriptor Kindergarten Teachers Kindergarten Teachers Kindergarten Teachers \N \N \N 2021-11-05 18:59:29.714605 2021-11-05 18:59:29.714502 2d6743f7-4965-438d-b483-6f9261fec437 2241 +2200 uri://ed-fi.org/StaffClassificationDescriptor State Administrator State Administrator State Administrator \N \N \N 2021-11-05 18:59:29.778898 2021-11-05 18:59:29.778826 b6784d01-b6e4-40d9-a621-83e8e0204c3f 2260 +2207 uri://ed-fi.org/StaffIdentificationSystemDescriptor Federal Federal Federal \N \N \N 2021-11-05 18:59:29.891989 2021-11-05 18:59:29.890797 9ba4b901-be95-4aa6-a422-f7515080cf02 2267 +2214 uri://ed-fi.org/StaffIdentificationSystemDescriptor Other Other Other \N \N \N 2021-11-05 18:59:29.911484 2021-11-05 18:59:29.911447 f419284f-2cbf-46da-bdbb-b36059bcd615 2274 +2217 uri://ed-fi.org/StaffIdentificationSystemDescriptor Professional Certificate Professional Certificate Professional Certificate \N \N \N 2021-11-05 18:59:29.923319 2021-11-05 18:59:29.923268 6f150ef6-7a80-4c54-8cf4-3993853e823e 2277 +2225 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Compensatory leave time Compensatory leave time Compensatory leave time \N \N \N 2021-11-05 18:59:30.026502 2021-11-05 18:59:30.024598 0ef4f631-9b4b-4cf9-9d61-44d87e1e806e 2285 +2232 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Personal Personal Personal \N \N \N 2021-11-05 18:59:30.057793 2021-11-05 18:59:30.057587 8b2c2cf3-d105-43b1-a623-090050dfb59a 2292 +2240 uri://ed-fi.org/StateAbbreviationDescriptor AL AL AL \N \N \N 2021-11-05 18:59:30.180813 2021-11-05 18:59:30.179595 c46f2d0a-7ea9-4855-8aa9-47540f113364 2300 +2247 uri://ed-fi.org/StateAbbreviationDescriptor AR AR AR \N \N \N 2021-11-05 18:59:30.202618 2021-11-05 18:59:30.202503 096db1f6-ad97-418a-9962-1a4e1783da98 2307 +2251 uri://ed-fi.org/StateAbbreviationDescriptor DC DC DC \N \N \N 2021-11-05 18:59:30.219753 2021-11-05 18:59:30.219709 e7d5f8e4-6dbe-4240-867e-409818eb7ca7 2311 +2253 uri://ed-fi.org/StateAbbreviationDescriptor DE DE DE \N \N \N 2021-11-05 18:59:30.231813 2021-11-05 18:59:30.231635 77cb9fd3-152c-47f1-b8e7-03febce98ef9 2313 +2261 uri://ed-fi.org/StateAbbreviationDescriptor IN IN IN \N \N \N 2021-11-05 18:59:30.25743 2021-11-05 18:59:30.25737 d2c7893a-6ae3-4973-b333-6f0319479bb0 2321 +2305 uri://ed-fi.org/StudentCharacteristicDescriptor Asylee Asylee Asylee \N \N \N 2021-11-05 18:59:30.48827 2021-11-05 18:59:30.486371 6b968456-0cc9-4842-b9f8-fb1b16eb5f5d 2365 +2309 uri://ed-fi.org/StudentCharacteristicDescriptor Pregnant Pregnant Pregnant \N \N \N 2021-11-05 18:59:30.508281 2021-11-05 18:59:30.508223 228a8815-a71f-4f14-b8a6-91240b63121d 2369 +2319 uri://ed-fi.org/StudentIdentificationSystemDescriptor District District The student identification system for the student at the district level, generally managed by the district student information system, and the one that assigns the principal IDs used to join student data for district operations. \N \N \N 2021-11-05 18:59:30.630888 2021-11-05 18:59:30.628882 74188099-6ccc-405c-89da-832a5d072ebf 2379 +2323 uri://ed-fi.org/StudentIdentificationSystemDescriptor School School School \N \N \N 2021-11-05 18:59:30.650424 2021-11-05 18:59:30.650347 fecc696e-bf32-49cb-9147-5a67ed78c741 2383 +2328 uri://ed-fi.org/StudentParticipationCodeDescriptor Reporter Reporter Reporter \N \N \N 2021-11-05 18:59:30.770549 2021-11-05 18:59:30.769307 f8dbe0a9-905f-484f-9d29-d2c9c348f2fd 2388 +2332 uri://ed-fi.org/SurveyCategoryDescriptor Administrator Administrator Administrator \N \N \N 2021-11-05 18:59:30.876392 2021-11-05 18:59:30.875195 a3fa5eb9-f138-4439-8398-2048585375d2 2392 +2338 uri://ed-fi.org/SurveyCategoryDescriptor Exit Exit Exiting staff \N \N \N 2021-11-05 18:59:30.896201 2021-11-05 18:59:30.896082 ad136c9a-7567-4be3-828a-9192715e7ada 2398 +2343 uri://ed-fi.org/SurveyLevelDescriptor Preschool/Prekindergarten Preschool/Prekindergarten Preschool/Prekindergarten \N \N \N 2021-11-05 18:59:31.005208 2021-11-05 18:59:31.003916 df49d781-3fc4-49b7-aacd-2e5bf3387ddb 2403 +2348 uri://ed-fi.org/SurveyLevelDescriptor Third grade Third grade Third grade \N \N \N 2021-11-05 18:59:31.036111 2021-11-05 18:59:31.035896 97b58f95-e5ca-409e-a382-7bd775b61e55 2408 +2351 uri://ed-fi.org/SurveyLevelDescriptor Eighth grade Eighth grade Eighth grade \N \N \N 2021-11-05 18:59:31.050535 2021-11-05 18:59:31.050517 74c08dcd-549d-4b15-a6ff-52f8e3b5a3bc 2411 +2356 uri://ed-fi.org/SurveyLevelDescriptor Ninth grade Ninth grade Ninth grade \N \N \N 2021-11-05 18:59:31.065134 2021-11-05 18:59:31.065107 048e770a-a8f8-4026-8a8d-d429d684f2fd 2416 +2361 uri://ed-fi.org/SurveyLevelDescriptor Master's Master's Master's \N \N \N 2021-11-05 18:59:31.078843 2021-11-05 18:59:31.078806 5dbe0006-33c2-4f7b-ad96-a49eed2ca723 2421 +2365 uri://ed-fi.org/SurveyLevelDescriptor No grade level No grade level No grade level \N \N \N 2021-11-05 18:59:31.091075 2021-11-05 18:59:31.09105 da2e96ad-c75b-4a7e-8163-0a556fb8283c 2425 +2370 uri://ed-fi.org/TeachingCredentialBasisDescriptor Reciprocation with another state Credentials based on reciprocation with another state Credentials based on reciprocation with another state \N \N \N 2021-11-05 18:59:31.197936 2021-11-05 18:59:31.195944 4537d321-2a28-4866-8316-cfe8a6fb39a1 2430 +2377 uri://ed-fi.org/TeachingCredentialDescriptor Emergency Emergency Emergency \N \N \N 2021-11-05 18:59:31.337427 2021-11-05 18:59:31.336175 20632bbe-6439-4b64-a123-bd645981496b 2437 +2381 uri://ed-fi.org/TeachingCredentialDescriptor Paraprofessional Paraprofessional Paraprofessional \N \N \N 2021-11-05 18:59:31.356944 2021-11-05 18:59:31.356875 f969505d-9a49-4f4c-8f50-17004ccd0403 2441 +2109 uri://ed-fi.org/SchoolTypeDescriptor Alternative Alternative Alternative \N \N \N 2021-11-05 18:59:28.686147 2021-11-05 18:59:28.685018 2b83da45-377d-4032-a5c0-6073ddd4a6b9 2169 +2112 uri://ed-fi.org/SectionCharacteristicDescriptor Attendance Tracked Attendance Tracked Attendance Tracked \N \N \N 2021-11-05 18:59:28.818422 2021-11-05 18:59:28.816655 f388b848-32ab-4e0b-85f6-d207857f8eb4 2172 +2113 uri://ed-fi.org/SeparationDescriptor Mutual agreement Mutual agreement Mutual agreement \N \N \N 2021-11-05 18:59:28.829692 2021-11-05 18:59:28.828204 4b07d390-e43a-4a9e-8ae8-f85255265163 2173 +2115 uri://ed-fi.org/SeparationDescriptor Other Other Other \N \N \N 2021-11-05 18:59:28.837848 2021-11-05 18:59:28.837792 c02a3579-74e2-43f0-b30a-898ecdc06774 2175 +2118 uri://ed-fi.org/SeparationReasonDescriptor Employment elsewhere Employment elsewhere Employment elsewhere \N \N \N 2021-11-05 18:59:28.937183 2021-11-05 18:59:28.935973 a8dedf47-11f1-4095-a9fd-cce0b2d7013c 2178 +2121 uri://ed-fi.org/SeparationReasonDescriptor Other Other Other \N \N \N 2021-11-05 18:59:28.957531 2021-11-05 18:59:28.957478 ffbf1da8-63f4-45d4-9696-ce2e70523c3c 2181 +2125 uri://ed-fi.org/SeparationReasonDescriptor Retirement Retirement Retirement \N \N \N 2021-11-05 18:59:28.972699 2021-11-05 18:59:28.972573 25a0036e-4dec-425e-9434-b106e29eca99 2185 +2127 uri://ed-fi.org/SeparationReasonDescriptor Discharge Discharge Discharge \N \N \N 2021-11-05 18:59:28.975463 2021-11-05 18:59:28.97542 70b8033f-2a39-4e39-a03a-ee3c199c7c22 2187 +2131 uri://ed-fi.org/ServiceDescriptor Counseling services Counseling services Counseling services \N \N \N 2021-11-05 18:59:29.068067 2021-11-05 18:59:29.066615 9296c685-8a2c-4f39-a314-1a5194c498ed 2191 +2135 uri://ed-fi.org/ServiceDescriptor Physical therapy Physical therapy Physical therapy \N \N \N 2021-11-05 18:59:29.096691 2021-11-05 18:59:29.09662 a9deaebd-1a40-4bc0-952e-1f8eef5305b8 2195 +2136 uri://ed-fi.org/ServiceDescriptor Psychological services Psychological services Psychological services \N \N \N 2021-11-05 18:59:29.105749 2021-11-05 18:59:29.104664 d8df7676-3ba2-4324-816b-b62b0ddd7f4b 2196 +2139 uri://ed-fi.org/ServiceDescriptor Recreational services Recreational services Recreational services \N \N \N 2021-11-05 18:59:29.109435 2021-11-05 18:59:29.109392 d685cbe0-5c95-414c-bd4f-635d244087ea 2199 +2141 uri://ed-fi.org/ServiceDescriptor Audiological services Audiological services Audiological services \N \N \N 2021-11-05 18:59:29.119062 2021-11-05 18:59:29.119007 449c3750-da67-4232-b38a-e0155a9c16ae 2201 +2142 uri://ed-fi.org/ServiceDescriptor Speech therapy Speech therapy Speech therapy \N \N \N 2021-11-05 18:59:29.122024 2021-11-05 18:59:29.1219 a11a310a-b1f4-44e4-a7f9-1d460599b4b8 2202 +2145 uri://ed-fi.org/SexDescriptor Non-binary Non-binary Non-binary \N \N \N 2021-11-05 18:59:29.212627 2021-11-05 18:59:29.211462 cfaca3dd-9acb-4961-b11e-9cb8a265d174 2205 +2149 uri://ed-fi.org/SourceSystemDescriptor State State State \N \N \N 2021-11-05 18:59:29.32428 2021-11-05 18:59:29.323032 3cc8720c-6a3d-4b2d-9e63-aab7857b6420 2209 +2152 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Interpreting Services Interpreting Services Interpreting Services \N \N \N 2021-11-05 18:59:29.428165 2021-11-05 18:59:29.426843 20783f31-ad4a-4630-9c79-831d31c5c272 2212 +2157 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Early Identification And Evaluation Early Identification And Evaluation Early Identification And Evaluation \N \N \N 2021-11-05 18:59:29.446017 2021-11-05 18:59:29.445951 547f1e8a-acbe-4679-8104-9b2334a3f00f 2217 +2159 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Medical Services Medical Services (Diagnostic or evaluation only - not ongoing treatment) Medical Services (Diagnostic or evaluation only - not ongoing treatment) \N \N \N 2021-11-05 18:59:29.454746 2021-11-05 18:59:29.454381 43398632-0d92-45b1-b8a4-7209a4e5f697 2219 +2161 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Social Work Services Social Work Services Social Work Services \N \N \N 2021-11-05 18:59:29.45798 2021-11-05 18:59:29.45773 51c1c4cb-8695-4a75-980b-3def1fbc1cc5 2221 +2162 uri://ed-fi.org/SpecialEducationProgramServiceDescriptor Parent Counseling And Training Parent Counseling And Training Parent Counseling And Training \N \N \N 2021-11-05 18:59:29.460625 2021-11-05 18:59:29.460598 dd16f86d-0061-49eb-a692-d4c246d85316 2222 +2164 uri://ed-fi.org/SpecialEducationSettingDescriptor Inside regular class 80% or more of the day Inside regular class 80% or more of the day Inside regular class 80% or more of the day \N \N \N 2021-11-05 18:59:29.557941 2021-11-05 18:59:29.556698 d1bd80ff-0bde-4d57-8f63-f1836be6771b 2224 +2169 uri://ed-fi.org/SpecialEducationSettingDescriptor Parentally-placed in Private Schools Parentally-placed in Private Schools Parentally-placed in Private Schools \N \N \N 2021-11-05 18:59:29.576997 2021-11-05 18:59:29.576874 0b35463d-02e0-4096-b464-e32055643f79 2229 +2171 uri://ed-fi.org/StaffClassificationDescriptor Assistant Superintendent Assistant Superintendent Assistant Superintendent \N \N \N 2021-11-05 18:59:29.683393 2021-11-05 18:59:29.682115 b75ae3e8-2fb4-43d8-86e2-92b89effd389 2231 +2177 uri://ed-fi.org/StaffClassificationDescriptor Elementary Teachers Elementary Teachers Elementary Teachers \N \N \N 2021-11-05 18:59:29.701685 2021-11-05 18:59:29.701623 33bc63d8-6805-4216-93f5-0cb13381e027 2237 +2179 uri://ed-fi.org/StaffClassificationDescriptor Instructional Coordinator Instructional Coordinator Instructional Coordinator \N \N \N 2021-11-05 18:59:29.711591 2021-11-05 18:59:29.711506 050697d7-f6ff-49aa-a4a9-68c36eb3a908 2239 +2182 uri://ed-fi.org/StaffClassificationDescriptor LEA Administrative Support Staff LEA Administrative Support Staff LEA Administrative Support Staff \N \N \N 2021-11-05 18:59:29.716637 2021-11-05 18:59:29.716596 5c17691c-5d57-42e0-ae5e-50b9cf6f74dd 2242 +2183 uri://ed-fi.org/StaffClassificationDescriptor LEA Specialist LEA Specialist LEA Specialist \N \N \N 2021-11-05 18:59:29.722677 2021-11-05 18:59:29.722613 9f7f17f0-e56d-460a-8fb8-eae670eea5c2 2243 +2185 uri://ed-fi.org/StaffClassificationDescriptor Librarians/Media Specialists Librarians/Media Specialists Librarians/Media Specialists \N \N \N 2021-11-05 18:59:29.72757 2021-11-05 18:59:29.727521 5aef035b-ef1c-42da-b1d2-06b3c0c23457 2245 +2187 uri://ed-fi.org/StaffClassificationDescriptor Operational Support Operational Support Operational Support \N \N \N 2021-11-05 18:59:29.736348 2021-11-05 18:59:29.736102 5ffb7d2a-dfc8-4857-a8c0-4e549307cf2e 2247 +2188 uri://ed-fi.org/StaffClassificationDescriptor Paraprofessionals/Instructional Aides Paraprofessionals/Instructional Aides Paraprofessionals/Instructional Aides \N \N \N 2021-11-05 18:59:29.739549 2021-11-05 18:59:29.739456 026cd230-b33f-4a88-91e5-b7151e900288 2248 +2191 uri://ed-fi.org/StaffClassificationDescriptor Principal Principal Principal \N \N \N 2021-11-05 18:59:29.747851 2021-11-05 18:59:29.747795 5e8a973c-68c1-4c84-b30e-6c8a4d3e3a98 2251 +2192 uri://ed-fi.org/StaffClassificationDescriptor School Administrative Support Staff School Administrative Support Staff School Administrative Support Staff \N \N \N 2021-11-05 18:59:29.752132 2021-11-05 18:59:29.752074 06da040a-354a-42e2-a0e0-0e45b3c468ff 2252 +2195 uri://ed-fi.org/StaffClassificationDescriptor School Leader School Leader School Leader \N \N \N 2021-11-05 18:59:29.760207 2021-11-05 18:59:29.759881 74fd0209-86a1-460e-b94e-0bf38b9a8316 2255 +2198 uri://ed-fi.org/StaffClassificationDescriptor Secondary School Counselors Secondary School Counselors Secondary School Counselors \N \N \N 2021-11-05 18:59:29.768988 2021-11-05 18:59:29.76869 a101d5c4-7d36-4de3-993c-18332e3d11d0 2258 +2199 uri://ed-fi.org/StaffClassificationDescriptor Secondary Teachers Secondary Teachers Secondary Teachers \N \N \N 2021-11-05 18:59:29.775794 2021-11-05 18:59:29.775567 d6b71b54-ea84-40d1-940a-ad9873200bc7 2259 +2201 uri://ed-fi.org/StaffClassificationDescriptor Student Support Services Staff (w/o Psychology) Student Support Services Staff (w/o Psychology) Student Support Services Staff (w/o Psychology) \N \N \N 2021-11-05 18:59:29.779954 2021-11-05 18:59:29.779876 c34e6ad5-78d0-476e-8467-4a129f80519a 2261 +2203 uri://ed-fi.org/StaffClassificationDescriptor Superintendent Superintendent Superintendent \N \N \N 2021-11-05 18:59:29.788405 2021-11-05 18:59:29.788201 8d07d317-fbb5-45a2-a611-78ec29d132de 2263 +2206 uri://ed-fi.org/StaffClassificationDescriptor Teacher Teacher Teacher \N \N \N 2021-11-05 18:59:29.797541 2021-11-05 18:59:29.796221 93c512b7-ec95-42ee-ab4c-1dc1692dd69e 2266 +2209 uri://ed-fi.org/StaffIdentificationSystemDescriptor District District District \N \N \N 2021-11-05 18:59:29.891989 2021-11-05 18:59:29.890797 3fab7b48-d958-4ba1-92fe-bbe788b4302a 2269 +2211 uri://ed-fi.org/StaffIdentificationSystemDescriptor Other Federal Other Federal Other Federal \N \N \N 2021-11-05 18:59:29.909198 2021-11-05 18:59:29.908649 421c3500-1c33-4624-b9ed-f12a4872568a 2271 +2216 uri://ed-fi.org/StaffIdentificationSystemDescriptor School School School \N \N \N 2021-11-05 18:59:29.920759 2021-11-05 18:59:29.920642 10f7fc72-f582-441d-b871-ff83234f98a3 2276 +2186 uri://ed-fi.org/StaffClassificationDescriptor Library/Media Support Staff Library/Media Support Staff Library/Media Support Staff \N \N \N 2021-11-05 18:59:29.727702 2021-11-05 18:59:29.727685 2be99bec-b967-4c5f-9398-36758d03dbd7 2246 +2189 uri://ed-fi.org/StaffClassificationDescriptor Other Other Other \N \N \N 2021-11-05 18:59:29.739536 2021-11-05 18:59:29.739511 831bd97c-6091-4715-8e77-ed3423c2c638 2249 +2194 uri://ed-fi.org/StaffClassificationDescriptor School Administrator School Administrator School Administrator \N \N \N 2021-11-05 18:59:29.752693 2021-11-05 18:59:29.752648 ffeeedc1-5c06-4e8b-892b-b54b4094e3ff 2254 +2197 uri://ed-fi.org/StaffClassificationDescriptor School Specialist School Specialist School Specialist \N \N \N 2021-11-05 18:59:29.765132 2021-11-05 18:59:29.765081 bb5fd0e6-69ee-47f7-89b2-d970ecbb37a4 2257 +2204 uri://ed-fi.org/StaffClassificationDescriptor Support Services Staff Support Services Staff Support Services Staff \N \N \N 2021-11-05 18:59:29.792877 2021-11-05 18:59:29.792731 180393f5-f86b-4d00-9117-912ee3ddecbf 2264 +2210 uri://ed-fi.org/StaffIdentificationSystemDescriptor Canadian SIN Canadian SIN Canadian SIN \N \N \N 2021-11-05 18:59:29.892137 2021-11-05 18:59:29.890816 35a76ebe-0ad6-49cd-a3e3-e66fc5515b7c 2270 +2213 uri://ed-fi.org/StaffIdentificationSystemDescriptor Medicaid Medicaid Medicaid \N \N \N 2021-11-05 18:59:29.909976 2021-11-05 18:59:29.909924 9c5f3394-afad-4722-80e4-0298a7860972 2273 +2223 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Bereavement Bereavement Bereavement \N \N \N 2021-11-05 18:59:30.025856 2021-11-05 18:59:30.024578 aeb7bd3b-3232-49c3-b1b0-375fdb0ef5fa 2283 +2228 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Jury duty Jury duty Jury duty \N \N \N 2021-11-05 18:59:30.044972 2021-11-05 18:59:30.044629 a22dfd79-050e-4395-8919-b438d44eaa11 2288 +2241 uri://ed-fi.org/StateAbbreviationDescriptor AA AA AA \N \N \N 2021-11-05 18:59:30.180813 2021-11-05 18:59:30.179599 d69c2791-ac81-4f56-b18a-36e9f604e9c4 2301 +2246 uri://ed-fi.org/StateAbbreviationDescriptor AS AS AS \N \N \N 2021-11-05 18:59:30.201954 2021-11-05 18:59:30.20189 26ea663e-2647-4030-8c9b-cffd4b72da2d 2306 +2250 uri://ed-fi.org/StateAbbreviationDescriptor CA CA CA \N \N \N 2021-11-05 18:59:30.219629 2021-11-05 18:59:30.219582 c8455b07-55bf-4211-ae0f-813f12968d55 2310 +2255 uri://ed-fi.org/StateAbbreviationDescriptor FM FM FM \N \N \N 2021-11-05 18:59:30.234138 2021-11-05 18:59:30.234117 587a72b0-25cb-4dc1-90ff-553017c12eeb 2315 +2257 uri://ed-fi.org/StateAbbreviationDescriptor IA IA IA \N \N \N 2021-11-05 18:59:30.246119 2021-11-05 18:59:30.246067 9d6b320d-e156-4045-adc4-5cfea1908e6e 2317 +2271 uri://ed-fi.org/StateAbbreviationDescriptor MO MO MO \N \N \N 2021-11-05 18:59:30.296836 2021-11-05 18:59:30.296551 fec8d23a-ec6d-469f-bdd4-a79a29176b6b 2331 +2275 uri://ed-fi.org/StateAbbreviationDescriptor NC NC NC \N \N \N 2021-11-05 18:59:30.309021 2021-11-05 18:59:30.308917 1649bdb8-5cb2-4fa3-b03b-133446ce8a8b 2335 +2279 uri://ed-fi.org/StateAbbreviationDescriptor NH NH NH \N \N \N 2021-11-05 18:59:30.321079 2021-11-05 18:59:30.32088 2beb6ff6-15f2-449c-b058-c4fc6efa583c 2339 +2286 uri://ed-fi.org/StateAbbreviationDescriptor PA PA PA \N \N \N 2021-11-05 18:59:30.347631 2021-11-05 18:59:30.347608 b1fc43de-28c3-4186-b212-c76d9b2b9108 2346 +2290 uri://ed-fi.org/StateAbbreviationDescriptor SC SC SC \N \N \N 2021-11-05 18:59:30.359196 2021-11-05 18:59:30.359144 00365072-8747-4994-a320-5ba1379110d9 2350 +2304 uri://ed-fi.org/StudentCharacteristicDescriptor Homeless Homeless Homeless \N \N \N 2021-11-05 18:59:30.487547 2021-11-05 18:59:30.486363 1aae0555-31a9-4f1b-a472-2925dc787ace 2364 +2307 uri://ed-fi.org/StudentCharacteristicDescriptor Parent in Military Parent in Military Parent in Military \N \N \N 2021-11-05 18:59:30.506841 2021-11-05 18:59:30.506552 c4b47703-1caf-46a4-be60-1d43c16a8595 2367 +2318 uri://ed-fi.org/StudentIdentificationSystemDescriptor Canadian SIN Canadian SIN Canadian SIN \N \N \N 2021-11-05 18:59:30.630144 2021-11-05 18:59:30.628872 7d3f2c2c-49b2-486f-a612-f68e3ae5eaae 2378 +2321 uri://ed-fi.org/StudentIdentificationSystemDescriptor National Migrant National Migrant National Migrant \N \N \N 2021-11-05 18:59:30.648998 2021-11-05 18:59:30.648559 573251fa-074a-4384-bb42-ce0d1d939aa5 2381 +2326 uri://ed-fi.org/StudentIdentificationSystemDescriptor State State The state identification system for students that assigns a state ID to each student. \N \N \N 2021-11-05 18:59:30.661554 2021-11-05 18:59:30.66148 6aa10640-9b40-4033-bc16-157473214af8 2386 +2331 uri://ed-fi.org/StudentParticipationCodeDescriptor Witness Witness Witness \N \N \N 2021-11-05 18:59:30.77143 2021-11-05 18:59:30.769285 1e35a576-7d12-4d7b-9cfd-8e524cf5295c 2391 +2333 uri://ed-fi.org/SurveyCategoryDescriptor Applicant Applicant Applicant \N \N \N 2021-11-05 18:59:30.876394 2021-11-05 18:59:30.875202 34521204-24cd-447b-99e9-fc9c6abb0544 2393 +2337 uri://ed-fi.org/SurveyCategoryDescriptor Parent Parent Parent \N \N \N 2021-11-05 18:59:30.895395 2021-11-05 18:59:30.895348 ef8cdc5a-9aa6-4ffe-ad7a-cbd68163740c 2397 +2345 uri://ed-fi.org/SurveyLevelDescriptor Infant/toddler Infant/toddler Infant/toddler \N \N \N 2021-11-05 18:59:31.00597 2021-11-05 18:59:31.003908 bad0af9d-608c-43c8-94df-f3c17b766949 2405 +2347 uri://ed-fi.org/SurveyLevelDescriptor Fourth grade Fourth grade Fourth grade \N \N \N 2021-11-05 18:59:31.035822 2021-11-05 18:59:31.035725 cdb8794f-7d72-4054-b36c-743244a4aed4 2407 +2353 uri://ed-fi.org/SurveyLevelDescriptor Seventh grade Seventh grade Seventh grade \N \N \N 2021-11-05 18:59:31.051804 2021-11-05 18:59:31.051751 1f178c73-49b6-401c-bfbe-94cd2e109165 2413 +2359 uri://ed-fi.org/SurveyLevelDescriptor Postsecondary Postsecondary Postsecondary \N \N \N 2021-11-05 18:59:31.077216 2021-11-05 18:59:31.07688 3855ab16-1e6e-4927-aaf5-9fbf87521492 2419 +2363 uri://ed-fi.org/SurveyLevelDescriptor Adult Education Adult Education Adult Education \N \N \N 2021-11-05 18:59:31.089643 2021-11-05 18:59:31.089589 ca432064-d2e1-40e7-8194-6a1200a6d31f 2423 +2368 uri://ed-fi.org/TeachingCredentialBasisDescriptor 5-year bachelor's degree 5-year bachelor's degree 5-year bachelor's degree \N \N \N 2021-11-05 18:59:31.197212 2021-11-05 18:59:31.195936 fcc3136f-73af-40ba-a044-90cbb570967f 2428 +2373 uri://ed-fi.org/TeachingCredentialBasisDescriptor Relevant experience Relevant experience Relevant experience \N \N \N 2021-11-05 18:59:31.217816 2021-11-05 18:59:31.217745 5988c856-8a85-4665-a840-8848a0d4b13f 2433 +2375 uri://ed-fi.org/TeachingCredentialDescriptor Master Master Master \N \N \N 2021-11-05 18:59:31.337426 2021-11-05 18:59:31.336175 da97f155-840b-4aef-9f95-51e416d8132b 2435 +2386 uri://ed-fi.org/TeachingCredentialDescriptor Specialist Specialist Specialist \N \N \N 2021-11-05 18:59:31.370244 2021-11-05 18:59:31.370179 65740168-3a2d-42b5-b95e-ae9ba4c99b6f 2446 +2391 uri://ed-fi.org/TechnicalSkillsAssessmentDescriptor Not Passed Not Passed Not Passed \N \N \N 2021-11-05 18:59:31.492532 2021-11-05 18:59:31.490988 9e808ca2-e653-48b4-9572-3b1adfc4b62a 2451 +2396 uri://ed-fi.org/TelephoneNumberTypeDescriptor Fax Fax Fax \N \N \N 2021-11-05 18:59:31.51791 2021-11-05 18:59:31.517538 5b92a907-7ec8-4d3b-ad38-16b370cf24c1 2456 +2400 uri://ed-fi.org/TelephoneNumberTypeDescriptor Unlisted Unlisted Unlisted \N \N \N 2021-11-05 18:59:31.532331 2021-11-05 18:59:31.532298 bbb3a58c-236b-48ce-86ea-9865d39eb862 2460 +2404 uri://ed-fi.org/TermDescriptor Semester Semester Semester \N \N \N 2021-11-05 18:59:31.63455 2021-11-05 18:59:31.633093 e4ae92d7-d17e-48cd-9a1c-4950166d16b5 2464 +2407 uri://ed-fi.org/TermDescriptor Quarter Quarter Quarter \N \N \N 2021-11-05 18:59:31.656732 2021-11-05 18:59:31.656684 7298829c-9b00-4cd6-a878-c2f9db716111 2467 +2416 uri://ed-fi.org/TermDescriptor Other Other Other \N \N \N 2021-11-05 18:59:31.684102 2021-11-05 18:59:31.684058 699aa1df-8f08-4fb0-b240-0e3e3c6233ca 2476 +2420 uri://ed-fi.org/TitleIPartAParticipantDescriptor Local Neglected Program DEPRECATED: Local Neglected Program DEPRECATED: Local Neglected Program \N \N \N 2021-11-05 18:59:31.786709 2021-11-05 18:59:31.784758 fd00470a-52d6-47c9-9625-6f94d0152acc 2480 +2422 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Social Studies Instructional Services Social Studies Instructional Services Social Studies Instructional Services \N \N \N 2021-11-05 18:59:31.907443 2021-11-05 18:59:31.906259 344d6afd-da44-4a80-bc6c-8e2f2c9fc0c0 2482 +2428 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Supporting Guidance/Advocacy Support Services Supporting Guidance/Advocacy Support Services Supporting Guidance/Advocacy Support Services \N \N \N 2021-11-05 18:59:31.931511 2021-11-05 18:59:31.930689 3ff0afc5-8f2b-4207-8f4b-e6762cdfc2a0 2488 +2434 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Title I Schoolwide School Title I Schoolwide School Title I Schoolwide School \N \N \N 2021-11-05 18:59:32.045968 2021-11-05 18:59:32.044493 34d1233c-0d5e-4469-bd88-6e1e28fa88fa 2494 +2436 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Missing Missing Missing \N \N \N 2021-11-05 18:59:32.065576 2021-11-05 18:59:32.065394 47d313fd-e5c9-4913-8253-d5ad09770b88 2496 +2441 uri://ed-fi.org/TribalAffiliationDescriptor Agdaagux Agdaagux Agdaagux Tribe of King Cove \N \N \N 2021-11-05 18:59:32.170105 2021-11-05 18:59:32.168615 fb2c7db4-3193-4279-8342-150e917558ec 2501 +2202 uri://ed-fi.org/StaffClassificationDescriptor Substitute Teacher Substitute Teacher Substitute Teacher \N \N \N 2021-11-05 18:59:29.780551 2021-11-05 18:59:29.780523 abf1ef9a-27bf-4e45-8297-66623a58be2a 2262 +2205 uri://ed-fi.org/StaffClassificationDescriptor Ungraded Teachers Ungraded Teachers Ungraded Teachers \N \N \N 2021-11-05 18:59:29.794201 2021-11-05 18:59:29.794067 e86bdd84-8fc5-4bc1-97cd-3dd345370e8f 2265 +2208 uri://ed-fi.org/StaffIdentificationSystemDescriptor Drivers License Drivers License Drivers License \N \N \N 2021-11-05 18:59:29.89199 2021-11-05 18:59:29.890806 d2dbfdc4-201a-45b0-b7e6-2a576da4758f 2268 +2212 uri://ed-fi.org/StaffIdentificationSystemDescriptor Health Record Health Record Health Record \N \N \N 2021-11-05 18:59:29.909299 2021-11-05 18:59:29.909258 0ec11918-2982-4f06-9223-0e229d2e8730 2272 +2215 uri://ed-fi.org/StaffIdentificationSystemDescriptor PIN PIN PIN \N \N \N 2021-11-05 18:59:29.920776 2021-11-05 18:59:29.920721 1b8508f0-6168-4bd6-b898-247c98ecd349 2275 +2221 uri://ed-fi.org/StaffIdentificationSystemDescriptor US Visa US Visa US Visa \N \N \N 2021-11-05 18:59:29.934097 2021-11-05 18:59:29.933688 655ef56d-d964-4feb-90ea-c6317e5926c7 2281 +2224 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Administrative Administrative Administrative \N \N \N 2021-11-05 18:59:30.025856 2021-11-05 18:59:30.024591 c65aa6e4-da40-45e2-b898-962d841bcd84 2284 +2226 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Government-requested Government-requested Government-requested \N \N \N 2021-11-05 18:59:30.043998 2021-11-05 18:59:30.043946 fe72ea00-1bfc-48c8-b4dc-e1f5f4f6a060 2286 +2230 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:30.055775 2021-11-05 18:59:30.055148 2080fc80-843b-4700-a0cb-55fa7c4f3dff 2290 +2234 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Release time Release time Release time \N \N \N 2021-11-05 18:59:30.067019 2021-11-05 18:59:30.066847 66f7894f-cda2-4b20-aa43-d4c842d072f4 2294 +2236 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Suspension Suspension Suspension \N \N \N 2021-11-05 18:59:30.072448 2021-11-05 18:59:30.072397 223ec767-6776-4c98-b96b-79201e6f9cb8 2296 +2239 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Work compensation Work compensation Work compensation \N \N \N 2021-11-05 18:59:30.080552 2021-11-05 18:59:30.080467 3dbd9a6a-f5b0-44f2-ae0a-098126cfa531 2299 +2243 uri://ed-fi.org/StateAbbreviationDescriptor AK AK AK \N \N \N 2021-11-05 18:59:30.181052 2021-11-05 18:59:30.179607 b45ab2be-52af-460c-9e8d-414e48c32ce6 2303 +2245 uri://ed-fi.org/StateAbbreviationDescriptor AP AP AP \N \N \N 2021-11-05 18:59:30.201743 2021-11-05 18:59:30.201669 d6583b46-c32f-4e1b-a42e-c2632d455f6a 2305 +2249 uri://ed-fi.org/StateAbbreviationDescriptor CT CT CT \N \N \N 2021-11-05 18:59:30.217018 2021-11-05 18:59:30.216274 cb31a65d-d1f2-4993-a3c2-9d548726a983 2309 +2254 uri://ed-fi.org/StateAbbreviationDescriptor GA GA GA \N \N \N 2021-11-05 18:59:30.233799 2021-11-05 18:59:30.23372 565b75f2-cc91-4597-9f0b-66612907c7f8 2314 +2259 uri://ed-fi.org/StateAbbreviationDescriptor ID ID ID \N \N \N 2021-11-05 18:59:30.247393 2021-11-05 18:59:30.246716 6abd24f0-45fc-49f9-8c6a-d2ff58caa1f7 2319 +2263 uri://ed-fi.org/StateAbbreviationDescriptor KY KY KY \N \N \N 2021-11-05 18:59:30.259752 2021-11-05 18:59:30.259434 d26a5040-a2d5-4808-811b-042744157738 2323 +2265 uri://ed-fi.org/StateAbbreviationDescriptor MA MA MA \N \N \N 2021-11-05 18:59:30.279829 2021-11-05 18:59:30.279698 a22bea5b-77f0-4258-9ef8-438ef7f86619 2325 +2267 uri://ed-fi.org/StateAbbreviationDescriptor ME ME ME \N \N \N 2021-11-05 18:59:30.283814 2021-11-05 18:59:30.283765 2474f0b3-51c7-4234-9c91-c15facac6048 2327 +2268 uri://ed-fi.org/StateAbbreviationDescriptor MH MH MH \N \N \N 2021-11-05 18:59:30.292878 2021-11-05 18:59:30.292254 26cb5879-f2ca-4622-a63e-cec6e3c24b8c 2328 +2270 uri://ed-fi.org/StateAbbreviationDescriptor MN MN MN \N \N \N 2021-11-05 18:59:30.296103 2021-11-05 18:59:30.296081 b3d89551-ac69-4960-9c45-c002fd63d31e 2330 +2272 uri://ed-fi.org/StateAbbreviationDescriptor MP MP MP \N \N \N 2021-11-05 18:59:30.304554 2021-11-05 18:59:30.304504 4df19d27-7869-43a7-bf7f-e0eb120bf440 2332 +2274 uri://ed-fi.org/StateAbbreviationDescriptor MT MT MT \N \N \N 2021-11-05 18:59:30.30879 2021-11-05 18:59:30.308669 6073a357-dd88-4b08-a4f4-ad0b6b6b9bd5 2334 +2277 uri://ed-fi.org/StateAbbreviationDescriptor NE NE NE \N \N \N 2021-11-05 18:59:30.31797 2021-11-05 18:59:30.317841 7479cdfd-d307-4a20-849f-38466ea01e08 2337 +2280 uri://ed-fi.org/StateAbbreviationDescriptor NM NM NM \N \N \N 2021-11-05 18:59:30.327748 2021-11-05 18:59:30.327693 bd822648-ecaf-4f38-8fc4-c92656abf657 2340 +2283 uri://ed-fi.org/StateAbbreviationDescriptor OH OH OH \N \N \N 2021-11-05 18:59:30.336988 2021-11-05 18:59:30.33694 862309db-24fa-4a3a-91cd-66d066c64b71 2343 +2284 uri://ed-fi.org/StateAbbreviationDescriptor OR OR OR \N \N \N 2021-11-05 18:59:30.344159 2021-11-05 18:59:30.344102 0fa53f42-a207-4b83-b064-f34d8e4994c8 2344 +2289 uri://ed-fi.org/StateAbbreviationDescriptor PW PW PW \N \N \N 2021-11-05 18:59:30.357165 2021-11-05 18:59:30.35704 33f1cb72-66d2-4c59-b63e-f427d1320f10 2349 +2293 uri://ed-fi.org/StateAbbreviationDescriptor TX TX TX \N \N \N 2021-11-05 18:59:30.367499 2021-11-05 18:59:30.367475 09ac85db-0e98-49b3-8823-78a30692bda7 2353 +2295 uri://ed-fi.org/StateAbbreviationDescriptor VA VA VA \N \N \N 2021-11-05 18:59:30.372532 2021-11-05 18:59:30.372486 7480a627-7da6-4d34-b394-0b8bcd9afa0e 2355 +2296 uri://ed-fi.org/StateAbbreviationDescriptor VI VI VI \N \N \N 2021-11-05 18:59:30.378263 2021-11-05 18:59:30.378188 9b877b79-cc1f-4595-9dad-8fef294b5510 2356 +2298 uri://ed-fi.org/StateAbbreviationDescriptor WA WA WA \N \N \N 2021-11-05 18:59:30.382731 2021-11-05 18:59:30.38254 7d79de91-7131-48aa-b74a-552403c26c43 2358 +2300 uri://ed-fi.org/StateAbbreviationDescriptor WV WV WV \N \N \N 2021-11-05 18:59:30.388982 2021-11-05 18:59:30.388872 7f5983b7-f192-4767-8f1b-2e2e659be93e 2360 +2303 uri://ed-fi.org/StudentCharacteristicDescriptor Displaced Homemaker Displaced Homemaker Displaced Homemaker \N \N \N 2021-11-05 18:59:30.487533 2021-11-05 18:59:30.486358 0aac5d6e-0554-492d-b3cb-920b13c0256c 2363 +2306 uri://ed-fi.org/StudentCharacteristicDescriptor Refugee Refugee Refugee \N \N \N 2021-11-05 18:59:30.506946 2021-11-05 18:59:30.506477 c3c5da72-39d5-4167-be63-6ac841792969 2366 +2310 uri://ed-fi.org/StudentCharacteristicDescriptor Unaccompanied Youth Unaccompanied Youth Unaccompanied Youth \N \N \N 2021-11-05 18:59:30.51875 2021-11-05 18:59:30.51858 0345e122-6b6f-4097-b36a-df81d41969eb 2370 +2313 uri://ed-fi.org/StudentCharacteristicDescriptor Other Other Other \N \N \N 2021-11-05 18:59:30.523409 2021-11-05 18:59:30.523226 e19edbc8-fef8-40da-81ec-05ff2eae2daf 2373 +2314 uri://ed-fi.org/StudentCharacteristicDescriptor Displaced Displaced Displaced \N \N \N 2021-11-05 18:59:30.528586 2021-11-05 18:59:30.528182 cdece585-ce3b-4067-b633-6755903177e7 2374 +2317 uri://ed-fi.org/StudentIdentificationSystemDescriptor Family Family Family \N \N \N 2021-11-05 18:59:30.630134 2021-11-05 18:59:30.62886 fd4c9dcf-133a-4b00-840f-4b3fa7d5d786 2377 +2322 uri://ed-fi.org/StudentIdentificationSystemDescriptor Other Other Other \N \N \N 2021-11-05 18:59:30.650202 2021-11-05 18:59:30.650135 310b65ff-eee0-4295-ab69-7c33345f6c18 2382 +2324 uri://ed-fi.org/StudentIdentificationSystemDescriptor SSN SSN SSN \N \N \N 2021-11-05 18:59:30.660236 2021-11-05 18:59:30.660131 3cf802b3-1d53-4214-8c7d-a26e7efcf7de 2384 +2330 uri://ed-fi.org/StudentParticipationCodeDescriptor Perpetrator Perpetrator Perpetrator \N \N \N 2021-11-05 18:59:30.770548 2021-11-05 18:59:30.769297 2dedd69b-8d03-4ddf-b37d-be29606789f8 2390 +2334 uri://ed-fi.org/SurveyCategoryDescriptor District District District \N \N \N 2021-11-05 18:59:30.876394 2021-11-05 18:59:30.875192 42826184-2a1c-4716-98f7-581495f7a938 2394 +2336 uri://ed-fi.org/SurveyCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:30.895341 2021-11-05 18:59:30.895205 3ddab269-6537-4f85-837c-ea32bb2edf00 2396 +2341 uri://ed-fi.org/SurveyCategoryDescriptor Student Student Student \N \N \N 2021-11-05 18:59:30.908238 2021-11-05 18:59:30.908147 00b0316d-63ae-4a6d-b5bd-30bdcd541b26 2401 +2342 uri://ed-fi.org/SurveyLevelDescriptor Early Education Early Education Early Education \N \N \N 2021-11-05 18:59:31.005196 2021-11-05 18:59:31.003891 28dfb511-efb1-4cb7-b8cf-eeeb29dd9d26 2402 +2349 uri://ed-fi.org/SurveyLevelDescriptor Second grade Second grade Second grade \N \N \N 2021-11-05 18:59:31.037793 2021-11-05 18:59:31.03777 b353501a-4e3a-4491-bda2-ed41024f782e 2409 +2352 uri://ed-fi.org/SurveyLevelDescriptor Fifth grade Fifth grade Fifth grade \N \N \N 2021-11-05 18:59:31.05045 2021-11-05 18:59:31.050407 1ab5de08-536f-4209-b717-636e06d61c3d 2412 +2354 uri://ed-fi.org/SurveyLevelDescriptor Tenth grade Tenth grade Tenth grade \N \N \N 2021-11-05 18:59:31.063282 2021-11-05 18:59:31.063226 27fc0056-e113-4040-a22e-d9f37a05a2c2 2414 +2357 uri://ed-fi.org/SurveyLevelDescriptor Twelfth grade Twelfth grade Twelfth grade \N \N \N 2021-11-05 18:59:31.066566 2021-11-05 18:59:31.066533 ce9ba4d4-bb77-4cc1-ab8d-6f765b5e21d4 2417 +2360 uri://ed-fi.org/SurveyLevelDescriptor Undergraduate Undergraduate Undergraduate \N \N \N 2021-11-05 18:59:31.07726 2021-11-05 18:59:31.07716 d02c82e9-92d9-44d0-9e59-862c54c4f44e 2420 +2218 uri://ed-fi.org/StaffIdentificationSystemDescriptor Selective Service Selective Service Selective Service \N \N \N 2021-11-05 18:59:29.924931 2021-11-05 18:59:29.924578 e5cd7bc8-08c0-4662-88fa-c951c7e74357 2278 +2219 uri://ed-fi.org/StaffIdentificationSystemDescriptor SSN SSN SSN \N \N \N 2021-11-05 18:59:29.929906 2021-11-05 18:59:29.929818 b123d1ac-aaed-4eef-aba9-4745352825a3 2279 +2220 uri://ed-fi.org/StaffIdentificationSystemDescriptor State State State \N \N \N 2021-11-05 18:59:29.932542 2021-11-05 18:59:29.932491 433a7b13-4c6d-4c3d-a2cc-cfa11d0eb84a 2280 +2222 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Annual leave Annual leave Annual leave \N \N \N 2021-11-05 18:59:30.025856 2021-11-05 18:59:30.024578 b3bcbf93-e78e-485e-85ec-ff41c348c773 2282 +2227 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Flex time Flex time Flex time \N \N \N 2021-11-05 18:59:30.044134 2021-11-05 18:59:30.043346 7e0423bd-af55-4e60-85d9-50796ca17480 2287 +2229 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Family and medical leave Family and medical leave Family and medical leave \N \N \N 2021-11-05 18:59:30.048503 2021-11-05 18:59:30.048457 24897577-d575-43bb-8b93-33d5c6e68878 2289 +2231 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Military leave Military leave Military leave \N \N \N 2021-11-05 18:59:30.055851 2021-11-05 18:59:30.055731 4eeb1963-11fe-4575-b1e8-4170816e3b98 2291 +2233 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Professional development Professional development Professional development \N \N \N 2021-11-05 18:59:30.059641 2021-11-05 18:59:30.059593 c9cabf29-0280-4820-b4f6-5aea598395d3 2293 +2235 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Sabbatical leave Sabbatical leave Sabbatical leave \N \N \N 2021-11-05 18:59:30.067751 2021-11-05 18:59:30.067643 9de7f06e-bc5f-48f2-9481-8a87698cd0fd 2295 +2237 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Sick leave Sick leave Sick leave \N \N \N 2021-11-05 18:59:30.072424 2021-11-05 18:59:30.072353 6b2b1275-059c-4fc9-81fc-f8e0f9d3ac02 2297 +2238 uri://ed-fi.org/StaffLeaveEventCategoryDescriptor Vacation Vacation Vacation \N \N \N 2021-11-05 18:59:30.079695 2021-11-05 18:59:30.079584 1fa7bc85-442e-4617-a4f4-8ae06066d89f 2298 +2242 uri://ed-fi.org/StateAbbreviationDescriptor AE AE AE \N \N \N 2021-11-05 18:59:30.180814 2021-11-05 18:59:30.179583 e7bb7b1c-112a-4af9-bb3c-49b6ca575710 2302 +2244 uri://ed-fi.org/StateAbbreviationDescriptor AZ AZ AZ \N \N \N 2021-11-05 18:59:30.201329 2021-11-05 18:59:30.201218 6cb99482-45a5-4f0f-bb82-6e883fa240db 2304 +2248 uri://ed-fi.org/StateAbbreviationDescriptor CO CO CO \N \N \N 2021-11-05 18:59:30.216667 2021-11-05 18:59:30.216109 41cadc61-cfc2-42e9-a204-5c2c802784c7 2308 +2252 uri://ed-fi.org/StateAbbreviationDescriptor FL FL FL \N \N \N 2021-11-05 18:59:30.231321 2021-11-05 18:59:30.231132 e00db1d7-6229-45c7-8336-79d487b49650 2312 +2256 uri://ed-fi.org/StateAbbreviationDescriptor GU GU GU \N \N \N 2021-11-05 18:59:30.243149 2021-11-05 18:59:30.242826 52a6af7e-35ba-4bd8-b111-6c3c7d919efc 2316 +2258 uri://ed-fi.org/StateAbbreviationDescriptor HI HI HI \N \N \N 2021-11-05 18:59:30.246104 2021-11-05 18:59:30.245999 b69c9000-5d26-4b51-a2a9-1314dc5cd1fb 2318 +2260 uri://ed-fi.org/StateAbbreviationDescriptor IL IL IL \N \N \N 2021-11-05 18:59:30.25444 2021-11-05 18:59:30.254355 b69b1b43-0913-4f0a-ab37-eb098f82b40e 2320 +2262 uri://ed-fi.org/StateAbbreviationDescriptor KS KS KS \N \N \N 2021-11-05 18:59:30.259678 2021-11-05 18:59:30.259328 bb1c3e62-90b9-4191-9e04-faede8999e2b 2322 +2264 uri://ed-fi.org/StateAbbreviationDescriptor LA LA LA \N \N \N 2021-11-05 18:59:30.267653 2021-11-05 18:59:30.267471 5678a39f-7c9f-4f1f-be1b-433e0ae269a2 2324 +2266 uri://ed-fi.org/StateAbbreviationDescriptor MD MD MD \N \N \N 2021-11-05 18:59:30.283787 2021-11-05 18:59:30.283684 5f9a0abd-b0f9-4730-a26a-a93e27ae507b 2326 +2269 uri://ed-fi.org/StateAbbreviationDescriptor MI MI MI \N \N \N 2021-11-05 18:59:30.293172 2021-11-05 18:59:30.293081 cb12fcd5-28b2-49da-8dd1-7d52cf1df17c 2329 +2273 uri://ed-fi.org/StateAbbreviationDescriptor MS MS MS \N \N \N 2021-11-05 18:59:30.306276 2021-11-05 18:59:30.306224 a0291c85-8cb2-48c5-a6bc-3b078b3aa238 2333 +2276 uri://ed-fi.org/StateAbbreviationDescriptor ND ND ND \N \N \N 2021-11-05 18:59:30.316314 2021-11-05 18:59:30.316199 2862f9c5-66b8-4c0e-8573-9cb973946e33 2336 +2278 uri://ed-fi.org/StateAbbreviationDescriptor NJ NJ NJ \N \N \N 2021-11-05 18:59:30.320988 2021-11-05 18:59:30.320764 7a0b8139-a98c-4867-a2fa-c4ff67e8e8e3 2338 +2281 uri://ed-fi.org/StateAbbreviationDescriptor NV NV NV \N \N \N 2021-11-05 18:59:30.331421 2021-11-05 18:59:30.33137 c8beaf72-7223-493c-a007-e09885af219d 2341 +2282 uri://ed-fi.org/StateAbbreviationDescriptor NY NY NY \N \N \N 2021-11-05 18:59:30.33689 2021-11-05 18:59:30.33686 7cc6a276-d8b5-4a42-af92-9447a6cc05e5 2342 +2285 uri://ed-fi.org/StateAbbreviationDescriptor OK OK OK \N \N \N 2021-11-05 18:59:30.344142 2021-11-05 18:59:30.343883 4505eae3-1732-4a89-b745-29618c14d7d2 2345 +2287 uri://ed-fi.org/StateAbbreviationDescriptor PR PR PR \N \N \N 2021-11-05 18:59:30.349703 2021-11-05 18:59:30.349097 2ee999de-ee42-427f-9e90-c3465728ab85 2347 +2288 uri://ed-fi.org/StateAbbreviationDescriptor RI RI RI \N \N \N 2021-11-05 18:59:30.356238 2021-11-05 18:59:30.356182 2aea2373-7e4b-4a42-be3e-149284b3d70f 2348 +2291 uri://ed-fi.org/StateAbbreviationDescriptor SD SD SD \N \N \N 2021-11-05 18:59:30.360441 2021-11-05 18:59:30.360399 411737b3-c7eb-40a9-9056-5d4654024bed 2351 +2292 uri://ed-fi.org/StateAbbreviationDescriptor TN TN TN \N \N \N 2021-11-05 18:59:30.366363 2021-11-05 18:59:30.365941 5125d087-58a6-4ef6-b3d9-7cb31af18bb2 2352 +2294 uri://ed-fi.org/StateAbbreviationDescriptor UT UT UT \N \N \N 2021-11-05 18:59:30.371095 2021-11-05 18:59:30.37104 36d4b581-15f6-4b3e-abe2-902552042628 2354 +2297 uri://ed-fi.org/StateAbbreviationDescriptor VT VT VT \N \N \N 2021-11-05 18:59:30.380061 2021-11-05 18:59:30.379991 09e2200a-756e-42ad-ba32-c75bdf1138b1 2357 +2299 uri://ed-fi.org/StateAbbreviationDescriptor WI WI WI \N \N \N 2021-11-05 18:59:30.382747 2021-11-05 18:59:30.38269 f92c74a9-d9d3-4017-9ec0-fc72fba23102 2359 +2301 uri://ed-fi.org/StateAbbreviationDescriptor WY WY WY \N \N \N 2021-11-05 18:59:30.390462 2021-11-05 18:59:30.389964 04916a71-568f-4f30-acce-156e462f4814 2361 +2302 uri://ed-fi.org/StudentCharacteristicDescriptor Foster Care Foster Care Foster Care \N \N \N 2021-11-05 18:59:30.487533 2021-11-05 18:59:30.486341 ef722fe8-3971-44b4-b490-09b3f1eaeaaf 2362 +2308 uri://ed-fi.org/StudentCharacteristicDescriptor Immigrant Immigrant Immigrant \N \N \N 2021-11-05 18:59:30.507689 2021-11-05 18:59:30.507628 5cb83b85-80b2-42cd-b5fb-d4e0bed52bf6 2368 +2311 uri://ed-fi.org/StudentCharacteristicDescriptor Runaway Runaway Runaway \N \N \N 2021-11-05 18:59:30.51869 2021-11-05 18:59:30.518488 e5cf1d16-9885-4407-b961-8271e341dc19 2371 +2312 uri://ed-fi.org/StudentCharacteristicDescriptor Single Parent Single Parent Single Parent \N \N \N 2021-11-05 18:59:30.523269 2021-11-05 18:59:30.523134 3536a44f-cd6f-4c9f-a52b-1a4947034d7b 2372 +2315 uri://ed-fi.org/StudentCharacteristicDescriptor Economic Disadvantaged Economic Disadvantaged Economic Disadvantaged \N \N \N 2021-11-05 18:59:30.529391 2021-11-05 18:59:30.52911 be730482-bf10-4364-9657-fb7d8a8f71d9 2375 +2316 uri://ed-fi.org/StudentIdentificationSystemDescriptor Federal Federal Federal \N \N \N 2021-11-05 18:59:30.630134 2021-11-05 18:59:30.628858 6ea48447-e05a-4bdc-9327-d78c091ac953 2376 +2320 uri://ed-fi.org/StudentIdentificationSystemDescriptor Local DEPRECATED: Local DEPRECATED: Local \N \N \N 2021-11-05 18:59:30.648607 2021-11-05 18:59:30.647683 a4c2d657-4e81-4750-a881-974ba8ebd043 2380 +2325 uri://ed-fi.org/StudentIdentificationSystemDescriptor State Migrant State Migrant State Migrant \N \N \N 2021-11-05 18:59:30.661301 2021-11-05 18:59:30.661254 84349524-46ae-4ea4-aa0a-45b7f14f2be8 2385 +2327 uri://ed-fi.org/StudentIdentificationSystemDescriptor Student Number Student Number A category of IDs often provided to enable students and others to remember and use in daily operations. If none exists, the Student Number system is generally equivalent to the District system. \N \N \N 2021-11-05 18:59:30.666179 2021-11-05 18:59:30.666117 a1704872-4fd2-4d09-9d87-dac58a7e1aff 2387 +2329 uri://ed-fi.org/StudentParticipationCodeDescriptor Victim Victim Victim \N \N \N 2021-11-05 18:59:30.770548 2021-11-05 18:59:30.769284 7cf32c4e-0570-4556-bb27-6a6bb7da91c4 2389 +2335 uri://ed-fi.org/SurveyCategoryDescriptor Community Community Community \N \N \N 2021-11-05 18:59:30.876544 2021-11-05 18:59:30.875215 c4dfd4b1-6cf1-4a6e-825b-0897790decd7 2395 +2339 uri://ed-fi.org/SurveyCategoryDescriptor Principal Principal Principal \N \N \N 2021-11-05 18:59:30.897778 2021-11-05 18:59:30.897737 192ac15e-95cc-4cf2-a90d-2064053e84cf 2399 +2340 uri://ed-fi.org/SurveyCategoryDescriptor Teacher Teacher Teacher \N \N \N 2021-11-05 18:59:30.908084 2021-11-05 18:59:30.907993 6fdc4a39-878f-4958-bbc5-aba23528d196 2400 +2344 uri://ed-fi.org/SurveyLevelDescriptor Kindergarten Kindergarten Kindergarten \N \N \N 2021-11-05 18:59:31.005201 2021-11-05 18:59:31.003891 c4e031fb-fec4-497e-87ac-9c6f9dbd0517 2404 +2346 uri://ed-fi.org/SurveyLevelDescriptor First grade First grade First grade \N \N \N 2021-11-05 18:59:31.035686 2021-11-05 18:59:31.035625 eefcf4a1-d815-4b7d-ab03-5a1f1af58079 2406 +2350 uri://ed-fi.org/SurveyLevelDescriptor Sixth grade Sixth grade Sixth grade \N \N \N 2021-11-05 18:59:31.050389 2021-11-05 18:59:31.05032 97d72517-53c1-4f90-9a64-b6d8e68799b1 2410 +2355 uri://ed-fi.org/SurveyLevelDescriptor Eleventh grade Eleventh grade Eleventh grade \N \N \N 2021-11-05 18:59:31.063472 2021-11-05 18:59:31.063426 7892c8b8-ff01-42c0-a7d7-a85c6f0ce15c 2415 +2358 uri://ed-fi.org/SurveyLevelDescriptor Grade 13 Grade 13 Grade 13 \N \N \N 2021-11-05 18:59:31.074308 2021-11-05 18:59:31.073965 0f5857f7-b133-47c2-aba1-01d3891dfe29 2418 +2364 uri://ed-fi.org/SurveyLevelDescriptor Other Other Other \N \N \N 2021-11-05 18:59:31.090907 2021-11-05 18:59:31.09085 949d2d3b-8c38-4066-a5c6-66f91e1977e4 2424 +2366 uri://ed-fi.org/SurveyLevelDescriptor Ungraded Ungraded Ungraded \N \N \N 2021-11-05 18:59:31.099359 2021-11-05 18:59:31.099307 16c30b57-c6e5-4ab0-baf6-3a0a3f274940 2426 +2367 uri://ed-fi.org/TeachingCredentialBasisDescriptor 4-year bachelor's degree 4-year bachelor's degree 4-year bachelor's degree \N \N \N 2021-11-05 18:59:31.197211 2021-11-05 18:59:31.195922 e8357650-41c0-42b5-b4c3-816389ea4805 2427 +2371 uri://ed-fi.org/TeachingCredentialBasisDescriptor Master's degree Master's degree Master's degree \N \N \N 2021-11-05 18:59:31.217407 2021-11-05 18:59:31.217194 b26f329a-b04e-45a9-9892-0b129d903ad2 2431 +2376 uri://ed-fi.org/TeachingCredentialDescriptor Nonrenewable Nonrenewable Nonrenewable \N \N \N 2021-11-05 18:59:31.337436 2021-11-05 18:59:31.336206 0447ba37-c8f4-42d8-873a-fa8af5867127 2436 +2380 uri://ed-fi.org/TeachingCredentialDescriptor Probationary/Initial Probationary/Initial Probationary/Initial \N \N \N 2021-11-05 18:59:31.356181 2021-11-05 18:59:31.355267 eb64d4b5-959d-4c21-a941-8fe01be12bb9 2440 +2383 uri://ed-fi.org/TeachingCredentialDescriptor Provisional Provisional Provisional \N \N \N 2021-11-05 18:59:31.364597 2021-11-05 18:59:31.364552 caf5db77-7e9a-4361-b349-031ac293711d 2443 +2384 uri://ed-fi.org/TeachingCredentialDescriptor Retired Retired Retired \N \N \N 2021-11-05 18:59:31.369034 2021-11-05 18:59:31.368797 c55a237b-8d8a-4d1d-bd67-83cb72eb6075 2444 +2387 uri://ed-fi.org/TeachingCredentialDescriptor Substitute Substitute Substitute \N \N \N 2021-11-05 18:59:31.374408 2021-11-05 18:59:31.374298 18eac868-0938-4d08-878b-972b545e1635 2447 +2388 uri://ed-fi.org/TeachingCredentialDescriptor Teacher Assistant Teacher Assistant Teacher Assistant \N \N \N 2021-11-05 18:59:31.379232 2021-11-05 18:59:31.379158 e4d29da3-2045-406c-8177-22918fd716a8 2448 +2389 uri://ed-fi.org/TeachingCredentialDescriptor Temporary Temporary Temporary \N \N \N 2021-11-05 18:59:31.382124 2021-11-05 18:59:31.38203 4e4521dd-8079-4f59-88dd-67bfb99ce5cc 2449 +2392 uri://ed-fi.org/TechnicalSkillsAssessmentDescriptor Did Not Take Did Not Take Did Not Take \N \N \N 2021-11-05 18:59:31.492439 2021-11-05 18:59:31.49098 99469272-b597-4b98-9c3c-83e159f84216 2452 +2393 uri://ed-fi.org/TelephoneNumberTypeDescriptor Emergency 1 Emergency 1 Emergency 1 \N \N \N 2021-11-05 18:59:31.510021 2021-11-05 18:59:31.50856 f6f66217-8dc0-43e1-a6d1-0a95ff3c0b1a 2453 +2394 uri://ed-fi.org/TelephoneNumberTypeDescriptor Emergency 2 Emergency 2 Emergency 2 \N \N \N 2021-11-05 18:59:31.517579 2021-11-05 18:59:31.517402 5d81f898-c95f-4ffe-bdae-07d1563ba40f 2454 +2398 uri://ed-fi.org/TelephoneNumberTypeDescriptor Other Other Other \N \N \N 2021-11-05 18:59:31.529338 2021-11-05 18:59:31.529096 18fee8d2-3971-42f9-9a05-7b182152df69 2458 +2401 uri://ed-fi.org/TermDescriptor Summer Semester Summer Semester Summer Semester \N \N \N 2021-11-05 18:59:31.634349 2021-11-05 18:59:31.633071 dade9494-ffc6-4688-99fb-a70299b7af7d 2461 +2405 uri://ed-fi.org/TermDescriptor First Quarter First Quarter First Quarter \N \N \N 2021-11-05 18:59:31.656403 2021-11-05 18:59:31.656338 bc9a9f8c-3c81-4a73-9ffb-c14a1cfc85b2 2465 +2409 uri://ed-fi.org/TermDescriptor Fourth Quarter Fourth Quarter Fourth Quarter \N \N \N 2021-11-05 18:59:31.665902 2021-11-05 18:59:31.665516 89bdef97-da37-4ef2-857c-7c6d15ba1ade 2469 +2411 uri://ed-fi.org/TermDescriptor Trimester Trimester Trimester \N \N \N 2021-11-05 18:59:31.66893 2021-11-05 18:59:31.668747 5915085c-a9dc-4c4a-9243-51c815fb0315 2471 +2412 uri://ed-fi.org/TermDescriptor Second Trimester Second Trimester Second Trimester \N \N \N 2021-11-05 18:59:31.671976 2021-11-05 18:59:31.671938 fb7764da-6626-49f6-a3e8-f5be361c5218 2472 +2413 uri://ed-fi.org/TermDescriptor Third Trimester Third Trimester Third Trimester \N \N \N 2021-11-05 18:59:31.676116 2021-11-05 18:59:31.676071 e94205e4-ff9c-452b-8be9-064c484eefa8 2473 +2414 uri://ed-fi.org/TermDescriptor MiniTerm MiniTerm MiniTerm \N \N \N 2021-11-05 18:59:31.679326 2021-11-05 18:59:31.679209 39c74f90-3a8c-452d-b543-232306558f2a 2474 +2417 uri://ed-fi.org/TitleIPartAParticipantDescriptor Public Targeted Assistance Program Public Targeted Assistance Program Public Targeted Assistance Program \N \N \N 2021-11-05 18:59:31.78594 2021-11-05 18:59:31.784751 4ad4dd5c-3bca-4634-811b-5c52770165fd 2477 +2421 uri://ed-fi.org/TitleIPartAParticipantDescriptor Was not served Was not served Was not served \N \N \N 2021-11-05 18:59:31.808285 2021-11-05 18:59:31.808229 c6a54f76-3a14-4e10-98a1-dd0ed6003ca4 2481 +2425 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Science Instructional Services Science Instructional Services Science Instructional Services \N \N \N 2021-11-05 18:59:31.907646 2021-11-05 18:59:31.906274 0cfa6e34-57f9-4780-ad1b-8b09dafc0e7d 2485 +2426 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor CTE Instructional Services Career and Technical Education Instructional Services Career and Technical Education Instructional Services \N \N \N 2021-11-05 18:59:31.929425 2021-11-05 18:59:31.929349 13ac42de-81e4-4fc7-923b-c334fdd99163 2486 +2430 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Other Support Services Other Support Services Other Support Services \N \N \N 2021-11-05 18:59:31.943422 2021-11-05 18:59:31.943388 55fe6fe0-fc81-45b2-a3ff-3140aaeb804d 2490 +2431 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Title I Schoolwide Eligible School-No Program Title I Schoolwide Eligible School-No Program Title I Schoolwide Eligible School-No Program \N \N \N 2021-11-05 18:59:32.045774 2021-11-05 18:59:32.044477 cfe53aec-c7f7-461f-a668-86950646e379 2491 +2437 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Title I Targeted Assistance School Title I Targeted Assistance School Title I Targeted Assistance School \N \N \N 2021-11-05 18:59:32.067097 2021-11-05 18:59:32.066875 2d9e3922-bc02-4501-9b99-f0a81b209321 2497 +2438 uri://ed-fi.org/TribalAffiliationDescriptor Absentee-Shawnee Absentee-Shawnee Absentee-Shawnee Tribe of Indians of Oklahoma \N \N \N 2021-11-05 18:59:32.169916 2021-11-05 18:59:32.168608 500496b2-71f4-4f2e-a9a1-ccc47a8e7e3b 2498 +2444 uri://ed-fi.org/TribalAffiliationDescriptor Ak Chin Ak Chin Ak-Chin Indian Community of the Maricopa (Ak Chin) Indian Reservation, Arizona \N \N \N 2021-11-05 18:59:32.190518 2021-11-05 18:59:32.190224 d3db51bc-ff6d-4a2f-9a28-1172d5b78993 2504 +2448 uri://ed-fi.org/TribalAffiliationDescriptor Akutan Akutan Native Village of Akutan \N \N \N 2021-11-05 18:59:32.206195 2021-11-05 18:59:32.206144 548c71a2-a997-45ea-bc85-1bb4d4a84844 2508 +2450 uri://ed-fi.org/TribalAffiliationDescriptor Alatna Alatna Alatna Village \N \N \N 2021-11-05 18:59:32.217858 2021-11-05 18:59:32.21774 bcb3ddfa-ba73-485d-9d85-ce33155c86df 2510 +2452 uri://ed-fi.org/TribalAffiliationDescriptor Allakaket Allakaket Allakaket Village \N \N \N 2021-11-05 18:59:32.220809 2021-11-05 18:59:32.220681 959dec72-9363-4f30-9701-1db674e9247d 2512 +2455 uri://ed-fi.org/TribalAffiliationDescriptor Alutiiq Tribe of Old Harbor Alutiiq Tribe of Old Harbor Alutiiq Tribe of Old Harbor \N \N \N 2021-11-05 18:59:32.232316 2021-11-05 18:59:32.232253 6fe66bde-035d-46c0-92d6-b145848c86f8 2515 +2457 uri://ed-fi.org/TribalAffiliationDescriptor Ambler Ambler Native Village of Ambler \N \N \N 2021-11-05 18:59:32.235185 2021-11-05 18:59:32.235123 8e7b198a-8fb0-47b9-bbfa-1f64d6f4b07a 2517 +2459 uri://ed-fi.org/TribalAffiliationDescriptor Angoon Angoon Angoon Community Association \N \N \N 2021-11-05 18:59:32.243117 2021-11-05 18:59:32.242669 ee93441f-bd17-4374-96a7-4fdd1a7c7dac 2519 +2460 uri://ed-fi.org/TribalAffiliationDescriptor Aniak Aniak Village of Aniak \N \N \N 2021-11-05 18:59:32.246752 2021-11-05 18:59:32.246699 f38c79eb-ab9f-4c39-946f-2a7b61642b8b 2520 +2462 uri://ed-fi.org/TribalAffiliationDescriptor Arctic Slope Arctic Slope Inupiat Community of the Arctic Slope \N \N \N 2021-11-05 18:59:32.255081 2021-11-05 18:59:32.255026 7a34e1e6-4661-470b-82c9-9df7989b38c1 2522 +2464 uri://ed-fi.org/TribalAffiliationDescriptor Arctic Village Arctic Village Arctic Village \N \N \N 2021-11-05 18:59:32.259501 2021-11-05 18:59:32.259437 d8a55876-41cd-44de-859b-6a31e044fabb 2524 +2466 uri://ed-fi.org/TribalAffiliationDescriptor Asa'carsarmiut Asa'carsarmiut Asa'carsarmiut Tribe \N \N \N 2021-11-05 18:59:32.267823 2021-11-05 18:59:32.266914 b9df79dd-8731-400e-baab-9c81294fea40 2526 +2469 uri://ed-fi.org/TribalAffiliationDescriptor Assiniboine and Sioux Assiniboine and Sioux Assiniboine & Sioux Tribes of the Fort Peck Indian Reservation, MT \N \N \N 2021-11-05 18:59:32.283319 2021-11-05 18:59:32.283124 77afbce7-ce86-4266-98db-ff385ec7f1fd 2529 +2362 uri://ed-fi.org/SurveyLevelDescriptor Professional Certification Professional Certification Professional Certification \N \N \N 2021-11-05 18:59:31.088428 2021-11-05 18:59:31.087882 c9f0a934-9426-4edd-bdaa-b97d459e2aa7 2422 +2369 uri://ed-fi.org/TeachingCredentialBasisDescriptor Doctoral degree Doctoral degree Doctoral degree \N \N \N 2021-11-05 18:59:31.197205 2021-11-05 18:59:31.195923 1db2220e-da6b-45ce-8fa8-8b477a98ca8d 2429 +2372 uri://ed-fi.org/TeachingCredentialBasisDescriptor Met state testing requirement Met state testing requirement Met state testing requirement \N \N \N 2021-11-05 18:59:31.217553 2021-11-05 18:59:31.217194 1dc29d7c-82c1-439b-913a-365a8b076b60 2432 +2374 uri://ed-fi.org/TeachingCredentialBasisDescriptor Special/alternative program completion Special/alternative program completion Special/alternative program completion \N \N \N 2021-11-05 18:59:31.220563 2021-11-05 18:59:31.220537 a27aac86-3f01-4f70-bd30-f575200ab61a 2434 +2378 uri://ed-fi.org/TeachingCredentialDescriptor Intern Intern Intern \N \N \N 2021-11-05 18:59:31.338193 2021-11-05 18:59:31.336191 75beaccd-7bb1-42f1-88f5-2002c390efa0 2438 +2379 uri://ed-fi.org/TeachingCredentialDescriptor Other Other Other \N \N \N 2021-11-05 18:59:31.355243 2021-11-05 18:59:31.355173 0149b778-3502-40b7-8656-31a9ee082fcb 2439 +2382 uri://ed-fi.org/TeachingCredentialDescriptor Professional Professional Professional \N \N \N 2021-11-05 18:59:31.358482 2021-11-05 18:59:31.358369 a10fd5c7-5d59-49da-b93c-b01b5e1c93cf 2442 +2385 uri://ed-fi.org/TeachingCredentialDescriptor Regular/Standard Regular/Standard Regular/Standard \N \N \N 2021-11-05 18:59:31.369307 2021-11-05 18:59:31.368891 e6acb23c-75af-4881-a86b-c870ddd6a0d5 2445 +2390 uri://ed-fi.org/TechnicalSkillsAssessmentDescriptor Passed Passed Passed \N \N \N 2021-11-05 18:59:31.49244 2021-11-05 18:59:31.49098 cc589c5c-953f-4183-ae85-1a6e76055698 2450 +2395 uri://ed-fi.org/TelephoneNumberTypeDescriptor Home Home Home \N \N \N 2021-11-05 18:59:31.517578 2021-11-05 18:59:31.517455 77df3bce-83c3-4c99-8421-5b2cb67ee2d9 2455 +2397 uri://ed-fi.org/TelephoneNumberTypeDescriptor Mobile Mobile Mobile \N \N \N 2021-11-05 18:59:31.529342 2021-11-05 18:59:31.52929 945d98a2-1bf6-4f37-b7e2-9dcca96cdd89 2457 +2399 uri://ed-fi.org/TelephoneNumberTypeDescriptor Work Work Work \N \N \N 2021-11-05 18:59:31.532248 2021-11-05 18:59:31.532199 ab100fa9-770c-45ba-ab81-ff9c699c0dcb 2459 +2402 uri://ed-fi.org/TermDescriptor Spring Semester Spring Semester Spring Semester \N \N \N 2021-11-05 18:59:31.634349 2021-11-05 18:59:31.633076 4d234f75-3d47-4c85-80c4-3b67e3e0090e 2462 +2406 uri://ed-fi.org/TermDescriptor Second Quarter Second Quarter Second Quarter \N \N \N 2021-11-05 18:59:31.656401 2021-11-05 18:59:31.656338 f6698761-6c0e-40e7-83a5-1fbfa42841b8 2466 +2410 uri://ed-fi.org/TermDescriptor First Trimester First Trimester First Trimester \N \N \N 2021-11-05 18:59:31.668081 2021-11-05 18:59:31.668025 b897251a-c0cd-4b6f-beff-3144e29f9e17 2470 +2415 uri://ed-fi.org/TermDescriptor Year Round Year Round Year Round \N \N \N 2021-11-05 18:59:31.679577 2021-11-05 18:59:31.679538 b408031b-52bf-4a3b-b123-da9bf1e55c80 2475 +2419 uri://ed-fi.org/TitleIPartAParticipantDescriptor Public Schoolwide Program Public Schoolwide Program Public Schoolwide Program \N \N \N 2021-11-05 18:59:31.78594 2021-11-05 18:59:31.784751 c20450db-d621-4bf7-84a2-fc0ba0783b38 2479 +2423 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Reading/Language Instructional Services Reading/Language Instructional Services Reading/Language Instructional Services \N \N \N 2021-11-05 18:59:31.907443 2021-11-05 18:59:31.906247 314a6140-24e4-42bd-aaa4-b584848cef1c 2483 +2427 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Health, Dental, and Eye Care Support Services Health, Dental, and Eye Care Support Services Health, Dental, and Eye Care Support Services \N \N \N 2021-11-05 18:59:31.930798 2021-11-05 18:59:31.929967 4262f6f8-b4d1-499d-9ae1-d489904544a9 2487 +2433 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Title I Schoolwide Eligible-Target Assist Program Title I Schoolwide Eligible-Target Assist Program Title I Schoolwide Eligible-Target Assist Program \N \N \N 2021-11-05 18:59:32.045773 2021-11-05 18:59:32.044477 414ef016-742f-487d-bae3-8fccc8b16bbb 2493 +2435 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Title I Targeted Assistance Eligible-No Program Title I Targeted Assistance Eligible-No Program Title I Targeted Assistance Eligible-No Program \N \N \N 2021-11-05 18:59:32.06525 2021-11-05 18:59:32.06519 4a45e89b-6641-426c-9ba8-d0a565077cbc 2495 +2440 uri://ed-fi.org/TribalAffiliationDescriptor Agua Caliente Agua Caliente Agua Caliente Band of Cahuilla Indians of the Agua Caliente Indian Reservation, California \N \N \N 2021-11-05 18:59:32.169916 2021-11-05 18:59:32.168599 000676aa-0d3d-41ec-ad79-73ed12944bb7 2500 +2443 uri://ed-fi.org/TribalAffiliationDescriptor Akhiok Akhiok Native Village of Akhiok \N \N \N 2021-11-05 18:59:32.190542 2021-11-05 18:59:32.190343 88b06b87-2379-4b06-aafb-546219cf5e30 2503 +2446 uri://ed-fi.org/TribalAffiliationDescriptor Alakanuk Alakanuk Village of Alakanuk \N \N \N 2021-11-05 18:59:32.205086 2021-11-05 18:59:32.204931 2623863e-588a-436d-aa9d-aff315b8a341 2506 +2451 uri://ed-fi.org/TribalAffiliationDescriptor Algaaciq Algaaciq Algaaciq Native Village (St. Mary's) \N \N \N 2021-11-05 18:59:32.218025 2021-11-05 18:59:32.217804 7df1e321-132a-43fa-a25a-f4bf78ffed25 2511 +2454 uri://ed-fi.org/TribalAffiliationDescriptor Alturas Alturas Alturas Indian Rancheria, CA \N \N \N 2021-11-05 18:59:32.231229 2021-11-05 18:59:32.231132 21e3905c-5c1e-4f1e-8ab4-ec8531abf670 2514 +2456 uri://ed-fi.org/TribalAffiliationDescriptor Anaktuvuk Pass Anaktuvuk Pass Village of Anaktuvuk Pass \N \N \N 2021-11-05 18:59:32.235243 2021-11-05 18:59:32.235205 265457ea-c752-441e-9e91-d4be3ec42ddb 2516 +2458 uri://ed-fi.org/TribalAffiliationDescriptor Andreafski Andreafski Yupiit of Andreafski \N \N \N 2021-11-05 18:59:32.241933 2021-11-05 18:59:32.241759 dccfbd1d-8aa3-4698-9dc1-f37bba2c18fa 2518 +2461 uri://ed-fi.org/TribalAffiliationDescriptor Anvik Anvik Anvik Village \N \N \N 2021-11-05 18:59:32.246878 2021-11-05 18:59:32.246858 3d712096-9916-439b-90e7-54abbd0d62f2 2521 +2463 uri://ed-fi.org/TribalAffiliationDescriptor Apache Apache Apache Tribe of Oklahoma \N \N \N 2021-11-05 18:59:32.25514 2021-11-05 18:59:32.255097 ad6d3331-485a-45d1-b428-001b99269840 2523 +2465 uri://ed-fi.org/TribalAffiliationDescriptor Aroostok Aroostok Aroostook Band of Micmacs \N \N \N 2021-11-05 18:59:32.259541 2021-11-05 18:59:32.259482 488d8a7e-6f19-41c8-a8f6-0ce483cb92b2 2525 +2467 uri://ed-fi.org/TribalAffiliationDescriptor Assiniboine and Gros Ventre Tribes Assiniboine and Gros Ventre Tribes Fort Belknap Indian Community \N \N \N 2021-11-05 18:59:32.279599 2021-11-05 18:59:32.279114 60c25682-6733-4528-ad5e-641e109007f2 2527 +2468 uri://ed-fi.org/TribalAffiliationDescriptor Atka Atka Native Village of Atka \N \N \N 2021-11-05 18:59:32.283178 2021-11-05 18:59:32.283128 5e1ff52b-fb66-47a7-9da7-98e39fc7d0f0 2528 +2470 uri://ed-fi.org/TribalAffiliationDescriptor Atmautluak Atmautluak Village of Atmautluak \N \N \N 2021-11-05 18:59:32.290376 2021-11-05 18:59:32.290341 d2b855ce-3793-4598-9f54-1853e639e135 2530 +2472 uri://ed-fi.org/TribalAffiliationDescriptor Augustine Augustine Augustine Band of Cahuilla Indians, California \N \N \N 2021-11-05 18:59:32.295451 2021-11-05 18:59:32.295315 9fd9e640-b1a1-4019-a880-57e96391a85b 2532 +2474 uri://ed-fi.org/TribalAffiliationDescriptor Bay Mills Bay Mills Bay Mills Indian Community, Michigan \N \N \N 2021-11-05 18:59:32.304164 2021-11-05 18:59:32.303068 b79ac095-7be5-498f-b094-8c3550e02aa8 2534 +2478 uri://ed-fi.org/TribalAffiliationDescriptor Benton Benton Utu Utu Gwaitu Paiute Tribe of the Benton Paiute Reservation, California \N \N \N 2021-11-05 18:59:32.318117 2021-11-05 18:59:32.318069 fd1a5df6-463a-4d6f-9013-f7d2e11534ad 2538 +2480 uri://ed-fi.org/TribalAffiliationDescriptor Berry Creek Berry Creek Berry Creek Rancheria of Maidu Indians of California \N \N \N 2021-11-05 18:59:32.320915 2021-11-05 18:59:32.320815 24a1c57a-2a6e-4ce3-a8bf-b4acc350aec8 2540 +2482 uri://ed-fi.org/TribalAffiliationDescriptor Big Pine Big Pine Big Pine Paiute Tribe of the Owens Valley \N \N \N 2021-11-05 18:59:32.329802 2021-11-05 18:59:32.329748 13bb3bce-5042-4e43-a398-8521c81b2356 2542 +2485 uri://ed-fi.org/TribalAffiliationDescriptor Bill Moore's Slough Bill Moore's Slough Village of Bill Moore's Slough \N \N \N 2021-11-05 18:59:32.334524 2021-11-05 18:59:32.334426 1b5d1b66-9898-4b28-820a-a5dbf352ffa4 2545 +2486 uri://ed-fi.org/TribalAffiliationDescriptor Birch Creek Birch Creek Birch Creek Tribe \N \N \N 2021-11-05 18:59:32.342691 2021-11-05 18:59:32.342532 499492c9-dd8b-47c6-9159-4fa549f58be6 2546 +2488 uri://ed-fi.org/TribalAffiliationDescriptor Blue Lake Blue Lake Blue Lake Rancheria, California \N \N \N 2021-11-05 18:59:32.346832 2021-11-05 18:59:32.346687 6563c6b8-d17b-48c8-9556-6f8c3a5ee63a 2548 +2491 uri://ed-fi.org/TribalAffiliationDescriptor Brevig Mission Brevig Mission Native Village of Brevig Mission \N \N \N 2021-11-05 18:59:32.357476 2021-11-05 18:59:32.357422 f0765652-e39a-4770-b7fd-8e8e339eaed2 2551 +2403 uri://ed-fi.org/TermDescriptor Fall Semester Fall Semester Fall Semester \N \N \N 2021-11-05 18:59:31.634349 2021-11-05 18:59:31.633082 8506f9bf-4c84-4a4e-b032-3bc6c9d5da2c 2463 +2408 uri://ed-fi.org/TermDescriptor Third Quarter Third Quarter Third Quarter \N \N \N 2021-11-05 18:59:31.658303 2021-11-05 18:59:31.658244 78339f2b-9b74-4248-a6d3-8f84f3df6acd 2468 +2418 uri://ed-fi.org/TitleIPartAParticipantDescriptor Private school students participating Private school students participating Private school students participating \N \N \N 2021-11-05 18:59:31.785943 2021-11-05 18:59:31.784766 19b910b1-518e-4b8f-bfd8-9f3ac51686e3 2478 +2424 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Mathematics Instructional Services Mathematics Instructional Services Mathematics Instructional Services \N \N \N 2021-11-05 18:59:31.907444 2021-11-05 18:59:31.906248 8655b7e5-b798-4756-86f4-e3412f276d7f 2484 +2429 uri://ed-fi.org/TitleIPartAProgramServiceDescriptor Other Instructional Services Other Instructional Services Other Instructional Services \N \N \N 2021-11-05 18:59:31.932185 2021-11-05 18:59:31.932113 0d118804-2f83-4acd-a04a-fb986ab901fc 2489 +2432 uri://ed-fi.org/TitleIPartASchoolDesignationDescriptor Not A Title I School Not A Title I School Not A Title I School \N \N \N 2021-11-05 18:59:32.045775 2021-11-05 18:59:32.044488 061e12de-523b-4d04-b1f8-f2646f20ad25 2492 +2439 uri://ed-fi.org/TribalAffiliationDescriptor Afognak Afognak Native Village of Afognak \N \N \N 2021-11-05 18:59:32.169915 2021-11-05 18:59:32.168598 f2f2f3df-83ff-4471-86fa-be2fa901f279 2499 +2442 uri://ed-fi.org/TribalAffiliationDescriptor Akiachak Akiachak Akiachak Native Community \N \N \N 2021-11-05 18:59:32.189513 2021-11-05 18:59:32.189368 3734015d-dea6-49a7-82dc-5c40896249e1 2502 +2449 uri://ed-fi.org/TribalAffiliationDescriptor Alabama-Quassarte Alabama-Quassarte Alabama-Quassarte Tribal Town \N \N \N 2021-11-05 18:59:32.207504 2021-11-05 18:59:32.207414 b6a6c08c-585e-435a-92eb-7059d6ba5b45 2509 +2476 uri://ed-fi.org/TribalAffiliationDescriptor Bear River Bear River Bear River Band of the Rohnerville Rancheria, California \N \N \N 2021-11-05 18:59:32.304772 2021-11-05 18:59:32.303923 d9f3a55d-101a-4912-83a7-85b21ecdb5c0 2536 +2514 uri://ed-fi.org/TribalAffiliationDescriptor Cher-Ae Heights Cher-Ae Heights Cher-Ae Heights Indian Community of the Trinidad Rancheria, California \N \N \N 2021-11-05 18:59:32.420793 2021-11-05 18:59:32.420729 012e434c-c2a9-44c2-991c-b43af3863bbc 2574 +2517 uri://ed-fi.org/TribalAffiliationDescriptor Cheyenne-Arapaho Cheyenne-Arapaho Cheyenne River Sioux Tribe of the Cheyenne River Reservation, SD \N \N \N 2021-11-05 18:59:32.433316 2021-11-05 18:59:32.433285 2a77678a-ac47-4ada-b94e-0aff692a56e3 2577 +2521 uri://ed-fi.org/TribalAffiliationDescriptor Chickasaw Chickasaw The Chickasaw Nation \N \N \N 2021-11-05 18:59:32.445652 2021-11-05 18:59:32.44554 ba090db6-224e-445e-9041-2cfa69561c3e 2581 +2529 uri://ed-fi.org/TribalAffiliationDescriptor Chippewa-Cree Chippewa-Cree Chippewa Cree Indians of the Rocky Boy's Reservation, MT \N \N \N 2021-11-05 18:59:32.471223 2021-11-05 18:59:32.471169 27090eb0-8d86-4a35-887e-8065cc005577 2589 +2543 uri://ed-fi.org/TribalAffiliationDescriptor Comanche Comanche Comanche Nation, Oklahoma \N \N \N 2021-11-05 18:59:32.51288 2021-11-05 18:59:32.512833 fe8e227b-70ce-4826-8a15-27f6365bb28a 2603 +2587 uri://ed-fi.org/TribalAffiliationDescriptor False Pass False Pass Native Village of False Pass \N \N \N 2021-11-05 18:59:32.645634 2021-11-05 18:59:32.645039 463d1fc2-7c76-4e9f-ae79-1f17359f9c0f 2647 +2686 uri://ed-fi.org/TribalAffiliationDescriptor Kwethluk Kwethluk Organized Village of Kwethluk \N \N \N 2021-11-05 18:59:32.952897 2021-11-05 18:59:32.951264 4d5cbabb-09bd-4d13-870e-adebbbc828dc 2746 +2704 uri://ed-fi.org/TribalAffiliationDescriptor Lower Brule Lower Brule Lower Brule Sioux Tribe of the Lower Brule Reservation, SD \N \N \N 2021-11-05 18:59:33.005964 2021-11-05 18:59:33.005547 f8d5bb4d-a08d-469a-844e-7bd18909a765 2764 +2712 uri://ed-fi.org/TribalAffiliationDescriptor Manokotak Manokotak Manokotak Village \N \N \N 2021-11-05 18:59:33.036114 2021-11-05 18:59:33.036028 1ff3b351-28cf-40b0-8037-0bc24fdc7281 2772 +2717 uri://ed-fi.org/TribalAffiliationDescriptor Mashantucket Pequot Mashantucket Pequot Mashantucket Pequot Indian Tribe \N \N \N 2021-11-05 18:59:33.052585 2021-11-05 18:59:33.051466 5ae95605-dee6-4d92-8dc0-18639c6795fe 2777 +2721 uri://ed-fi.org/TribalAffiliationDescriptor Mechoopda Mechoopda Mechoopda Indian Tribe of Chico Rancheria, California \N \N \N 2021-11-05 18:59:33.06687 2021-11-05 18:59:33.066789 a1f8e21f-1af7-492e-bbe8-01859c853903 2781 +2749 uri://ed-fi.org/TribalAffiliationDescriptor Nelson Lagoon Nelson Lagoon Native Village of Nelson Lagoon \N \N \N 2021-11-05 18:59:33.164951 2021-11-05 18:59:33.163913 cf8bb74f-7e99-4df2-8839-3a6da813565e 2809 +2752 uri://ed-fi.org/TribalAffiliationDescriptor Newhalen Newhalen Newhalen Village \N \N \N 2021-11-05 18:59:33.177811 2021-11-05 18:59:33.177131 5b24e4f5-9220-4be4-baf2-b46e9f79f0ed 2812 +2767 uri://ed-fi.org/TribalAffiliationDescriptor Northern Cheyenne Northern Cheyenne Northern Cheyenne Tribe \N \N \N 2021-11-05 18:59:33.231291 2021-11-05 18:59:33.230989 18042c0f-45d2-4b0b-888d-05d70b5f2d77 2827 +2769 uri://ed-fi.org/TribalAffiliationDescriptor Northwestern Shoshone Northwestern Shoshone Northwestern Band of Shoshone Nation \N \N \N 2021-11-05 18:59:33.233362 2021-11-05 18:59:33.233296 07e335ce-997c-4f9c-891b-8977f222ddff 2829 +2770 uri://ed-fi.org/TribalAffiliationDescriptor Northway Northway Northway Village \N \N \N 2021-11-05 18:59:33.234704 2021-11-05 18:59:33.234473 93767679-f8d5-4e10-8c47-efda1b3bb6fb 2830 +2773 uri://ed-fi.org/TribalAffiliationDescriptor Nulato Nulato Nulato Village \N \N \N 2021-11-05 18:59:33.248076 2021-11-05 18:59:33.248 a1213eaf-b36c-4f18-98bb-2728cbeed531 2833 +2778 uri://ed-fi.org/TribalAffiliationDescriptor Ohkay Ohkay Ohkay Owingeh \N \N \N 2021-11-05 18:59:33.264382 2021-11-05 18:59:33.26288 ca4a883f-693f-404a-b865-7d7eb08c9602 2838 +2782 uri://ed-fi.org/TribalAffiliationDescriptor Onondaga Onondaga Onondaga Nation \N \N \N 2021-11-05 18:59:33.291434 2021-11-05 18:59:33.291113 9b4b7752-dd19-4122-afd5-8d8ff2a9bd99 2842 +2785 uri://ed-fi.org/TribalAffiliationDescriptor Osage Osage The Osage Nation \N \N \N 2021-11-05 18:59:33.30262 2021-11-05 18:59:33.302534 517bdd5a-5f5f-4393-a268-acb61748324e 2845 +2788 uri://ed-fi.org/TribalAffiliationDescriptor Ottawa of Oklahoma Ottawa of Oklahoma Ottawa Tribe of Oklahoma \N \N \N 2021-11-05 18:59:33.308786 2021-11-05 18:59:33.308732 52d23364-e45b-41e6-be48-93ed4390f4ec 2848 +2790 uri://ed-fi.org/TribalAffiliationDescriptor Paimiut Paimiut Native Village of Paimiut \N \N \N 2021-11-05 18:59:33.316157 2021-11-05 18:59:33.315196 e5aba4ae-d039-4b50-9df6-52c375eef5ef 2850 +2791 uri://ed-fi.org/TribalAffiliationDescriptor Paiute of Utah Paiute of Utah Paiute Indian Tribe of Utah (Cedar Band of Paiutes, Kanosh Band of Paiutes, Koosharem Band of Paiutes, Indian Peaks Band of Paiutes, and Shivwits Band of Paiutes) \N \N \N 2021-11-05 18:59:33.320232 2021-11-05 18:59:33.320001 b950cf73-7437-4296-8ff6-cfc685667000 2851 +2795 uri://ed-fi.org/TribalAffiliationDescriptor Pascua Yaqui Pascua Yaqui Pascua Yaqui Tribe of Arizona \N \N \N 2021-11-05 18:59:33.334258 2021-11-05 18:59:33.333763 3c622dd4-ad5c-47ae-bb79-11d6b89c4e8b 2855 +2801 uri://ed-fi.org/TribalAffiliationDescriptor Pauma Pauma Pauma Band of Luiseno Mission Indians of the Pauma & Yuima Reservation, California \N \N \N 2021-11-05 18:59:33.350052 2021-11-05 18:59:33.350011 670b7cf1-0f24-4004-b198-e30abb741591 2861 +2803 uri://ed-fi.org/TribalAffiliationDescriptor Pedro Bay Pedro Bay Pedro Bay Village \N \N \N 2021-11-05 18:59:33.36144 2021-11-05 18:59:33.361296 e1d715d7-1d6f-4ffa-9f33-0201589750c7 2863 +2805 uri://ed-fi.org/TribalAffiliationDescriptor Penobscot Penobscot Penobscot Nation \N \N \N 2021-11-05 18:59:33.36325 2021-11-05 18:59:33.363035 943349b6-ac99-4df0-9b3c-b6132bff8190 2865 +2807 uri://ed-fi.org/TribalAffiliationDescriptor Petersburg Petersburg Petersburg Indian Association \N \N \N 2021-11-05 18:59:33.374863 2021-11-05 18:59:33.374811 7ad9ef39-8c33-4211-a13f-1cafe543c69c 2867 +2809 uri://ed-fi.org/TribalAffiliationDescriptor Picayune Picayune Picayune Rancheria of Chukchansi Indians of California \N \N \N 2021-11-05 18:59:33.377067 2021-11-05 18:59:33.376773 5b688e3a-0e36-40ab-a69c-f6fe8520f0ad 2869 +2812 uri://ed-fi.org/TribalAffiliationDescriptor Pit River Pit River Pit River Tribe, California \N \N \N 2021-11-05 18:59:33.389026 2021-11-05 18:59:33.388386 45e88c6f-01ed-46d9-b346-6a899ae9ca34 2872 +2817 uri://ed-fi.org/TribalAffiliationDescriptor Point Lay IRA Point Lay IRA Native Village of Point Lay \N \N \N 2021-11-05 18:59:33.403426 2021-11-05 18:59:33.403248 8652dae5-5d1c-41b4-9a5f-88accad0845c 2877 +2818 uri://ed-fi.org/TribalAffiliationDescriptor Pokagon Pokagon Pokagon Band of Potawatomi Indians, Michigan & Indiana \N \N \N 2021-11-05 18:59:33.409977 2021-11-05 18:59:33.409642 c144ddea-2ef2-45b0-bbf7-68e7a9caf0bf 2878 +2445 uri://ed-fi.org/TribalAffiliationDescriptor Akiak Akiak Akiak Native Community \N \N \N 2021-11-05 18:59:32.190975 2021-11-05 18:59:32.19045 700c30ad-0f9b-49a7-bc26-9f189a7ce9a9 2505 +2447 uri://ed-fi.org/TribalAffiliationDescriptor Alabama-Coushatta Alabama-Coushatta Alabama-Coushatta Tribe of Texas \N \N \N 2021-11-05 18:59:32.205224 2021-11-05 18:59:32.205007 e9a29291-478d-4956-8a87-8f767a7b6fe3 2507 +2453 uri://ed-fi.org/TribalAffiliationDescriptor Aleknagik Aleknagik Native Village of Aleknagik \N \N \N 2021-11-05 18:59:32.220889 2021-11-05 18:59:32.220764 db72c45b-665e-433b-b939-0ecd94b2ebec 2513 +2475 uri://ed-fi.org/TribalAffiliationDescriptor Barrow Barrow Native Village of Barrow Inupiat Traditional Government \N \N \N 2021-11-05 18:59:32.304405 2021-11-05 18:59:32.303141 4adc8cbd-ae57-49b5-9d38-a861874a1612 2535 +2493 uri://ed-fi.org/TribalAffiliationDescriptor Buckland Buckland Native Village of Buckland \N \N \N 2021-11-05 18:59:32.359745 2021-11-05 18:59:32.359699 98531a19-fc23-412d-85f7-640b70dfdce6 2553 +2496 uri://ed-fi.org/TribalAffiliationDescriptor Cabazon Cabazon Cabazon Band of Mission Indians, California \N \N \N 2021-11-05 18:59:32.370127 2021-11-05 18:59:32.369897 d2b1fc44-077d-485f-9cff-21f0182f1536 2556 +2501 uri://ed-fi.org/TribalAffiliationDescriptor California Valley California Valley California Valley Miwok Tribe, California \N \N \N 2021-11-05 18:59:32.382842 2021-11-05 18:59:32.382785 f130da71-d6e0-4486-a6bf-23270db63461 2561 +2505 uri://ed-fi.org/TribalAffiliationDescriptor Catawba Catawba Catawba Indian Nation \N \N \N 2021-11-05 18:59:32.394023 2021-11-05 18:59:32.394004 8221141c-8ec6-4596-98c8-ab4b8286521b 2565 +2509 uri://ed-fi.org/TribalAffiliationDescriptor Cheesh-Na Cheesh-Na Cheesh-Na Tribe \N \N \N 2021-11-05 18:59:32.408399 2021-11-05 18:59:32.408284 5eeaef9d-4b50-4b2a-8803-7214d48af6d3 2569 +2518 uri://ed-fi.org/TribalAffiliationDescriptor Cheyenne River Cheyenne River Cheyenne and Arapaho Tribes, Oklahoma \N \N \N 2021-11-05 18:59:32.433347 2021-11-05 18:59:32.433286 75da4327-61ff-4ade-92cd-3d7dff8a5aab 2578 +2526 uri://ed-fi.org/TribalAffiliationDescriptor Chilkat Chilkat Chilkat Indian Village (Klukwan) \N \N \N 2021-11-05 18:59:32.458899 2021-11-05 18:59:32.45858 c11e013a-b877-4d25-a2db-30910413d387 2586 +2534 uri://ed-fi.org/TribalAffiliationDescriptor Circle Circle Circle Native Community \N \N \N 2021-11-05 18:59:32.484778 2021-11-05 18:59:32.484326 e397cd38-87ba-42e5-b210-3e758f63f6e4 2594 +2538 uri://ed-fi.org/TribalAffiliationDescriptor Cocopah Cocopah Cocopah Tribe of Arizona \N \N \N 2021-11-05 18:59:32.498923 2021-11-05 18:59:32.498878 10314588-54f3-42b1-9290-83bb9a90fea3 2598 +2542 uri://ed-fi.org/TribalAffiliationDescriptor Colorado River Colorado River Colorado River Indian Tribes of the Colorado Indian Reservation, Arizona and California \N \N \N 2021-11-05 18:59:32.511087 2021-11-05 18:59:32.510689 7ba80932-ed10-469c-8e62-aa9bc2fb3aa7 2602 +2553 uri://ed-fi.org/TribalAffiliationDescriptor Cow Creek Cow Creek Cow Creek Band of Umpqua Tribe of Indians \N \N \N 2021-11-05 18:59:32.549086 2021-11-05 18:59:32.548999 341c3f60-cafd-4d72-80b7-5944bee6f966 2613 +2558 uri://ed-fi.org/TribalAffiliationDescriptor Crow Crow Crow Tribe of Montana \N \N \N 2021-11-05 18:59:32.562794 2021-11-05 18:59:32.562759 cbcf256e-7483-4686-8e8e-7d6cad4a00d4 2618 +2563 uri://ed-fi.org/TribalAffiliationDescriptor Delaware Tribe Delaware Tribe Delaware Tribe of Indians \N \N \N 2021-11-05 18:59:32.575904 2021-11-05 18:59:32.575863 219003ea-55c9-4267-b095-5e245e8f789b 2623 +2566 uri://ed-fi.org/TribalAffiliationDescriptor Douglas Douglas Douglas Indian Association \N \N \N 2021-11-05 18:59:32.586307 2021-11-05 18:59:32.586237 f45ee075-9e15-4dee-b4f0-96bfd7be8b45 2626 +2577 uri://ed-fi.org/TribalAffiliationDescriptor Ekwok Ekwok Native Village of Ekwok \N \N \N 2021-11-05 18:59:32.617937 2021-11-05 18:59:32.617885 c2c6e9e3-a38b-4adc-b176-e9314b1e42ec 2637 +2583 uri://ed-fi.org/TribalAffiliationDescriptor Enterprise Enterprise Enterprise Rancheria of Maidu Indians of California \N \N \N 2021-11-05 18:59:32.632462 2021-11-05 18:59:32.632284 d64ed5bd-5377-4bf9-a648-eb401c225ecc 2643 +2585 uri://ed-fi.org/TribalAffiliationDescriptor Ewiiaapaayp Ewiiaapaayp Ewiiaapaayp Band of Kumeyaay Indians, California \N \N \N 2021-11-05 18:59:32.645097 2021-11-05 18:59:32.644198 931c96c3-df6a-4221-ae20-9aea008cf534 2645 +2592 uri://ed-fi.org/TribalAffiliationDescriptor Forest County Forest County Forest County Potawatomi Community, Wisconsin \N \N \N 2021-11-05 18:59:32.661722 2021-11-05 18:59:32.661696 5c407250-e99e-48b9-b723-eb5366b0a949 2652 +2598 uri://ed-fi.org/TribalAffiliationDescriptor Fort Yukon Fort Yukon Native Village of Fort Yukon \N \N \N 2021-11-05 18:59:32.683765 2021-11-05 18:59:32.683716 3a6031f1-b005-40b2-a937-62bf344e1213 2658 +2630 uri://ed-fi.org/TribalAffiliationDescriptor Huslia Huslia Huslia Village \N \N \N 2021-11-05 18:59:32.775989 2021-11-05 18:59:32.775802 049a853a-d2ce-4708-9921-c72650a5620f 2690 +2633 uri://ed-fi.org/TribalAffiliationDescriptor Iliamna Iliamna Village of Iliamna \N \N \N 2021-11-05 18:59:32.789479 2021-11-05 18:59:32.788937 b12c293e-492a-45f4-9b69-66ad8c85ff47 2693 +2639 uri://ed-fi.org/TribalAffiliationDescriptor Iqurmuit Iqurmuit Iqurmuit Traditional Council \N \N \N 2021-11-05 18:59:32.805843 2021-11-05 18:59:32.805714 cef8451d-9ac2-4e17-a4ae-e7ca708f04ae 2699 +2654 uri://ed-fi.org/TribalAffiliationDescriptor Karuk Karuk Karuk Tribe \N \N \N 2021-11-05 18:59:32.851765 2021-11-05 18:59:32.851732 48cd08c6-b94b-4998-a6db-d3eca611651f 2714 +2657 uri://ed-fi.org/TribalAffiliationDescriptor Kasigluk Kasigluk Kasigluk Traditional Elders Council \N \N \N 2021-11-05 18:59:32.863002 2021-11-05 18:59:32.862954 5f0fccb3-8316-42b7-b97f-90c7a3de63cd 2717 +2661 uri://ed-fi.org/TribalAffiliationDescriptor Keweenaw Keweenaw Keweenaw Bay Indian Community, Michigan \N \N \N 2021-11-05 18:59:32.875152 2021-11-05 18:59:32.875106 9d735890-5508-4853-9e1e-566d3dd3f902 2721 +2665 uri://ed-fi.org/TribalAffiliationDescriptor Kickapoo of Oklahoma Kickapoo of Oklahoma Kickapoo Tribe of Oklahoma \N \N \N 2021-11-05 18:59:32.886179 2021-11-05 18:59:32.886135 fe7e83d6-be36-415b-becf-9e82342604c4 2725 +2669 uri://ed-fi.org/TribalAffiliationDescriptor King Salmon King Salmon King Salmon Tribe \N \N \N 2021-11-05 18:59:32.896738 2021-11-05 18:59:32.896614 661f0c2a-1ac9-4070-908f-28e4fee732a7 2729 +2671 uri://ed-fi.org/TribalAffiliationDescriptor Kipnuk Kipnuk Native Village of Kipnuk \N \N \N 2021-11-05 18:59:32.90071 2021-11-05 18:59:32.900636 2076fd9f-95a3-43ae-b562-ea7d082ddf8e 2731 +2674 uri://ed-fi.org/TribalAffiliationDescriptor Kluti-Kaah Kluti-Kaah Native Village of Kluti-Kaah (aka Copper Center) \N \N \N 2021-11-05 18:59:32.912021 2021-11-05 18:59:32.911286 95022bf7-175d-4300-9e0a-86848db3a796 2734 +2700 uri://ed-fi.org/TribalAffiliationDescriptor Little River Little River Little River Band of Ottawa Indians, Michigan \N \N \N 2021-11-05 18:59:32.996524 2021-11-05 18:59:32.996466 879c6f39-80dc-4cf1-82e3-420f7fb8c3ac 2760 +2703 uri://ed-fi.org/TribalAffiliationDescriptor Lovelock Lovelock Lovelock Paiute Tribe of the Lovelock Indian Colony, Nevada \N \N \N 2021-11-05 18:59:33.004489 2021-11-05 18:59:33.004346 89ea1643-9973-41b8-a4f5-4aa4147476bc 2763 +2707 uri://ed-fi.org/TribalAffiliationDescriptor Lummi Lummi Lummi Tribe of the Lummi Reservation \N \N \N 2021-11-05 18:59:33.020319 2021-11-05 18:59:33.01945 2aa32145-8c55-4a31-9865-0ec335904a30 2767 +2715 uri://ed-fi.org/TribalAffiliationDescriptor Marshall Marshall Native Village of Marshall (aka Fortuna Ledge) \N \N \N 2021-11-05 18:59:33.048863 2021-11-05 18:59:33.048778 c0e761cd-7704-435f-95f5-85920030b45d 2775 +2720 uri://ed-fi.org/TribalAffiliationDescriptor Mcgrath Mcgrath McGrath Native Village \N \N \N 2021-11-05 18:59:33.065421 2021-11-05 18:59:33.064422 93d430f1-a443-4f3e-8732-a5b3138e7c38 2780 +2723 uri://ed-fi.org/TribalAffiliationDescriptor Menominee Menominee Menominee Indian Tribe of Wisconsin \N \N \N 2021-11-05 18:59:33.078716 2021-11-05 18:59:33.07752 20eec643-f3c6-4cea-bdb3-937e30e555be 2783 +2726 uri://ed-fi.org/TribalAffiliationDescriptor Miami of Oklahoma Miami of Oklahoma Miami Tribe of Oklahoma \N \N \N 2021-11-05 18:59:33.092712 2021-11-05 18:59:33.092655 a4739400-ebb8-40ad-9ebd-8e13110516e9 2786 +2733 uri://ed-fi.org/TribalAffiliationDescriptor Minto Minto Native Village of Minto \N \N \N 2021-11-05 18:59:33.10946 2021-11-05 18:59:33.109374 1743745c-c032-4a7a-ba24-73cd5d308093 2793 +2735 uri://ed-fi.org/TribalAffiliationDescriptor Moapa Moapa Moapa Band of Paiute Indians of the Moapa River Indian Reservation, Nevada \N \N \N 2021-11-05 18:59:33.120505 2021-11-05 18:59:33.120367 f7a1ab70-732d-427d-b798-eba5c5076963 2795 +2740 uri://ed-fi.org/TribalAffiliationDescriptor Muckleshoot Muckleshoot Muckleshoot Indian Tribe \N \N \N 2021-11-05 18:59:33.136741 2021-11-05 18:59:33.13641 47d3e4e0-d3b5-4965-887d-0b4c519cda20 2800 +2744 uri://ed-fi.org/TribalAffiliationDescriptor Napaimute Napaimute Native Village of Napaimute \N \N \N 2021-11-05 18:59:33.150797 2021-11-05 18:59:33.149808 513f5f5c-85c6-4066-b9c6-0fb65de61067 2804 +2471 uri://ed-fi.org/TribalAffiliationDescriptor Atqasuk Atqasuk Atqasuk Village (Atkasook) \N \N \N 2021-11-05 18:59:32.292186 2021-11-05 18:59:32.292044 df929bd8-f04e-4e28-af98-88a1d7d4ec0b 2531 +2473 uri://ed-fi.org/TribalAffiliationDescriptor Bad River Band Bad River Band Bad River Band of Lake Superior Tribe of Chippewa Indians \N \N \N 2021-11-05 18:59:32.295408 2021-11-05 18:59:32.295244 4a79acee-f6e9-4bce-97f9-d3997c5b36fb 2533 +2477 uri://ed-fi.org/TribalAffiliationDescriptor Beaver Beaver Beaver Village \N \N \N 2021-11-05 18:59:32.306315 2021-11-05 18:59:32.306088 01e482dd-32cf-44f7-b2cf-8aaab9ef9924 2537 +2479 uri://ed-fi.org/TribalAffiliationDescriptor Belkofski Belkofski Native Village of Belkofski \N \N \N 2021-11-05 18:59:32.318111 2021-11-05 18:59:32.318045 2b0830c9-df0f-4405-ba85-023d16ffc3b6 2539 +2481 uri://ed-fi.org/TribalAffiliationDescriptor Big Lagoon Big Lagoon Big Lagoon Rancheria, California \N \N \N 2021-11-05 18:59:32.32253 2021-11-05 18:59:32.322476 dc241f30-6017-4002-b281-befba3d62012 2541 +2483 uri://ed-fi.org/TribalAffiliationDescriptor Big Sandy Big Sandy Big Sandy Rancheria of Western Mono Indians of California \N \N \N 2021-11-05 18:59:32.32976 2021-11-05 18:59:32.329691 921b7032-1bef-4a47-aa91-72b933e1a8e6 2543 +2484 uri://ed-fi.org/TribalAffiliationDescriptor Big Valley Rancheria Big Valley Rancheria Big Valley Band of Pomo Indians of the Big Valley Rancheria, California \N \N \N 2021-11-05 18:59:32.33448 2021-11-05 18:59:32.33435 d887f421-4b17-41cb-b8de-0d2385aed23d 2544 +2487 uri://ed-fi.org/TribalAffiliationDescriptor Bishop Paiute Bishop Paiute Bishop Paiute Tribe \N \N \N 2021-11-05 18:59:32.343507 2021-11-05 18:59:32.34346 3bc1ab5b-005a-4a4b-a6f5-7918e26e0659 2547 +2489 uri://ed-fi.org/TribalAffiliationDescriptor Blackfeet Blackfeet Blackfeet Tribe of the Blackfeet Indian Reservation of MT \N \N \N 2021-11-05 18:59:32.346921 2021-11-05 18:59:32.346879 db422e63-d5e4-4145-a3dd-f54a50e4baf4 2549 +2490 uri://ed-fi.org/TribalAffiliationDescriptor Bois Forte Bois Forte Minnesota Chippewa Tribe - Bois Forte Band (Nett Lake) \N \N \N 2021-11-05 18:59:32.354386 2021-11-05 18:59:32.354297 03a82faf-f358-4b5e-a0f2-90051101782e 2550 +2492 uri://ed-fi.org/TribalAffiliationDescriptor Bridgeport Indian Colony Bridgeport Indian Colony Bridgeport Indian Colony \N \N \N 2021-11-05 18:59:32.359192 2021-11-05 18:59:32.359125 2dbd5595-4201-4abf-acc7-81ec5fc98f6f 2552 +2494 uri://ed-fi.org/TribalAffiliationDescriptor Buena Vista Rancheria Buena Vista Rancheria Buena Vista Rancheria of Me-wuk Indians of California \N \N \N 2021-11-05 18:59:32.365568 2021-11-05 18:59:32.365529 9c41ae01-ac17-45f4-8453-a3ae39c16bc8 2554 +2497 uri://ed-fi.org/TribalAffiliationDescriptor Cachil DeHe Cachil DeHe Cachil DeHe Band of Wintun Indians of the Colusa Indian Community of the Colusa Rancheria, California \N \N \N 2021-11-05 18:59:32.371308 2021-11-05 18:59:32.371087 2084a7f3-9849-414a-9795-67b22f2cee7c 2557 +2498 uri://ed-fi.org/TribalAffiliationDescriptor Caddo Caddo Caddo Nation of Oklahoma \N \N \N 2021-11-05 18:59:32.375149 2021-11-05 18:59:32.375094 f954afa1-0870-43dd-849c-7fdc7805f9e7 2558 +2499 uri://ed-fi.org/TribalAffiliationDescriptor Cahto Cahto Cahto Tribe of the Laytonville Rancheria \N \N \N 2021-11-05 18:59:32.380129 2021-11-05 18:59:32.380059 adda64bb-bb21-43b6-86ca-d8478eaa3fc5 2559 +2502 uri://ed-fi.org/TribalAffiliationDescriptor Campo Campo Campo Band of Diegueno Mission Indians of the Campo Indian Reservation, California \N \N \N 2021-11-05 18:59:32.385106 2021-11-05 18:59:32.385062 96a1fd02-be68-4933-93ce-c88ab1d30ddd 2562 +2503 uri://ed-fi.org/TribalAffiliationDescriptor Cantwell Cantwell Native Village of Cantwell \N \N \N 2021-11-05 18:59:32.391424 2021-11-05 18:59:32.391339 8d9d974e-9519-4fdd-b289-3e3518245ee6 2563 +2506 uri://ed-fi.org/TribalAffiliationDescriptor Cayuga Nation of New York Cayuga Nation of New York Cayuga Nation \N \N \N 2021-11-05 18:59:32.39683 2021-11-05 18:59:32.396713 e6d0d5ca-c559-4913-b17e-fba62484fe4f 2566 +2507 uri://ed-fi.org/TribalAffiliationDescriptor Cedarville Cedarville Cedarville Rancheria, California \N \N \N 2021-11-05 18:59:32.402419 2021-11-05 18:59:32.40235 6b28d4cb-e30e-448f-8b16-2f372b2ed3f0 2567 +2510 uri://ed-fi.org/TribalAffiliationDescriptor Chefornak Chefornak Village of Chefornak \N \N \N 2021-11-05 18:59:32.409178 2021-11-05 18:59:32.409117 68bbe4bd-0709-4454-a19a-d72e0cec5ce1 2570 +2511 uri://ed-fi.org/TribalAffiliationDescriptor Chehalis Chehalis Confederated Tribes of the Chehalis Reservation \N \N \N 2021-11-05 18:59:32.413408 2021-11-05 18:59:32.413292 63e36c76-baf6-42a0-a997-e9dffe479853 2571 +2512 uri://ed-fi.org/TribalAffiliationDescriptor Chemehuevi Chemehuevi Chemehuevi Indian Tribe of the Chemehuevi Reservation, California \N \N \N 2021-11-05 18:59:32.418286 2021-11-05 18:59:32.417646 cc1e207e-2fc5-4d03-963a-6ae01f98cb8b 2572 +2515 uri://ed-fi.org/TribalAffiliationDescriptor Cherokee Cherokee Cherokee Nation \N \N \N 2021-11-05 18:59:32.422912 2021-11-05 18:59:32.422868 84158659-7651-4e3f-9a0b-3daf8e7d0b35 2575 +2516 uri://ed-fi.org/TribalAffiliationDescriptor Chevak Chevak Chevak Native Village \N \N \N 2021-11-05 18:59:32.430641 2021-11-05 18:59:32.430477 745afd86-1a69-419d-a9d9-6b3cf3f542a2 2576 +2519 uri://ed-fi.org/TribalAffiliationDescriptor Chickahominy Indian Tribe Inc. Chickahominy Indian Tribe, Inc. \N \N \N 2021-11-05 18:59:32.435686 2021-11-05 18:59:32.43562 f0757c6b-b359-409d-947e-de29fb999836 2579 +2520 uri://ed-fi.org/TribalAffiliationDescriptor Chickaloon Chickaloon Chickaloon Native Village \N \N \N 2021-11-05 18:59:32.443165 2021-11-05 18:59:32.442923 696165fd-b3de-4b7a-8eb4-a085bdae9e0d 2580 +2522 uri://ed-fi.org/TribalAffiliationDescriptor Chicken Ranch Chicken Ranch Chicken Ranch Rancheria of Me-wuk Indians of California \N \N \N 2021-11-05 18:59:32.446545 2021-11-05 18:59:32.446381 db5110d7-2ffe-41e1-a928-bcf415546c5f 2582 +2524 uri://ed-fi.org/TribalAffiliationDescriptor Chignik Lagoon Chignik Lagoon Native Village of Chignik Lagoon \N \N \N 2021-11-05 18:59:32.455883 2021-11-05 18:59:32.455786 7eb904e4-2072-4049-8d46-6cbcbc92c382 2584 +2527 uri://ed-fi.org/TribalAffiliationDescriptor Chilkoot Chilkoot Chilkoot Indian Association (Haines) \N \N \N 2021-11-05 18:59:32.460107 2021-11-05 18:59:32.460002 f2b05825-4560-4faa-8b74-30c6731bdf9f 2587 +2528 uri://ed-fi.org/TribalAffiliationDescriptor Chinik Chinik Chinik Eskimo Community (Golovin) \N \N \N 2021-11-05 18:59:32.468406 2021-11-05 18:59:32.468332 ba478c96-34fe-4924-a4ce-f2b4d53edfaa 2588 +2530 uri://ed-fi.org/TribalAffiliationDescriptor Chitimacha Chitimacha Chitimacha Tribe of Louisiana \N \N \N 2021-11-05 18:59:32.472404 2021-11-05 18:59:32.472285 b09b8aa0-ea95-4886-b260-0f5f8ac2c7c5 2590 +2532 uri://ed-fi.org/TribalAffiliationDescriptor Choctaw Choctaw The Choctaw Nation of Oklahoma \N \N \N 2021-11-05 18:59:32.479657 2021-11-05 18:59:32.479586 7b85a77d-0507-46a8-8191-1358fba7613b 2592 +2533 uri://ed-fi.org/TribalAffiliationDescriptor Chuathbaluk Chuathbaluk Native Village of Chuathbaluk (Russian Mission, Kuskokwim) \N \N \N 2021-11-05 18:59:32.484479 2021-11-05 18:59:32.484146 a85a669a-98fd-41f8-ac9c-27bdab77c6b0 2593 +2536 uri://ed-fi.org/TribalAffiliationDescriptor Citizen Potawatomi Citizen Potawatomi Citizen Potawatomi Nation (Oklahoma) \N \N \N 2021-11-05 18:59:32.49263 2021-11-05 18:59:32.492296 ac660f18-2fdd-41de-b206-38d442e33bf7 2596 +2537 uri://ed-fi.org/TribalAffiliationDescriptor Clark's Point Clark's Point Village of Clarks Point \N \N \N 2021-11-05 18:59:32.495859 2021-11-05 18:59:32.495646 40faac16-d8db-4bb2-82ed-247cb0926eb1 2597 +2540 uri://ed-fi.org/TribalAffiliationDescriptor Coeur D'Alene Coeur D'Alene Coeur D'Alene Tribe \N \N \N 2021-11-05 18:59:32.503323 2021-11-05 18:59:32.503272 fb8ac771-9061-4ea1-9c4c-acc292813fb3 2600 +2541 uri://ed-fi.org/TribalAffiliationDescriptor Cold Springs Cold Springs Cold Springs Rancheria of Mono Indians of California \N \N \N 2021-11-05 18:59:32.510847 2021-11-05 18:59:32.510493 27994380-1f70-47ed-8c48-b3301263a44f 2601 +2544 uri://ed-fi.org/TribalAffiliationDescriptor Confederated Colville Confederated Colville Confederated Tribes of the Colville Reservation \N \N \N 2021-11-05 18:59:32.515179 2021-11-05 18:59:32.514837 dfcc59ba-d061-44fd-939f-e70bf5581532 2604 +2545 uri://ed-fi.org/TribalAffiliationDescriptor Confederated Coos Confederated Coos Confederated Tribes of Coos, Lower Umpqua and Siuslaw Indians \N \N \N 2021-11-05 18:59:32.521808 2021-11-05 18:59:32.52171 3295fdd8-0255-4f6a-8bc1-fd555432a7a0 2605 +2547 uri://ed-fi.org/TribalAffiliationDescriptor Confederated Salish Confederated Salish Confederated Salish & Kootenai Tribes of the Flathead Reservation \N \N \N 2021-11-05 18:59:32.534869 2021-11-05 18:59:32.534764 0459d6c7-616f-4ed5-a361-21a51903041d 2607 +2549 uri://ed-fi.org/TribalAffiliationDescriptor Cortina Cortina Kletsel Dehe Band of Wintun Indians \N \N \N 2021-11-05 18:59:32.540356 2021-11-05 18:59:32.54029 38fc22db-dc09-48d5-852f-58a3db65a3b4 2609 +2551 uri://ed-fi.org/TribalAffiliationDescriptor Council Council Native Village of Council \N \N \N 2021-11-05 18:59:32.546673 2021-11-05 18:59:32.546228 d30b03ef-089a-4496-885a-7ebaa0fa6674 2611 +2495 uri://ed-fi.org/TribalAffiliationDescriptor Burns Paiute Burns Paiute Burns Paiute Tribe \N \N \N 2021-11-05 18:59:32.369197 2021-11-05 18:59:32.369093 c8198c7f-789e-4d2e-8677-fa590f3227f0 2555 +2500 uri://ed-fi.org/TribalAffiliationDescriptor Cahuilla Cahuilla Cahuilla Band of Mission Indians of the Cahuilla Reservation, California \N \N \N 2021-11-05 18:59:32.380299 2021-11-05 18:59:32.380265 a81c4593-4fa9-4316-b8ba-90efbc1fc062 2560 +2504 uri://ed-fi.org/TribalAffiliationDescriptor Capitan Grande Capitan Grande Capitan Grande Band of Diegueno Mission Indians of California (Barona Group of Capitan Grande Band of Mission Indians of the Barona Reservation, California) \N \N \N 2021-11-05 18:59:32.393867 2021-11-05 18:59:32.393819 5688be24-2ec6-4590-8d36-f0c0b3659eb4 2564 +2508 uri://ed-fi.org/TribalAffiliationDescriptor Chalkyitsik Chalkyitsik Chalkyitsik Village \N \N \N 2021-11-05 18:59:32.406331 2021-11-05 18:59:32.406212 6a46d0d9-005e-43c2-8212-f62308ac17f2 2568 +2513 uri://ed-fi.org/TribalAffiliationDescriptor Chenega Chenega Native Village of Chenega (aka Chanega) \N \N \N 2021-11-05 18:59:32.420581 2021-11-05 18:59:32.420501 3aabdc72-fbd5-4a55-9afb-990cf7143b33 2573 +2523 uri://ed-fi.org/TribalAffiliationDescriptor Chignik Bay Chignik Bay Chignik Bay Tribal Council \N \N \N 2021-11-05 18:59:32.44776 2021-11-05 18:59:32.447592 bac99aea-91cf-4382-ad74-3e45539859cb 2583 +2525 uri://ed-fi.org/TribalAffiliationDescriptor Chignik Lake Chignik Lake Chignik Lake Village \N \N \N 2021-11-05 18:59:32.458672 2021-11-05 18:59:32.458487 90a30e61-8bbb-4166-bccb-4ffdd677df81 2585 +2531 uri://ed-fi.org/TribalAffiliationDescriptor Chitina Chitina Native Village of Chitina \N \N \N 2021-11-05 18:59:32.472694 2021-11-05 18:59:32.472508 4f8f200b-17e0-4909-b86b-ff78f7c59187 2591 +2535 uri://ed-fi.org/TribalAffiliationDescriptor Chuloonawick Chuloonawick Chuloonawick Native Village \N \N \N 2021-11-05 18:59:32.484686 2021-11-05 18:59:32.484236 2a7fda75-8817-45d2-9616-cfd4140253d3 2595 +2539 uri://ed-fi.org/TribalAffiliationDescriptor Cloverdale Cloverdale Cloverdale Rancheria of Pomo Indians of California \N \N \N 2021-11-05 18:59:32.49892 2021-11-05 18:59:32.498679 70d4775f-476c-405b-b84b-e1cabd9f7e1d 2599 +2546 uri://ed-fi.org/TribalAffiliationDescriptor Confederated Goshute Confederated Goshute Confederated Tribes of the Goshute Reservation, Nevada and Utah \N \N \N 2021-11-05 18:59:32.5248 2021-11-05 18:59:32.524752 bf165685-1361-41be-aa55-e647b9e9179a 2606 +2548 uri://ed-fi.org/TribalAffiliationDescriptor Confederated Yakama Confederated Yakama Confederated Tribes and Bands of the Yakama Nation \N \N \N 2021-11-05 18:59:32.535531 2021-11-05 18:59:32.535475 2757a6d3-3130-43c0-8ed3-2154c04e52c5 2608 +2550 uri://ed-fi.org/TribalAffiliationDescriptor Coquille Coquille Coquille Indian Tribe \N \N \N 2021-11-05 18:59:32.540365 2021-11-05 18:59:32.540315 3025d6fb-ed54-446b-9673-a89c3b2aefdb 2610 +2552 uri://ed-fi.org/TribalAffiliationDescriptor Coushatta Coushatta Coushatta Tribe of Louisiana \N \N \N 2021-11-05 18:59:32.546954 2021-11-05 18:59:32.546501 399644c7-527a-4f1b-bca2-9f197d241059 2612 +2557 uri://ed-fi.org/TribalAffiliationDescriptor Craig Craig Craig Tribal Association \N \N \N 2021-11-05 18:59:32.561691 2021-11-05 18:59:32.561203 4bb88e9f-0f36-407f-ab98-1aee9248a22d 2617 +2561 uri://ed-fi.org/TribalAffiliationDescriptor Deering Deering Native Village of Deering \N \N \N 2021-11-05 18:59:32.574788 2021-11-05 18:59:32.574716 37a3b2c6-8aba-42d7-b489-8a079ba82b1f 2621 +2567 uri://ed-fi.org/TribalAffiliationDescriptor Dry Creek Dry Creek Dry Creek Rancheria Band of Pomo Indians, California \N \N \N 2021-11-05 18:59:32.587126 2021-11-05 18:59:32.587039 3522288f-14bc-448b-8575-064c2cd504ca 2627 +2571 uri://ed-fi.org/TribalAffiliationDescriptor Eastern Shawnee Eastern Shawnee Eastern Shawnee Tribe of Oklahoma \N \N \N 2021-11-05 18:59:32.599194 2021-11-05 18:59:32.599146 4aeebfb7-8fd9-46da-bc6e-14887e3a5a26 2631 +2572 uri://ed-fi.org/TribalAffiliationDescriptor Eastern Shoshone Eastern Shoshone Eastern Shoshone Tribe of the Wind River Reservation, Wyoming \N \N \N 2021-11-05 18:59:32.602131 2021-11-05 18:59:32.602054 a739a796-1fa3-452d-812f-fe3b95c05a32 2632 +2576 uri://ed-fi.org/TribalAffiliationDescriptor Ekuk Ekuk Native Village of Ekuk \N \N \N 2021-11-05 18:59:32.612853 2021-11-05 18:59:32.612549 811371a6-0b07-4580-be18-bc114584ac54 2636 +2579 uri://ed-fi.org/TribalAffiliationDescriptor Elim IRA Elim IRA Native Village of Elim \N \N \N 2021-11-05 18:59:32.621572 2021-11-05 18:59:32.621336 c6531386-2691-405c-9134-6de6dd9f14a8 2639 +2581 uri://ed-fi.org/TribalAffiliationDescriptor Ely Shoshone Ely Shoshone Ely Shoshone Tribe of Nevada \N \N \N 2021-11-05 18:59:32.631169 2021-11-05 18:59:32.631047 35474c83-8696-4417-8e29-add28ed1eb4d 2641 +2586 uri://ed-fi.org/TribalAffiliationDescriptor Eyak Eyak Native Village of Eyak (Cordova) \N \N \N 2021-11-05 18:59:32.645154 2021-11-05 18:59:32.644974 841c47ee-a710-4788-9ffa-a17675c1688e 2646 +2590 uri://ed-fi.org/TribalAffiliationDescriptor Fond du Lac Fond du Lac Minnesota Chippewa Tribe - Fond du Lac Band \N \N \N 2021-11-05 18:59:32.658738 2021-11-05 18:59:32.65864 91b58a72-ea64-4628-8c85-d9fe0775c602 2650 +2591 uri://ed-fi.org/TribalAffiliationDescriptor Fort Bidwell Fort Bidwell Fort Bidwell Indian Community of the Fort Bidwell Reservation of California \N \N \N 2021-11-05 18:59:32.661564 2021-11-05 18:59:32.661474 0af6f647-c5d9-4cb6-a189-40b32ee6d782 2651 +2593 uri://ed-fi.org/TribalAffiliationDescriptor Fort Independence Fort Independence Fort Independence Indian Community of Paiute Indians of the Fort Independence Reservation, California \N \N \N 2021-11-05 18:59:32.669873 2021-11-05 18:59:32.669827 becd3c7b-f320-4f60-b44d-d6b9daa1bec1 2653 +2596 uri://ed-fi.org/TribalAffiliationDescriptor Fort McDowell Fort McDowell Fort McDowell Yavapai Nation, Arizona \N \N \N 2021-11-05 18:59:32.674235 2021-11-05 18:59:32.674189 635d9ce1-a743-4f32-824a-d62e56f0379a 2656 +2600 uri://ed-fi.org/TribalAffiliationDescriptor Galena Galena Galena Village (aka Louden Village) \N \N \N 2021-11-05 18:59:32.686411 2021-11-05 18:59:32.686122 339cd4ea-3a6d-488f-bab5-5aee079e0426 2660 +2602 uri://ed-fi.org/TribalAffiliationDescriptor Georgetown Georgetown Native Village of Georgetown \N \N \N 2021-11-05 18:59:32.692706 2021-11-05 18:59:32.692665 d4e84064-d099-4243-b564-a87bc415a750 2662 +2603 uri://ed-fi.org/TribalAffiliationDescriptor Gila River Gila River Gila River Indian Community of the Gila River Indian Reservation, Arizona \N \N \N 2021-11-05 18:59:32.696487 2021-11-05 18:59:32.696406 3145179d-d49f-4277-b472-43e8ed21b21e 2663 +2605 uri://ed-fi.org/TribalAffiliationDescriptor Grand Ronde Tribes Grand Ronde Tribes Confederated Tribes of the Grand Ronde Community of Oregon \N \N \N 2021-11-05 18:59:32.704222 2021-11-05 18:59:32.704146 976777bd-035f-46ab-a142-126f1b4fae11 2665 +2608 uri://ed-fi.org/TribalAffiliationDescriptor Grayling Grayling Organized Village of Grayling (aka Holikachuk) \N \N \N 2021-11-05 18:59:32.708375 2021-11-05 18:59:32.708304 07c466a8-3ce1-4de7-bfab-14c274204d64 2668 +2610 uri://ed-fi.org/TribalAffiliationDescriptor Greenville Greenville Greenville Rancheria \N \N \N 2021-11-05 18:59:32.716536 2021-11-05 18:59:32.716454 be42d259-7f53-4466-947a-09d796179e53 2670 +2612 uri://ed-fi.org/TribalAffiliationDescriptor Guidiville Guidiville Guidiville Rancheria of California \N \N \N 2021-11-05 18:59:32.720039 2021-11-05 18:59:32.7199 c920a8d0-20a0-474f-b7d2-0f558893026c 2672 +2613 uri://ed-fi.org/TribalAffiliationDescriptor Habematolel Habematolel Habematolel Pomo of Upper Lake, California \N \N \N 2021-11-05 18:59:32.727066 2021-11-05 18:59:32.726933 db4981db-201e-4eb3-9b83-a705b3fe6258 2673 +2616 uri://ed-fi.org/TribalAffiliationDescriptor Hannahville Hannahville Hannahville Indian Community, Michigan \N \N \N 2021-11-05 18:59:32.733428 2021-11-05 18:59:32.73291 1d07d938-84c3-42c2-b4f3-5bfeb1e59b5c 2676 +2618 uri://ed-fi.org/TribalAffiliationDescriptor Ho-Chunk Ho-Chunk Ho-Chunk Nation of Wisconsin \N \N \N 2021-11-05 18:59:32.739839 2021-11-05 18:59:32.739662 49fa6697-688a-4799-b0c5-9f780241e507 2678 +2620 uri://ed-fi.org/TribalAffiliationDescriptor Holy Cross Holy Cross Holy Cross Village \N \N \N 2021-11-05 18:59:32.746373 2021-11-05 18:59:32.746177 ad50cab2-d28d-43d0-a720-52d9e0b06244 2680 +2622 uri://ed-fi.org/TribalAffiliationDescriptor Hoopa Hoopa Hoopa Valley Tribe, California \N \N \N 2021-11-05 18:59:32.753252 2021-11-05 18:59:32.75212 f3c72deb-a7ce-4ba4-9352-08d24b7c75fb 2682 +2624 uri://ed-fi.org/TribalAffiliationDescriptor Hopi Hopi Hopi Tribe of Arizona \N \N \N 2021-11-05 18:59:32.758425 2021-11-05 18:59:32.757994 18a7eb30-18a2-4348-9ee5-d23cf56d469b 2684 +2625 uri://ed-fi.org/TribalAffiliationDescriptor Hopland Hopland Hopland Band of Pomo Indians, California \N \N \N 2021-11-05 18:59:32.763571 2021-11-05 18:59:32.763511 9484a08c-e0bf-4471-9b04-c89206141369 2685 +2628 uri://ed-fi.org/TribalAffiliationDescriptor Hughes Hughes Hughes Village \N \N \N 2021-11-05 18:59:32.771749 2021-11-05 18:59:32.770692 515f330a-ee95-4347-b915-43b26a60b2c0 2688 +2554 uri://ed-fi.org/TribalAffiliationDescriptor Cowlitz Cowlitz Cowlitz Indian Tribe \N \N \N 2021-11-05 18:59:32.553098 2021-11-05 18:59:32.553026 574e3a2a-67b1-483d-8dcf-736fddf73780 2614 +2555 uri://ed-fi.org/TribalAffiliationDescriptor Coyote Valley Coyote Valley Coyote Valley Band of Pomo Indians of California \N \N \N 2021-11-05 18:59:32.556812 2021-11-05 18:59:32.556766 f863b956-fb2e-46fe-bb5f-e4de3d3c0ace 2615 +2556 uri://ed-fi.org/TribalAffiliationDescriptor Crooked Creek Crooked Creek Village of Crooked Creek \N \N \N 2021-11-05 18:59:32.561664 2021-11-05 18:59:32.561102 90a1c2ae-dc88-4797-8406-55183e2ca51d 2616 +2559 uri://ed-fi.org/TribalAffiliationDescriptor Crow Creek Crow Creek Crow Creek Sioux Tribe of the Crow Creek Reservation, SD \N \N \N 2021-11-05 18:59:32.565952 2021-11-05 18:59:32.565682 b5650cf1-2fc1-43e3-9772-5de5cffbc6be 2619 +2560 uri://ed-fi.org/TribalAffiliationDescriptor Curyung Curyung Curyung Tribal Council \N \N \N 2021-11-05 18:59:32.571735 2021-11-05 18:59:32.571672 3288222e-5e91-47c8-9061-6f2d31f5e925 2620 +2562 uri://ed-fi.org/TribalAffiliationDescriptor Delaware Nation Delaware Nation Delaware Nation, Oklahoma \N \N \N 2021-11-05 18:59:32.575802 2021-11-05 18:59:32.57563 ec610db5-9f95-45b0-b01a-9acf846f0f94 2622 +2564 uri://ed-fi.org/TribalAffiliationDescriptor Diomede Diomede Native Village of Diomede (aka Inalik) \N \N \N 2021-11-05 18:59:32.582079 2021-11-05 18:59:32.582052 d15d446f-eac4-406b-8f47-9e77f746016d 2624 +2565 uri://ed-fi.org/TribalAffiliationDescriptor Dot Lake Dot Lake Village of Dot Lake \N \N \N 2021-11-05 18:59:32.585879 2021-11-05 18:59:32.585702 531c52e5-4453-4b70-b504-f67e72ed38fa 2625 +2568 uri://ed-fi.org/TribalAffiliationDescriptor Duckwater Duckwater Duckwater Shoshone Tribe of the Duckwater Reservation, Nevada \N \N \N 2021-11-05 18:59:32.591507 2021-11-05 18:59:32.591456 9c2d0637-f576-4694-bba0-60839fa3e995 2628 +2569 uri://ed-fi.org/TribalAffiliationDescriptor Eagle Eagle Native Village of Eagle \N \N \N 2021-11-05 18:59:32.595907 2021-11-05 18:59:32.595827 f9e4e99a-2f63-453f-8fcd-2e9ba4684af6 2629 +2570 uri://ed-fi.org/TribalAffiliationDescriptor Eastern Cherokee Eastern Cherokee Eastern Band of Cherokee Indians \N \N \N 2021-11-05 18:59:32.599074 2021-11-05 18:59:32.599011 f9903c8d-a8f1-4f94-95a1-e4323c341ae9 2630 +2573 uri://ed-fi.org/TribalAffiliationDescriptor Eek Eek Native Village of Eek \N \N \N 2021-11-05 18:59:32.606454 2021-11-05 18:59:32.606389 eedc0eaa-4bf2-45f2-9c17-b30dce69d359 2633 +2574 uri://ed-fi.org/TribalAffiliationDescriptor Egegik Egegik Egegik Village \N \N \N 2021-11-05 18:59:32.609601 2021-11-05 18:59:32.609356 3537048b-b4fe-4b00-8200-e6efce460ca6 2634 +2575 uri://ed-fi.org/TribalAffiliationDescriptor Eklutna Eklutna Eklutna Native Village \N \N \N 2021-11-05 18:59:32.612896 2021-11-05 18:59:32.612646 5ac6a008-7d46-430f-be1f-be7a389472b3 2635 +2578 uri://ed-fi.org/TribalAffiliationDescriptor Elem Elem Elem Indian Colony of Pomo Indians of the Sulphur Bank Rancheria, California \N \N \N 2021-11-05 18:59:32.619389 2021-11-05 18:59:32.619153 c1e8899e-a133-4c7b-991b-48350bf203a6 2638 +2580 uri://ed-fi.org/TribalAffiliationDescriptor Elk Valley Elk Valley Elk Valley Rancheria, California \N \N \N 2021-11-05 18:59:32.626426 2021-11-05 18:59:32.626359 91488abb-3c2a-4a23-8f05-8327c9c52d11 2640 +2582 uri://ed-fi.org/TribalAffiliationDescriptor Emmonak Emmonak Emmonak Village \N \N \N 2021-11-05 18:59:32.63186 2021-11-05 18:59:32.631644 8c336a2b-8fb0-4b96-b31f-c1c2b9b75d40 2642 +2584 uri://ed-fi.org/TribalAffiliationDescriptor Evansville Evansville Evansville Village (aka Bettles Field) \N \N \N 2021-11-05 18:59:32.636255 2021-11-05 18:59:32.636095 081e6c25-8920-40bb-80f1-6aaf472c0c9a 2644 +2588 uri://ed-fi.org/TribalAffiliationDescriptor Federated Indians of Graton Federated Indians of Graton Federated Indians of Graton Rancheria, California \N \N \N 2021-11-05 18:59:32.64686 2021-11-05 18:59:32.646799 83c01901-f2c7-483b-ba5b-f46d09a6abc4 2648 +2589 uri://ed-fi.org/TribalAffiliationDescriptor Flandreau Flandreau Flandreau Santee Sioux Tribe of South Dakota \N \N \N 2021-11-05 18:59:32.658602 2021-11-05 18:59:32.658548 01d97f8e-e5a4-469c-a614-81f47a229265 2649 +2594 uri://ed-fi.org/TribalAffiliationDescriptor Fort McDermitt Fort McDermitt Fort McDermitt Paiute and Shoshone Tribes of the Fort McDermitt Indian Reservation, Nevada and Oregon \N \N \N 2021-11-05 18:59:32.67073 2021-11-05 18:59:32.670673 590b46f2-97a2-4193-ba4f-6b40a36376de 2654 +2595 uri://ed-fi.org/TribalAffiliationDescriptor Fort Mojave Fort Mojave Fort Mojave Indian Tribe of Arizona, California & Nevada \N \N \N 2021-11-05 18:59:32.674051 2021-11-05 18:59:32.673861 2b26ed66-9f78-4c74-b121-c96f9e592aac 2655 +2597 uri://ed-fi.org/TribalAffiliationDescriptor Fort Sill Fort Sill Fort Sill Apache Tribe of Oklahoma \N \N \N 2021-11-05 18:59:32.681323 2021-11-05 18:59:32.681255 71951bb6-6d22-4e32-b415-ff36ff3e0a14 2657 +2599 uri://ed-fi.org/TribalAffiliationDescriptor Gakona Gakona Native Village of Gakona \N \N \N 2021-11-05 18:59:32.686189 2021-11-05 18:59:32.685975 b7260beb-0432-4a91-be8a-fa9274ea4ba2 2659 +2601 uri://ed-fi.org/TribalAffiliationDescriptor Gambell Gambell Native Village of Gambell \N \N \N 2021-11-05 18:59:32.691971 2021-11-05 18:59:32.691917 6d10c710-fef8-40ad-9052-aa643a98af99 2661 +2604 uri://ed-fi.org/TribalAffiliationDescriptor Goodnews Bay Goodnews Bay Native Village of Goodnews Bay \N \N \N 2021-11-05 18:59:32.697697 2021-11-05 18:59:32.697653 32b1eabb-a035-4b07-a2aa-a107561f8d83 2664 +2606 uri://ed-fi.org/TribalAffiliationDescriptor Grand Portage Grand Portage Minnesota Chippewa Tribe - Grand Portage Band \N \N \N 2021-11-05 18:59:32.704133 2021-11-05 18:59:32.704056 d21c1f97-df57-429a-aa70-831382c50c5a 2666 +2607 uri://ed-fi.org/TribalAffiliationDescriptor Grand Traverse Grand Traverse Grand Traverse Band of Ottawa & Chippewa Indians, Michigan \N \N \N 2021-11-05 18:59:32.708285 2021-11-05 18:59:32.708229 d5c6d703-0a79-4057-99a7-d71f0c5181e1 2667 +2609 uri://ed-fi.org/TribalAffiliationDescriptor Grindstone Grindstone Grindstone Indian Rancheria of Wintun-Wailaki Indians of California \N \N \N 2021-11-05 18:59:32.716224 2021-11-05 18:59:32.716158 4dc28c01-2a03-4a1c-8409-f0a79adf5c18 2669 +2611 uri://ed-fi.org/TribalAffiliationDescriptor Gulkana Gulkana Gulkana Village \N \N \N 2021-11-05 18:59:32.719951 2021-11-05 18:59:32.719778 cf6f5aec-bb99-4591-b933-c4cec94083b0 2671 +2614 uri://ed-fi.org/TribalAffiliationDescriptor Hamilton Hamilton Native Village of Hamilton \N \N \N 2021-11-05 18:59:32.728358 2021-11-05 18:59:32.727752 09103a1a-a177-418c-97d7-bd2a1dc01d59 2674 +2615 uri://ed-fi.org/TribalAffiliationDescriptor Havasupai Havasupai Havasupai Tribe of the Havasupai Reservation, Arizona \N \N \N 2021-11-05 18:59:32.732973 2021-11-05 18:59:32.732823 6b232a0a-c680-403b-9482-49743528ae62 2675 +2617 uri://ed-fi.org/TribalAffiliationDescriptor Healy Lake Healy Lake Healy Lake Village \N \N \N 2021-11-05 18:59:32.739706 2021-11-05 18:59:32.739573 92cf9314-2ee1-424c-a41d-703177e5bda5 2677 +2619 uri://ed-fi.org/TribalAffiliationDescriptor Hoh Hoh Hoh Indian Tribe \N \N \N 2021-11-05 18:59:32.74374 2021-11-05 18:59:32.743344 9c0f9b7f-21ef-42fe-9ccb-8d1c74e252af 2679 +2621 uri://ed-fi.org/TribalAffiliationDescriptor Hoonah Hoonah Hoonah Indian Association \N \N \N 2021-11-05 18:59:32.750952 2021-11-05 18:59:32.750656 9379ddf8-2d2f-4be1-af5e-10d2a6e3888c 2681 +2623 uri://ed-fi.org/TribalAffiliationDescriptor Hooper Bay Hooper Bay Native Village of Hooper Bay \N \N \N 2021-11-05 18:59:32.758253 2021-11-05 18:59:32.75784 9d1d4eb8-be90-4006-b758-c1842dfcecdb 2683 +2626 uri://ed-fi.org/TribalAffiliationDescriptor Houlton Houlton Houlton Band of Maliseet Indians \N \N \N 2021-11-05 18:59:32.764833 2021-11-05 18:59:32.764635 b5af4e7e-e1b0-44c1-861d-e51ea05c814a 2686 +2627 uri://ed-fi.org/TribalAffiliationDescriptor Hualapai Hualapai Hualapai Indian Tribe of the Hualapai Indian Reservation, Arizona \N \N \N 2021-11-05 18:59:32.771309 2021-11-05 18:59:32.77065 014e7bc1-c9a2-4676-9af8-990c43740c57 2687 +2631 uri://ed-fi.org/TribalAffiliationDescriptor Igiugig Igiugig Igiugig Village \N \N \N 2021-11-05 18:59:32.780794 2021-11-05 18:59:32.780716 3f2e263f-85ba-415b-bf6e-81bd292914f2 2691 +2632 uri://ed-fi.org/TribalAffiliationDescriptor Iipay Iipay Iipay Nation of Santa Ysabel, California \N \N \N 2021-11-05 18:59:32.789005 2021-11-05 18:59:32.788219 5c2d6150-2673-4f52-b0c5-1c354fb2ff14 2692 +2635 uri://ed-fi.org/TribalAffiliationDescriptor Ione Ione Ione Band of Miwok Indians of California \N \N \N 2021-11-05 18:59:32.793481 2021-11-05 18:59:32.79345 7f1f04c6-025e-4867-80d1-9a8612cec269 2695 +2636 uri://ed-fi.org/TribalAffiliationDescriptor Iowa of Kansas Iowa of Kansas Iowa Tribe of Kansas & Nebraska \N \N \N 2021-11-05 18:59:32.799803 2021-11-05 18:59:32.799757 0f39ef52-9122-4ca3-961d-8d4ec7478b9a 2696 +2637 uri://ed-fi.org/TribalAffiliationDescriptor Iowa of Oklahoma Iowa of Oklahoma Iowa Tribe of Oklahoma \N \N \N 2021-11-05 18:59:32.804427 2021-11-05 18:59:32.804303 97199af6-5419-497a-8c6d-4281fbd8e14b 2697 +2640 uri://ed-fi.org/TribalAffiliationDescriptor Jackson Jackson Jackson Band of Miwuk Indians \N \N \N 2021-11-05 18:59:32.811418 2021-11-05 18:59:32.811189 4531efde-6938-448b-980e-310f78339281 2700 +2629 uri://ed-fi.org/TribalAffiliationDescriptor Hydaburg Hydaburg Hydaburg Cooperative Association \N \N \N 2021-11-05 18:59:32.775841 2021-11-05 18:59:32.775752 deb5455a-a146-456d-a6ef-cbb08c2b207b 2689 +2634 uri://ed-fi.org/TribalAffiliationDescriptor Inaja Inaja Inaja Band of Diegueno Mission Indians of the Inaja and Cosmit Reservation, California \N \N \N 2021-11-05 18:59:32.79136 2021-11-05 18:59:32.790972 b91e5e84-99cd-4040-951a-02a9fabc44ea 2694 +2638 uri://ed-fi.org/TribalAffiliationDescriptor Ivanof Bay Tribe Ivanof Bay Tribe Ivanof Bay Tribe \N \N \N 2021-11-05 18:59:32.805685 2021-11-05 18:59:32.805636 90a675ad-a796-4b9a-bdd9-849252c4cfe0 2698 +2641 uri://ed-fi.org/TribalAffiliationDescriptor Jamestown Jamestown Jamestown S'Klallam Tribe \N \N \N 2021-11-05 18:59:32.813516 2021-11-05 18:59:32.813393 80c1591d-2862-41a8-9948-ab9958355a4c 2701 +2643 uri://ed-fi.org/TribalAffiliationDescriptor Jena Jena Jena Band of Choctaw Indians \N \N \N 2021-11-05 18:59:32.818632 2021-11-05 18:59:32.817597 91ccc9a7-f9c8-4561-8534-a5fcd373586d 2703 +2645 uri://ed-fi.org/TribalAffiliationDescriptor Jicarilla Jicarilla Jicarilla Apache Nation, New Mexico \N \N \N 2021-11-05 18:59:32.825197 2021-11-05 18:59:32.824058 0d2297ba-b3ee-4182-b4bc-e1413544ab33 2705 +2647 uri://ed-fi.org/TribalAffiliationDescriptor Kake Kake Organized Village of Kake \N \N \N 2021-11-05 18:59:32.830975 2021-11-05 18:59:32.830431 a5b394fb-a0d1-4591-927e-04f32db77906 2707 +2648 uri://ed-fi.org/TribalAffiliationDescriptor Kaktovik Kaktovik Kaktovik Village (aka Barter Island) \N \N \N 2021-11-05 18:59:32.835992 2021-11-05 18:59:32.83584 315b01eb-6b81-4542-8da4-a631f1ad7276 2708 +2651 uri://ed-fi.org/TribalAffiliationDescriptor Kalskag Kalskag Village of Kalskag \N \N \N 2021-11-05 18:59:32.841355 2021-11-05 18:59:32.841305 dfe4c00d-a960-4367-97e0-6e2c1a5b41a2 2711 +2652 uri://ed-fi.org/TribalAffiliationDescriptor Kanatak Kanatak Native Village of Kanatak \N \N \N 2021-11-05 18:59:32.847943 2021-11-05 18:59:32.847885 45663ca3-217d-4c6d-b880-4e633f60e0d8 2712 +2655 uri://ed-fi.org/TribalAffiliationDescriptor Kasaan Kasaan Organized Village of Kasaan \N \N \N 2021-11-05 18:59:32.851846 2021-11-05 18:59:32.851633 90ff1a81-9f59-4fa2-97a3-d3b5eb1148c6 2715 +2659 uri://ed-fi.org/TribalAffiliationDescriptor Kaw Kaw Kaw Nation, Oklahoma \N \N \N 2021-11-05 18:59:32.864382 2021-11-05 18:59:32.864343 abdd9328-1671-4311-a649-2c08e3bcfd69 2719 +2663 uri://ed-fi.org/TribalAffiliationDescriptor Kewa Pueblo Kewa Pueblo Kewa Pueblo \N \N \N 2021-11-05 18:59:32.878455 2021-11-05 18:59:32.878284 abef18fe-e9c7-4c04-9603-00c5f5d1d8fa 2723 +2664 uri://ed-fi.org/TribalAffiliationDescriptor Kickapoo of Kansas Kickapoo of Kansas Kickapoo Tribe in Kansas \N \N \N 2021-11-05 18:59:32.885962 2021-11-05 18:59:32.885908 3c167e17-aa27-4e45-920a-b04a2a739ae4 2724 +2666 uri://ed-fi.org/TribalAffiliationDescriptor Kiana Kiana Native Village of Kiana \N \N \N 2021-11-05 18:59:32.889815 2021-11-05 18:59:32.889779 a404d53c-a0b2-4f7a-a173-7eca79dbb545 2726 +2670 uri://ed-fi.org/TribalAffiliationDescriptor Kiowa Kiowa Kiowa Tribe \N \N \N 2021-11-05 18:59:32.899135 2021-11-05 18:59:32.898452 1413d05a-9efa-44ce-8a1a-645f98cb021c 2730 +2672 uri://ed-fi.org/TribalAffiliationDescriptor Kivalina Kivalina Native Village of Kivalina \N \N \N 2021-11-05 18:59:32.90934 2021-11-05 18:59:32.908038 cc2a7b22-e41d-4878-abe4-7ea918afaecf 2732 +2675 uri://ed-fi.org/TribalAffiliationDescriptor Klamath Klamath Klamath Tribes \N \N \N 2021-11-05 18:59:32.914115 2021-11-05 18:59:32.913856 706b93bb-e731-488c-9b88-5a741939791b 2735 +2676 uri://ed-fi.org/TribalAffiliationDescriptor Kobuk Kobuk Native Village of Kobuk \N \N \N 2021-11-05 18:59:32.923774 2021-11-05 18:59:32.923481 81a88047-0a71-4fc9-b1c3-79e375709405 2736 +2678 uri://ed-fi.org/TribalAffiliationDescriptor Kokhanok Kokhanok Kokhanok Village \N \N \N 2021-11-05 18:59:32.928939 2021-11-05 18:59:32.928605 e384b687-d295-4863-bd9d-48e2c484eb4e 2738 +2681 uri://ed-fi.org/TribalAffiliationDescriptor Kootenai Kootenai Kootenai Tribe of Idaho \N \N \N 2021-11-05 18:59:32.936182 2021-11-05 18:59:32.935829 6c0ea28f-e469-4d2e-9553-1aff1adb3d68 2741 +2683 uri://ed-fi.org/TribalAffiliationDescriptor Kotzebue Kotzebue Native Village of Kotzebue \N \N \N 2021-11-05 18:59:32.940797 2021-11-05 18:59:32.940671 316c87e6-9754-4524-8bc6-c166c67a222b 2743 +2685 uri://ed-fi.org/TribalAffiliationDescriptor Koyukuk Koyukuk Koyukuk Native Village \N \N \N 2021-11-05 18:59:32.949951 2021-11-05 18:59:32.949795 cc235df6-25fb-4fc6-b1b5-74c4b6a38308 2745 +2688 uri://ed-fi.org/TribalAffiliationDescriptor Kwinhagak Kwinhagak Native Village of Kwinhagak (aka Quinhagak) \N \N \N 2021-11-05 18:59:32.961129 2021-11-05 18:59:32.96092 f92ea158-91ad-494e-ac38-1102fb04cc60 2748 +2691 uri://ed-fi.org/TribalAffiliationDescriptor La Posta La Posta La Posta Band of Diegueno Mission Indians of the La Posta Indian Reservation, California \N \N \N 2021-11-05 18:59:32.967709 2021-11-05 18:59:32.967029 15c24f59-213c-44ea-86b2-83b4367adbfd 2751 +2693 uri://ed-fi.org/TribalAffiliationDescriptor Lac Vieux Lac Vieux Lac Vieux Desert Band of Lake Superior Chippewa Indians of MI \N \N \N 2021-11-05 18:59:32.973526 2021-11-05 18:59:32.973402 0da7798a-ac47-4a6d-8035-ed2fb5156c9c 2753 +2694 uri://ed-fi.org/TribalAffiliationDescriptor Las Vegas Las Vegas Las Vegas Tribe of Paiute Indians of the Las Vegas Indian Colony, Nevada \N \N \N 2021-11-05 18:59:32.978776 2021-11-05 18:59:32.97871 b72332df-12e0-41b9-947c-66e232ad7997 2754 +2696 uri://ed-fi.org/TribalAffiliationDescriptor Leech Lake Leech Lake Minnesota Chippewa Tribe - Leech Lake Band \N \N \N 2021-11-05 18:59:32.98288 2021-11-05 18:59:32.98281 41e122c4-8112-4a6f-b475-4e26231274b1 2756 +2701 uri://ed-fi.org/TribalAffiliationDescriptor Lone Pine Lone Pine Lone Pine Paiute-Shoshone Tribe \N \N \N 2021-11-05 18:59:32.9969 2021-11-05 18:59:32.99632 84abd90d-00cc-475e-9816-9f1a44a4ba27 2761 +2705 uri://ed-fi.org/TribalAffiliationDescriptor Lower Elwha Lower Elwha Lower Elwha Tribal Community \N \N \N 2021-11-05 18:59:33.008068 2021-11-05 18:59:33.006724 c6e0d933-8b20-4d07-b355-508d90c039bb 2765 +2708 uri://ed-fi.org/TribalAffiliationDescriptor Lower Sioux Lower Sioux Lower Sioux Indian Community in the State of Minnesota \N \N \N 2021-11-05 18:59:33.021114 2021-11-05 18:59:33.020805 a451bac3-f101-4eb0-b4ca-fcc8f71e47a0 2768 +2711 uri://ed-fi.org/TribalAffiliationDescriptor Manchester Manchester Manchester Band of Pomo Indians of the Manchester Rancheria, California \N \N \N 2021-11-05 18:59:33.033692 2021-11-05 18:59:33.032551 da453a7f-4405-4162-a48f-0447e8dcc42e 2771 +2713 uri://ed-fi.org/TribalAffiliationDescriptor Manley Hot Springs Manley Hot Springs Manley Hot Springs Village \N \N \N 2021-11-05 18:59:33.037303 2021-11-05 18:59:33.037259 f730cc39-163d-4a5f-be76-6c36e1c7e700 2773 +2716 uri://ed-fi.org/TribalAffiliationDescriptor Mary's Igloo Mary's Igloo Native Village of Mary's Igloo \N \N \N 2021-11-05 18:59:33.05008 2021-11-05 18:59:33.049962 fde45ba3-8bff-40a2-8381-d21aad415fb2 2776 +2719 uri://ed-fi.org/TribalAffiliationDescriptor Mashpee Mashpee Mashpee Wampanoag Tribe \N \N \N 2021-11-05 18:59:33.065316 2021-11-05 18:59:33.062954 a8e78c26-1534-4c25-86b2-736d41433356 2779 +2722 uri://ed-fi.org/TribalAffiliationDescriptor Mekoryuk Mekoryuk Native Village of Mekoryuk \N \N \N 2021-11-05 18:59:33.078514 2021-11-05 18:59:33.077511 e7a1ad4d-f8af-49f9-98df-738fac1e7980 2782 +2727 uri://ed-fi.org/TribalAffiliationDescriptor Metlakatla Metlakatla Metlakatla Indian Community, Annette Island Reserve \N \N \N 2021-11-05 18:59:33.093258 2021-11-05 18:59:33.092299 a593d001-9504-448f-9ddb-09cdc6e9a703 2787 +2731 uri://ed-fi.org/TribalAffiliationDescriptor Minnesota Chippewa Minnesota Chippewa Minnesota Chippewa Tribe \N \N \N 2021-11-05 18:59:33.109003 2021-11-05 18:59:33.108738 9b216f1a-806b-4563-a19a-ec234eacb30e 2791 +2736 uri://ed-fi.org/TribalAffiliationDescriptor Modoc Modoc The Modoc Tribe of Oklahoma \N \N \N 2021-11-05 18:59:33.122726 2021-11-05 18:59:33.122576 910a4ad6-3305-4048-ac05-0328783249c6 2796 +2739 uri://ed-fi.org/TribalAffiliationDescriptor Morongo Morongo Morongo Band of Mission Indians, California \N \N \N 2021-11-05 18:59:33.133116 2021-11-05 18:59:33.132194 4f4339db-5b5f-4dc4-bbe8-9bb4ab08c7da 2799 +2742 uri://ed-fi.org/TribalAffiliationDescriptor Naknek Naknek Naknek Native Village \N \N \N 2021-11-05 18:59:33.14104 2021-11-05 18:59:33.140514 b3f59908-a8e7-43de-aa38-fbb84a1de9e3 2802 +2745 uri://ed-fi.org/TribalAffiliationDescriptor Napaskiak Napaskiak Native Village of Napaskiak \N \N \N 2021-11-05 18:59:33.151108 2021-11-05 18:59:33.151029 7d4163d2-bcf7-4c4e-8226-18402a7fe424 2805 +2748 uri://ed-fi.org/TribalAffiliationDescriptor Nenana Nenana Nenana Native Association \N \N \N 2021-11-05 18:59:33.164961 2021-11-05 18:59:33.164811 a48fce54-eea3-47b3-ba5c-825e9ef5068c 2808 +2753 uri://ed-fi.org/TribalAffiliationDescriptor New Stuyahok New Stuyahok New Stuyahok Village \N \N \N 2021-11-05 18:59:33.178276 2021-11-05 18:59:33.178178 6d90cdcb-5a88-4cfd-af02-86d28645da1d 2813 +2755 uri://ed-fi.org/TribalAffiliationDescriptor Nez Perce Nez Perce Nez Perce Tribe \N \N \N 2021-11-05 18:59:33.190569 2021-11-05 18:59:33.190163 d028bcd1-2543-4c8e-9ab8-79cbb509c977 2815 +2642 uri://ed-fi.org/TribalAffiliationDescriptor Jamul Jamul Jamul Indian Village of California \N \N \N 2021-11-05 18:59:32.81714 2021-11-05 18:59:32.816958 f4c4d413-8c5f-4056-b778-251675ffee1e 2702 +2644 uri://ed-fi.org/TribalAffiliationDescriptor Kaguyuk Kaguyuk Kaguyak Village \N \N \N 2021-11-05 18:59:32.823959 2021-11-05 18:59:32.823882 8891910d-ad7f-4de2-b1eb-c8c96df80a14 2704 +2646 uri://ed-fi.org/TribalAffiliationDescriptor Kaibab Kaibab Kaibab Band of Paiute Indians of the Kaibab Indian Reservation, Arizona \N \N \N 2021-11-05 18:59:32.828247 2021-11-05 18:59:32.827799 50b9f9d9-06f5-44ad-b3f1-27de3420cda9 2706 +2649 uri://ed-fi.org/TribalAffiliationDescriptor Kalispel Kalispel Kalispel Indian Community of the Kalispel Reservation \N \N \N 2021-11-05 18:59:32.836976 2021-11-05 18:59:32.836747 b2a92f37-deb5-4a48-875c-c1ceb05ec93b 2709 +2650 uri://ed-fi.org/TribalAffiliationDescriptor Kaltag Kaltag Village of Kaltag \N \N \N 2021-11-05 18:59:32.840906 2021-11-05 18:59:32.840859 214b7fc8-bb39-4f77-bef0-cba77b7c4e13 2710 +2653 uri://ed-fi.org/TribalAffiliationDescriptor Karluk Karluk Native Village of Karluk \N \N \N 2021-11-05 18:59:32.848097 2021-11-05 18:59:32.847855 cc734ea9-5202-4c24-a15c-0f5c82ec81fe 2713 +2656 uri://ed-fi.org/TribalAffiliationDescriptor Kashia Kashia Kashia Band of Pomo Indians of the Stewarts Point Rancheria, California \N \N \N 2021-11-05 18:59:32.859487 2021-11-05 18:59:32.8593 27c2192f-5032-4e56-a490-61e34dc30137 2716 +2658 uri://ed-fi.org/TribalAffiliationDescriptor Kenaitze Kenaitze Kenaitze Indian Tribe \N \N \N 2021-11-05 18:59:32.864196 2021-11-05 18:59:32.864009 62aae447-c986-453b-9cc9-c289922d3969 2718 +2660 uri://ed-fi.org/TribalAffiliationDescriptor Ketchikan Ketchikan Ketchikan Indian Corporation \N \N \N 2021-11-05 18:59:32.872583 2021-11-05 18:59:32.871449 9a5e2c34-9abe-479b-9e21-98075ac77e16 2720 +2662 uri://ed-fi.org/TribalAffiliationDescriptor Kialegee Kialegee Kialegee Tribal Town \N \N \N 2021-11-05 18:59:32.876209 2021-11-05 18:59:32.876151 e3a1c6a5-6de6-4ad1-bba7-2959554b9d3b 2722 +2667 uri://ed-fi.org/TribalAffiliationDescriptor Kickapoo of Texas Kickapoo of Texas Kickapoo Traditional Tribe of Texas \N \N \N 2021-11-05 18:59:32.889839 2021-11-05 18:59:32.889478 43b2fa73-1d88-4ffe-acb0-f3b7d596086d 2727 +2668 uri://ed-fi.org/TribalAffiliationDescriptor King Island King Island King Island Native Community \N \N \N 2021-11-05 18:59:32.896609 2021-11-05 18:59:32.896015 91a5484f-6de1-4c53-9f40-aecc53002e52 2728 +2673 uri://ed-fi.org/TribalAffiliationDescriptor Klawock Klawock Klawock Cooperative Association \N \N \N 2021-11-05 18:59:32.909888 2021-11-05 18:59:32.909757 a36aaed8-c435-477b-8441-0496f2f9fb02 2733 +2677 uri://ed-fi.org/TribalAffiliationDescriptor Knik Knik Knik Tribe \N \N \N 2021-11-05 18:59:32.92369 2021-11-05 18:59:32.92333 e51e2295-bf7d-417b-bd88-78151ffd7e68 2737 +2679 uri://ed-fi.org/TribalAffiliationDescriptor Koi Koi Koi Nation of Northern California \N \N \N 2021-11-05 18:59:32.92893 2021-11-05 18:59:32.928476 27af79a4-3f25-4f3c-97d2-9fcddd37d627 2739 +2680 uri://ed-fi.org/TribalAffiliationDescriptor Kongiganak Kongiganak Native Village of Kongiganak \N \N \N 2021-11-05 18:59:32.935904 2021-11-05 18:59:32.935785 4b1c775e-9f43-4a52-ab49-9e5fc6b5872c 2740 +2682 uri://ed-fi.org/TribalAffiliationDescriptor Kotlik Kotlik Village of Kotlik \N \N \N 2021-11-05 18:59:32.940658 2021-11-05 18:59:32.940522 f6051336-71c3-452b-8def-d233d511cc97 2742 +2684 uri://ed-fi.org/TribalAffiliationDescriptor Koyuk Koyuk Native Village of Koyuk \N \N \N 2021-11-05 18:59:32.947023 2021-11-05 18:59:32.946877 d75ff59c-3108-45f9-9cd7-d1c96a43f5b6 2744 +2687 uri://ed-fi.org/TribalAffiliationDescriptor Kwigillingok Kwigillingok Native Village of Kwigillingok \N \N \N 2021-11-05 18:59:32.953367 2021-11-05 18:59:32.953229 457ce7a3-5ea0-4650-9470-6cc390943746 2747 +2689 uri://ed-fi.org/TribalAffiliationDescriptor La Jolla La Jolla La Jolla Band of Luiseno Indians, California \N \N \N 2021-11-05 18:59:32.962884 2021-11-05 18:59:32.962719 3558e7fa-293e-411d-888a-6c8decb97de6 2749 +2690 uri://ed-fi.org/TribalAffiliationDescriptor Lac Courte Oreilles Lac Courte Oreilles Lac Courte Oreilles Band of Lake Superior Chippewa Indians of Wisconsin \N \N \N 2021-11-05 18:59:32.96712 2021-11-05 18:59:32.966951 a0f6e7cc-cf7e-457c-bcde-097e5af79dfc 2750 +2692 uri://ed-fi.org/TribalAffiliationDescriptor Lac du Flambeau Lac du Flambeau Lac du Flambeau Band of Lake Superior Chippewa Indians of Wisconsin \N \N \N 2021-11-05 18:59:32.972012 2021-11-05 18:59:32.971788 aa2b6ae6-3e4d-433a-a6d4-a1f04b54d5c6 2752 +2695 uri://ed-fi.org/TribalAffiliationDescriptor Larsen Bay Larsen Bay Native Village of Larsen Bay \N \N \N 2021-11-05 18:59:32.97897 2021-11-05 18:59:32.978638 7f0699e6-d8f3-44b4-89dc-6071c0fc2394 2755 +2697 uri://ed-fi.org/TribalAffiliationDescriptor Levelock Levelock Levelock Village \N \N \N 2021-11-05 18:59:32.98524 2021-11-05 18:59:32.985192 f5f0e91a-3e7b-4338-a4e1-17672a2afe76 2757 +2698 uri://ed-fi.org/TribalAffiliationDescriptor Lime Lime Lime Village \N \N \N 2021-11-05 18:59:32.989789 2021-11-05 18:59:32.989683 f07ec47c-5c0a-4357-8fab-8c3604b86809 2758 +2699 uri://ed-fi.org/TribalAffiliationDescriptor Little Traverse Little Traverse Little Traverse Bay Bands of Odawa Indians, Michigan \N \N \N 2021-11-05 18:59:32.99426 2021-11-05 18:59:32.993129 a77841c3-238e-4f6f-878e-8608013451fe 2759 +2702 uri://ed-fi.org/TribalAffiliationDescriptor Los Coyotes Los Coyotes Los Coyotes Band of Cahuilla & Cupeno Indians, California \N \N \N 2021-11-05 18:59:33.001299 2021-11-05 18:59:33.001119 c4481405-37c0-40de-b5da-a8e028b116f5 2762 +2706 uri://ed-fi.org/TribalAffiliationDescriptor Lower Kalskag Lower Kalskag Village of Lower Kalskag \N \N \N 2021-11-05 18:59:33.017974 2021-11-05 18:59:33.01637 e7880867-e6b5-46a5-935e-cc64db04383a 2766 +2709 uri://ed-fi.org/TribalAffiliationDescriptor Lytton Lytton Lytton Rancheria of California \N \N \N 2021-11-05 18:59:33.024461 2021-11-05 18:59:33.024322 57877bef-ae4f-42bf-b859-b19a87988af9 2769 +2710 uri://ed-fi.org/TribalAffiliationDescriptor Makah Makah Makah Indian Tribe of the Makah Indian Reservation \N \N \N 2021-11-05 18:59:33.033242 2021-11-05 18:59:33.032536 fb5246da-3037-4fc7-b258-76937f9d9282 2770 +2714 uri://ed-fi.org/TribalAffiliationDescriptor Manzanita Manzanita Manzanita Band of Diegueno Mission Indians of the Manzanita Reservation, Califonria \N \N \N 2021-11-05 18:59:33.045967 2021-11-05 18:59:33.045355 82aa3aa8-ecc6-4507-8e2b-f671c036910c 2774 +2718 uri://ed-fi.org/TribalAffiliationDescriptor Match-e-be-nash-she-wish Band Match-e-be-nash-she-wish Band Match-e-be-nash-she-wish Band of Pottawatomi Indians of Michigan \N \N \N 2021-11-05 18:59:33.06459 2021-11-05 18:59:33.062864 2aaea0c6-3d35-4d39-a13e-a7b224b16cf5 2778 +2724 uri://ed-fi.org/TribalAffiliationDescriptor Mentasta Mentasta Mentasta Traditional Council \N \N \N 2021-11-05 18:59:33.079639 2021-11-05 18:59:33.078464 aef3615d-e2b8-4b13-add8-e531c41261c6 2784 +2725 uri://ed-fi.org/TribalAffiliationDescriptor Mesa Grande Mesa Grande Mesa Grande Band of Diegueno Mission Indians of the Mesa Grande Reservation, California \N \N \N 2021-11-05 18:59:33.08456 2021-11-05 18:59:33.084501 3aa5b53c-9f79-44e5-bae3-f46f83b6039a 2785 +2728 uri://ed-fi.org/TribalAffiliationDescriptor Mescalero Mescalero Mescalero Apache Tribe \N \N \N 2021-11-05 18:59:33.093422 2021-11-05 18:59:33.093354 5ef8b7e3-74a7-45e7-95e8-1a8bee6c5720 2788 +2729 uri://ed-fi.org/TribalAffiliationDescriptor Miccosukee Miccosukee Miccosukee Tribe of Indians \N \N \N 2021-11-05 18:59:33.097448 2021-11-05 18:59:33.097338 70d36cc4-5d00-4454-b348-867481a16ad3 2789 +2730 uri://ed-fi.org/TribalAffiliationDescriptor Middletown Middletown Middletown Rancheria of Pomo Indians of California \N \N \N 2021-11-05 18:59:33.105281 2021-11-05 18:59:33.104561 975507a6-2005-400b-99ef-03c65be91392 2790 +2732 uri://ed-fi.org/TribalAffiliationDescriptor Mille Lacs Mille Lacs Minnesota Chippewa Tribe - Mille Lacs Band \N \N \N 2021-11-05 18:59:33.109324 2021-11-05 18:59:33.10921 ab3d454d-76a7-495a-97ec-1059114e478c 2792 +2734 uri://ed-fi.org/TribalAffiliationDescriptor Mississippi Choctaw Mississippi Choctaw Mississippi Band of Choctaw Indians \N \N \N 2021-11-05 18:59:33.117352 2021-11-05 18:59:33.117271 6176b16c-b82b-45ec-a461-d2d281f9aa78 2794 +2737 uri://ed-fi.org/TribalAffiliationDescriptor Mohegan Mohegan Mohegan Tribe of Indians of Connecticut \N \N \N 2021-11-05 18:59:33.123831 2021-11-05 18:59:33.123784 590ee884-5f2c-4e6b-bd01-beb739a3839c 2797 +2738 uri://ed-fi.org/TribalAffiliationDescriptor Mooretown Mooretown Mooretown Rancheria of Maidu Indians of California \N \N \N 2021-11-05 18:59:33.129816 2021-11-05 18:59:33.129381 9df6eac8-97e5-4a77-878d-da3c94975ed1 2798 +2741 uri://ed-fi.org/TribalAffiliationDescriptor Muscogee Muscogee The Muscogee (Creek) Nation \N \N \N 2021-11-05 18:59:33.137985 2021-11-05 18:59:33.137322 94ea7dc0-4a1d-4ab5-b689-4f337f0da8b4 2801 +2743 uri://ed-fi.org/TribalAffiliationDescriptor Nanwalek Nanwalek Native Village of Nanwalek (aka English Bay) \N \N \N 2021-11-05 18:59:33.147274 2021-11-05 18:59:33.14705 920b7c1c-0283-439e-90fa-847fa7dc2050 2803 +2746 uri://ed-fi.org/TribalAffiliationDescriptor Napakiak Napakiak Native Village of Napakiak \N \N \N 2021-11-05 18:59:33.153081 2021-11-05 18:59:33.153002 4e2ad845-5765-4d2a-9c2c-a33738ffb1c8 2806 +2747 uri://ed-fi.org/TribalAffiliationDescriptor Narragansett Narragansett Narragansett Indian Tribe \N \N \N 2021-11-05 18:59:33.160098 2021-11-05 18:59:33.159731 b28115d6-5f01-46e0-bef7-636aee79b8c8 2807 +2751 uri://ed-fi.org/TribalAffiliationDescriptor New Koliganek New Koliganek New Koliganek Village Council \N \N \N 2021-11-05 18:59:33.175098 2021-11-05 18:59:33.174331 9ce8f0f3-01ab-4068-8b32-400f40577781 2811 +2754 uri://ed-fi.org/TribalAffiliationDescriptor Newtok Newtok Newtok Village \N \N \N 2021-11-05 18:59:33.179158 2021-11-05 18:59:33.178914 e79d8214-a1fc-4562-9820-2076c1fb9924 2814 +2756 uri://ed-fi.org/TribalAffiliationDescriptor Nikolai Nikolai Nikolai Village \N \N \N 2021-11-05 18:59:33.191076 2021-11-05 18:59:33.190522 ea28c60f-28c5-4018-8f4b-8be840895310 2816 +2758 uri://ed-fi.org/TribalAffiliationDescriptor Nikolski Nikolski Native Village of Nikolski \N \N \N 2021-11-05 18:59:33.197216 2021-11-05 18:59:33.19713 0e1493a1-5e0d-4613-942a-ec7505a2964f 2818 +2760 uri://ed-fi.org/TribalAffiliationDescriptor Ninilchik Ninilchik Ninilchik Village \N \N \N 2021-11-05 18:59:33.203856 2021-11-05 18:59:33.203481 06df197e-64f3-47c3-b406-1a6ca4288c1b 2820 +2762 uri://ed-fi.org/TribalAffiliationDescriptor Nome Nome Nome Eskimo Community \N \N \N 2021-11-05 18:59:33.20931 2021-11-05 18:59:33.208996 e817c2e9-533a-4277-adfa-43c57a590b76 2822 +2764 uri://ed-fi.org/TribalAffiliationDescriptor Nooksack Nooksack Nooksack Indian Tribe \N \N \N 2021-11-05 18:59:33.216742 2021-11-05 18:59:33.21565 4be11288-7601-4192-899d-4abede2be270 2824 +2766 uri://ed-fi.org/TribalAffiliationDescriptor Noorvik Noorvik Noorvik Native Community \N \N \N 2021-11-05 18:59:33.221707 2021-11-05 18:59:33.221591 88636fdd-3e3c-4dab-b034-ca2a08b86ea5 2826 +2768 uri://ed-fi.org/TribalAffiliationDescriptor Northfork Northfork Northfork Rancheria of Mono Indians of California \N \N \N 2021-11-05 18:59:33.233248 2021-11-05 18:59:33.233174 a51a8035-0258-48d0-982d-dd08e7c6f8df 2828 +2771 uri://ed-fi.org/TribalAffiliationDescriptor Nottawaseppi Potawatomi Nottawaseppi Potawatomi Nottawaseppi Huron Band of the Potawatomi, MI \N \N \N 2021-11-05 18:59:33.241887 2021-11-05 18:59:33.241829 f4f9d9ab-3199-44ca-86ea-b38a0efa3063 2831 +2772 uri://ed-fi.org/TribalAffiliationDescriptor Nuiqsut Nuiqsut Native Village of Nuiqsut (aka Nooiksut) \N \N \N 2021-11-05 18:59:33.245687 2021-11-05 18:59:33.245354 caa509ef-2440-43db-bf37-ac8bee3c56a8 2832 +2775 uri://ed-fi.org/TribalAffiliationDescriptor Nunam Iqua Nunam Iqua Native Village of Nunam Iqua \N \N \N 2021-11-05 18:59:33.251945 2021-11-05 18:59:33.251822 72a852de-6e67-4721-b537-81bced761f4e 2835 +2776 uri://ed-fi.org/TribalAffiliationDescriptor Nunapitchuk Nunapitchuk Native Village of Nunapitchuk \N \N \N 2021-11-05 18:59:33.257558 2021-11-05 18:59:33.257429 dc1b95fa-dd57-4c0e-ae40-9fa453d597d6 2836 +2779 uri://ed-fi.org/TribalAffiliationDescriptor Ohogamuit Ohogamuit Village of Ohogamiut \N \N \N 2021-11-05 18:59:33.264662 2021-11-05 18:59:33.264009 8fb16d5d-9fd9-4e7b-be45-5c8cc1912934 2839 +2780 uri://ed-fi.org/TribalAffiliationDescriptor Omaha Omaha Omaha Tribe of Nebraska \N \N \N 2021-11-05 18:59:33.282815 2021-11-05 18:59:33.282608 0bf89cba-2c0e-4b6f-ba7d-426376d1f3e4 2840 +2781 uri://ed-fi.org/TribalAffiliationDescriptor Oneida Nation of New York Oneida Nation of New York Oneida Nation of New York \N \N \N 2021-11-05 18:59:33.288897 2021-11-05 18:59:33.287923 1e76809a-e234-4781-b930-fdfd5eecb7ba 2841 +2784 uri://ed-fi.org/TribalAffiliationDescriptor Orutsararmiut Orutsararmiut Orutsararmiut Traditional Native Council \N \N \N 2021-11-05 18:59:33.295813 2021-11-05 18:59:33.295762 1b842ce3-fd4e-4e9f-b6a4-c2b9ccca91a3 2844 +2787 uri://ed-fi.org/TribalAffiliationDescriptor Oscarville Oscarville Oscarville Traditional Village \N \N \N 2021-11-05 18:59:33.307509 2021-11-05 18:59:33.30642 c6cc6322-56bd-494f-a30a-89a09c199271 2847 +2789 uri://ed-fi.org/TribalAffiliationDescriptor Ouzinkie Ouzinkie Native Village of Ouzinkie \N \N \N 2021-11-05 18:59:33.31261 2021-11-05 18:59:33.31227 6f8afe49-729d-4171-ab33-7e895255ff5a 2849 +2792 uri://ed-fi.org/TribalAffiliationDescriptor Paiute-Shoshone Paiute-Shoshone Paiute-Shoshone Tribe of the Fallon Reservation and Colony, Nevada \N \N \N 2021-11-05 18:59:33.322874 2021-11-05 18:59:33.321814 816a55af-bf1a-4353-91de-d8654f10a3da 2852 +2794 uri://ed-fi.org/TribalAffiliationDescriptor Pamunkey Indian Tribe Pamunkey Indian Tribe Pamunkey Indian Tribe \N \N \N 2021-11-05 18:59:33.331659 2021-11-05 18:59:33.331549 7858265c-8a6a-4849-aada-fbc0dfb5746c 2854 +2797 uri://ed-fi.org/TribalAffiliationDescriptor Passamaquaddy Pleasant Point Passamaquaddy Pleasant Point Passamaquoddy Tribe - Pleasant Point \N \N \N 2021-11-05 18:59:33.338493 2021-11-05 18:59:33.338098 51d71a93-4e23-42f3-92ea-0b8e9a76accb 2857 +2798 uri://ed-fi.org/TribalAffiliationDescriptor Pauloff Harbor Pauloff Harbor Pauloff Harbor Village \N \N \N 2021-11-05 18:59:33.34623 2021-11-05 18:59:33.346131 a8d78c83-b359-4711-b31c-5d3925c005b3 2858 +2800 uri://ed-fi.org/TribalAffiliationDescriptor Pawnee Pawnee Pawnee Nation of Oklahoma \N \N \N 2021-11-05 18:59:33.349931 2021-11-05 18:59:33.349859 29438274-19c5-4afc-b1f8-4a2bbf743b2a 2860 +2802 uri://ed-fi.org/TribalAffiliationDescriptor Pechanga Pechanga Pechanga Band of Luiseno Mission Indians of the Pechanga Reservation, California \N \N \N 2021-11-05 18:59:33.35904 2021-11-05 18:59:33.358079 8171b383-8f0f-4023-9bf2-de24f41baeae 2862 +2804 uri://ed-fi.org/TribalAffiliationDescriptor Peoria Peoria Peoria Tribe of Indians of Oklahoma \N \N \N 2021-11-05 18:59:33.363137 2021-11-05 18:59:33.362934 3d6db1d0-20dd-4450-b86c-0ef172eb9e97 2864 +2806 uri://ed-fi.org/TribalAffiliationDescriptor Perryville Perryville Native Village of Perryville \N \N \N 2021-11-05 18:59:33.371341 2021-11-05 18:59:33.371252 9a526504-ad85-4b95-b2fc-7ce492a6410c 2866 +2808 uri://ed-fi.org/TribalAffiliationDescriptor Pilot Point Pilot Point Native Village of Pilot Point \N \N \N 2021-11-05 18:59:33.376505 2021-11-05 18:59:33.375863 a393f273-edd8-40dc-a0c0-cebaff0d08b8 2868 +2810 uri://ed-fi.org/TribalAffiliationDescriptor Pilot Station Pilot Station Pilot Station Traditional Village \N \N \N 2021-11-05 18:59:33.382745 2021-11-05 18:59:33.38269 6c492e82-e28e-474f-8f50-5b5e54147837 2870 +2811 uri://ed-fi.org/TribalAffiliationDescriptor Pinoleville Pinoleville Pinoleville Pomo Nation, California \N \N \N 2021-11-05 18:59:33.388647 2021-11-05 18:59:33.388238 c401a788-79ac-493b-b451-d2a0f6075d28 2871 +2814 uri://ed-fi.org/TribalAffiliationDescriptor Platinum Platinum Platinum Traditional Village \N \N \N 2021-11-05 18:59:33.39661 2021-11-05 18:59:33.396468 614248fd-3183-40e3-95e0-e4c1f95418fc 2874 +2815 uri://ed-fi.org/TribalAffiliationDescriptor Poarch Poarch Poarch Band of Creeks \N \N \N 2021-11-05 18:59:33.400911 2021-11-05 18:59:33.400859 df587a73-e81c-4c05-9a06-4edbd2cb31ba 2875 +2819 uri://ed-fi.org/TribalAffiliationDescriptor Ponca of Nebraska Ponca of Nebraska Ponca Tribe of Nebraska \N \N \N 2021-11-05 18:59:33.411681 2021-11-05 18:59:33.410532 9b6adb65-8c05-45c6-8199-4da801ceb284 2879 +2820 uri://ed-fi.org/TribalAffiliationDescriptor Ponca of Oklahoma Ponca of Oklahoma Ponca Tribe of Indians of Oklahoma \N \N \N 2021-11-05 18:59:33.413894 2021-11-05 18:59:33.4137 43a5ac46-14bc-471e-94b1-d2c8875aeb8e 2880 +2821 uri://ed-fi.org/TribalAffiliationDescriptor Port Gamble Port Gamble Port Gamble S'Klallam Tribe \N \N \N 2021-11-05 18:59:33.416824 2021-11-05 18:59:33.416729 71d92529-8df8-404d-97e3-9baf773e3b9e 2881 +2823 uri://ed-fi.org/TribalAffiliationDescriptor Port Heiden Port Heiden Native Village of Port Heiden \N \N \N 2021-11-05 18:59:33.421601 2021-11-05 18:59:33.421546 8254af0b-22d4-402a-aadb-60711e451afa 2883 +2824 uri://ed-fi.org/TribalAffiliationDescriptor Port Lions Port Lions Native Village of Port Lions \N \N \N 2021-11-05 18:59:33.425226 2021-11-05 18:59:33.42516 5f8bf620-f616-40f4-b18e-c06520601fc8 2884 +2825 uri://ed-fi.org/TribalAffiliationDescriptor Portage Creek Portage Creek Portage Creek Village (aka Ohgsenakale) \N \N \N 2021-11-05 18:59:33.432325 2021-11-05 18:59:33.430778 0048354e-a345-4452-b2b6-a7fe329d9194 2885 +2827 uri://ed-fi.org/TribalAffiliationDescriptor Prairie Band Prairie Band Prairie Band of Potawatomi Nation \N \N \N 2021-11-05 18:59:33.434795 2021-11-05 18:59:33.434248 f072e068-6f73-49bb-a1c8-a650f8a55521 2887 +2829 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Cochiti Pueblo of Cochiti Pueblo of Cochiti \N \N \N 2021-11-05 18:59:33.444441 2021-11-05 18:59:33.444317 7006400c-720f-4a74-bf3b-699618e571e6 2889 +2830 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Acoma Pueblo of Acoma Pueblo of Acoma \N \N \N 2021-11-05 18:59:33.446998 2021-11-05 18:59:33.44604 bfc8f565-ba6f-4d25-8f13-3763004dc071 2890 +2831 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Jemez Pueblo of Jemez Pueblo of Jemez \N \N \N 2021-11-05 18:59:33.449144 2021-11-05 18:59:33.449073 296520da-414b-472c-9bd9-1a85ec4b02b0 2891 +2750 uri://ed-fi.org/TribalAffiliationDescriptor Navajo Navajo Navajo Nation, Arizona, New Mexico & Utah \N \N \N 2021-11-05 18:59:33.165084 2021-11-05 18:59:33.165046 ee29df08-1fc8-46e9-9251-69bac1c037d6 2810 +2757 uri://ed-fi.org/TribalAffiliationDescriptor Nightmute Nightmute Native Village of Nightmute \N \N \N 2021-11-05 18:59:33.191186 2021-11-05 18:59:33.190994 6e745463-e293-4e5c-ab46-6835d8d75f2d 2817 +2765 uri://ed-fi.org/TribalAffiliationDescriptor Northern Arapaho Northern Arapaho Northern Arapaho Tribe of the Wind River Reservation, Wyoming \N \N \N 2021-11-05 18:59:33.220995 2021-11-05 18:59:33.220563 1077268c-2079-40b0-a203-5b45df3a99eb 2825 +2774 uri://ed-fi.org/TribalAffiliationDescriptor Nunakauyarmiut Nunakauyarmiut Nunakauyarmiut Tribe \N \N \N 2021-11-05 18:59:33.248998 2021-11-05 18:59:33.248196 3da818d3-4029-4d5e-955b-c3cf4607164c 2834 +2777 uri://ed-fi.org/TribalAffiliationDescriptor Oglala Sioux Oglala Sioux Oglala Sioux Tribe \N \N \N 2021-11-05 18:59:33.263029 2021-11-05 18:59:33.262978 05fadac4-5268-4082-971d-50b4950d8c9d 2837 +2783 uri://ed-fi.org/TribalAffiliationDescriptor Oneida Nation (Wisconsin) Oneida Nation (Wisconsin) Oneida Nation \N \N \N 2021-11-05 18:59:33.291522 2021-11-05 18:59:33.291449 ffbcec3d-6d1d-46a1-a3d3-8a8fcdc7ce8b 2843 +2786 uri://ed-fi.org/TribalAffiliationDescriptor Otoe-Missouria Otoe-Missouria Otoe-Missouria Tribe of Indians, Oklahoma \N \N \N 2021-11-05 18:59:33.305029 2021-11-05 18:59:33.304563 36af26b8-2140-42de-9e9d-2eb8129d8c54 2846 +2793 uri://ed-fi.org/TribalAffiliationDescriptor Pala Pala Pala Band of Mission Indians \N \N \N 2021-11-05 18:59:33.323588 2021-11-05 18:59:33.32333 80a445c1-d9eb-49a7-a34d-2208edf80177 2853 +2796 uri://ed-fi.org/TribalAffiliationDescriptor Paskenta Paskenta Paskenta Band of Nomlaki Indians of California \N \N \N 2021-11-05 18:59:33.337114 2021-11-05 18:59:33.336721 d587721e-ba06-4603-81d9-4f32b47f40a5 2856 +2799 uri://ed-fi.org/TribalAffiliationDescriptor Passamaquoddy Indian Township Passamaquoddy Indian Township Passamaquoddy Tribe - Indian Township \N \N \N 2021-11-05 18:59:33.348374 2021-11-05 18:59:33.347786 e6f3ee5c-2274-481b-952f-712317b77033 2859 +2813 uri://ed-fi.org/TribalAffiliationDescriptor Pitka's Point Pitka's Point Native Village of Pitka's Point \N \N \N 2021-11-05 18:59:33.389701 2021-11-05 18:59:33.388804 cb0f96e4-49b4-4d67-987b-7995772328c4 2873 +2816 uri://ed-fi.org/TribalAffiliationDescriptor Point Hope IRA Point Hope IRA Native Village of Point Hope \N \N \N 2021-11-05 18:59:33.403294 2021-11-05 18:59:33.402333 aceead57-d3b9-488b-88da-8b40ae6829b3 2876 +2822 uri://ed-fi.org/TribalAffiliationDescriptor Port Graham Port Graham Native Village of Port Graham \N \N \N 2021-11-05 18:59:33.421152 2021-11-05 18:59:33.4207 5ea0c8ed-e34e-4a97-93e2-2ed97451c3ab 2882 +2826 uri://ed-fi.org/TribalAffiliationDescriptor Potter Valley Potter Valley Potter Valley Tribe, California \N \N \N 2021-11-05 18:59:33.433856 2021-11-05 18:59:33.432664 e1cc35e5-2ba2-498a-b947-4526c402ae81 2886 +2828 uri://ed-fi.org/TribalAffiliationDescriptor Prairie Island Prairie Island Prairie Island Indian Community in the State of MN \N \N \N 2021-11-05 18:59:33.435898 2021-11-05 18:59:33.435831 b87b055e-ba88-4ae4-a93d-56ac66d5a97f 2888 +2832 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Isleta Pueblo of Isleta Pueblo of Isleta \N \N \N 2021-11-05 18:59:33.449763 2021-11-05 18:59:33.449597 59bc4587-2b52-4bd0-8985-177ef6892789 2892 +2833 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Laguna Pueblo of Laguna Pueblo of Laguna \N \N \N 2021-11-05 18:59:33.455255 2021-11-05 18:59:33.45499 08681cc6-227f-4aa4-a030-f10f69b08e5f 2893 +2834 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Nambe Pueblo of Nambe Pueblo of Nambe \N \N \N 2021-11-05 18:59:33.459163 2021-11-05 18:59:33.458581 2857bd03-1eac-486b-ad09-536e3aea77cc 2894 +2835 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Pojoaque Pueblo of Pojoaque Pueblo of Pojoaque \N \N \N 2021-11-05 18:59:33.461667 2021-11-05 18:59:33.461203 34f334f8-e708-4ae2-a7e1-ecee0eb3903f 2895 +2836 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Picuris Pueblo of Picuris Pueblo of Picuris \N \N \N 2021-11-05 18:59:33.462397 2021-11-05 18:59:33.462333 847f19b6-496d-4527-89eb-444e63cabb46 2896 +2837 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of San Felipe Pueblo of San Felipe Pueblo of San Felipe \N \N \N 2021-11-05 18:59:33.466008 2021-11-05 18:59:33.465978 4d373180-f510-409b-a703-f1b322c6d2c9 2897 +2838 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of San Ildefonso Pueblo of San Ildefonso Pueblo of San Ildefonso \N \N \N 2021-11-05 18:59:33.472783 2021-11-05 18:59:33.472686 5fc192fc-be77-4868-ba52-7c5cfad42b0d 2898 +2839 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Sandia Pueblo of Sandia Pueblo of Sandia \N \N \N 2021-11-05 18:59:33.475786 2021-11-05 18:59:33.475691 311fd515-aa91-4ed6-867e-7bac3ff66bf5 2899 +2840 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Santa Ana Pueblo of Santa Ana Pueblo of Santa Ana \N \N \N 2021-11-05 18:59:33.476865 2021-11-05 18:59:33.476778 a95f54f5-4b6b-4878-898c-59706f33a076 2900 +2841 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Santa Clara Pueblo of Santa Clara Pueblo of Santa Clara \N \N \N 2021-11-05 18:59:33.476841 2021-11-05 18:59:33.476677 4d537046-148e-4719-9e5e-695f937c8842 2901 +2842 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Taos Pueblo of Taos Pueblo of Taos \N \N \N 2021-11-05 18:59:33.484887 2021-11-05 18:59:33.484817 7fd91c39-d0c2-4931-bfe8-131a9943c563 2902 +2843 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Tesuque Pueblo of Tesuque Pueblo of Tesuque \N \N \N 2021-11-05 18:59:33.489608 2021-11-05 18:59:33.489555 0299d613-628a-476d-9cae-8062f2a5f1e7 2903 +2844 uri://ed-fi.org/TribalAffiliationDescriptor Pueblo of Zia Pueblo of Zia Pueblo of Zia \N \N \N 2021-11-05 18:59:33.490492 2021-11-05 18:59:33.490445 37364631-78ce-4e19-bdd1-679145335396 2904 +2845 uri://ed-fi.org/TribalAffiliationDescriptor Puyallup Puyallup Puyallup Tribe of the Puyallup Reservation \N \N \N 2021-11-05 18:59:33.491348 2021-11-05 18:59:33.49092 dbf0e3db-f616-4d1a-90d1-c429ac5499a2 2905 +2846 uri://ed-fi.org/TribalAffiliationDescriptor Pyramid Lake Pyramid Lake Pyramid Lake Paiute Tribe of the Pyramid Lake Reservation, Nevada \N \N \N 2021-11-05 18:59:33.498366 2021-11-05 18:59:33.498253 a48a7bec-3915-48fe-83d0-7a6233062be9 2906 +2847 uri://ed-fi.org/TribalAffiliationDescriptor Qagan Tayagungin Qagan Tayagungin Qagan Tayagungin Tribe of Sand Point Village \N \N \N 2021-11-05 18:59:33.501594 2021-11-05 18:59:33.50156 d1427fe2-bfed-4e7e-bd17-bfa9e0ed2241 2907 +2848 uri://ed-fi.org/TribalAffiliationDescriptor Quapaw Quapaw The Quapaw Tribe of Indians \N \N \N 2021-11-05 18:59:33.50354 2021-11-05 18:59:33.503491 2319911a-21e1-4ec2-acb8-c4d7d981640d 2908 +2849 uri://ed-fi.org/TribalAffiliationDescriptor Qawalangin Qawalangin Qawalangin Tribe of Unalaska \N \N \N 2021-11-05 18:59:33.503938 2021-11-05 18:59:33.503895 55b41c8f-5bdc-4575-8c8f-6a1aef46e253 2909 +2850 uri://ed-fi.org/TribalAffiliationDescriptor Quartz Valley Quartz Valley Quartz Valley Indian Community of the Quartz Valley Reservation of California \N \N \N 2021-11-05 18:59:33.510497 2021-11-05 18:59:33.510411 83b4e130-0773-4483-a916-3ca60584b3bd 2910 +2851 uri://ed-fi.org/TribalAffiliationDescriptor Quechan Quechan Quechan Tribe of the Fort Yuma Indian Reservation, California & Arizona \N \N \N 2021-11-05 18:59:33.511805 2021-11-05 18:59:33.511345 eba66b2e-6210-41ad-9beb-87b847bdc010 2911 +2852 uri://ed-fi.org/TribalAffiliationDescriptor Quileute Quileute Quileute Tribe of the Quileute Reservation \N \N \N 2021-11-05 18:59:33.516267 2021-11-05 18:59:33.515779 cd536730-5728-489c-8166-956a9c6e922a 2912 +2853 uri://ed-fi.org/TribalAffiliationDescriptor Quinault Quinault Quinault Indian Nation \N \N \N 2021-11-05 18:59:33.516418 2021-11-05 18:59:33.516375 ee90e7d0-b1e2-4d7b-8ae8-fbad14450cd6 2913 +2854 uri://ed-fi.org/TribalAffiliationDescriptor Ramona Ramona Ramona Band of Cahuilla, California \N \N \N 2021-11-05 18:59:33.523085 2021-11-05 18:59:33.522853 a7a5f4cb-62a9-431e-bac4-8dbb40833999 2914 +2855 uri://ed-fi.org/TribalAffiliationDescriptor Ramah Ramah Ramah Navajo Chapter \N \N \N 2021-11-05 18:59:33.524358 2021-11-05 18:59:33.523213 533b6b27-bc59-4600-ae95-e28429a47b1e 2915 +2856 uri://ed-fi.org/TribalAffiliationDescriptor Rampart Rampart Rampart Village \N \N \N 2021-11-05 18:59:33.526955 2021-11-05 18:59:33.526893 71ea32fe-2089-45bd-a41d-91758ac4f2f9 2916 +2857 uri://ed-fi.org/TribalAffiliationDescriptor Red Cliff Red Cliff Red Cliff Band of Lake Superior Chippewa Indians of Wisconsin \N \N \N 2021-11-05 18:59:33.529208 2021-11-05 18:59:33.529136 214b8051-11ff-4319-9e2b-e19b4504cbe7 2917 +2858 uri://ed-fi.org/TribalAffiliationDescriptor Red Devil Red Devil Village of Red Devil \N \N \N 2021-11-05 18:59:33.533934 2021-11-05 18:59:33.533491 202ce939-e248-4cdf-89bb-ab54eadd69bc 2918 +2859 uri://ed-fi.org/TribalAffiliationDescriptor Red Lake Red Lake Red Lake Band of Chippewa Indians, Minnesota \N \N \N 2021-11-05 18:59:33.535301 2021-11-05 18:59:33.535139 53158788-1d38-474a-84cb-ec5bf7eb906b 2919 +2 uri://ed-fi.org/AbsenceEventCategoryDescriptor Bereavement Bereavement Bereavement \N \N \N 2021-11-05 18:59:14.368142 2021-11-05 18:59:14.354606 7cc9b30e-fe52-4c8c-a5af-cea08d0a48fe 62 +5 uri://ed-fi.org/AbsenceEventCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.4893 2021-11-05 18:59:14.48914 095309ba-13f9-4cb0-9efa-d745404998b4 65 +10 uri://ed-fi.org/AbsenceEventCategoryDescriptor Suspension Suspension Suspension \N \N \N 2021-11-05 18:59:14.50375 2021-11-05 18:59:14.50371 ea98f3c2-628e-4634-8dc6-d0eb4c7fc288 70 +12 uri://ed-fi.org/AbsenceEventCategoryDescriptor Work compensation Work compensation Work compensation \N \N \N 2021-11-05 18:59:14.506935 2021-11-05 18:59:14.506567 08573aff-2823-4d99-a091-9e7de93eb9ca 72 +13 uri://ed-fi.org/AcademicHonorCategoryDescriptor Attendance award Attendance award Attendance award \N \N \N 2021-11-05 18:59:14.543352 2021-11-05 18:59:14.542054 8d83c6b6-6771-47ad-92f0-33e3b81b1e48 73 +18 uri://ed-fi.org/AcademicHonorCategoryDescriptor Honor award Honor award Honor award \N \N \N 2021-11-05 18:59:14.55771 2021-11-05 18:59:14.557434 b2cb25b6-a0c1-415a-bc5f-e99b13a251aa 78 +20 uri://ed-fi.org/AcademicHonorCategoryDescriptor Honor roll Honor roll Honor roll \N \N \N 2021-11-05 18:59:14.560846 2021-11-05 18:59:14.560774 03549460-a8ba-4a5e-b114-34483964732d 80 +24 uri://ed-fi.org/AcademicHonorCategoryDescriptor Medals Medals Medals \N \N \N 2021-11-05 18:59:14.572685 2021-11-05 18:59:14.572643 998baa8f-79e9-44bd-9e9d-4c8ab985c750 84 +26 uri://ed-fi.org/AcademicHonorCategoryDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.577117 2021-11-05 18:59:14.57709 d22cab0c-7216-441d-9fb5-f323f0ac8110 86 +28 uri://ed-fi.org/AcademicHonorCategoryDescriptor Prize awards Prize awards Prize awards \N \N \N 2021-11-05 18:59:14.582762 2021-11-05 18:59:14.582739 e2b2f972-1c1a-4781-84d5-f702687d94d7 88 +30 uri://ed-fi.org/AcademicHonorCategoryDescriptor Scholarships Scholarships Scholarships \N \N \N 2021-11-05 18:59:14.587873 2021-11-05 18:59:14.587822 4ce77771-9a40-46c7-bcf4-9ae53bb4fd87 90 +31 uri://ed-fi.org/AcademicSubjectDescriptor Critical Reading Critical Reading Critical Reading \N \N \N 2021-11-05 18:59:14.620546 2021-11-05 18:59:14.619278 1c3fd325-cfdc-4484-b97a-d7febeede330 91 +36 uri://ed-fi.org/AcademicSubjectDescriptor English English English \N \N \N 2021-11-05 18:59:14.634353 2021-11-05 18:59:14.634205 c4bcfaf6-ea4f-4eca-bb56-877f7e49317e 96 +38 uri://ed-fi.org/AcademicSubjectDescriptor Foreign Language and Literature Foreign Language and Literature Foreign Language and Literature \N \N \N 2021-11-05 18:59:14.638025 2021-11-05 18:59:14.637986 48ad4c56-979c-40ee-9eb2-8161b020e3a3 98 +41 uri://ed-fi.org/AcademicSubjectDescriptor Military Science Military Science Military Science \N \N \N 2021-11-05 18:59:14.647875 2021-11-05 18:59:14.647762 897f60d0-8f06-4438-bf97-5f518fbec122 101 +44 uri://ed-fi.org/AcademicSubjectDescriptor Physical, Health, and Safety Education Physical, Health, and Safety Education Physical, Health, and Safety Education \N \N \N 2021-11-05 18:59:14.653584 2021-11-05 18:59:14.653547 ea713937-1e29-48be-82ed-e696289494a1 104 +45 uri://ed-fi.org/AcademicSubjectDescriptor Religious Education and Theology Religious Education and Theology Religious Education and Theology \N \N \N 2021-11-05 18:59:14.658783 2021-11-05 18:59:14.65859 76670efe-78e5-446b-a9c9-ed2b08edb368 105 +47 uri://ed-fi.org/AcademicSubjectDescriptor Social Studies Social Studies Social Studies \N \N \N 2021-11-05 18:59:14.663542 2021-11-05 18:59:14.663476 6058369d-dfdd-4960-8997-d64f1af54da8 107 +50 uri://ed-fi.org/AccommodationDescriptor Other Other Other \N \N \N 2021-11-05 18:59:14.698856 2021-11-05 18:59:14.697619 c26e0f2f-8af8-4c37-8b47-5b53314411ec 110 +56 uri://ed-fi.org/AccommodationDescriptor Test administration accommodation Test administration accommodation Test administration accommodation \N \N \N 2021-11-05 18:59:14.715789 2021-11-05 18:59:14.715651 9defd807-1eb5-41ee-ba1c-4fb473fe25d7 116 +62 uri://ed-fi.org/AccountClassificationDescriptor Program Program Program \N \N \N 2021-11-05 18:59:14.754274 2021-11-05 18:59:14.75302 90ecafaa-9a63-4d8a-8cb8-f15e91bf4253 122 +66 uri://ed-fi.org/AccountClassificationDescriptor Operational Unit Operational Unit Operational Unit \N \N \N 2021-11-05 18:59:14.771402 2021-11-05 18:59:14.771361 213471be-5693-4f0c-a95e-c81e2cabeea3 126 +68 uri://ed-fi.org/AchievementCategoryDescriptor Competency Retained Competency Retained Competency Retained \N \N \N 2021-11-05 18:59:14.808293 2021-11-05 18:59:14.807026 94d1b24d-c524-44e8-80cb-a042a9dcc9e4 128 +73 uri://ed-fi.org/AchievementCategoryDescriptor Diploma Earned Diploma Earned Diploma Earned \N \N \N 2021-11-05 18:59:14.824698 2021-11-05 18:59:14.823013 54edc486-12e0-42a5-8daf-92029cb734f2 133 +79 uri://ed-fi.org/AchievementCategoryDescriptor Participation Participation Participation \N \N \N 2021-11-05 18:59:14.84072 2021-11-05 18:59:14.840699 c3ea5a77-e736-4df6-be1c-60e5377625d1 139 +81 uri://ed-fi.org/AdditionalCreditTypeDescriptor Dual credit Dual credit Dual credit \N \N \N 2021-11-05 18:59:14.873606 2021-11-05 18:59:14.872285 c37a3a96-de18-421f-90b5-0a49aedd2b49 141 +85 uri://ed-fi.org/AddressTypeDescriptor Father Address Father Address Father Address \N \N \N 2021-11-05 18:59:14.915869 2021-11-05 18:59:14.914699 36de2907-3a1e-4a3f-b549-c181af9079be 145 +92 uri://ed-fi.org/AddressTypeDescriptor Mother Address Mother Address Mother Address \N \N \N 2021-11-05 18:59:14.935465 2021-11-05 18:59:14.935354 ba0bf31e-c944-459b-b9b5-8c6e1e12647c 152 +94 uri://ed-fi.org/AddressTypeDescriptor Physical Physical Physical \N \N \N 2021-11-05 18:59:14.940162 2021-11-05 18:59:14.940122 f8e88604-7c97-4af3-8dfe-76bf74ec2562 154 +95 uri://ed-fi.org/AddressTypeDescriptor Shelter, Transitional housing, Awaiting Foster Shelters, Transitional housing, Awaiting Foster Care Shelters, Transitional housing, Awaiting Foster Care \N \N \N 2021-11-05 18:59:14.950846 2021-11-05 18:59:14.950801 536d3475-c44c-449e-af5d-b0e36f35aa01 155 +100 uri://ed-fi.org/AdministrationEnvironmentDescriptor Testing Center Testing Center Testing Center \N \N \N 2021-11-05 18:59:14.994046 2021-11-05 18:59:14.992698 99407678-39a3-4165-a7ba-c1c9d0261f1a 160 +107 uri://gbisd.edu/AncestryEthnicOriginDescriptor Guatemalan Guatemalan Guatemalan \N \N \N 2021-11-05 18:59:15.04006 2021-11-05 18:59:15.038823 baadf5d7-9d2d-44bb-910f-887ae7a3a2f8 167 +112 uri://gbisd.edu/AncestryEthnicOriginDescriptor Other Hispanic/Latino Other Hispanic/Latino Other Hispanic/Latino \N \N \N 2021-11-05 18:59:15.056679 2021-11-05 18:59:15.056613 940396fa-55fc-4497-979a-d59eb10d4cd2 172 +116 uri://ed-fi.org/AssessmentCategoryDescriptor Class quiz Class quiz Class quiz \N \N \N 2021-11-05 18:59:15.094245 2021-11-05 18:59:15.093112 8e29b1a8-84b9-477b-9060-219f9ac3043f 176 +120 uri://ed-fi.org/AssessmentCategoryDescriptor Psychomotor test Psychomotor test Psychomotor test \N \N \N 2021-11-05 18:59:15.108184 2021-11-05 18:59:15.107676 3c77fc90-27bc-4a92-9fb7-b56d4f54dfa0 180 +121 uri://ed-fi.org/AssessmentCategoryDescriptor Alternate assessment/ELL Alternate assessment/ELL Alternate assessment/ELL \N \N \N 2021-11-05 18:59:15.11143 2021-11-05 18:59:15.111344 8639b088-b32f-4538-8f7c-23e7a266b55b 181 +124 uri://ed-fi.org/AssessmentCategoryDescriptor Early Learning - Social and emotional development Early Learning - Social and emotional development Early Learning - Social and emotional development \N \N \N 2021-11-05 18:59:15.118501 2021-11-05 18:59:15.118463 4e632108-fbfc-4d66-990e-ff0b0b3097f2 184 +126 uri://ed-fi.org/AssessmentCategoryDescriptor Reading readiness test Reading readiness test Reading readiness test \N \N \N 2021-11-05 18:59:15.123702 2021-11-05 18:59:15.123609 386909f9-4b46-42fe-b490-c143077586c2 186 +129 uri://ed-fi.org/AssessmentCategoryDescriptor International Baccalaureate International Baccalaureate International Baccalaureate \N \N \N 2021-11-05 18:59:15.136575 2021-11-05 18:59:15.136535 6b4d22b8-a964-48bc-8b9d-b027233b385e 189 +131 uri://ed-fi.org/AssessmentCategoryDescriptor Psychological test Psychological test Psychological test \N \N \N 2021-11-05 18:59:15.140928 2021-11-05 18:59:15.140898 c37477ab-3e30-4167-a64f-4e4d04cad3c0 191 +133 uri://ed-fi.org/AssessmentCategoryDescriptor Alternative assessment/modified standards Alternative assessment/modified standards Alternative assessment/modified standards \N \N \N 2021-11-05 18:59:15.147067 2021-11-05 18:59:15.147027 c32e41f7-c0e9-41c2-a8cc-566508e2280f 193 +135 uri://ed-fi.org/AssessmentCategoryDescriptor Foreign language proficiency test Foreign language proficiency test Foreign language proficiency test \N \N \N 2021-11-05 18:59:15.155254 2021-11-05 18:59:15.155133 8c32ae69-a22e-4189-92b6-4f059149fb50 195 +137 uri://ed-fi.org/AssessmentCategoryDescriptor State summative assessment 3-8 general State summative assessment 3-8 general State summative assessment 3-8 general \N \N \N 2021-11-05 18:59:15.162899 2021-11-05 18:59:15.160355 8b1d71ac-8b5c-4497-9c52-4171fe55728c 197 +2860 uri://ed-fi.org/TribalAffiliationDescriptor Redding Redding Redding Rancheria, California \N \N \N 2021-11-05 18:59:33.540715 2021-11-05 18:59:33.540653 603c3b2c-6bd6-4cdb-9487-9ce2ff4354bd 2920 +2863 uri://ed-fi.org/TribalAffiliationDescriptor Resighini Resighini Resighini Rancheria, California \N \N \N 2021-11-05 18:59:33.545945 2021-11-05 18:59:33.545757 72ff08cc-03f9-437d-939e-087efbc8a1f9 2923 +2865 uri://ed-fi.org/TribalAffiliationDescriptor Robinson Robinson Robinson Rancheria Band of Pomo Indians, CA \N \N \N 2021-11-05 18:59:33.555643 2021-11-05 18:59:33.555313 f65e46ce-d7e7-441e-a6df-b2bb90835eea 2925 +2869 uri://ed-fi.org/TribalAffiliationDescriptor Sac & Fox of Mississippi Sac & Fox of Mississippi Sac & Fox Tribe of the Mississippi in Iowa \N \N \N 2021-11-05 18:59:33.56585 2021-11-05 18:59:33.565769 af438315-e1ce-4b49-9676-a20b48b67f68 2929 +2871 uri://ed-fi.org/TribalAffiliationDescriptor Sac and Fox Nation Oklahoma Sac and Fox Nation, Oklahoma \N \N \N 2021-11-05 18:59:33.571608 2021-11-05 18:59:33.570479 8d085968-fab5-4871-ad04-11d104f1cf09 2931 +2873 uri://ed-fi.org/TribalAffiliationDescriptor Saint Paul Saint Paul Saint Paul Island \N \N \N 2021-11-05 18:59:33.577065 2021-11-05 18:59:33.576709 1550f646-a38e-4551-8bea-045c8af93128 2933 +2876 uri://ed-fi.org/TribalAffiliationDescriptor Salt River Salt River Salt River Pima-Maricopa Indian Community of the Salt River Reservation, Arizona \N \N \N 2021-11-05 18:59:33.58739 2021-11-05 18:59:33.587332 4170f7d4-0059-4b84-8609-e3889e8057ea 2936 +2880 uri://ed-fi.org/TribalAffiliationDescriptor San Manuel San Manuel San Manuel Band of Mission Indians, California \N \N \N 2021-11-05 18:59:33.601287 2021-11-05 18:59:33.601219 f306259c-ddbd-4a39-8d4c-017059b1f773 2940 +2884 uri://ed-fi.org/TribalAffiliationDescriptor Santa Ynez Santa Ynez Santa Ynez Band of Chumash Mission Indians of the Santa Ynez Reservation, California \N \N \N 2021-11-05 18:59:33.615171 2021-11-05 18:59:33.615147 d93b4326-fe84-4aad-aeb1-f48227d0c04a 2944 +2888 uri://ed-fi.org/TribalAffiliationDescriptor Savoonga Savoonga Native Village of Savoonga \N \N \N 2021-11-05 18:59:33.627826 2021-11-05 18:59:33.627224 384d98ce-a6fd-4c82-9248-34f403888f3e 2948 +2892 uri://ed-fi.org/TribalAffiliationDescriptor Selawik Selawik Native Village of Selawik \N \N \N 2021-11-05 18:59:33.642415 2021-11-05 18:59:33.641002 0b450b2a-71cc-416e-ae59-97c70acb18c2 2952 +2897 uri://ed-fi.org/TribalAffiliationDescriptor Seneca-Cayuga Seneca-Cayuga Seneca-Cayuga Nation \N \N \N 2021-11-05 18:59:33.658894 2021-11-05 18:59:33.657874 3638d518-c265-456d-9e7c-12721b438eb1 2957 +2902 uri://ed-fi.org/TribalAffiliationDescriptor Shingle Springs Shingle Springs Shingle Springs Band of Miwok Indians, Shingle Springs Rancheria (Verona Tract), California \N \N \N 2021-11-05 18:59:33.67232 2021-11-05 18:59:33.672187 9d47f06c-dddc-4ce7-a8d3-11b3f1012dac 2962 +2906 uri://ed-fi.org/TribalAffiliationDescriptor Shoshone-Bannock Shoshone-Bannock Shoshone-Bannock Tribes of the Fort Hall Reservation \N \N \N 2021-11-05 18:59:33.694491 2021-11-05 18:59:33.693964 144a67ad-b035-42d8-a758-4a4d853839ca 2966 +2910 uri://ed-fi.org/TribalAffiliationDescriptor Siletz Tribe Siletz Tribe Confederated Tribes of Siletz Indians of Oregon \N \N \N 2021-11-05 18:59:33.707683 2021-11-05 18:59:33.707588 b6b9d9b6-5f14-4eb4-9bfd-a088267822a5 2970 +2914 uri://ed-fi.org/TribalAffiliationDescriptor Skokomish Skokomish Skokomish Indian Tribe \N \N \N 2021-11-05 18:59:33.720309 2021-11-05 18:59:33.719491 c8fcc87d-2d80-4265-804d-1ead64109529 2974 +2920 uri://ed-fi.org/TribalAffiliationDescriptor Sokaogon Sokaogon Sokaogon Chippewa Community, Wisconsin \N \N \N 2021-11-05 18:59:33.737502 2021-11-05 18:59:33.736853 efc2f99d-ce4d-4ec6-998c-c173c22d05c3 2980 +2923 uri://ed-fi.org/TribalAffiliationDescriptor Spirit Lake Spirit Lake Spirit Lake Tribe, North Dakota \N \N \N 2021-11-05 18:59:33.750333 2021-11-05 18:59:33.749984 361103b9-feed-40db-97fa-2c7023eb5e4d 2983 +2927 uri://ed-fi.org/TribalAffiliationDescriptor St. Michael IRA St. Michael IRA Native Village of Saint Michael \N \N \N 2021-11-05 18:59:33.764965 2021-11-05 18:59:33.76489 9737daff-e8f9-4276-8a00-30d3acd4ecf0 2987 +2931 uri://ed-fi.org/TribalAffiliationDescriptor Stevens Village Stevens Village Native Village of Stevens \N \N \N 2021-11-05 18:59:33.775765 2021-11-05 18:59:33.775503 9b5d8f8a-3c50-42c6-a966-f34f3a411d19 2991 +2933 uri://ed-fi.org/TribalAffiliationDescriptor Stillaguamish Stillaguamish Stillaguamish Tribe of Indians of Washington \N \N \N 2021-11-05 18:59:33.779983 2021-11-05 18:59:33.779931 4006633e-006f-4f14-bd0e-f14a2cba673e 2993 +2935 uri://ed-fi.org/TribalAffiliationDescriptor Summit Lake Summit Lake Summit Lake Paiute Tribe of Nevada \N \N \N 2021-11-05 18:59:33.786938 2021-11-05 18:59:33.786795 20ba0cf6-f073-4da4-ad7e-409b0a9de870 2995 +2936 uri://ed-fi.org/TribalAffiliationDescriptor Sun'aq Sun'aq Sun'aq Tribe of Kodiak \N \N \N 2021-11-05 18:59:33.791834 2021-11-05 18:59:33.791796 915a5329-3a18-4b85-8f63-50dce1a89901 2996 +2939 uri://ed-fi.org/TribalAffiliationDescriptor Swinomish Swinomish Swinomish Indian Tribal Community \N \N \N 2021-11-05 18:59:33.798673 2021-11-05 18:59:33.798634 a7a5b31e-8f36-463c-99c5-e92ea5de42d7 2999 +2941 uri://ed-fi.org/TribalAffiliationDescriptor Table Mountain Table Mountain Table Mountain Rancheria of California \N \N \N 2021-11-05 18:59:33.803033 2021-11-05 18:59:33.802813 9a55c579-5f24-4c96-8e9d-f3d3887a71f9 3001 +2943 uri://ed-fi.org/TribalAffiliationDescriptor Tanacross Tanacross Native Village of Tanacross \N \N \N 2021-11-05 18:59:33.809857 2021-11-05 18:59:33.809781 3d858ed9-550a-4baa-962f-66d81637548e 3003 +2944 uri://ed-fi.org/TribalAffiliationDescriptor Tanana Tanana Native Village of Tanana \N \N \N 2021-11-05 18:59:33.815571 2021-11-05 18:59:33.815481 7d96b700-7465-4c4d-b944-e989f98cd75b 3004 +2947 uri://ed-fi.org/TribalAffiliationDescriptor Tazlina Tazlina Native Village of Tazlina \N \N \N 2021-11-05 18:59:33.82233 2021-11-05 18:59:33.822205 c59eda14-d3b6-4d1d-a99b-b12a6b1d1615 3007 +2949 uri://ed-fi.org/TribalAffiliationDescriptor Tejon Tejon Tejon Indian Tribe \N \N \N 2021-11-05 18:59:33.82691 2021-11-05 18:59:33.826855 0265a840-878c-4dca-9a95-5c29c132c6c5 3009 +2950 uri://ed-fi.org/TribalAffiliationDescriptor Teller Teller Native Village of Teller \N \N \N 2021-11-05 18:59:33.832997 2021-11-05 18:59:33.832869 45481796-af58-46f2-8887-d28cef5d5e7e 3010 +2952 uri://ed-fi.org/TribalAffiliationDescriptor Tetlin Tetlin Native Village of Tetlin \N \N \N 2021-11-05 18:59:33.838994 2021-11-05 18:59:33.838943 dcea5ab9-2423-46c6-aa44-a45abe0d8bc1 3012 +2955 uri://ed-fi.org/TribalAffiliationDescriptor Timbi-sha Shoshone Timbi-sha Shoshone Death Valley Timbi-sha Shoshone Tribe \N \N \N 2021-11-05 18:59:33.844623 2021-11-05 18:59:33.84454 9d2a27cf-6156-4493-b8ca-01e22dff2959 3015 +2956 uri://ed-fi.org/TribalAffiliationDescriptor Tlingit & Haida Tlingit & Haida Central Council of the Tlingit & Haida Indian Tribes of Alaska \N \N \N 2021-11-05 18:59:33.850572 2021-11-05 18:59:33.850516 d5141ab7-384d-4a67-a678-780ebe19059f 3016 +2958 uri://ed-fi.org/TribalAffiliationDescriptor Tohono O'odham Tohono O'odham Tohono O'odham Nation of Arizona \N \N \N 2021-11-05 18:59:33.856076 2021-11-05 18:59:33.85605 aab03aa7-657f-4e01-b48b-254355c06327 3018 +2961 uri://ed-fi.org/TribalAffiliationDescriptor Tonkawa Tonkawa Tonkawa Tribe of Indians of Oklahoma \N \N \N 2021-11-05 18:59:33.863007 2021-11-05 18:59:33.862764 abf11b8e-8604-48c1-8b93-2442e2b9643d 3021 +2964 uri://ed-fi.org/TribalAffiliationDescriptor Tulalip Tulalip Tulalip Tribes of Washington \N \N \N 2021-11-05 18:59:33.875545 2021-11-05 18:59:33.875433 26fbf591-2739-41d3-9991-3e0deabee80b 3024 +2967 uri://ed-fi.org/TribalAffiliationDescriptor Tuluksak Tuluksak Tuluksak Native Community \N \N \N 2021-11-05 18:59:33.879564 2021-11-05 18:59:33.879432 fdf34c22-0bcf-49c9-8e05-38839ab90b9d 3027 +2968 uri://ed-fi.org/TribalAffiliationDescriptor Tununak Tununak Native Village of Tununak \N \N \N 2021-11-05 18:59:33.889476 2021-11-05 18:59:33.889423 27d12b1b-09e6-478e-91ae-aa0f03673295 3028 +2970 uri://ed-fi.org/TribalAffiliationDescriptor Turtle Mountain Turtle Mountain Turtle Mountain Band of Chippewa Indians of North Dakota \N \N \N 2021-11-05 18:59:33.893176 2021-11-05 18:59:33.893145 a85e6592-cff3-4a8c-9e4f-2fd357f3944f 3030 +2972 uri://ed-fi.org/TribalAffiliationDescriptor Tuscarora Tuscarora Tuscarora Nation \N \N \N 2021-11-05 18:59:33.90231 2021-11-05 18:59:33.902239 d7a69073-4d2f-483a-acb2-069854ac1d29 3032 +2975 uri://ed-fi.org/TribalAffiliationDescriptor Tyonek Tyonek Native Village of Tyonek \N \N \N 2021-11-05 18:59:33.907724 2021-11-05 18:59:33.907673 82e033d6-5618-403a-ad9e-a312e758da68 3035 +2978 uri://ed-fi.org/TribalAffiliationDescriptor Umkumiut Umkumiut Umkumiut Native Village \N \N \N 2021-11-05 18:59:33.918872 2021-11-05 18:59:33.918848 630ca600-528a-4388-bc90-12e181e0e57e 3038 +2980 uri://ed-fi.org/TribalAffiliationDescriptor Unga Unga Native Village of Unga \N \N \N 2021-11-05 18:59:33.93152 2021-11-05 18:59:33.931431 76e6a658-b28d-4f67-9938-c765835b7aec 3040 +2867 uri://ed-fi.org/TribalAffiliationDescriptor Round Valley Round Valley Round Valley Indian Tribes, Round Valley Reservation, California \N \N \N 2021-11-05 18:59:33.558068 2021-11-05 18:59:33.557924 a34054d6-86ae-469b-8fcd-0c8ae6fc10c4 2927 +2877 uri://ed-fi.org/TribalAffiliationDescriptor Samish Samish Samish Indian Nation \N \N \N 2021-11-05 18:59:33.587547 2021-11-05 18:59:33.587389 79a81081-e44c-4dfa-910c-16bed4530cc6 2937 +2882 uri://ed-fi.org/TribalAffiliationDescriptor San Pasqual San Pasqual San Pasqual Band of Diegueno Mission Indians of California \N \N \N 2021-11-05 18:59:33.604806 2021-11-05 18:59:33.604271 1ce668dc-eefa-408e-b21e-7304f211f79e 2942 +2886 uri://ed-fi.org/TribalAffiliationDescriptor Sauk-Suiattle Sauk-Suiattle Sauk-Suiattle Indian Tribe \N \N \N 2021-11-05 18:59:33.617588 2021-11-05 18:59:33.617544 f5c54912-5d31-42ac-a5b9-abcda0713083 2946 +2890 uri://ed-fi.org/TribalAffiliationDescriptor Saxman Saxman Organized Village of Saxman \N \N \N 2021-11-05 18:59:33.631025 2021-11-05 18:59:33.63026 cfc020a5-c7c2-4059-8d7d-626b128719ae 2950 +2893 uri://ed-fi.org/TribalAffiliationDescriptor Seminole Seminole Seminole Tribe of Florida \N \N \N 2021-11-05 18:59:33.643044 2021-11-05 18:59:33.64296 749f4dc2-ba27-401a-8bdc-03fa6935d6ed 2953 +2898 uri://ed-fi.org/TribalAffiliationDescriptor Shageluk Shageluk Shageluk Native Village \N \N \N 2021-11-05 18:59:33.65974 2021-11-05 18:59:33.658575 d644d7aa-b24e-4cdf-9a4e-5c2674a7b2cc 2958 +2903 uri://ed-fi.org/TribalAffiliationDescriptor Sherwood Valley Sherwood Valley Sherwood Valley Rancheria of Pomo Indians of California \N \N \N 2021-11-05 18:59:33.672331 2021-11-05 18:59:33.672222 4a62ded7-8097-4fd4-8d83-bf607a192527 2963 +2907 uri://ed-fi.org/TribalAffiliationDescriptor Shishmaref IRA Shishmaref IRA Native Village of Shishmaref \N \N \N 2021-11-05 18:59:33.695617 2021-11-05 18:59:33.69546 b0ccdf70-c695-4494-9b88-f9c73304a775 2967 +2911 uri://ed-fi.org/TribalAffiliationDescriptor Sisseton-Wahpeton Sisseton-Wahpeton Sisseton-Wahpeton Oyate of the Lake Traverse Reservation, SD \N \N \N 2021-11-05 18:59:33.710707 2021-11-05 18:59:33.709994 2019c2ab-f579-4b1c-aac5-584773b08bb0 2971 +2916 uri://ed-fi.org/TribalAffiliationDescriptor Skull Valley Skull Valley Skull Valley Band of Goshute Indians of Utah \N \N \N 2021-11-05 18:59:33.723536 2021-11-05 18:59:33.723057 151d5710-b18b-4cb7-817a-f23e9ef7c6c9 2976 +2919 uri://ed-fi.org/TribalAffiliationDescriptor Solomon Solomon Village of Solomon \N \N \N 2021-11-05 18:59:33.736172 2021-11-05 18:59:33.735515 36cfa451-a25a-4011-be6b-34b9a67bffa3 2979 +2924 uri://ed-fi.org/TribalAffiliationDescriptor Spokane Spokane Spokane Tribe of the Spokane Reservation \N \N \N 2021-11-05 18:59:33.753218 2021-11-05 18:59:33.752349 c8367888-9a5a-4587-bd6c-43fcba4fd157 2984 +2928 uri://ed-fi.org/TribalAffiliationDescriptor Standing Rock Standing Rock Standing Rock Sioux Tribe of North & South Dakota \N \N \N 2021-11-05 18:59:33.765181 2021-11-05 18:59:33.76513 9e0ea35d-c543-4313-9992-cb94b9c61675 2988 +2971 uri://ed-fi.org/TribalAffiliationDescriptor Tuolumne Tuolumne Tuolumne Band of Me-Wuk Indians of the Tuolumne Rancheria of California \N \N \N 2021-11-05 18:59:33.893223 2021-11-05 18:59:33.893203 049353c1-5dc7-4816-bf7c-a114eba78261 3031 +2977 uri://ed-fi.org/TribalAffiliationDescriptor Umatilla Tribe Umatilla Tribe Confederated Tribes of the Umatilla Indian Reservation \N \N \N 2021-11-05 18:59:33.917067 2021-11-05 18:59:33.916664 cad7615d-a49b-423f-b781-d3921ac6b67d 3037 +2981 uri://ed-fi.org/TribalAffiliationDescriptor United Auburn United Auburn United Auburn Indian Community of the Auburn Rancheria of California \N \N \N 2021-11-05 18:59:33.932049 2021-11-05 18:59:33.931476 4c2ee753-c5d5-4c2a-a98a-0ad2241add7f 3041 +2986 uri://ed-fi.org/TribalAffiliationDescriptor Upper Skagit Upper Skagit Upper Skagit Indian Tribe \N \N \N 2021-11-05 18:59:33.946084 2021-11-05 18:59:33.945967 e8972c62-ed73-4095-ae1f-4569b78cd922 3046 +2998 uri://ed-fi.org/TribalAffiliationDescriptor White Mountain AK White Mountain AK Native Village of White Mountain \N \N \N 2021-11-05 18:59:33.989408 2021-11-05 18:59:33.989218 145da0a8-d789-4197-8600-ac26e5ffac58 3058 +3004 uri://ed-fi.org/TribalAffiliationDescriptor Wrangell Wrangell Wrangell Cooperative Association \N \N \N 2021-11-05 18:59:34.004933 2021-11-05 18:59:34.004757 577bb1ed-717c-4522-bb00-058185e95221 3064 +3006 uri://ed-fi.org/TribalAffiliationDescriptor Yakutat Yakutat Yakutat Tlingit Tribe \N \N \N 2021-11-05 18:59:34.016943 2021-11-05 18:59:34.016887 b8cdb9d9-017b-467e-9e3a-76e97fdc9199 3066 +3009 uri://ed-fi.org/TribalAffiliationDescriptor Yavapai-Prescott Yavapai-Prescott Yavapai-Prescott Indian Tribe \N \N \N 2021-11-05 18:59:34.020208 2021-11-05 18:59:34.020171 eb94d996-9ab0-4582-9768-2704f28eaf13 3069 +3011 uri://ed-fi.org/TribalAffiliationDescriptor Yocha Dehe Yocha Dehe Yocha Dehe Wintun Nation, California \N \N \N 2021-11-05 18:59:34.032827 2021-11-05 18:59:34.032788 1a0641da-1fb0-4c2a-a639-bf50c59116fa 3071 +3019 uri://ed-fi.org/VisaDescriptor H1 - Employment Visa H1 - Employment Visa H1 - Employment Visa \N \N \N 2021-11-05 18:59:34.155127 2021-11-05 18:59:34.153566 26dc4d8e-a8c7-40a7-9b55-1eab5a8cfebc 3079 +3020 uri://ed-fi.org/VisaDescriptor J1 - Exchange Scholar Visa J1 - Exchange Scholar Visa J1 - Exchange Scholar Visa \N \N \N 2021-11-05 18:59:34.176208 2021-11-05 18:59:34.176181 ddc27c66-da3a-41fe-b7e9-62a3f387d519 3080 +3026 uri://ed-fi.org/WeaponDescriptor Handgun Handgun Handgun \N \N \N 2021-11-05 18:59:34.297484 2021-11-05 18:59:34.29553 6ce65a52-67fc-4b58-a8da-8dafc2b0d66a 3086 +3029 uri://ed-fi.org/WeaponDescriptor Rifle/Shotgun Rifle/Shotgun Rifle/Shotgun \N \N \N 2021-11-05 18:59:34.319642 2021-11-05 18:59:34.319584 504261bc-4d1e-47d2-b183-a69efeb5707a 3089 +2894 uri://ed-fi.org/TribalAffiliationDescriptor Seldovia Seldovia Seldovia Village Tribe \N \N \N 2021-11-05 18:59:33.645157 2021-11-05 18:59:33.645103 5f57c908-ff2a-403f-9951-136dec9e2979 2954 +2925 uri://ed-fi.org/TribalAffiliationDescriptor Squaxin Squaxin Squaxin Island Tribe of the Squaxin Island Reservation \N \N \N 2021-11-05 18:59:33.753933 2021-11-05 18:59:33.753896 642e2087-1580-481a-936c-baf64b498f35 2985 +2962 uri://ed-fi.org/TribalAffiliationDescriptor Tonto Apache Tonto Apache Tonto Apache Tribe of Arizona \N \N \N 2021-11-05 18:59:33.865987 2021-11-05 18:59:33.8659 386e5314-7a61-4270-bcaa-8003e83af523 3022 +2983 uri://ed-fi.org/TribalAffiliationDescriptor Upper Sioux Upper Sioux Upper Sioux Community, Minnesota \N \N \N 2021-11-05 18:59:33.933531 2021-11-05 18:59:33.933477 15732ec5-e1de-4b8f-a191-8c92bc3f7487 3043 +3013 uri://ed-fi.org/TribalAffiliationDescriptor Yomba Shoshone Yomba Shoshone Yomba Shoshone Tribe of the Yomba Reservation, Nevada \N \N \N 2021-11-05 18:59:34.033424 2021-11-05 18:59:34.033388 25f3b8d2-705e-40f2-bf1e-00e33f03fa54 3073 +3018 uri://ed-fi.org/VisaDescriptor B2 - Tourist Visa B2 - Tourist Visa B2 - Tourist Visa \N \N \N 2021-11-05 18:59:34.154937 2021-11-05 18:59:34.153545 ecd7c460-9b6a-43a2-9a22-554671289a3b 3078 +3025 uri://ed-fi.org/WeaponDescriptor Knife Knife Knife \N \N \N 2021-11-05 18:59:34.296773 2021-11-05 18:59:34.29552 afdaf030-16c4-40fe-a1f9-96a46f518b1f 3085 +3030 uri://ed-fi.org/WeaponDescriptor Other Object Other Object Other Object \N \N \N 2021-11-05 18:59:34.319885 2021-11-05 18:59:34.319846 73008a32-afe6-47ce-a9f5-04a186478269 3090 +2946 uri://ed-fi.org/TribalAffiliationDescriptor Tatitlek Tatitlek Native Village of Tatitlek \N \N \N 2021-11-05 18:59:33.821792 2021-11-05 18:59:33.821667 22170bf7-29f9-425e-ae86-004b3941b08f 3006 +2948 uri://ed-fi.org/TribalAffiliationDescriptor Telida Telida Telida Village \N \N \N 2021-11-05 18:59:33.826764 2021-11-05 18:59:33.826715 a12bd09d-199b-4b34-965f-fbbb59434542 3008 +2951 uri://ed-fi.org/TribalAffiliationDescriptor Te-Moak Te-Moak Te-Moak Tribe of Western Shoshone Indians of Nevada (Four constituent bands: Battle Mountain Band; Elko Band; South Fork Band and Wells Band) \N \N \N 2021-11-05 18:59:33.834313 2021-11-05 18:59:33.834216 9a619001-36d2-43cb-906d-2fcad69d2b39 3011 +2953 uri://ed-fi.org/TribalAffiliationDescriptor Thlopthlocco Thlopthlocco Thlopthlocco Tribal Town \N \N \N 2021-11-05 18:59:33.840546 2021-11-05 18:59:33.840478 cdf34536-876c-4b28-99db-4d6fa05dcaa0 3013 +2954 uri://ed-fi.org/TribalAffiliationDescriptor Three Affiliated Three Affiliated Three Affiliated Tribes of the Fort Berthold Reservation, ND \N \N \N 2021-11-05 18:59:33.844578 2021-11-05 18:59:33.844323 76550add-3493-4ce6-af8f-06f597205a9a 3014 +2957 uri://ed-fi.org/TribalAffiliationDescriptor Togiak Togiak Traditional Village of Togiak \N \N \N 2021-11-05 18:59:33.851937 2021-11-05 18:59:33.851866 7827bc9b-1682-4808-8a32-3789eafdd048 3017 +2959 uri://ed-fi.org/TribalAffiliationDescriptor Tolowa Dee-Ni' Tolowa Dee-Ni' Tolowa Dee-Ni' Nation \N \N \N 2021-11-05 18:59:33.856044 2021-11-05 18:59:33.855912 ca52ddb6-cb2d-4a0a-b464-08ac94343220 3019 +2960 uri://ed-fi.org/TribalAffiliationDescriptor Tonawanda Tonawanda Tonawanda Band of Seneca \N \N \N 2021-11-05 18:59:33.862847 2021-11-05 18:59:33.862566 03715e61-0f60-4ae0-b4a1-081b25754ce3 3020 +2963 uri://ed-fi.org/TribalAffiliationDescriptor Torres Martinez Torres Martinez Torres Martinez Desert Cahuilla Indians, California \N \N \N 2021-11-05 18:59:33.867191 2021-11-05 18:59:33.867141 3ce70434-b894-4144-ba9c-99ee2fce3336 3023 +2965 uri://ed-fi.org/TribalAffiliationDescriptor Tule River Tule River Tule River Indian Tribe of the Tule River Reservation, California \N \N \N 2021-11-05 18:59:33.875548 2021-11-05 18:59:33.87543 eed39c75-b244-49c7-9cab-0b3da5794705 3025 +2966 uri://ed-fi.org/TribalAffiliationDescriptor Tunica-Biloxi Tunica-Biloxi Tunica-Biloxi Indian Tribe \N \N \N 2021-11-05 18:59:33.879591 2021-11-05 18:59:33.879432 c7afc5a8-54f7-48e5-b19a-3afe47027dc1 3026 +2969 uri://ed-fi.org/TribalAffiliationDescriptor Tuntutuliak Tuntutuliak Native Village of Tuntutuliak \N \N \N 2021-11-05 18:59:33.889472 2021-11-05 18:59:33.889401 799d036c-05cf-428b-af01-210dcf1495df 3029 +2973 uri://ed-fi.org/TribalAffiliationDescriptor Twenty-Nine Palms Twenty-Nine Palms Twenty-Nine Palms Band of Mission Indians of California \N \N \N 2021-11-05 18:59:33.904289 2021-11-05 18:59:33.904204 4da706e7-b8e8-4414-ba16-196b06605919 3033 +2974 uri://ed-fi.org/TribalAffiliationDescriptor Twin Hills Twin Hills Twin Hills Village \N \N \N 2021-11-05 18:59:33.907384 2021-11-05 18:59:33.907328 76788557-ad32-40a1-a4c9-d1b812848554 3034 +2976 uri://ed-fi.org/TribalAffiliationDescriptor Ugashik Ugashik Ugashik Village \N \N \N 2021-11-05 18:59:33.915987 2021-11-05 18:59:33.91589 09cfbf7d-224f-4127-b4cd-6f1c4456042f 3036 +2979 uri://ed-fi.org/TribalAffiliationDescriptor Unalakleet Unalakleet Native Village of Unalakleet \N \N \N 2021-11-05 18:59:33.92043 2021-11-05 18:59:33.92038 5dcb139b-14fb-4b03-b626-a78d27471567 3039 +2982 uri://ed-fi.org/TribalAffiliationDescriptor United Keetoowah United Keetoowah United Keetoowah Band of Cherokee Indians in Oklahoma \N \N \N 2021-11-05 18:59:33.933526 2021-11-05 18:59:33.933474 cb7c8847-e2d7-4450-8118-7494100c53a4 3042 +2984 uri://ed-fi.org/TribalAffiliationDescriptor Ute Ute Ute Indian Tribe of the Uintah & Ouray Reservation, Utah \N \N \N 2021-11-05 18:59:33.945612 2021-11-05 18:59:33.945059 3495fa0b-16df-4dd8-b1a2-9d24ea965000 3044 +2987 uri://ed-fi.org/TribalAffiliationDescriptor Venetie Venetie Village of Venetie \N \N \N 2021-11-05 18:59:33.953553 2021-11-05 18:59:33.953489 d9b0cbc9-5990-4f32-9004-277eac027181 3047 +2988 uri://ed-fi.org/TribalAffiliationDescriptor Venetie IRA Venetie IRA Native Village of Venetie Tribal Government \N \N \N 2021-11-05 18:59:33.958614 2021-11-05 18:59:33.958583 a7eab9ba-4d0a-4ffe-b508-4fbe095bd10b 3048 +2990 uri://ed-fi.org/TribalAffiliationDescriptor Wainwright Wainwright Village of Wainwright \N \N \N 2021-11-05 18:59:33.965333 2021-11-05 18:59:33.965256 cd013a25-02db-413a-851d-ee36534f0f25 3050 +2992 uri://ed-fi.org/TribalAffiliationDescriptor Walker River Walker River Walker River Paiute Tribe of the Walker River Reservation, Nevada \N \N \N 2021-11-05 18:59:33.971114 2021-11-05 18:59:33.970958 affdf7ad-cac4-47f8-be87-ed62f36d4efc 3052 +2994 uri://ed-fi.org/TribalAffiliationDescriptor Washoe Washoe Washoe Tribe of Nevada & California (Carson Colony, Dresslerville Colony, Woodfords Community, Stewart Community, & Washoe Ranches) \N \N \N 2021-11-05 18:59:33.978654 2021-11-05 18:59:33.978528 b29e83a1-63ae-4d6c-867d-0d363bfa8158 3054 +2996 uri://ed-fi.org/TribalAffiliationDescriptor White Earth White Earth Minnesota Chippewa Tribe - White Earth Band \N \N \N 2021-11-05 18:59:33.983308 2021-11-05 18:59:33.98326 a5cbb8b1-e729-4c64-a2ec-ba45f527388e 3056 +2997 uri://ed-fi.org/TribalAffiliationDescriptor White Mountain White Mountain White Mountain Apache Tribe of the Fort Apache Reservation, Arizona \N \N \N 2021-11-05 18:59:33.987001 2021-11-05 18:59:33.986933 0166e21c-ec55-4a22-9f0e-0acb193ad0e0 3057 +3000 uri://ed-fi.org/TribalAffiliationDescriptor Wilton Wilton Wilton Rancheria \N \N \N 2021-11-05 18:59:33.9955 2021-11-05 18:59:33.995193 eb4d735c-68f0-4991-be68-0da981fe9da6 3060 +3002 uri://ed-fi.org/TribalAffiliationDescriptor Wiyot Wiyot Wiyot Tribe, California \N \N \N 2021-11-05 18:59:34.002223 2021-11-05 18:59:34.001909 a118e112-dda4-4890-9285-03c45c7ba6fa 3062 +3005 uri://ed-fi.org/TribalAffiliationDescriptor Wyandotte Wyandotte Wyandotte Nation \N \N \N 2021-11-05 18:59:34.00893 2021-11-05 18:59:34.008887 7fd1a239-265c-4eb1-b125-0707b3546c2b 3065 +3008 uri://ed-fi.org/TribalAffiliationDescriptor Yavapai-Apache Yavapai-Apache Yavapai-Apache Nation of the Camp Verde Indian Reservation, Arizona \N \N \N 2021-11-05 18:59:34.018741 2021-11-05 18:59:34.01867 fe1ab8e8-ec1d-444d-adf4-133d06267c4c 3068 +3012 uri://ed-fi.org/TribalAffiliationDescriptor Ysleta Del Sur Ysleta Del Sur Ysleta del Sur Pueblo \N \N \N 2021-11-05 18:59:34.033088 2021-11-05 18:59:34.033002 d4482f55-f27d-4d76-b0b2-5d4bd03ed0d5 3072 +3014 uri://ed-fi.org/TribalAffiliationDescriptor Yurok Yurok Yurok Tribe of the Yurok Reservation, California \N \N \N 2021-11-05 18:59:34.046827 2021-11-05 18:59:34.046763 59591952-af1a-4f44-953b-aafe56363121 3074 +3015 uri://ed-fi.org/TribalAffiliationDescriptor Zuni Zuni Zuni Tribe of the Zuni Reservation \N \N \N 2021-11-05 18:59:34.049781 2021-11-05 18:59:34.04973 54249dab-538c-4487-8fa1-38137cc8a82c 3075 +3016 uri://ed-fi.org/VisaDescriptor F1 - Foreign Student Visa F1 - Foreign Student Visa F1 - Foreign Student Visa \N \N \N 2021-11-05 18:59:34.154937 2021-11-05 18:59:34.153545 0c56e5e0-dc13-4a11-ab24-98c6a5e2f3db 3076 +3022 uri://ed-fi.org/VisaDescriptor M1 - Foreign Student vocational/non-academic Visa M1 - Foreign Student pursuing vocational or non-academic studies Visa M1 - Foreign Student pursuing vocational or non-academic studies Visa \N \N \N 2021-11-05 18:59:34.176977 2021-11-05 18:59:34.176926 bb822d80-114b-457f-92b3-bf7492785350 3082 +3023 uri://ed-fi.org/WeaponDescriptor Club Club Club \N \N \N 2021-11-05 18:59:34.296761 2021-11-05 18:59:34.295503 0c66f7c1-28d0-49ad-9e83-e6e294107a93 3083 +3027 uri://ed-fi.org/WeaponDescriptor Other Firearm Other Firearm Other Firearm \N \N \N 2021-11-05 18:59:34.317105 2021-11-05 18:59:34.317041 23678a8f-9e0d-4309-a2c3-c7462bdab49f 3087 +3032 uri://ed-fi.org/WeaponDescriptor Unknown Unknown Unknown \N \N \N 2021-11-05 18:59:34.328769 2021-11-05 18:59:34.328727 94bb9431-2eea-4b52-be51-f1a803a4ca75 3092 +2985 uri://ed-fi.org/TribalAffiliationDescriptor Ute Mountain Ute Mountain Ute Mountain Ute Tribe \N \N \N 2021-11-05 18:59:33.945835 2021-11-05 18:59:33.945271 18ff46c8-9918-41e5-b85b-3b08702764a9 3045 +2989 uri://ed-fi.org/TribalAffiliationDescriptor Viejas Viejas Capitan Grande Band of Diegueno Mission Indians of California: Viejas (Barona Long) Group of Capitan Grande Band of Mission Indians of the Viejas Reservation, California \N \N \N 2021-11-05 18:59:33.958789 2021-11-05 18:59:33.958767 2893570d-21c5-4ce7-b34b-b9aec1559d17 3049 +2991 uri://ed-fi.org/TribalAffiliationDescriptor Wales Wales Native Village of Wales \N \N \N 2021-11-05 18:59:33.965648 2021-11-05 18:59:33.965564 afac6ef9-4512-499c-aef5-7e4595ce6e3a 3051 +2993 uri://ed-fi.org/TribalAffiliationDescriptor Wampanoag Wampanoag Wampanoag Tribe of Gay Head (Aquinnah) \N \N \N 2021-11-05 18:59:33.971308 2021-11-05 18:59:33.971212 9a0291e5-5cc6-4c91-b024-a36129210745 3053 +2995 uri://ed-fi.org/TribalAffiliationDescriptor Warms Springs Tribe Warms Springs Tribe Confederated Tribes of the Warm Springs Reservation of Oregon \N \N \N 2021-11-05 18:59:33.978935 2021-11-05 18:59:33.978613 46d70a92-d767-48d1-8c60-c1f5f4f98f9d 3055 +2999 uri://ed-fi.org/TribalAffiliationDescriptor Wichita Wichita Wichita and Affiliated Tribes \N \N \N 2021-11-05 18:59:33.99064 2021-11-05 18:59:33.990587 a9cb6b66-c4b5-476a-94b7-1ed0ab590045 3059 +3001 uri://ed-fi.org/TribalAffiliationDescriptor Winnebago Winnebago Winnebago Tribe of Nebraska \N \N \N 2021-11-05 18:59:33.998235 2021-11-05 18:59:33.998147 0cf5889a-1b84-4a54-b95e-fe66456b5435 3061 +3003 uri://ed-fi.org/TribalAffiliationDescriptor Winnemucca Winnemucca Winnemucca Indian Colony of Nevada \N \N \N 2021-11-05 18:59:34.002523 2021-11-05 18:59:34.002111 da9f0bb4-3ae2-4b23-8f8f-e89b2a8408f5 3063 +3007 uri://ed-fi.org/TribalAffiliationDescriptor Yankton Yankton Yankton Sioux Tribe of South Dakota \N \N \N 2021-11-05 18:59:34.016918 2021-11-05 18:59:34.01684 7608ee24-5125-4a3b-9040-3032acff01ee 3067 +3010 uri://ed-fi.org/TribalAffiliationDescriptor Yerington Yerington Yerington Paiute Tribe of the Yerington Colony & Campbell Ranch, Nevada \N \N \N 2021-11-05 18:59:34.03275 2021-11-05 18:59:34.032608 79c7290d-7177-44a4-bed3-97c0776e6b92 3070 +3017 uri://ed-fi.org/VisaDescriptor B1 - Business Visa B1 - Business Visa B1 - Business Visa \N \N \N 2021-11-05 18:59:34.154937 2021-11-05 18:59:34.153559 4ae39bf4-6f65-47e9-b884-f04a298501a6 3077 +3021 uri://ed-fi.org/VisaDescriptor Other Visa Other Visa Other Visa \N \N \N 2021-11-05 18:59:34.176341 2021-11-05 18:59:34.176112 ab8cd5ba-84c4-4508-b942-cb81b6966ccc 3081 +3024 uri://ed-fi.org/WeaponDescriptor Other Other Other \N \N \N 2021-11-05 18:59:34.296762 2021-11-05 18:59:34.295505 20d25d79-04c0-4dbd-addd-e88f64bf347c 3084 +3028 uri://ed-fi.org/WeaponDescriptor Other Sharp Objects Other Sharp Objects Other Sharp Objects \N \N \N 2021-11-05 18:59:34.317219 2021-11-05 18:59:34.317151 98e25053-1c17-4030-87e9-fabe7dee8cf5 3088 +3031 uri://ed-fi.org/WeaponDescriptor Substance Used as Weapon Substance Used as Weapon Substance Used as Weapon \N \N \N 2021-11-05 18:59:34.327982 2021-11-05 18:59:34.327931 8ea5db4e-5b79-4e52-8923-2d97823d9045 3091 +2861 uri://ed-fi.org/TribalAffiliationDescriptor Redwood Valley Redwood Valley Redwood Valley or Little River Band of Pomo Indians of the Redwood Valley Rancheria California \N \N \N 2021-11-05 18:59:33.540684 2021-11-05 18:59:33.540266 b1739c84-bb3a-499c-8203-3b57a3dfb155 2921 +2862 uri://ed-fi.org/TribalAffiliationDescriptor Reno-Sparks Reno-Sparks Reno-Sparks Indian Colony, Nevada \N \N \N 2021-11-05 18:59:33.545783 2021-11-05 18:59:33.545664 38359a92-1e50-4dd5-80d8-449fdce87d0f 2922 +2864 uri://ed-fi.org/TribalAffiliationDescriptor Rincon Rincon Rincon Band of Luiseno Mission Indians of the Rincon Reservation, California \N \N \N 2021-11-05 18:59:33.552503 2021-11-05 18:59:33.552328 adc2cb16-833d-4688-8936-560651e38839 2924 +2866 uri://ed-fi.org/TribalAffiliationDescriptor Rosebud Rosebud Rosebud Sioux Tribe of the Rosebud Indian Reservation, SD \N \N \N 2021-11-05 18:59:33.557993 2021-11-05 18:59:33.557842 b79ea5b7-f76f-417f-a8a1-7dcc817c5d95 2926 +2868 uri://ed-fi.org/TribalAffiliationDescriptor Ruby Ruby Native Village of Ruby \N \N \N 2021-11-05 18:59:33.563578 2021-11-05 18:59:33.563229 97676a3e-6281-4608-beed-2dc3d8745bcb 2928 +2870 uri://ed-fi.org/TribalAffiliationDescriptor Sac and Fox Nation of Missouri in KS and NE Sac and Fox Nation of Missouri in Kansas and Nebraska Sac and Fox Nation of Missouri in Kansas and Nebraska \N \N \N 2021-11-05 18:59:33.570249 2021-11-05 18:59:33.57005 901c9d2b-024a-4cda-885c-0034c13c1c66 2930 +2872 uri://ed-fi.org/TribalAffiliationDescriptor Saginaw Chippewa Saginaw Chippewa Saginaw Chippewa Indian Tribe of Michigan \N \N \N 2021-11-05 18:59:33.574236 2021-11-05 18:59:33.574074 6fae0bd7-b31a-4811-bc63-7f510de15bfa 2932 +2874 uri://ed-fi.org/TribalAffiliationDescriptor Saint Regis Saint Regis Saint Regis Mohawk Tribe \N \N \N 2021-11-05 18:59:33.580791 2021-11-05 18:59:33.580534 205f6ede-bb41-43cf-8881-1346d8667a1b 2934 +2875 uri://ed-fi.org/TribalAffiliationDescriptor Salamatoff Salamatoff Village of Salamatoff \N \N \N 2021-11-05 18:59:33.585404 2021-11-05 18:59:33.585075 53600121-bd9d-41f8-a104-8769ca4f3f96 2935 +2878 uri://ed-fi.org/TribalAffiliationDescriptor San Carlos San Carlos San Carlos Apache Tribe of the San Carlos Reservation, Arizona \N \N \N 2021-11-05 18:59:33.591763 2021-11-05 18:59:33.591716 c70da3b9-a8cd-4b0e-8fbe-48734043bf7d 2938 +2879 uri://ed-fi.org/TribalAffiliationDescriptor San Juan San Juan San Juan Southern Paiute Tribe of Arizona \N \N \N 2021-11-05 18:59:33.599284 2021-11-05 18:59:33.599092 9856885d-2e02-4ab6-89ed-df8de14f2112 2939 +2881 uri://ed-fi.org/TribalAffiliationDescriptor Santa Rosa Santa Rosa Santa Rosa Indian Community of the Santa Rosa Rancheria, California \N \N \N 2021-11-05 18:59:33.60438 2021-11-05 18:59:33.604053 c87bd8eb-84e6-4f2d-836e-8b53b9a62d5b 2941 +2883 uri://ed-fi.org/TribalAffiliationDescriptor Santa Rosa of Chuilla Santa Rosa of Chuilla Santa Rosa Band of Cahuilla Indians, California \N \N \N 2021-11-05 18:59:33.611302 2021-11-05 18:59:33.611183 5ce81ca1-dec0-4713-825c-da938c597981 2943 +2885 uri://ed-fi.org/TribalAffiliationDescriptor Santee Sioux Santee Sioux Santee Sioux Nation, Nebraska \N \N \N 2021-11-05 18:59:33.617243 2021-11-05 18:59:33.617113 0b5d30e7-5a5e-4fa8-be58-c349f71e9cf1 2945 +2887 uri://ed-fi.org/TribalAffiliationDescriptor Sault Ste. Marie Sault Ste. Marie Sault Ste. Marie Tribe of Chippewa Indians, Michigan \N \N \N 2021-11-05 18:59:33.624251 2021-11-05 18:59:33.623816 9c3685dd-ba91-434f-af19-5a6bc4852be0 2947 +2889 uri://ed-fi.org/TribalAffiliationDescriptor Scammon Bay Scammon Bay Native Village of Scammon Bay \N \N \N 2021-11-05 18:59:33.6303 2021-11-05 18:59:33.630181 f3d96f46-a0bf-4ac3-98aa-f5bfcde56d3d 2949 +2891 uri://ed-fi.org/TribalAffiliationDescriptor Scotts Valley Scotts Valley Scotts Valley Band of Pomo Indians of California \N \N \N 2021-11-05 18:59:33.636154 2021-11-05 18:59:33.636068 dbd4f9ec-1065-4888-a732-8f8c5d250609 2951 +2895 uri://ed-fi.org/TribalAffiliationDescriptor Seminole of Oklahoma Seminole of Oklahoma The Seminole Nation of Oklahoma \N \N \N 2021-11-05 18:59:33.64618 2021-11-05 18:59:33.64607 4246cb43-9bab-4460-b97f-b7620849bb57 2955 +2896 uri://ed-fi.org/TribalAffiliationDescriptor Seneca Seneca Seneca Nation of Indians \N \N \N 2021-11-05 18:59:33.654079 2021-11-05 18:59:33.653235 a1dd9eb8-62c0-45e7-b238-2aa1372ada98 2956 +2899 uri://ed-fi.org/TribalAffiliationDescriptor Shakopee Shakopee Shakopee Mdewakanton Sioux Community of Minnesota \N \N \N 2021-11-05 18:59:33.660058 2021-11-05 18:59:33.659513 b5b1bf50-109f-4eff-bf24-1d9eded98346 2959 +2900 uri://ed-fi.org/TribalAffiliationDescriptor Shaktoolik Shaktoolik Native Village of Shaktoolik \N \N \N 2021-11-05 18:59:33.666329 2021-11-05 18:59:33.6659 fa165f34-8971-4802-ac75-cf36832d9506 2960 +2901 uri://ed-fi.org/TribalAffiliationDescriptor Shawnee Shawnee Shawnee Tribe \N \N \N 2021-11-05 18:59:33.669938 2021-11-05 18:59:33.669881 b7bbf901-afca-4ac1-bcf5-d4014cf83981 2961 +2904 uri://ed-fi.org/TribalAffiliationDescriptor Shinnecock Shinnecock Shinnecock Indian Nation \N \N \N 2021-11-05 18:59:33.688612 2021-11-05 18:59:33.688557 bd6553e3-ef8b-4ec3-87b9-e5f55d4c7885 2964 +2905 uri://ed-fi.org/TribalAffiliationDescriptor Shoalwater Shoalwater Shoalwater Bay Indian Tribe \N \N \N 2021-11-05 18:59:33.694303 2021-11-05 18:59:33.693882 012b6e43-7843-419e-83f4-bdfbd932eed5 2965 +2908 uri://ed-fi.org/TribalAffiliationDescriptor Shoshone-Paiute Shoshone-Paiute Shoshone-Paiute Tribes of the Duck Valley Reservation, Nevada \N \N \N 2021-11-05 18:59:33.700044 2021-11-05 18:59:33.699995 7c13196e-8fc2-4c60-8a00-8bf4d8c9d68f 2968 +2909 uri://ed-fi.org/TribalAffiliationDescriptor Shungnak Shungnak Native Village of Shungnak \N \N \N 2021-11-05 18:59:33.704519 2021-11-05 18:59:33.70433 376895bc-6ee5-4e2d-bbb4-071c5cceba8c 2969 +2912 uri://ed-fi.org/TribalAffiliationDescriptor Sitka Sitka Sitka Tribe of Alaska \N \N \N 2021-11-05 18:59:33.711848 2021-11-05 18:59:33.711603 b631d1e7-b874-4124-a800-665faa5db769 2972 +2913 uri://ed-fi.org/TribalAffiliationDescriptor Skagway Skagway Skagway Village \N \N \N 2021-11-05 18:59:33.716959 2021-11-05 18:59:33.716867 0a4a50e2-5476-46be-b132-48453c0010f5 2973 +2915 uri://ed-fi.org/TribalAffiliationDescriptor Sleetmute Sleetmute Village of Sleetmute \N \N \N 2021-11-05 18:59:33.723186 2021-11-05 18:59:33.723057 529e9838-8036-42a1-a068-9e7d66e26d3a 2975 +2917 uri://ed-fi.org/TribalAffiliationDescriptor Snoqualmie Snoqualmie Snoqualmie Indian Tribe \N \N \N 2021-11-05 18:59:33.730599 2021-11-05 18:59:33.730542 37b7522a-4009-4bab-96d6-d179734731b9 2977 +2918 uri://ed-fi.org/TribalAffiliationDescriptor Soboba Soboba Soboba Band of Luiseno Indians, California \N \N \N 2021-11-05 18:59:33.735865 2021-11-05 18:59:33.735462 8f0a4dda-7dff-41b1-a023-882f840e2f05 2978 +2921 uri://ed-fi.org/TribalAffiliationDescriptor South Naknek South Naknek South Naknek Village \N \N \N 2021-11-05 18:59:33.742559 2021-11-05 18:59:33.742509 d7024a13-75bd-406a-b8ab-9312e29930ae 2981 +2922 uri://ed-fi.org/TribalAffiliationDescriptor Southern Ute Southern Ute Southern Ute Indian Tribe \N \N \N 2021-11-05 18:59:33.750168 2021-11-05 18:59:33.749939 c5612b08-a3b5-4026-9127-7e6fb7795955 2982 +2926 uri://ed-fi.org/TribalAffiliationDescriptor St. Croix St. Croix St. Croix Chippewa Indians of Wisconsin \N \N \N 2021-11-05 18:59:33.76262 2021-11-05 18:59:33.7621 7f46e967-8353-4978-8688-3585e3adb02f 2986 +2929 uri://ed-fi.org/TribalAffiliationDescriptor St. George St. George Saint George Island \N \N \N 2021-11-05 18:59:33.768044 2021-11-05 18:59:33.76802 8d6d1f29-ff9a-46de-9e41-5066dd7d81ec 2989 +2930 uri://ed-fi.org/TribalAffiliationDescriptor Stebbins Stebbins Stebbins Community Association \N \N \N 2021-11-05 18:59:33.775576 2021-11-05 18:59:33.775428 c6205fe4-7cdf-4b29-ac4b-2473a97a5d18 2990 +2932 uri://ed-fi.org/TribalAffiliationDescriptor Stockbridge Stockbridge Stockbridge Munsee Community, Wisconsin \N \N \N 2021-11-05 18:59:33.779891 2021-11-05 18:59:33.77984 98e457af-48ab-46a0-b54f-df593e4cf0c3 2992 +2934 uri://ed-fi.org/TribalAffiliationDescriptor Stony River Stony River Village of Stony River \N \N \N 2021-11-05 18:59:33.786763 2021-11-05 18:59:33.786709 68087c85-6420-43a4-84b9-fa44b09d1db0 2994 +2937 uri://ed-fi.org/TribalAffiliationDescriptor Suquamish Suquamish Suquamish Indian Tribe of the Port Madison Reservation \N \N \N 2021-11-05 18:59:33.791788 2021-11-05 18:59:33.791728 97a48f49-ef97-4e10-bf7a-eb4ae412a28a 2997 +2938 uri://ed-fi.org/TribalAffiliationDescriptor Susanville Susanville Susanville Indian Rancheria, California \N \N \N 2021-11-05 18:59:33.798646 2021-11-05 18:59:33.79859 05d3ba40-bac0-47f0-8fed-a13eca2b298d 2998 +2940 uri://ed-fi.org/TribalAffiliationDescriptor Sycuan Sycuan Sycuan Band of the Kumeyaay Nation \N \N \N 2021-11-05 18:59:33.802867 2021-11-05 18:59:33.802806 59d69830-1c51-4890-8257-7218b9c829a2 3000 +2942 uri://ed-fi.org/TribalAffiliationDescriptor Takotna Takotna Takotna Village \N \N \N 2021-11-05 18:59:33.809478 2021-11-05 18:59:33.809426 ff9d4ab9-9761-4021-a6b1-fbf491a900b2 3002 +2945 uri://ed-fi.org/TribalAffiliationDescriptor Tangirnaq Tangirnaq Tangirnaq Native Village (aka Woody Island) \N \N \N 2021-11-05 18:59:33.816377 2021-11-05 18:59:33.816332 5a26a32d-d221-4c5b-bf41-94d946e3d2e5 3005 +\. + + +-- +-- Data for Name: diagnosisdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.diagnosisdescriptor (diagnosisdescriptorid) FROM stdin; +741 +742 +\. + + +-- +-- Data for Name: diplomaleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.diplomaleveldescriptor (diplomaleveldescriptorid) FROM stdin; +740 +739 +743 +744 +745 +746 +747 +\. + + +-- +-- Data for Name: diplomatypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.diplomatypedescriptor (diplomatypedescriptorid) FROM stdin; +748 +749 +750 +751 +752 +753 +754 +755 +756 +757 +758 +759 +760 +761 +762 +763 +764 +\. + + +-- +-- Data for Name: disabilitydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disabilitydescriptor (disabilitydescriptorid) FROM stdin; +765 +766 +767 +768 +769 +770 +771 +772 +773 +774 +775 +776 +777 +778 +779 +780 +781 +782 +783 +784 +\. + + +-- +-- Data for Name: disabilitydesignationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disabilitydesignationdescriptor (disabilitydesignationdescriptorid) FROM stdin; +785 +786 +787 +\. + + +-- +-- Data for Name: disabilitydeterminationsourcetypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disabilitydeterminationsourcetypedescriptor (disabilitydeterminationsourcetypedescriptorid) FROM stdin; +788 +789 +790 +791 +792 +793 +794 +795 +796 +\. + + +-- +-- Data for Name: disciplineaction; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineaction (disciplineactionidentifier, disciplinedate, studentusi, disciplineactionlength, actualdisciplineactionlength, disciplineactionlengthdifferencereasondescriptorid, relatedtozerotolerancepolicy, responsibilityschoolid, assignmentschoolid, receivededucationservicesduringexpulsion, iepplacementmeetingindicator, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplineactiondiscipline; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineactiondiscipline (disciplineactionidentifier, disciplinedate, disciplinedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: disciplineactionlengthdifferencereasondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineactionlengthdifferencereasondescriptor (disciplineactionlengthdifferencereasondescriptorid) FROM stdin; +799 +801 +804 +805 +806 +807 +800 +798 +802 +803 +808 +797 +\. + + +-- +-- Data for Name: disciplineactionstaff; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineactionstaff (disciplineactionidentifier, disciplinedate, staffusi, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: disciplineactionstudentdisciplineincidentassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineactionstudentdisciplineincidentassociation (disciplineactionidentifier, disciplinedate, incidentidentifier, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: disciplineactionstudentdisciplineincidentbehaviorassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineactionstudentdisciplineincidentbehaviorassociation (behaviordescriptorid, disciplineactionidentifier, disciplinedate, incidentidentifier, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: disciplinedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplinedescriptor (disciplinedescriptorid) FROM stdin; +810 +811 +812 +809 +813 +814 +815 +816 +817 +818 +\. + + +-- +-- Data for Name: disciplineincident; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineincident (incidentidentifier, schoolid, incidentdate, incidenttime, incidentlocationdescriptorid, incidentdescription, reporterdescriptiondescriptorid, reportername, reportedtolawenforcement, casenumber, incidentcost, staffusi, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplineincidentbehavior; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineincidentbehavior (behaviordescriptorid, incidentidentifier, schoolid, behaviordetaileddescription, createdate) FROM stdin; +\. + + +-- +-- Data for Name: disciplineincidentexternalparticipant; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineincidentexternalparticipant (disciplineincidentparticipationcodedescriptorid, firstname, incidentidentifier, lastsurname, schoolid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: disciplineincidentparticipationcodedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineincidentparticipationcodedescriptor (disciplineincidentparticipationcodedescriptorid) FROM stdin; +819 +821 +822 +820 +\. + + +-- +-- Data for Name: disciplineincidentweapon; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.disciplineincidentweapon (incidentidentifier, schoolid, weapondescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationalenvironmentdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationalenvironmentdescriptor (educationalenvironmentdescriptorid) FROM stdin; +823 +824 +825 +826 +827 +828 +829 +830 +831 +832 +833 +834 +835 +\. + + +-- +-- Data for Name: educationcontent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontent (contentidentifier, learningresourcemetadatauri, shortdescription, description, additionalauthorsindicator, publisher, timerequired, interactivitystyledescriptorid, contentclassdescriptorid, userightsurl, publicationdate, publicationyear, version, learningstandardid, cost, costratedescriptorid, namespace, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentappropriategradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentappropriategradelevel (contentidentifier, gradeleveldescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentappropriatesex; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentappropriatesex (contentidentifier, sexdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentauthor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentauthor (author, contentidentifier, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentderivativesourceeducationcontent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentderivativesourceeducationcontent (contentidentifier, derivativesourcecontentidentifier, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentderivativesourcelearningresourcemetadatauri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentderivativesourcelearningresourcemetadatauri (contentidentifier, derivativesourcelearningresourcemetadatauri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentderivativesourceuri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentderivativesourceuri (contentidentifier, derivativesourceuri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationcontentlanguage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationcontentlanguage (contentidentifier, languagedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganization; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganization (educationorganizationid, nameofinstitution, shortnameofinstitution, website, operationalstatusdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationaddress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationaddress (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, apartmentroomsuitenumber, buildingsitenumber, nameofcounty, countyfipscode, latitude, longitude, donotpublishindicator, congressionaldistrict, localedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationaddressperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationaddressperiod (addresstypedescriptorid, begindate, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationcategory; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationcategory (educationorganizationcategorydescriptorid, educationorganizationid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationcategorydescriptor (educationorganizationcategorydescriptorid) FROM stdin; +836 +837 +841 +842 +839 +840 +843 +838 +\. + + +-- +-- Data for Name: educationorganizationidentificationcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationidentificationcode (educationorganizationid, educationorganizationidentificationsystemdescriptorid, identificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationidentificationsystemdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationidentificationsystemdescriptor (educationorganizationidentificationsystemdescriptorid) FROM stdin; +844 +848 +851 +852 +854 +847 +846 +849 +850 +845 +853 +\. + + +-- +-- Data for Name: educationorganizationindicator; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationindicator (educationorganizationid, indicatordescriptorid, designatedby, indicatorvalue, indicatorleveldescriptorid, indicatorgroupdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationindicatorperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationindicatorperiod (begindate, educationorganizationid, indicatordescriptorid, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationinstitutiontelephone; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationinstitutiontelephone (educationorganizationid, institutiontelephonenumbertypedescriptorid, telephonenumber, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationinternationaladdress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationinternationaladdress (addresstypedescriptorid, educationorganizationid, addressline1, addressline2, addressline3, addressline4, countrydescriptorid, latitude, longitude, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationinterventionprescriptionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationinterventionprescriptionassociation (educationorganizationid, interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode, begindate, enddate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationnetwork; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationnetwork (educationorganizationnetworkid, networkpurposedescriptorid) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationnetworkassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationnetworkassociation (educationorganizationnetworkid, membereducationorganizationid, begindate, enddate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationpeerassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationorganizationpeerassociation (educationorganizationid, peereducationorganizationid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationplandescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationplandescriptor (educationplandescriptorid) FROM stdin; +856 +857 +855 +858 +859 +860 +861 +862 +863 +864 +865 +866 +\. + + +-- +-- Data for Name: educationservicecenter; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.educationservicecenter (educationservicecenterid, stateeducationagencyid) FROM stdin; +\. + + +-- +-- Data for Name: electronicmailtypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.electronicmailtypedescriptor (electronicmailtypedescriptorid) FROM stdin; +867 +868 +869 +870 +\. + + +-- +-- Data for Name: employmentstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.employmentstatusdescriptor (employmentstatusdescriptorid) FROM stdin; +871 +873 +874 +872 +876 +875 +877 +878 +879 +880 +\. + + +-- +-- Data for Name: entrygradelevelreasondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.entrygradelevelreasondescriptor (entrygradelevelreasondescriptorid) FROM stdin; +881 +882 +883 +884 +886 +885 +887 +888 +889 +890 +891 +892 +893 +\. + + +-- +-- Data for Name: entrytypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.entrytypedescriptor (entrytypedescriptorid) FROM stdin; +894 +896 +897 +895 +898 +\. + + +-- +-- Data for Name: eventcircumstancedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.eventcircumstancedescriptor (eventcircumstancedescriptorid) FROM stdin; +900 +901 +903 +905 +909 +910 +912 +918 +920 +922 +925 +927 +928 +902 +899 +904 +906 +907 +908 +911 +913 +914 +915 +916 +917 +919 +921 +923 +924 +926 +929 +930 +\. + + +-- +-- Data for Name: exitwithdrawtypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.exitwithdrawtypedescriptor (exitwithdrawtypedescriptorid) FROM stdin; +933 +935 +938 +939 +942 +943 +945 +934 +931 +937 +941 +932 +936 +940 +944 +\. + + +-- +-- Data for Name: feederschoolassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.feederschoolassociation (begindate, feederschoolid, schoolid, enddate, feederrelationshipdescription, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: generalstudentprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.generalstudentprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, enddate, reasonexiteddescriptorid, servedoutsideofregularsession, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: generalstudentprogramassociationparticipationstatus; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.generalstudentprogramassociationparticipationstatus (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, participationstatusdescriptorid, statusbegindate, statusenddate, designatedby, createdate) FROM stdin; +\. + + +-- +-- Data for Name: generalstudentprogramassociationprogramparticipationstatus; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.generalstudentprogramassociationprogramparticipationstatus (begindate, educationorganizationid, participationstatusdescriptorid, programeducationorganizationid, programname, programtypedescriptorid, statusbegindate, studentusi, statusenddate, designatedby, createdate) FROM stdin; +\. + + +-- +-- Data for Name: grade; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.grade (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, lettergradeearned, numericgradeearned, diagnosticstatement, performancebaseconversiondescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradebookentry; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradebookentry (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, gradebookentrytypedescriptorid, description, gradingperioddescriptorid, periodsequence, duedate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradebookentrylearningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradebookentrylearningobjective (dateassigned, gradebookentrytitle, learningobjectiveid, localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: gradebookentrylearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradebookentrylearningstandard (dateassigned, gradebookentrytitle, learningstandardid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: gradebookentrytypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradebookentrytypedescriptor (gradebookentrytypedescriptorid) FROM stdin; +948 +947 +951 +952 +953 +949 +946 +950 +\. + + +-- +-- Data for Name: gradelearningstandardgrade; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradelearningstandardgrade (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, learningstandardid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, lettergradeearned, numericgradeearned, diagnosticstatement, performancebaseconversiondescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: gradeleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradeleveldescriptor (gradeleveldescriptorid) FROM stdin; +954 +955 +956 +957 +958 +959 +960 +961 +962 +963 +964 +965 +966 +967 +968 +969 +970 +971 +972 +973 +974 +975 +\. + + +-- +-- Data for Name: gradepointaveragetypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradepointaveragetypedescriptor (gradepointaveragetypedescriptorid) FROM stdin; +976 +977 +\. + + +-- +-- Data for Name: gradetypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradetypedescriptor (gradetypedescriptorid) FROM stdin; +978 +979 +980 +981 +982 +983 +984 +\. + + +-- +-- Data for Name: gradingperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradingperiod (gradingperioddescriptorid, periodsequence, schoolid, schoolyear, begindate, enddate, totalinstructionaldays, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradingperioddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gradingperioddescriptor (gradingperioddescriptorid) FROM stdin; +985 +986 +987 +988 +989 +990 +991 +992 +993 +994 +995 +996 +997 +998 +999 +1000 +1001 +1002 +1003 +1004 +\. + + +-- +-- Data for Name: graduationplan; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplan (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, individualplan, totalrequiredcredits, totalrequiredcredittypedescriptorid, totalrequiredcreditconversion, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: graduationplancreditsbycourse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplancreditsbycourse (coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, credits, credittypedescriptorid, creditconversion, whentakengradeleveldescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplancreditsbycoursecourse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplancreditsbycoursecourse (coursecode, courseeducationorganizationid, coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplancreditsbycreditcategory; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplancreditsbycreditcategory (creditcategorydescriptorid, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, credits, credittypedescriptorid, creditconversion, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplancreditsbysubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplancreditsbysubject (academicsubjectdescriptorid, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, credits, credittypedescriptorid, creditconversion, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplanrequiredassessment; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplanrequiredassessment (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplanrequiredassessmentperformancelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplanrequiredassessmentperformancelevel (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace, performanceleveldescriptorid, assessmentreportingmethoddescriptorid, minimumscore, maximumscore, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplanrequiredassessmentscore; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplanrequiredassessmentscore (assessmentidentifier, assessmentreportingmethoddescriptorid, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace, minimumscore, maximumscore, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: graduationplantypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.graduationplantypedescriptor (graduationplantypedescriptorid) FROM stdin; +1005 +1009 +1008 +1007 +1006 +\. + + +-- +-- Data for Name: gunfreeschoolsactreportingstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.gunfreeschoolsactreportingstatusdescriptor (gunfreeschoolsactreportingstatusdescriptorid) FROM stdin; +1010 +1012 +1013 +1011 +\. + + +-- +-- Data for Name: homelessprimarynighttimeresidencedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.homelessprimarynighttimeresidencedescriptor (homelessprimarynighttimeresidencedescriptorid) FROM stdin; +1014 +1016 +1015 +1017 +\. + + +-- +-- Data for Name: homelessprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.homelessprogramservicedescriptor (homelessprogramservicedescriptorid) FROM stdin; +1018 +1019 +1022 +1024 +1025 +1021 +1020 +1023 +\. + + +-- +-- Data for Name: identificationdocumentusedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.identificationdocumentusedescriptor (identificationdocumentusedescriptorid) FROM stdin; +1027 +1028 +1026 +\. + + +-- +-- Data for Name: incidentlocationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.incidentlocationdescriptor (incidentlocationdescriptorid) FROM stdin; +1029 +1030 +1031 +1032 +1033 +1034 +1035 +1036 +1037 +1038 +1039 +1040 +1041 +1042 +1043 +1044 +1045 +1046 +1047 +1048 +1049 +1050 +1051 +1052 +1053 +\. + + +-- +-- Data for Name: indicatordescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.indicatordescriptor (indicatordescriptorid) FROM stdin; +1054 +\. + + +-- +-- Data for Name: indicatorgroupdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.indicatorgroupdescriptor (indicatorgroupdescriptorid) FROM stdin; +1055 +\. + + +-- +-- Data for Name: indicatorleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.indicatorleveldescriptor (indicatorleveldescriptorid) FROM stdin; +1056 +1058 +1057 +\. + + +-- +-- Data for Name: institutiontelephonenumbertypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.institutiontelephonenumbertypedescriptor (institutiontelephonenumbertypedescriptorid) FROM stdin; +1059 +1060 +1061 +1062 +1063 +1064 +1065 +\. + + +-- +-- Data for Name: interactivitystyledescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interactivitystyledescriptor (interactivitystyledescriptorid) FROM stdin; +1067 +1068 +1069 +1066 +\. + + +-- +-- Data for Name: internetaccessdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.internetaccessdescriptor (internetaccessdescriptorid) FROM stdin; +1070 +1072 +1071 +\. + + +-- +-- Data for Name: internetaccesstypeinresidencedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.internetaccesstypeinresidencedescriptor (internetaccesstypeinresidencedescriptorid) FROM stdin; +1073 +1074 +1075 +1076 +1077 +1078 +1079 +1080 +1081 +\. + + +-- +-- Data for Name: internetperformanceinresidencedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.internetperformanceinresidencedescriptor (internetperformanceinresidencedescriptorid) FROM stdin; +1082 +1083 +1084 +\. + + +-- +-- Data for Name: intervention; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.intervention (educationorganizationid, interventionidentificationcode, interventionclassdescriptorid, deliverymethoddescriptorid, begindate, enddate, mindosage, maxdosage, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventionappropriategradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionappropriategradelevel (educationorganizationid, gradeleveldescriptorid, interventionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionappropriatesex; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionappropriatesex (educationorganizationid, interventionidentificationcode, sexdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionclassdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionclassdescriptor (interventionclassdescriptorid) FROM stdin; +1085 +1086 +1087 +1088 +\. + + +-- +-- Data for Name: interventiondiagnosis; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventiondiagnosis (diagnosisdescriptorid, educationorganizationid, interventionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventioneducationcontent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventioneducationcontent (contentidentifier, educationorganizationid, interventionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventioneffectivenessratingdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventioneffectivenessratingdescriptor (interventioneffectivenessratingdescriptorid) FROM stdin; +1091 +1095 +1092 +1089 +1093 +1090 +1094 +\. + + +-- +-- Data for Name: interventioninterventionprescription; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventioninterventionprescription (educationorganizationid, interventionidentificationcode, interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionlearningresourcemetadatauri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionlearningresourcemetadatauri (educationorganizationid, interventionidentificationcode, learningresourcemetadatauri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionmeetingtime; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionmeetingtime (educationorganizationid, endtime, interventionidentificationcode, starttime, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionpopulationserved; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionpopulationserved (educationorganizationid, interventionidentificationcode, populationserveddescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescription; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescription (educationorganizationid, interventionprescriptionidentificationcode, interventionclassdescriptorid, deliverymethoddescriptorid, mindosage, maxdosage, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptionappropriategradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptionappropriategradelevel (educationorganizationid, gradeleveldescriptorid, interventionprescriptionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptionappropriatesex; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptionappropriatesex (educationorganizationid, interventionprescriptionidentificationcode, sexdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptiondiagnosis; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptiondiagnosis (diagnosisdescriptorid, educationorganizationid, interventionprescriptionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptioneducationcontent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptioneducationcontent (contentidentifier, educationorganizationid, interventionprescriptionidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptionlearningresourcemetadatauri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptionlearningresourcemetadatauri (educationorganizationid, interventionprescriptionidentificationcode, learningresourcemetadatauri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptionpopulationserved; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptionpopulationserved (educationorganizationid, interventionprescriptionidentificationcode, populationserveddescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescriptionuri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionprescriptionuri (educationorganizationid, interventionprescriptionidentificationcode, uri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstaff; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstaff (educationorganizationid, interventionidentificationcode, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudy; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudy (educationorganizationid, interventionstudyidentificationcode, interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode, participants, deliverymethoddescriptorid, interventionclassdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudyappropriategradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudyappropriategradelevel (educationorganizationid, gradeleveldescriptorid, interventionstudyidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudyappropriatesex; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudyappropriatesex (educationorganizationid, interventionstudyidentificationcode, sexdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudyeducationcontent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudyeducationcontent (contentidentifier, educationorganizationid, interventionstudyidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudyinterventioneffectiveness; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudyinterventioneffectiveness (diagnosisdescriptorid, educationorganizationid, gradeleveldescriptorid, interventionstudyidentificationcode, populationserveddescriptorid, improvementindex, interventioneffectivenessratingdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudylearningresourcemetadatauri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudylearningresourcemetadatauri (educationorganizationid, interventionstudyidentificationcode, learningresourcemetadatauri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudypopulationserved; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudypopulationserved (educationorganizationid, interventionstudyidentificationcode, populationserveddescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudystateabbreviation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudystateabbreviation (educationorganizationid, interventionstudyidentificationcode, stateabbreviationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudyuri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionstudyuri (educationorganizationid, interventionstudyidentificationcode, uri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: interventionuri; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.interventionuri (educationorganizationid, interventionidentificationcode, uri, createdate) FROM stdin; +\. + + +-- +-- Data for Name: languagedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.languagedescriptor (languagedescriptorid) FROM stdin; +1097 +1096 +1101 +1102 +1104 +1105 +1106 +1108 +1109 +1110 +1112 +1113 +1115 +1116 +1117 +1118 +1119 +1120 +1121 +1122 +1123 +1124 +1125 +1127 +1128 +1129 +1130 +1131 +1132 +1133 +1134 +1135 +1136 +1137 +1138 +1139 +1140 +1142 +1143 +1145 +1146 +1147 +1148 +1150 +1151 +1152 +1154 +1155 +1158 +1159 +1160 +1161 +1162 +1163 +1165 +1166 +1167 +1168 +1169 +1171 +1172 +1173 +1174 +1175 +1176 +1177 +1178 +1179 +1180 +1181 +1182 +1183 +1184 +1185 +1186 +1188 +1189 +1190 +1191 +1193 +1194 +1195 +1196 +1198 +1199 +1200 +1202 +1203 +1204 +1205 +1206 +1208 +1209 +1210 +1211 +1212 +1213 +1214 +1216 +1217 +1218 +1219 +1221 +1222 +1223 +1224 +1226 +1227 +1228 +1229 +1230 +1231 +1232 +1233 +1234 +1235 +1236 +1237 +1238 +1239 +1240 +1241 +1242 +1243 +1244 +1245 +1246 +1247 +1248 +1249 +1250 +1251 +1252 +1253 +1254 +1255 +1256 +1257 +1258 +1259 +1260 +1261 +1262 +1263 +1264 +1265 +1266 +1267 +1268 +1269 +1270 +1271 +1272 +1273 +1274 +1275 +1276 +1277 +1278 +1279 +1280 +1281 +1282 +1283 +1284 +1285 +1286 +1287 +1288 +1289 +1290 +1291 +1292 +1293 +1294 +1295 +1296 +1297 +1298 +1299 +1300 +1301 +1302 +1303 +1304 +1305 +1306 +1307 +1308 +1309 +1310 +1311 +1313 +1314 +1315 +1316 +1317 +1318 +1319 +1320 +1322 +1323 +1324 +1325 +1326 +1327 +1328 +1329 +1330 +1331 +1332 +1333 +1334 +1335 +1336 +1337 +1338 +1339 +1340 +1341 +1342 +1343 +1344 +1345 +1346 +1347 +1099 +1141 +1157 +1312 +1348 +1350 +1355 +1359 +1362 +1364 +1367 +1372 +1375 +1378 +1380 +1382 +1384 +1387 +1389 +1391 +1398 +1400 +1402 +1403 +1405 +1407 +1409 +1411 +1414 +1416 +1423 +1424 +1429 +1432 +1435 +1438 +1444 +1450 +1451 +1453 +1456 +1458 +1460 +1461 +1463 +1466 +1468 +1470 +1472 +1473 +1475 +1477 +1480 +1482 +1483 +1485 +1490 +1491 +1494 +1495 +1500 +1503 +1506 +1508 +1510 +1512 +1514 +1517 +1519 +1521 +1523 +1528 +1531 +1533 +1535 +1536 +1539 +1540 +1543 +1545 +1551 +1553 +1555 +1556 +1559 +1560 +1565 +1566 +1569 +1571 +1572 +1574 +1576 +1578 +1349 +1351 +1352 +1353 +1354 +1356 +1357 +1358 +1360 +1361 +1363 +1365 +1366 +1368 +1370 +1371 +1373 +1374 +1376 +1377 +1379 +1381 +1383 +1385 +1386 +1388 +1390 +1392 +1393 +1394 +1395 +1396 +1397 +1399 +1401 +1404 +1406 +1408 +1410 +1412 +1413 +1415 +1417 +1418 +1419 +1420 +1421 +1422 +1425 +1426 +1427 +1428 +1430 +1431 +1433 +1434 +1436 +1437 +1439 +1440 +1441 +1442 +1443 +1446 +1447 +1448 +1449 +1452 +1454 +1455 +1457 +1459 +1462 +1464 +1465 +1467 +1469 +1471 +1474 +1476 +1478 +1479 +1481 +1484 +1486 +1487 +1488 +1489 +1492 +1493 +1496 +1497 +1498 +1499 +1502 +1504 +1505 +1507 +1509 +1511 +1513 +1515 +1516 +1518 +1520 +1522 +1524 +1525 +1526 +1527 +1529 +1530 +1532 +1534 +1537 +1538 +1541 +1542 +1544 +1546 +1548 +1549 +1550 +1552 +1554 +1557 +1558 +1561 +1562 +1563 +1564 +1567 +1568 +1570 +1573 +1575 +1577 +1579 +1098 +1100 +1103 +1107 +1111 +1114 +1126 +1144 +1149 +1153 +1156 +1164 +1170 +1187 +1192 +1197 +1201 +1207 +1215 +1220 +1225 +1321 +1369 +1445 +1501 +1547 +\. + + +-- +-- Data for Name: languageinstructionprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.languageinstructionprogramservicedescriptor (languageinstructionprogramservicedescriptorid) FROM stdin; +1580 +1585 +1583 +1581 +1584 +1586 +1588 +1589 +1590 +1582 +1587 +\. + + +-- +-- Data for Name: languageusedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.languageusedescriptor (languageusedescriptorid) FROM stdin; +1593 +1592 +1594 +1591 +1595 +1596 +1597 +1598 +\. + + +-- +-- Data for Name: learningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningobjective (learningobjectiveid, namespace, objective, description, nomenclature, successcriteria, parentlearningobjectiveid, parentnamespace, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningobjectiveacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningobjectiveacademicsubject (academicsubjectdescriptorid, learningobjectiveid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningobjectivecontentstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningobjectivecontentstandard (learningobjectiveid, namespace, title, version, uri, publicationdate, publicationyear, publicationstatusdescriptorid, mandatingeducationorganizationid, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningobjectivecontentstandardauthor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningobjectivecontentstandardauthor (author, learningobjectiveid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningobjectivegradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningobjectivegradelevel (gradeleveldescriptorid, learningobjectiveid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningobjectivelearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningobjectivelearningstandard (learningobjectiveid, learningstandardid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandard (learningstandardid, description, learningstandarditemcode, uri, coursetitle, successcriteria, parentlearningstandardid, namespace, learningstandardcategorydescriptorid, learningstandardscopedescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardacademicsubject (academicsubjectdescriptorid, learningstandardid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardcategorydescriptor (learningstandardcategorydescriptorid) FROM stdin; +1599 +1600 +1601 +\. + + +-- +-- Data for Name: learningstandardcontentstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardcontentstandard (learningstandardid, title, version, uri, publicationdate, publicationyear, publicationstatusdescriptorid, mandatingeducationorganizationid, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardcontentstandardauthor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardcontentstandardauthor (author, learningstandardid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardequivalenceassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardequivalenceassociation (namespace, sourcelearningstandardid, targetlearningstandardid, effectivedate, learningstandardequivalencestrengthdescriptorid, learningstandardequivalencestrengthdescription, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardequivalencestrengthdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardequivalencestrengthdescriptor (learningstandardequivalencestrengthdescriptorid) FROM stdin; +1602 +1603 +1604 +1605 +\. + + +-- +-- Data for Name: learningstandardgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardgradelevel (gradeleveldescriptorid, learningstandardid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardidentificationcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardidentificationcode (contentstandardname, identificationcode, learningstandardid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardprerequisitelearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardprerequisitelearningstandard (learningstandardid, prerequisitelearningstandardid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardscopedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.learningstandardscopedescriptor (learningstandardscopedescriptorid) FROM stdin; +1607 +1608 +1609 +1610 +1611 +1606 +\. + + +-- +-- Data for Name: levelofeducationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.levelofeducationdescriptor (levelofeducationdescriptorid) FROM stdin; +1612 +1613 +1614 +1615 +1616 +1617 +1618 +\. + + +-- +-- Data for Name: licensestatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.licensestatusdescriptor (licensestatusdescriptorid) FROM stdin; +1619 +1620 +1621 +\. + + +-- +-- Data for Name: licensetypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.licensetypedescriptor (licensetypedescriptorid) FROM stdin; +1622 +1623 +1624 +1625 +1626 +1627 +1628 +1629 +1630 +1631 +1632 +1633 +1634 +1635 +1636 +\. + + +-- +-- Data for Name: limitedenglishproficiencydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.limitedenglishproficiencydescriptor (limitedenglishproficiencydescriptorid) FROM stdin; +1639 +1638 +1640 +1637 +\. + + +-- +-- Data for Name: localedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.localedescriptor (localedescriptorid) FROM stdin; +1642 +1641 +1645 +1646 +1648 +1649 +1650 +1651 +1652 +1644 +1643 +1647 +\. + + +-- +-- Data for Name: localeducationagency; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.localeducationagency (localeducationagencyid, localeducationagencycategorydescriptorid, charterstatusdescriptorid, parentlocaleducationagencyid, educationservicecenterid, stateeducationagencyid) FROM stdin; +\. + + +-- +-- Data for Name: localeducationagencyaccountability; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.localeducationagencyaccountability (localeducationagencyid, schoolyear, gunfreeschoolsactreportingstatusdescriptorid, schoolchoiceimplementstatusdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: localeducationagencycategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.localeducationagencycategorydescriptor (localeducationagencycategorydescriptorid) FROM stdin; +1653 +1654 +\. + + +-- +-- Data for Name: localeducationagencyfederalfunds; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.localeducationagencyfederalfunds (fiscalyear, localeducationagencyid, innovativedollarsspent, innovativedollarsspentstrategicpriorities, innovativeprogramsfundsreceived, schoolimprovementallocation, schoolimprovementreservedfundspercentage, supplementaleducationalservicesfundsspent, supplementaleducationalservicesperpupilexpenditure, stateassessmentadministrationfunding, createdate) FROM stdin; +\. + + +-- +-- Data for Name: location; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.location (classroomidentificationcode, schoolid, maximumnumberofseats, optimalnumberofseats, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: magnetspecialprogramemphasisschooldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.magnetspecialprogramemphasisschooldescriptor (magnetspecialprogramemphasisschooldescriptorid) FROM stdin; +1655 +1656 +1657 +\. + + +-- +-- Data for Name: mediumofinstructiondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.mediumofinstructiondescriptor (mediumofinstructiondescriptorid) FROM stdin; +1659 +1663 +1667 +1670 +1658 +1661 +1662 +1665 +1666 +1668 +1660 +1664 +1669 +\. + + +-- +-- Data for Name: methodcreditearneddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.methodcreditearneddescriptor (methodcreditearneddescriptorid) FROM stdin; +1672 +1674 +1673 +1675 +1676 +1677 +1678 +1671 +\. + + +-- +-- Data for Name: migranteducationprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.migranteducationprogramservicedescriptor (migranteducationprogramservicedescriptorid) FROM stdin; +1679 +1683 +1681 +1685 +1682 +1680 +1684 +\. + + +-- +-- Data for Name: monitoreddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.monitoreddescriptor (monitoreddescriptorid) FROM stdin; +1686 +1688 +1687 +\. + + +-- +-- Data for Name: neglectedordelinquentprogramdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.neglectedordelinquentprogramdescriptor (neglectedordelinquentprogramdescriptorid) FROM stdin; +1689 +1690 +1691 +1692 +1693 +\. + + +-- +-- Data for Name: neglectedordelinquentprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.neglectedordelinquentprogramservicedescriptor (neglectedordelinquentprogramservicedescriptorid) FROM stdin; +1694 +1696 +1697 +1695 +1698 +1699 +1700 +\. + + +-- +-- Data for Name: networkpurposedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.networkpurposedescriptor (networkpurposedescriptorid) FROM stdin; +1701 +1702 +\. + + +-- +-- Data for Name: objectiveassessment; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.objectiveassessment (assessmentidentifier, identificationcode, namespace, maxrawscore, percentofassessment, nomenclature, description, parentidentificationcode, academicsubjectdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: objectiveassessmentassessmentitem; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.objectiveassessmentassessmentitem (assessmentidentifier, assessmentitemidentificationcode, identificationcode, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: objectiveassessmentlearningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.objectiveassessmentlearningobjective (assessmentidentifier, identificationcode, learningobjectiveid, learningobjectivenamespace, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: objectiveassessmentlearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.objectiveassessmentlearningstandard (assessmentidentifier, identificationcode, learningstandardid, namespace, createdate) FROM stdin; +\. + + +-- +-- Data for Name: objectiveassessmentperformancelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.objectiveassessmentperformancelevel (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, performanceleveldescriptorid, minimumscore, maximumscore, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: objectiveassessmentscore; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.objectiveassessmentscore (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, minimumscore, maximumscore, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: oldethnicitydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.oldethnicitydescriptor (oldethnicitydescriptorid) FROM stdin; +1703 +1705 +1707 +1704 +1706 +\. + + +-- +-- Data for Name: openstaffposition; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.openstaffposition (educationorganizationid, requisitionnumber, employmentstatusdescriptorid, staffclassificationdescriptorid, positiontitle, programassignmentdescriptorid, dateposted, datepostingremoved, postingresultdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: openstaffpositionacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.openstaffpositionacademicsubject (academicsubjectdescriptorid, educationorganizationid, requisitionnumber, createdate) FROM stdin; +\. + + +-- +-- Data for Name: openstaffpositioninstructionalgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.openstaffpositioninstructionalgradelevel (educationorganizationid, gradeleveldescriptorid, requisitionnumber, createdate) FROM stdin; +\. + + +-- +-- Data for Name: operationalstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.operationalstatusdescriptor (operationalstatusdescriptorid) FROM stdin; +1709 +1708 +1711 +1710 +1712 +1713 +1714 +1715 +\. + + +-- +-- Data for Name: organizationdepartment; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.organizationdepartment (organizationdepartmentid, academicsubjectdescriptorid, parenteducationorganizationid) FROM stdin; +\. + + +-- +-- Data for Name: othernametypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.othernametypedescriptor (othernametypedescriptorid) FROM stdin; +1716 +1717 +1719 +1718 +\. + + +-- +-- Data for Name: parent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parent (parentusi, personaltitleprefix, firstname, middlename, lastsurname, generationcodesuffix, maidenname, sexdescriptorid, loginid, personid, sourcesystemdescriptorid, highestcompletedlevelofeducationdescriptorid, parentuniqueid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: parentaddress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentaddress (addresstypedescriptorid, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername, apartmentroomsuitenumber, buildingsitenumber, nameofcounty, countyfipscode, latitude, longitude, donotpublishindicator, congressionaldistrict, localedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentaddressperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentaddressperiod (addresstypedescriptorid, begindate, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentelectronicmail; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentelectronicmail (electronicmailaddress, electronicmailtypedescriptorid, parentusi, primaryemailaddressindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentinternationaladdress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentinternationaladdress (addresstypedescriptorid, parentusi, addressline1, addressline2, addressline3, addressline4, countrydescriptorid, latitude, longitude, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentlanguage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentlanguage (languagedescriptorid, parentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentlanguageuse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentlanguageuse (languagedescriptorid, languageusedescriptorid, parentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentothername; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentothername (othernametypedescriptorid, parentusi, personaltitleprefix, firstname, middlename, lastsurname, generationcodesuffix, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parentpersonalidentificationdocument; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parentpersonalidentificationdocument (identificationdocumentusedescriptorid, parentusi, personalinformationverificationdescriptorid, documenttitle, documentexpirationdate, issuerdocumentidentificationcode, issuername, issuercountrydescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: parenttelephone; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.parenttelephone (parentusi, telephonenumber, telephonenumbertypedescriptorid, orderofpriority, textmessagecapabilityindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: participationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.participationdescriptor (participationdescriptorid) FROM stdin; +1721 +1722 +1723 +1720 +\. + + +-- +-- Data for Name: participationstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.participationstatusdescriptor (participationstatusdescriptorid) FROM stdin; +1724 +1728 +1725 +1727 +1726 +\. + + +-- +-- Data for Name: payroll; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.payroll (accountidentifier, asofdate, educationorganizationid, fiscalyear, staffusi, amounttodate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: performancebaseconversiondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.performancebaseconversiondescriptor (performancebaseconversiondescriptorid) FROM stdin; +1729 +1733 +1730 +1732 +1734 +1731 +1735 +\. + + +-- +-- Data for Name: performanceleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.performanceleveldescriptor (performanceleveldescriptorid) FROM stdin; +1736 +1737 +1739 +1738 +1740 +1741 +1742 +1743 +1744 +1745 +1746 +1747 +1748 +1749 +\. + + +-- +-- Data for Name: person; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.person (personid, sourcesystemdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: personalinformationverificationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.personalinformationverificationdescriptor (personalinformationverificationdescriptorid) FROM stdin; +1750 +1754 +1757 +1758 +1759 +1762 +1763 +1764 +1753 +1751 +1756 +1761 +1752 +1755 +1760 +\. + + +-- +-- Data for Name: platformtypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.platformtypedescriptor (platformtypedescriptorid) FROM stdin; +1765 +1766 +\. + + +-- +-- Data for Name: populationserveddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.populationserveddescriptor (populationserveddescriptorid) FROM stdin; +1767 +1769 +1771 +1773 +1777 +1774 +1768 +1770 +1772 +1775 +1776 +\. + + +-- +-- Data for Name: postingresultdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.postingresultdescriptor (postingresultdescriptorid) FROM stdin; +1778 +1779 +\. + + +-- +-- Data for Name: postsecondaryevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.postsecondaryevent (eventdate, postsecondaryeventcategorydescriptorid, studentusi, postsecondaryinstitutionid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: postsecondaryeventcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.postsecondaryeventcategorydescriptor (postsecondaryeventcategorydescriptorid) FROM stdin; +1780 +1783 +1785 +1786 +1789 +1790 +1781 +1782 +1784 +1787 +1788 +\. + + +-- +-- Data for Name: postsecondaryinstitution; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.postsecondaryinstitution (postsecondaryinstitutionid, postsecondaryinstitutionleveldescriptorid, administrativefundingcontroldescriptorid) FROM stdin; +\. + + +-- +-- Data for Name: postsecondaryinstitutionleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.postsecondaryinstitutionleveldescriptor (postsecondaryinstitutionleveldescriptorid) FROM stdin; +1792 +1793 +1791 +\. + + +-- +-- Data for Name: postsecondaryinstitutionmediumofinstruction; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.postsecondaryinstitutionmediumofinstruction (mediumofinstructiondescriptorid, postsecondaryinstitutionid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: primarylearningdeviceaccessdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.primarylearningdeviceaccessdescriptor (primarylearningdeviceaccessdescriptorid) FROM stdin; +1794 +1795 +1796 +\. + + +-- +-- Data for Name: primarylearningdeviceawayfromschooldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.primarylearningdeviceawayfromschooldescriptor (primarylearningdeviceawayfromschooldescriptorid) FROM stdin; +1797 +1798 +1801 +1803 +1800 +1802 +1799 +\. + + +-- +-- Data for Name: primarylearningdeviceproviderdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.primarylearningdeviceproviderdescriptor (primarylearningdeviceproviderdescriptorid) FROM stdin; +1804 +1806 +1805 +\. + + +-- +-- Data for Name: proficiencydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.proficiencydescriptor (proficiencydescriptorid) FROM stdin; +1807 +1808 +\. + + +-- +-- Data for Name: program; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.program (educationorganizationid, programname, programtypedescriptorid, programid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: programassignmentdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programassignmentdescriptor (programassignmentdescriptorid) FROM stdin; +1811 +1812 +1813 +1809 +1814 +1810 +\. + + +-- +-- Data for Name: programcharacteristic; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programcharacteristic (educationorganizationid, programcharacteristicdescriptorid, programname, programtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: programcharacteristicdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programcharacteristicdescriptor (programcharacteristicdescriptorid) FROM stdin; +1818 +\. + + +-- +-- Data for Name: programlearningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programlearningobjective (educationorganizationid, learningobjectiveid, namespace, programname, programtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: programlearningstandard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programlearningstandard (educationorganizationid, learningstandardid, programname, programtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: programservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programservice (educationorganizationid, programname, programtypedescriptorid, servicedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: programsponsor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programsponsor (educationorganizationid, programname, programsponsordescriptorid, programtypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: programsponsordescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programsponsordescriptor (programsponsordescriptorid) FROM stdin; +1815 +1819 +1823 +1817 +1820 +1822 +1825 +1826 +1827 +1816 +1821 +1824 +\. + + +-- +-- Data for Name: programtypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.programtypedescriptor (programtypedescriptorid) FROM stdin; +1828 +1832 +1835 +1838 +1842 +1845 +1847 +1850 +1853 +1856 +1857 +1860 +1862 +1863 +1866 +1868 +1869 +1872 +1873 +1876 +1878 +1879 +1882 +1884 +1829 +1831 +1833 +1836 +1837 +1839 +1840 +1841 +1843 +1844 +1846 +1848 +1849 +1851 +1852 +1854 +1855 +1858 +1859 +1861 +1864 +1865 +1867 +1870 +1871 +1874 +1875 +1877 +1880 +1881 +1883 +1885 +1886 +1887 +1830 +1834 +\. + + +-- +-- Data for Name: progressdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.progressdescriptor (progressdescriptorid) FROM stdin; +1889 +1888 +1890 +\. + + +-- +-- Data for Name: progressleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.progressleveldescriptor (progressleveldescriptorid) FROM stdin; +1891 +1892 +1893 +1894 +\. + + +-- +-- Data for Name: providercategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.providercategorydescriptor (providercategorydescriptorid) FROM stdin; +1896 +1900 +1909 +1911 +1915 +1898 +1895 +1899 +1901 +1902 +1903 +1904 +1905 +1906 +1907 +1908 +1910 +1912 +1913 +1914 +1897 +\. + + +-- +-- Data for Name: providerprofitabilitydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.providerprofitabilitydescriptor (providerprofitabilitydescriptorid) FROM stdin; +1917 +1918 +1916 +\. + + +-- +-- Data for Name: providerstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.providerstatusdescriptor (providerstatusdescriptorid) FROM stdin; +1919 +1920 +1921 +\. + + +-- +-- Data for Name: publicationstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.publicationstatusdescriptor (publicationstatusdescriptorid) FROM stdin; +1924 +1925 +1922 +1923 +1926 +\. + + +-- +-- Data for Name: questionformdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.questionformdescriptor (questionformdescriptorid) FROM stdin; +1927 +1932 +1930 +1934 +1928 +1933 +1929 +1931 +\. + + +-- +-- Data for Name: racedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.racedescriptor (racedescriptorid) FROM stdin; +1935 +1938 +1940 +1936 +1941 +1937 +1939 +\. + + +-- +-- Data for Name: reasonexiteddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reasonexiteddescriptor (reasonexiteddescriptorid) FROM stdin; +1942 +1946 +1950 +1952 +1945 +1948 +1943 +1947 +1951 +1944 +1949 +\. + + +-- +-- Data for Name: reasonnottesteddescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reasonnottesteddescriptor (reasonnottesteddescriptorid) FROM stdin; +1953 +1960 +1961 +1964 +1956 +1959 +1954 +1958 +1962 +1965 +1955 +1957 +1963 +1966 +\. + + +-- +-- Data for Name: recognitiontypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.recognitiontypedescriptor (recognitiontypedescriptorid) FROM stdin; +1967 +1973 +1978 +1970 +1977 +1968 +1972 +1975 +1969 +1971 +1974 +1976 +\. + + +-- +-- Data for Name: relationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.relationdescriptor (relationdescriptorid) FROM stdin; +1979 +1980 +1981 +1982 +1983 +1984 +1985 +1986 +1987 +1988 +1989 +1990 +1991 +1992 +1993 +1994 +1995 +1996 +1997 +1998 +1999 +2000 +2001 +2002 +2003 +2004 +2005 +2006 +2007 +2008 +2009 +2010 +2011 +2012 +2013 +2014 +2015 +2016 +2017 +2018 +2019 +2020 +2021 +2022 +2023 +2024 +2025 +2026 +2027 +2028 +\. + + +-- +-- Data for Name: repeatidentifierdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.repeatidentifierdescriptor (repeatidentifierdescriptorid) FROM stdin; +2030 +2031 +2032 +2029 +2033 +2034 +2035 +2036 +\. + + +-- +-- Data for Name: reportcard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reportcard (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi, gpagivengradingperiod, gpacumulative, numberofdaysabsent, numberofdaysinattendance, numberofdaystardy, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: reportcardgrade; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reportcardgrade (begindate, educationorganizationid, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: reportcardgradepointaverage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reportcardgradepointaverage (educationorganizationid, gradepointaveragetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi, iscumulative, gradepointaveragevalue, maxgradepointaveragevalue, createdate) FROM stdin; +\. + + +-- +-- Data for Name: reportcardstudentcompetencyobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reportcardstudentcompetencyobjective (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: reportcardstudentlearningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reportcardstudentlearningobjective (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: reporterdescriptiondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.reporterdescriptiondescriptor (reporterdescriptiondescriptorid) FROM stdin; +2037 +2041 +2040 +2038 +2042 +2039 +\. + + +-- +-- Data for Name: residencystatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.residencystatusdescriptor (residencystatusdescriptorid) FROM stdin; +2044 +2046 +2043 +2045 +2047 +\. + + +-- +-- Data for Name: responseindicatordescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.responseindicatordescriptor (responseindicatordescriptorid) FROM stdin; +2050 +2051 +2049 +2048 +\. + + +-- +-- Data for Name: responsibilitydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.responsibilitydescriptor (responsibilitydescriptorid) FROM stdin; +2052 +2054 +2056 +2059 +2055 +2058 +2053 +2057 +\. + + +-- +-- Data for Name: restraintevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.restraintevent (restrainteventidentifier, schoolid, studentusi, eventdate, educationalenvironmentdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: restrainteventprogram; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.restrainteventprogram (educationorganizationid, programname, programtypedescriptorid, restrainteventidentifier, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: restrainteventreason; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.restrainteventreason (restrainteventidentifier, restrainteventreasondescriptorid, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: restrainteventreasondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.restrainteventreasondescriptor (restrainteventreasondescriptorid) FROM stdin; +2061 +2060 +2062 +\. + + +-- +-- Data for Name: resultdatatypetypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.resultdatatypetypedescriptor (resultdatatypetypedescriptorid) FROM stdin; +2063 +2065 +2066 +2064 +2067 +2068 +\. + + +-- +-- Data for Name: retestindicatordescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.retestindicatordescriptor (retestindicatordescriptorid) FROM stdin; +2069 +2071 +2072 +2070 +\. + + +-- +-- Data for Name: school; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.school (schoolid, schooltypedescriptorid, charterstatusdescriptorid, titleipartaschooldesignationdescriptorid, magnetspecialprogramemphasisschooldescriptorid, administrativefundingcontroldescriptorid, internetaccessdescriptorid, localeducationagencyid, charterapprovalagencytypedescriptorid, charterapprovalschoolyear) FROM stdin; +\. + + +-- +-- Data for Name: schoolcategory; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schoolcategory (schoolcategorydescriptorid, schoolid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: schoolcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schoolcategorydescriptor (schoolcategorydescriptorid) FROM stdin; +2075 +2077 +2081 +2083 +2085 +2086 +2087 +2076 +2073 +2078 +2079 +2084 +2074 +2080 +2082 +\. + + +-- +-- Data for Name: schoolchoiceimplementstatusdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schoolchoiceimplementstatusdescriptor (schoolchoiceimplementstatusdescriptorid) FROM stdin; +2090 +2088 +2091 +2089 +\. + + +-- +-- Data for Name: schoolfoodserviceprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schoolfoodserviceprogramservicedescriptor (schoolfoodserviceprogramservicedescriptorid) FROM stdin; +2093 +2094 +2096 +2097 +2100 +2103 +2104 +2105 +2106 +2095 +2098 +2102 +2092 +2099 +2101 +\. + + +-- +-- Data for Name: schoolgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schoolgradelevel (gradeleveldescriptorid, schoolid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: schooltypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schooltypedescriptor (schooltypedescriptorid) FROM stdin; +2109 +2110 +2108 +2107 +\. + + +-- +-- Data for Name: schoolyeartype; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.schoolyeartype (schoolyear, schoolyeardescription, currentschoolyear, createdate, lastmodifieddate, id, changeversion) FROM stdin; +2022 2021-2022 t 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 dedc14ff-4b24-48bc-a018-a2ebdaa1b12f 1 +1991 1990-1991 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 8da5a6c9-5a83-4926-bfbf-65ef90b97159 2 +1992 1991-1992 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 f9ebef95-6764-4d15-8a1a-cf467958bd69 3 +1993 1992-1993 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 2f43ec98-8a8a-4c3b-9acc-4fc076f8a524 4 +1994 1993-1994 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 7f8165e7-4146-4b59-90fd-594a533ce660 5 +1995 1994-1995 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 02e56425-649a-4c78-ba70-63baed781275 6 +1996 1995-1996 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 ca787756-dc3b-4d3d-94d6-9a89919eb888 7 +1997 1996-1997 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 4647b826-205a-4c56-b5e0-098914d46abc 8 +1998 1997-1998 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 64086775-7b24-4a2f-b0cf-83ec23ceb212 9 +1999 1998-1999 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 bd851109-36e9-4a79-baaa-b1aa5805683b 10 +2000 1999-2000 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 d820a426-6120-457f-ae61-82267b798f6f 11 +2001 2000-2001 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 bd4eb082-bb74-434f-89d9-3b3e081b0d0c 12 +2002 2001-2002 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 a0d1e302-467e-4c98-b8ad-a0790fd27042 13 +2003 2002-2003 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 636f5d0e-d664-4890-9a90-55ccb0f25f02 14 +2004 2003-2004 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 4912f34b-0e4b-44b6-bb7c-8bbf5243c693 15 +2005 2004-2005 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 66035515-53fc-4fa6-8e2b-e40a9ff59985 16 +2006 2005-2006 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 60d98f7e-11a2-4cc7-89ab-4ea706841434 17 +2007 2006-2007 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 6ac405e5-0869-4588-a6cc-dc5c3f96d727 18 +2008 2007-2008 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 1ed65596-dc63-411b-9186-a1b69199401a 19 +2009 2008-2009 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 3ddb0438-cfc9-4668-9a3b-dab3a7a23ced 20 +2010 2009-2010 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 4fd3e585-9639-4697-a2db-e1b61fe67376 21 +2011 2010-2011 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 d28c0b67-449f-464a-aea0-e986f666b715 22 +2012 2011-2012 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 dbfc6314-df74-439a-ba2b-4199bbebbf3c 23 +2013 2012-2013 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 553a4f13-dc63-4753-a077-7a53f0896d52 24 +2014 2013-2014 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 495c142a-b4e7-4378-99de-03a8b2cf6971 25 +2015 2014-2015 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 47c2344e-ae8e-4813-b788-79c20f2e7d9b 26 +2016 2015-2016 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 459a5df2-dee9-406f-b84f-436910a29784 27 +2017 2016-2017 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 2462c45e-1280-4809-aa01-abf02dceea30 28 +2018 2017-2018 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 d28a5916-05a9-478a-a0dd-c4766d221aa9 29 +2019 2018-2019 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 abea70a2-cfde-4d00-a531-59a2a019b262 30 +2020 2019-2020 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 059a7479-140b-4f31-9ec9-9c9e8868128a 31 +2021 2020-2021 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 de5886de-5164-4f0d-b086-788c466a84fc 32 +2023 2022-2023 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 9cbe089a-e818-47ad-920b-15e88ac076f6 33 +2024 2023-2024 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 c0dc8e84-b895-4018-a511-6c80a8d6d1c4 34 +2025 2024-2025 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 8de2ee06-166d-4afe-89c8-a7994e7cbf55 35 +2026 2025-2026 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 8db06820-2a34-4865-8866-728e25253f58 36 +2027 2026-2027 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 690a98e2-d066-42e9-989e-5396814b4afc 37 +2028 2027-2028 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 5696608d-2aee-48c1-850c-6ac946ac3b1c 38 +2029 2028-2029 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 b398b284-f3d5-4933-b05f-55709b68b269 39 +2030 2029-2030 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 27cd8d58-5ede-4a8c-92b6-2353ef9381d5 40 +2031 2030-2031 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 7eaf3013-1496-4305-b446-a3da0f2877e2 41 +2032 2031-2032 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 24dcddbd-0568-4aa3-a09f-edae0408afeb 42 +2033 2032-2033 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 7961808c-e84a-4810-9e1f-9e381ba682b9 43 +2034 2033-2034 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 ba5d2cb7-73bf-4ede-8f68-1cad3800b21a 44 +2035 2034-2035 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 ce1962a7-f21f-4fbd-b97f-ff9744952118 45 +2036 2035-2036 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 18664f10-a857-4838-9f37-99072adc93c1 46 +2037 2036-2037 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 ecc734b1-3be3-443c-8864-b02d018c2656 47 +2038 2037-2038 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 f0bf68b2-f644-472b-940d-9ccc427ecc7d 48 +2039 2038-2039 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 58a596ac-0cde-4e4c-be91-a64e4ce1c886 49 +2040 2039-2040 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 0a67b661-ce23-4505-8523-6bf481b040e5 50 +2041 2040-2041 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 053ab562-087a-4234-8058-8e865714d576 51 +2042 2041-2042 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 7efa2cb8-d759-45d8-bef0-603d972faa6d 52 +2043 2042-2043 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 f445b7b3-9805-42ed-9178-5e89308665b5 53 +2044 2043-2044 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 a42f3f4c-7678-477e-a7c2-0985fbafdf2c 54 +2045 2044-2045 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 aea2e01e-1181-4572-b710-c0f117eb2255 55 +2046 2045-2046 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 d56fef42-0b73-4fbb-9c0c-9e09965d3b95 56 +2047 2046-2047 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 00ec5306-ad9e-4628-bd08-ab61c1d2e2cc 57 +2048 2047-2048 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 5fd94f6b-2630-4ace-b6ca-81db23bbb8db 58 +2049 2048-2049 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 29830d50-2ef6-4eea-9351-3fc97e4901b5 59 +2050 2049-2050 f 2021-11-05 13:58:51.688208 2021-11-05 13:58:51.688208 da17423d-c4b1-419d-9816-f79827ac55ed 60 +\. + + +-- +-- Data for Name: section; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.section (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, sequenceofcourse, educationalenvironmentdescriptorid, mediumofinstructiondescriptorid, populationserveddescriptorid, availablecredits, availablecredittypedescriptorid, availablecreditconversion, instructionlanguagedescriptorid, locationschoolid, locationclassroomidentificationcode, officialattendanceperiod, sectionname, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sectionattendancetakenevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectionattendancetakenevent (calendarcode, date, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, eventdate, staffusi, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sectioncharacteristic; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectioncharacteristic (localcoursecode, schoolid, schoolyear, sectioncharacteristicdescriptorid, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: sectioncharacteristicdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectioncharacteristicdescriptor (sectioncharacteristicdescriptorid) FROM stdin; +2111 +2112 +\. + + +-- +-- Data for Name: sectionclassperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectionclassperiod (classperiodname, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: sectioncourselevelcharacteristic; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectioncourselevelcharacteristic (courselevelcharacteristicdescriptorid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: sectionofferedgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectionofferedgradelevel (gradeleveldescriptorid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: sectionprogram; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sectionprogram (educationorganizationid, localcoursecode, programname, programtypedescriptorid, schoolid, schoolyear, sectionidentifier, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: separationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.separationdescriptor (separationdescriptorid) FROM stdin; +2113 +2114 +2115 +2116 +\. + + +-- +-- Data for Name: separationreasondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.separationreasondescriptor (separationreasondescriptorid) FROM stdin; +2119 +2118 +2120 +2121 +2122 +2123 +2125 +2126 +2127 +2117 +2124 +\. + + +-- +-- Data for Name: servicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.servicedescriptor (servicedescriptorid) FROM stdin; +2128 +2130 +2131 +2133 +2134 +2135 +2136 +2137 +2138 +2139 +2141 +2142 +2129 +2132 +2140 +\. + + +-- +-- Data for Name: session; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.session (schoolid, schoolyear, sessionname, begindate, enddate, termdescriptorid, totalinstructionaldays, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sessionacademicweek; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sessionacademicweek (schoolid, schoolyear, sessionname, weekidentifier, createdate) FROM stdin; +\. + + +-- +-- Data for Name: sessiongradingperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sessiongradingperiod (gradingperioddescriptorid, periodsequence, schoolid, schoolyear, sessionname, createdate) FROM stdin; +\. + + +-- +-- Data for Name: sexdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sexdescriptor (sexdescriptorid) FROM stdin; +2144 +2146 +2145 +2143 +\. + + +-- +-- Data for Name: sourcesystemdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.sourcesystemdescriptor (sourcesystemdescriptorid) FROM stdin; +2148 +2150 +2147 +2149 +\. + + +-- +-- Data for Name: specialeducationprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.specialeducationprogramservicedescriptor (specialeducationprogramservicedescriptorid) FROM stdin; +2151 +2154 +2152 +2155 +2157 +2158 +2159 +2161 +2162 +2153 +2156 +2160 +\. + + +-- +-- Data for Name: specialeducationsettingdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.specialeducationsettingdescriptor (specialeducationsettingdescriptorid) FROM stdin; +2163 +2165 +2168 +2170 +2166 +2167 +2164 +2169 +\. + + +-- +-- Data for Name: staff; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staff (staffusi, personaltitleprefix, firstname, middlename, lastsurname, generationcodesuffix, maidenname, sexdescriptorid, birthdate, hispaniclatinoethnicity, oldethnicitydescriptorid, citizenshipstatusdescriptorid, highestcompletedlevelofeducationdescriptorid, yearsofpriorprofessionalexperience, yearsofpriorteachingexperience, loginid, highlyqualifiedteacher, personid, sourcesystemdescriptorid, staffuniqueid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffabsenceevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffabsenceevent (absenceeventcategorydescriptorid, eventdate, staffusi, absenceeventreason, hoursabsent, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffaddress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffaddress (addresstypedescriptorid, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername, apartmentroomsuitenumber, buildingsitenumber, nameofcounty, countyfipscode, latitude, longitude, donotpublishindicator, congressionaldistrict, localedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffaddressperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffaddressperiod (addresstypedescriptorid, begindate, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffancestryethnicorigin; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffancestryethnicorigin (ancestryethnicorigindescriptorid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffclassificationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffclassificationdescriptor (staffclassificationdescriptorid) FROM stdin; +2172 +2176 +2186 +2189 +2194 +2197 +2204 +2174 +2171 +2177 +2178 +2179 +2181 +2182 +2183 +2185 +2187 +2188 +2191 +2192 +2195 +2198 +2199 +2200 +2201 +2203 +2206 +2173 +2175 +2180 +2184 +2190 +2193 +2196 +2202 +2205 +\. + + +-- +-- Data for Name: staffcohortassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffcohortassociation (begindate, cohortidentifier, educationorganizationid, staffusi, enddate, studentrecordaccess, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffcredential; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffcredential (credentialidentifier, staffusi, stateofissuestateabbreviationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffdisciplineincidentassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffdisciplineincidentassociation (incidentidentifier, schoolid, staffusi, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffdisciplineincidentassociationdisciplineincidentpart_7fa4be; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be (disciplineincidentparticipationcodedescriptorid, incidentidentifier, schoolid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationassignmentassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffeducationorganizationassignmentassociation (begindate, educationorganizationid, staffclassificationdescriptorid, staffusi, positiontitle, enddate, orderofassignment, employmenteducationorganizationid, employmentstatusdescriptorid, employmenthiredate, credentialidentifier, stateofissuestateabbreviationdescriptorid, fulltimeequivalency, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationcontactassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffeducationorganizationcontactassociation (contacttitle, educationorganizationid, staffusi, contacttypedescriptorid, electronicmailaddress, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationcontactassociationaddress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffeducationorganizationcontactassociationaddress (contacttitle, educationorganizationid, staffusi, streetnumbername, apartmentroomsuitenumber, buildingsitenumber, city, stateabbreviationdescriptorid, postalcode, nameofcounty, countyfipscode, latitude, longitude, addresstypedescriptorid, donotpublishindicator, congressionaldistrict, localedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationcontactassociationaddressperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffeducationorganizationcontactassociationaddressperiod (begindate, contacttitle, educationorganizationid, staffusi, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationcontactassociationtelephone; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffeducationorganizationcontactassociationtelephone (contacttitle, educationorganizationid, staffusi, telephonenumber, telephonenumbertypedescriptorid, orderofpriority, textmessagecapabilityindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationemploymentassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffeducationorganizationemploymentassociation (educationorganizationid, employmentstatusdescriptorid, hiredate, staffusi, enddate, separationdescriptorid, separationreasondescriptorid, department, fulltimeequivalency, offerdate, hourlywage, credentialidentifier, stateofissuestateabbreviationdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffelectronicmail; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffelectronicmail (electronicmailaddress, electronicmailtypedescriptorid, staffusi, primaryemailaddressindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffidentificationcode; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffidentificationcode (staffidentificationsystemdescriptorid, staffusi, identificationcode, assigningorganizationidentificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffidentificationdocument; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffidentificationdocument (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, staffusi, documenttitle, documentexpirationdate, issuerdocumentidentificationcode, issuername, issuercountrydescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffidentificationsystemdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffidentificationsystemdescriptor (staffidentificationsystemdescriptorid) FROM stdin; +2207 +2210 +2208 +2212 +2213 +2214 +2215 +2217 +2221 +2209 +2211 +2216 +2218 +2219 +2220 +\. + + +-- +-- Data for Name: staffinternationaladdress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffinternationaladdress (addresstypedescriptorid, staffusi, addressline1, addressline2, addressline3, addressline4, countrydescriptorid, latitude, longitude, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: stafflanguage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stafflanguage (languagedescriptorid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: stafflanguageuse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stafflanguageuse (languagedescriptorid, languageusedescriptorid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffleave; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffleave (begindate, staffleaveeventcategorydescriptorid, staffusi, enddate, reason, substituteassigned, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffleaveeventcategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffleaveeventcategorydescriptor (staffleaveeventcategorydescriptorid) FROM stdin; +2222 +2225 +2227 +2229 +2231 +2232 +2233 +2235 +2237 +2238 +2224 +2226 +2230 +2234 +2236 +2239 +2223 +2228 +\. + + +-- +-- Data for Name: staffothername; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffothername (othernametypedescriptorid, staffusi, personaltitleprefix, firstname, middlename, lastsurname, generationcodesuffix, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffpersonalidentificationdocument; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffpersonalidentificationdocument (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, staffusi, documenttitle, documentexpirationdate, issuerdocumentidentificationcode, issuername, issuercountrydescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffprogramassociation (begindate, programeducationorganizationid, programname, programtypedescriptorid, staffusi, enddate, studentrecordaccess, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffrace; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffrace (racedescriptorid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffrecognition; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffrecognition (recognitiontypedescriptorid, staffusi, achievementtitle, achievementcategorydescriptorid, achievementcategorysystem, issuername, issueroriginurl, criteria, criteriaurl, evidencestatement, imageurl, recognitiondescription, recognitionawarddate, recognitionawardexpiresdate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffschoolassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffschoolassociation (programassignmentdescriptorid, schoolid, staffusi, calendarcode, schoolyear, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffschoolassociationacademicsubject; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffschoolassociationacademicsubject (academicsubjectdescriptorid, programassignmentdescriptorid, schoolid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffschoolassociationgradelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffschoolassociationgradelevel (gradeleveldescriptorid, programassignmentdescriptorid, schoolid, staffusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffsectionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffsectionassociation (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, staffusi, classroompositiondescriptorid, begindate, enddate, highlyqualifiedteacher, teacherstudentdatalinkexclusion, percentagecontribution, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: stafftelephone; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stafftelephone (staffusi, telephonenumber, telephonenumbertypedescriptorid, orderofpriority, textmessagecapabilityindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: stafftribalaffiliation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stafftribalaffiliation (staffusi, tribalaffiliationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: staffvisa; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.staffvisa (staffusi, visadescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: stateabbreviationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stateabbreviationdescriptor (stateabbreviationdescriptorid) FROM stdin; +2242 +2243 +2240 +2244 +2245 +2247 +2249 +2248 +2251 +2252 +2253 +2254 +2256 +2258 +2259 +2260 +2261 +2262 +2263 +2264 +2265 +2266 +2267 +2268 +2269 +2270 +2272 +2273 +2274 +2276 +2277 +2278 +2280 +2281 +2282 +2283 +2285 +2284 +2287 +2288 +2289 +2291 +2292 +2293 +2294 +2295 +2296 +2297 +2298 +2299 +2300 +2301 +2241 +2246 +2250 +2255 +2257 +2271 +2275 +2279 +2286 +2290 +\. + + +-- +-- Data for Name: stateeducationagency; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stateeducationagency (stateeducationagencyid) FROM stdin; +\. + + +-- +-- Data for Name: stateeducationagencyaccountability; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stateeducationagencyaccountability (schoolyear, stateeducationagencyid, ctegraduationrateinclusion, createdate) FROM stdin; +\. + + +-- +-- Data for Name: stateeducationagencyfederalfunds; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.stateeducationagencyfederalfunds (fiscalyear, stateeducationagencyid, federalprogramsfundingallocation, createdate) FROM stdin; +\. + + +-- +-- Data for Name: student; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.student (studentusi, personaltitleprefix, firstname, middlename, lastsurname, generationcodesuffix, maidenname, birthdate, birthcity, birthstateabbreviationdescriptorid, birthinternationalprovince, birthcountrydescriptorid, dateenteredus, multiplebirthstatus, birthsexdescriptorid, citizenshipstatusdescriptorid, personid, sourcesystemdescriptorid, studentuniqueid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecord; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecord (educationorganizationid, schoolyear, studentusi, termdescriptorid, cumulativeearnedcredits, cumulativeearnedcredittypedescriptorid, cumulativeearnedcreditconversion, cumulativeattemptedcredits, cumulativeattemptedcredittypedescriptorid, cumulativeattemptedcreditconversion, cumulativegradepointsearned, cumulativegradepointaverage, gradevaluequalifier, projectedgraduationdate, sessionearnedcredits, sessionearnedcredittypedescriptorid, sessionearnedcreditconversion, sessionattemptedcredits, sessionattemptedcredittypedescriptorid, sessionattemptedcreditconversion, sessiongradepointsearned, sessiongradepointaverage, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecordacademichonor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecordacademichonor (academichonorcategorydescriptorid, educationorganizationid, honordescription, schoolyear, studentusi, termdescriptorid, achievementtitle, achievementcategorydescriptorid, achievementcategorysystem, issuername, issueroriginurl, criteria, criteriaurl, evidencestatement, imageurl, honorawarddate, honorawardexpiresdate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecordclassranking; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecordclassranking (educationorganizationid, schoolyear, studentusi, termdescriptorid, classrank, totalnumberinclass, percentageranking, classrankingdate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecorddiploma; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecorddiploma (diplomaawarddate, diplomatypedescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid, achievementtitle, achievementcategorydescriptorid, achievementcategorysystem, issuername, issueroriginurl, criteria, criteriaurl, evidencestatement, imageurl, diplomaleveldescriptorid, ctecompleter, diplomadescription, diplomaawardexpiresdate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecordgradepointaverage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecordgradepointaverage (educationorganizationid, gradepointaveragetypedescriptorid, schoolyear, studentusi, termdescriptorid, iscumulative, gradepointaveragevalue, maxgradepointaveragevalue, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecordrecognition; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecordrecognition (educationorganizationid, recognitiontypedescriptorid, schoolyear, studentusi, termdescriptorid, achievementtitle, achievementcategorydescriptorid, achievementcategorysystem, issuername, issueroriginurl, criteria, criteriaurl, evidencestatement, imageurl, recognitiondescription, recognitionawarddate, recognitionawardexpiresdate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecordreportcard; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentacademicrecordreportcard (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, schoolyear, studentusi, termdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessment; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessment (assessmentidentifier, namespace, studentassessmentidentifier, studentusi, administrationdate, administrationenddate, serialnumber, administrationlanguagedescriptorid, administrationenvironmentdescriptorid, retestindicatordescriptorid, reasonnottesteddescriptorid, whenassessedgradeleveldescriptorid, eventcircumstancedescriptorid, eventdescription, schoolyear, platformtypedescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentaccommodation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentaccommodation (accommodationdescriptorid, assessmentidentifier, namespace, studentassessmentidentifier, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentitem; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentitem (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi, assessmentresponse, descriptivefeedback, responseindicatordescriptorid, assessmentitemresultdescriptorid, rawscoreresult, timeassessed, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentperformancelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentperformancelevel (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, performanceleveldescriptorid, studentassessmentidentifier, studentusi, performancelevelmet, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentscoreresult; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentscoreresult (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, studentassessmentidentifier, studentusi, result, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentstudentobjectiveassessment; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentstudentobjectiveassessment (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentstudentobjectiveassessmentperformancelevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentstudentobjectiveassessmentperformancelevel (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, performanceleveldescriptorid, studentassessmentidentifier, studentusi, performancelevelmet, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentassessmentstudentobjectiveassessmentscoreresult; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentassessmentstudentobjectiveassessmentscoreresult (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, studentassessmentidentifier, studentusi, result, resultdatatypetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentcharacteristicdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcharacteristicdescriptor (studentcharacteristicdescriptorid) FROM stdin; +2304 +2305 +2302 +2307 +2308 +2309 +2311 +2312 +2315 +2303 +2306 +2310 +2313 +2314 +\. + + +-- +-- Data for Name: studentcohortassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcohortassociation (begindate, cohortidentifier, educationorganizationid, studentusi, enddate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentcohortassociationsection; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcohortassociationsection (begindate, cohortidentifier, educationorganizationid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentcompetencyobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcompetencyobjective (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi, competencyleveldescriptorid, diagnosticstatement, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentcompetencyobjectivegeneralstudentprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcompetencyobjectivegeneralstudentprogramassociation (begindate, educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentcompetencyobjectivestudentsectionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcompetencyobjectivestudentsectionassociation (begindate, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentcteprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcteprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, nontraditionalgenderstatus, privatecteprogram, technicalskillsassessmentdescriptorid) FROM stdin; +\. + + +-- +-- Data for Name: studentcteprogramassociationcteprogram; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcteprogramassociationcteprogram (begindate, careerpathwaydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, cipcode, primarycteprogramindicator, cteprogramcompletionindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentcteprogramassociationcteprogramservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcteprogramassociationcteprogramservice (begindate, cteprogramservicedescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, cipcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentcteprogramassociationservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentcteprogramassociationservice (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, servicedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentdisciplineincidentassociation (incidentidentifier, schoolid, studentusi, studentparticipationcodedescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentassociationbehavior; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentdisciplineincidentassociationbehavior (behaviordescriptorid, incidentidentifier, schoolid, studentusi, behaviordetaileddescription, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentbehaviorassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentdisciplineincidentbehaviorassociation (behaviordescriptorid, incidentidentifier, schoolid, studentusi, behaviordetaileddescription, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 (behaviordescriptorid, disciplineincidentparticipationcodedescriptorid, incidentidentifier, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentnonoffenderassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentdisciplineincidentnonoffenderassociation (incidentidentifier, schoolid, studentusi, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentnonoffenderassociationdisciplin_4c979a; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a (disciplineincidentparticipationcodedescriptorid, incidentidentifier, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociation (educationorganizationid, studentusi, sexdescriptorid, profilethumbnail, hispaniclatinoethnicity, oldethnicitydescriptorid, limitedenglishproficiencydescriptorid, loginid, primarylearningdeviceawayfromschooldescriptorid, primarylearningdeviceaccessdescriptorid, primarylearningdeviceproviderdescriptorid, internetaccessinresidence, barriertointernetaccessinresidencedescriptorid, internetaccesstypeinresidencedescriptorid, internetperformanceinresidencedescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationaddress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationaddress (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi, apartmentroomsuitenumber, buildingsitenumber, nameofcounty, countyfipscode, latitude, longitude, donotpublishindicator, congressionaldistrict, localedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationaddressperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationaddressperiod (addresstypedescriptorid, begindate, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationancestryethnicorigin; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationancestryethnicorigin (ancestryethnicorigindescriptorid, educationorganizationid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationcohortyear; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationcohortyear (cohortyeartypedescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationdisability; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationdisability (disabilitydescriptorid, educationorganizationid, studentusi, disabilitydiagnosis, orderofdisability, disabilitydeterminationsourcetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationdisabilitydesignation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationdisabilitydesignation (disabilitydescriptorid, disabilitydesignationdescriptorid, educationorganizationid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationelectronicmail; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationelectronicmail (educationorganizationid, electronicmailaddress, electronicmailtypedescriptorid, studentusi, primaryemailaddressindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationinternationaladdress; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationinternationaladdress (addresstypedescriptorid, educationorganizationid, studentusi, addressline1, addressline2, addressline3, addressline4, countrydescriptorid, latitude, longitude, begindate, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationlanguage; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationlanguage (educationorganizationid, languagedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationlanguageuse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationlanguageuse (educationorganizationid, languagedescriptorid, languageusedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationprogramparticipat_810575; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationprogramparticipat_810575 (educationorganizationid, programcharacteristicdescriptorid, programtypedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationprogramparticipation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationprogramparticipation (educationorganizationid, programtypedescriptorid, studentusi, begindate, enddate, designatedby, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationrace; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationrace (educationorganizationid, racedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationstudentcharacteri_a18fcf; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf (begindate, educationorganizationid, studentcharacteristicdescriptorid, studentusi, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationstudentcharacteristic; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationstudentcharacteristic (educationorganizationid, studentcharacteristicdescriptorid, studentusi, designatedby, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationstudentidentifica_c15030; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationstudentidentifica_c15030 (assigningorganizationidentificationcode, educationorganizationid, studentidentificationsystemdescriptorid, studentusi, identificationcode, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationstudentindicator; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationstudentindicator (educationorganizationid, indicatorname, studentusi, indicatorgroup, indicator, designatedby, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationstudentindicatorperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationstudentindicatorperiod (begindate, educationorganizationid, indicatorname, studentusi, enddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationtelephone; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationtelephone (educationorganizationid, studentusi, telephonenumber, telephonenumbertypedescriptorid, orderofpriority, textmessagecapabilityindicator, donotpublishindicator, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociationtribalaffiliation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationassociationtribalaffiliation (educationorganizationid, studentusi, tribalaffiliationdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationresponsibilityassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenteducationorganizationresponsibilityassociation (begindate, educationorganizationid, responsibilitydescriptorid, studentusi, enddate, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentgradebookentry; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentgradebookentry (begindate, dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, datefulfilled, lettergradeearned, numericgradeearned, competencyleveldescriptorid, diagnosticstatement, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studenthomelessprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenthomelessprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, homelessprimarynighttimeresidencedescriptorid, awaitingfostercare, homelessunaccompaniedyouth) FROM stdin; +\. + + +-- +-- Data for Name: studenthomelessprogramassociationhomelessprogramservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenthomelessprogramassociationhomelessprogramservice (begindate, educationorganizationid, homelessprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentidentificationdocument; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentidentificationdocument (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, studentusi, documenttitle, documentexpirationdate, issuerdocumentidentificationcode, issuername, issuercountrydescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentidentificationsystemdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentidentificationsystemdescriptor (studentidentificationsystemdescriptorid) FROM stdin; +2318 +2317 +2319 +2316 +2320 +2321 +2322 +2323 +2324 +2325 +2326 +2327 +\. + + +-- +-- Data for Name: studentinterventionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentinterventionassociation (educationorganizationid, interventionidentificationcode, studentusi, cohortidentifier, cohorteducationorganizationid, diagnosticstatement, dosage, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentinterventionassociationinterventioneffectiveness; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentinterventionassociationinterventioneffectiveness (diagnosisdescriptorid, educationorganizationid, gradeleveldescriptorid, interventionidentificationcode, populationserveddescriptorid, studentusi, improvementindex, interventioneffectivenessratingdescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentinterventionattendanceevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentinterventionattendanceevent (attendanceeventcategorydescriptorid, educationorganizationid, eventdate, interventionidentificationcode, studentusi, attendanceeventreason, educationalenvironmentdescriptorid, eventduration, interventionduration, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentlanguageinstructionprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentlanguageinstructionprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, englishlearnerparticipation, dosage) FROM stdin; +\. + + +-- +-- Data for Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, schoolyear, studentusi, participationdescriptorid, proficiencydescriptorid, progressdescriptorid, monitoreddescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentlanguageinstructionprogramassociationlanguageinst_268e07; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 (begindate, educationorganizationid, languageinstructionprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentlearningobjective; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentlearningobjective (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi, competencyleveldescriptorid, diagnosticstatement, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentlearningobjectivegeneralstudentprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentlearningobjectivegeneralstudentprogramassociation (begindate, educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, programeducationorganizationid, programname, programtypedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentlearningobjectivestudentsectionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentlearningobjectivestudentsectionassociation (begindate, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentmigranteducationprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentmigranteducationprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, priorityforservices, lastqualifyingmove, continuationofservicesreasondescriptorid, usinitialentry, usmostrecententry, usinitialschoolentry, qualifyingarrivaldate, stateresidencydate, eligibilityexpirationdate) FROM stdin; +\. + + +-- +-- Data for Name: studentmigranteducationprogramassociationmigranteducatio_d9dcd7; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 (begindate, educationorganizationid, migranteducationprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentneglectedordelinquentprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentneglectedordelinquentprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, neglectedordelinquentprogramdescriptorid, elaprogressleveldescriptorid, mathematicsprogressleveldescriptorid) FROM stdin; +\. + + +-- +-- Data for Name: studentneglectedordelinquentprogramassociationneglectedo_520251; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 (begindate, educationorganizationid, neglectedordelinquentprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentothername; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentothername (othernametypedescriptorid, studentusi, personaltitleprefix, firstname, middlename, lastsurname, generationcodesuffix, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentparentassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentparentassociation (parentusi, studentusi, relationdescriptorid, primarycontactstatus, liveswith, emergencycontactstatus, contactpriority, contactrestrictions, legalguardian, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentparticipationcodedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentparticipationcodedescriptor (studentparticipationcodedescriptorid) FROM stdin; +2330 +2328 +2331 +2329 +\. + + +-- +-- Data for Name: studentpersonalidentificationdocument; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentpersonalidentificationdocument (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, studentusi, documenttitle, documentexpirationdate, issuerdocumentidentificationcode, issuername, issuercountrydescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) FROM stdin; +\. + + +-- +-- Data for Name: studentprogramassociationservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentprogramassociationservice (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, servicedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentprogramattendanceevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentprogramattendanceevent (attendanceeventcategorydescriptorid, educationorganizationid, eventdate, programeducationorganizationid, programname, programtypedescriptorid, studentusi, attendanceeventreason, educationalenvironmentdescriptorid, eventduration, programattendanceduration, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentschoolassociation (entrydate, schoolid, studentusi, primaryschool, entrygradeleveldescriptorid, entrygradelevelreasondescriptorid, entrytypedescriptorid, repeatgradeindicator, classofschoolyear, schoolchoicetransfer, exitwithdrawdate, exitwithdrawtypedescriptorid, residencystatusdescriptorid, graduationplantypedescriptorid, educationorganizationid, graduationschoolyear, employedwhileenrolled, calendarcode, schoolyear, fulltimeequivalency, termcompletionindicator, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolassociationalternativegraduationplan; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentschoolassociationalternativegraduationplan (alternativeeducationorganizationid, alternativegraduationplantypedescriptorid, alternativegraduationschoolyear, entrydate, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolassociationeducationplan; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentschoolassociationeducationplan (educationplandescriptorid, entrydate, schoolid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolattendanceevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentschoolattendanceevent (attendanceeventcategorydescriptorid, eventdate, schoolid, schoolyear, sessionname, studentusi, attendanceeventreason, educationalenvironmentdescriptorid, eventduration, schoolattendanceduration, arrivaltime, departuretime, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolfoodserviceprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentschoolfoodserviceprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, directcertification) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, schoolfoodserviceprogramservicedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentsectionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentsectionassociation (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, enddate, homeroomindicator, repeatidentifierdescriptorid, teacherstudentdatalinkexclusion, attemptstatusdescriptorid, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentsectionattendanceevent; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentsectionattendanceevent (attendanceeventcategorydescriptorid, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, attendanceeventreason, educationalenvironmentdescriptorid, eventduration, sectionattendanceduration, arrivaltime, departuretime, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentsectionattendanceeventclassperiod; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentsectionattendanceeventclassperiod (attendanceeventcategorydescriptorid, classperiodname, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentspecialeducationprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, ideaeligibility, specialeducationsettingdescriptorid, specialeducationhoursperweek, schoolhoursperweek, multiplydisabled, medicallyfragile, lastevaluationdate, iepreviewdate, iepbegindate, iependdate) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociationdisability; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentspecialeducationprogramassociationdisability (begindate, disabilitydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, disabilitydiagnosis, orderofdisability, disabilitydeterminationsourcetypedescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociationdisabilitydesignation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentspecialeducationprogramassociationdisabilitydesignation (begindate, disabilitydescriptorid, disabilitydesignationdescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociationserviceprovider; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentspecialeducationprogramassociationserviceprovider (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, staffusi, studentusi, primaryprovider, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociationspecialeducatio_a51ff9; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociationspecialeducatio_bcba5c; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, staffusi, studentusi, primaryprovider, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenttitleipartaprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenttitleipartaprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, titleipartaparticipantdescriptorid) FROM stdin; +\. + + +-- +-- Data for Name: studenttitleipartaprogramassociationservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenttitleipartaprogramassociationservice (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, servicedescriptorid, studentusi, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studenttitleipartaprogramassociationtitleipartaprogramservice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studenttitleipartaprogramassociationtitleipartaprogramservice (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, titleipartaprogramservicedescriptorid, primaryindicator, servicebegindate, serviceenddate, createdate) FROM stdin; +\. + + +-- +-- Data for Name: studentvisa; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.studentvisa (studentusi, visadescriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: survey; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.survey (namespace, surveyidentifier, educationorganizationid, surveytitle, sessionname, schoolyear, schoolid, surveycategorydescriptorid, numberadministered, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveycategorydescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveycategorydescriptor (surveycategorydescriptorid) FROM stdin; +2333 +2332 +2335 +2337 +2338 +2339 +2340 +2334 +2336 +2341 +\. + + +-- +-- Data for Name: surveycourseassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveycourseassociation (coursecode, educationorganizationid, namespace, surveyidentifier, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyleveldescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyleveldescriptor (surveyleveldescriptorid) FROM stdin; +2342 +2343 +2348 +2349 +2351 +2352 +2354 +2356 +2357 +2360 +2361 +2362 +2365 +2345 +2347 +2353 +2359 +2363 +2344 +2346 +2350 +2355 +2358 +2364 +2366 +\. + + +-- +-- Data for Name: surveyprogramassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyprogramassociation (educationorganizationid, namespace, programname, programtypedescriptorid, surveyidentifier, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestion; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyquestion (namespace, questioncode, surveyidentifier, questionformdescriptorid, questiontext, surveysectiontitle, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestionmatrix; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyquestionmatrix (matrixelement, namespace, questioncode, surveyidentifier, minrawscore, maxrawscore, createdate) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestionresponse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyquestionresponse (namespace, questioncode, surveyidentifier, surveyresponseidentifier, noresponse, comment, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestionresponsechoice; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyquestionresponsechoice (namespace, questioncode, sortorder, surveyidentifier, numericvalue, textvalue, createdate) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestionresponsesurveyquestionmatrixelementresponse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyquestionresponsesurveyquestionmatrixelementresponse (matrixelement, namespace, questioncode, surveyidentifier, surveyresponseidentifier, numericresponse, textresponse, noresponse, minnumericresponse, maxnumericresponse, createdate) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestionresponsevalue; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyquestionresponsevalue (namespace, questioncode, surveyidentifier, surveyquestionresponsevalueidentifier, surveyresponseidentifier, numericresponse, textresponse, createdate) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyresponse (namespace, surveyidentifier, surveyresponseidentifier, responsedate, responsetime, electronicmailaddress, fullname, location, studentusi, parentusi, staffusi, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponseeducationorganizationtargetassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyresponseeducationorganizationtargetassociation (educationorganizationid, namespace, surveyidentifier, surveyresponseidentifier, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponsestafftargetassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyresponsestafftargetassociation (namespace, staffusi, surveyidentifier, surveyresponseidentifier, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponsesurveylevel; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveyresponsesurveylevel (namespace, surveyidentifier, surveyleveldescriptorid, surveyresponseidentifier, createdate) FROM stdin; +\. + + +-- +-- Data for Name: surveysection; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveysection (namespace, surveyidentifier, surveysectiontitle, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveysectionassociation (localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, surveyidentifier, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionresponse; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveysectionresponse (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle, sectionrating, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionresponseeducationorganizationtargetassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveysectionresponseeducationorganizationtargetassociation (educationorganizationid, namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionresponsestafftargetassociation; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.surveysectionresponsestafftargetassociation (namespace, staffusi, surveyidentifier, surveyresponseidentifier, surveysectiontitle, discriminator, createdate, lastmodifieddate, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: teachingcredentialbasisdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.teachingcredentialbasisdescriptor (teachingcredentialbasisdescriptorid) FROM stdin; +2369 +2370 +2367 +2372 +2371 +2374 +2368 +2373 +\. + + +-- +-- Data for Name: teachingcredentialdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.teachingcredentialdescriptor (teachingcredentialdescriptorid) FROM stdin; +2376 +2375 +2380 +2383 +2384 +2386 +2387 +2388 +2389 +2378 +2379 +2382 +2385 +2377 +2381 +\. + + +-- +-- Data for Name: technicalskillsassessmentdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.technicalskillsassessmentdescriptor (technicalskillsassessmentdescriptorid) FROM stdin; +2392 +2390 +2391 +\. + + +-- +-- Data for Name: telephonenumbertypedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.telephonenumbertypedescriptor (telephonenumbertypedescriptorid) FROM stdin; +2393 +2394 +2396 +2395 +2397 +2398 +2399 +2400 +\. + + +-- +-- Data for Name: termdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.termdescriptor (termdescriptorid) FROM stdin; +2401 +2402 +2406 +2405 +2409 +2410 +2411 +2412 +2413 +2414 +2415 +2404 +2407 +2416 +2403 +2408 +\. + + +-- +-- Data for Name: titleipartaparticipantdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.titleipartaparticipantdescriptor (titleipartaparticipantdescriptorid) FROM stdin; +2419 +2418 +2420 +2417 +2421 +\. + + +-- +-- Data for Name: titleipartaprogramservicedescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.titleipartaprogramservicedescriptor (titleipartaprogramservicedescriptorid) FROM stdin; +2424 +2425 +2422 +2426 +2428 +2429 +2430 +2423 +2427 +\. + + +-- +-- Data for Name: titleipartaschooldesignationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.titleipartaschooldesignationdescriptor (titleipartaschooldesignationdescriptorid) FROM stdin; +2431 +2437 +2434 +2433 +2435 +2436 +2432 +\. + + +-- +-- Data for Name: tribalaffiliationdescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.tribalaffiliationdescriptor (tribalaffiliationdescriptorid) FROM stdin; +2440 +2438 +2441 +2443 +2444 +2445 +2446 +2447 +2448 +2450 +2451 +2453 +2452 +2454 +2455 +2456 +2457 +2458 +2459 +2460 +2461 +2462 +2463 +2465 +2464 +2466 +2467 +2468 +2469 +2470 +2471 +2472 +2473 +2475 +2474 +2477 +2478 +2479 +2480 +2481 +2483 +2482 +2485 +2484 +2486 +2487 +2488 +2489 +2490 +2491 +2492 +2493 +2494 +2495 +2496 +2497 +2498 +2499 +2500 +2501 +2502 +2503 +2505 +2504 +2506 +2507 +2508 +2509 +2510 +2511 +2512 +2513 +2515 +2516 +2518 +2519 +2520 +2522 +2523 +2524 +2525 +2526 +2527 +2528 +2530 +2531 +2532 +2533 +2534 +2535 +2536 +2537 +2539 +2538 +2540 +2541 +2542 +2544 +2545 +2546 +2547 +2548 +2550 +2549 +2551 +2552 +2553 +2554 +2555 +2557 +2556 +2558 +2559 +2560 +2561 +2562 +2563 +2564 +2565 +2566 +2567 +2568 +2569 +2571 +2570 +2572 +2573 +2574 +2576 +2575 +2577 +2578 +2579 +2580 +2581 +2582 +2583 +2584 +2585 +2586 +2588 +2589 +2590 +2591 +2592 +2593 +2594 +2595 +2596 +2597 +2598 +2599 +2600 +2601 +2602 +2603 +2604 +2605 +2606 +2607 +2608 +2609 +2610 +2611 +2612 +2613 +2614 +2615 +2616 +2617 +2618 +2619 +2620 +2621 +2622 +2624 +2623 +2625 +2626 +2628 +2627 +2629 +2630 +2631 +2632 +2633 +2634 +2635 +2636 +2637 +2638 +2639 +2640 +2641 +2642 +2643 +2644 +2645 +2646 +2647 +2648 +2649 +2650 +2651 +2652 +2653 +2654 +2655 +2656 +2657 +2658 +2659 +2660 +2661 +2662 +2663 +2664 +2665 +2666 +2667 +2668 +2669 +2670 +2671 +2672 +2673 +2674 +2700 +2703 +2707 +2715 +2720 +2723 +2726 +2733 +2735 +2740 +2744 +2750 +2757 +2765 +2774 +2777 +2783 +2786 +2793 +2796 +2799 +2813 +2816 +2822 +2826 +2835 +2845 +2849 +2867 +2877 +2882 +2886 +2890 +2893 +2898 +2903 +2907 +2911 +2916 +2919 +2924 +2928 +2971 +2977 +2981 +2986 +2998 +3004 +3006 +3009 +3011 +2675 +2676 +2678 +2681 +2683 +2685 +2688 +2691 +2693 +2694 +2696 +2701 +2705 +2708 +2711 +2713 +2716 +2719 +2722 +2727 +2731 +2736 +2739 +2742 +2745 +2748 +2753 +2755 +2759 +2761 +2763 +2767 +2770 +2773 +2778 +2782 +2785 +2788 +2790 +2791 +2795 +2801 +2805 +2809 +2812 +2817 +2818 +2820 +2823 +2825 +2829 +2831 +2836 +2840 +2844 +2848 +2850 +2853 +2855 +2857 +2858 +2860 +2863 +2865 +2869 +2871 +2873 +2876 +2880 +2884 +2888 +2892 +2897 +2902 +2906 +2910 +2914 +2920 +2923 +2927 +2931 +2933 +2935 +2936 +2939 +2941 +2943 +2944 +2947 +2949 +2950 +2952 +2955 +2956 +2958 +2961 +2964 +2967 +2968 +2970 +2972 +2975 +2978 +2980 +2985 +2989 +2991 +2993 +2995 +2999 +3001 +3003 +3007 +3010 +2677 +2679 +2680 +2682 +2684 +2687 +2689 +2690 +2692 +2695 +2697 +2698 +2699 +2702 +2706 +2709 +2710 +2714 +2718 +2724 +2725 +2728 +2729 +2730 +2732 +2734 +2737 +2738 +2741 +2743 +2746 +2747 +2751 +2754 +2756 +2758 +2760 +2762 +2764 +2766 +2768 +2771 +2772 +2775 +2776 +2779 +2780 +2781 +2784 +2787 +2789 +2792 +2794 +2797 +2798 +2800 +2802 +2804 +2806 +2808 +2810 +2811 +2814 +2815 +2819 +2821 +2824 +2827 +2830 +2832 +2833 +2834 +2837 +2838 +2841 +2842 +2843 +2846 +2847 +2851 +2852 +2854 +2856 +2859 +2861 +2862 +2864 +2866 +2868 +2870 +2872 +2874 +2875 +2878 +2879 +2881 +2883 +2885 +2887 +2889 +2891 +2895 +2896 +2899 +2900 +2901 +2904 +2905 +2908 +2909 +2912 +2913 +2915 +2917 +2918 +2921 +2922 +2926 +2929 +2930 +2932 +2934 +2937 +2938 +2940 +2942 +2945 +2946 +2948 +2951 +2953 +2954 +2957 +2959 +2960 +2963 +2965 +2966 +2969 +2973 +2974 +2976 +2979 +2982 +2984 +2987 +2988 +2990 +2992 +2994 +2996 +2997 +3000 +3002 +3005 +3008 +3012 +3014 +3015 +2439 +2442 +2449 +2476 +2514 +2517 +2521 +2529 +2543 +2587 +2686 +2704 +2712 +2717 +2721 +2749 +2752 +2769 +2803 +2807 +2828 +2839 +2894 +2925 +2962 +2983 +3013 +\. + + +-- +-- Data for Name: visadescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.visadescriptor (visadescriptorid) FROM stdin; +3017 +3019 +3020 +3021 +3016 +3022 +3018 +\. + + +-- +-- Data for Name: weapondescriptor; Type: TABLE DATA; Schema: edfi; Owner: postgres +-- + +COPY edfi.weapondescriptor (weapondescriptorid) FROM stdin; +3023 +3026 +3027 +3029 +3032 +3025 +3030 +3024 +3028 +3031 +\. + + +-- +-- Data for Name: descriptorequivalencegroup; Type: TABLE DATA; Schema: interop; Owner: postgres +-- + +COPY interop.descriptorequivalencegroup (descriptorequivalencegroupid, createdate, lastmodifieddate, id) FROM stdin; +\. + + +-- +-- Data for Name: descriptorequivalencegroupassignment; Type: TABLE DATA; Schema: interop; Owner: postgres +-- + +COPY interop.descriptorequivalencegroupassignment (descriptorid, descriptorequivalencegroupid, createdate, lastmodifieddate, id) FROM stdin; +\. + + +-- +-- Data for Name: descriptorequivalencegroupgeneralization; Type: TABLE DATA; Schema: interop; Owner: postgres +-- + +COPY interop.descriptorequivalencegroupgeneralization (descriptorequivalencegroupid, generalizationdescriptorequivalencegroupid, createdate, lastmodifieddate, id) FROM stdin; +\. + + +-- +-- Data for Name: operationalcontext; Type: TABLE DATA; Schema: interop; Owner: postgres +-- + +COPY interop.operationalcontext (operationalcontexturi, displayname, organizationname, createdate, lastmodifieddate, id) FROM stdin; +uri://ed-fi-api-host.org Default Ed-Fi 2021-11-05 13:58:51.695029 2021-11-05 13:58:51.695029 9a439701-2fc8-431d-accc-3054fbfc1fb2 +\. + + +-- +-- Data for Name: operationalcontextdescriptorusage; Type: TABLE DATA; Schema: interop; Owner: postgres +-- + +COPY interop.operationalcontextdescriptorusage (operationalcontexturi, descriptorid, createdate) FROM stdin; +\. + + +-- +-- Data for Name: DeployJournal; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +COPY public."DeployJournal" (schemaversionsid, scriptname, applied) FROM stdin; +1 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.0010-Schemas.sql 2021-11-05 13:58:43.717317 +2 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.0011-Extensions.sql 2021-11-05 13:58:43.73718 +3 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.0020-Tables.sql 2021-11-05 13:58:46.149709 +4 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.0030-ForeignKeys.sql 2021-11-05 13:58:50.83621 +5 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.0040-IdColumnUniqueIndexes.sql 2021-11-05 13:58:51.099471 +6 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.0050-ExtendedProperties.sql 2021-11-05 13:58:51.431833 +7 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1002-AuthViews.sql 2021-11-05 13:58:51.458871 +8 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1003-CompositesHierarchicalViews.sql 2021-11-05 13:58:51.470903 +9 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1020-Interoperability-Extension.sql 2021-11-05 13:58:51.506022 +10 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1021-OperationalContextView.sql 2021-11-05 13:58:51.513593 +11 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1022-SetVersion.sql 2021-11-05 13:58:51.518813 +12 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1030-AddSessionCascadeSupport.sql 2021-11-05 13:58:51.532722 +13 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1031-Create-SetSchoolYear-stored-procedure.sql 2021-11-05 13:58:51.536005 +14 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1040-MissingSecurityViews.sql 2021-11-05 13:58:51.540644 +15 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1100-AddMoreContextToEducationIdentifiersView.sql 2021-11-05 13:58:51.549754 +16 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1100-CorrectCommunityOrganizationAuthViews.sql 2021-11-05 13:58:51.554562 +17 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1120-RemoveCompositesHierarchicalViews.sql 2021-11-05 13:58:51.559549 +18 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1150-UpdatedAuthViewsToPreventDuplicatesFromStaffEdOrgAssignmentsAndEmployments.sql 2021-11-05 13:58:51.568588 +19 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1160-UpdateVersionTo510.sql 2021-11-05 13:58:51.570922 +20 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1170-UpdatedAuthViewsToRemoveJoin.sql 2021-11-05 13:58:51.575893 +21 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1180-Add-OrgDeptId-to-EdOrgIdentifiers.sql 2021-11-05 13:58:51.584271 +22 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1190-UpdateVersionTo520.sql 2021-11-05 13:58:51.58656 +23 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1200-AuthViewsSupportOrgDeptId.sql 2021-11-05 13:58:51.599113 +24 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1290-RemoveAllUnusedAuthorizationViews.sql 2021-11-05 13:58:51.609972 +25 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1300-CreateEdOrgToEdOrgTable.sql 2021-11-05 13:58:51.61575 +26 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1302-CreateEdOrgToEdOrgTriggers.sql 2021-11-05 13:58:51.635376 +27 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1303-AuthViewEducationOrganizationIdToStudentUSI.sql 2021-11-05 13:58:51.638733 +28 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1304-AuthViewEducationOrganizationIdToParentUSI.sql 2021-11-05 13:58:51.642055 +29 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1305-AuthViewsEducationOrganizationIdToStaffUSI.sql 2021-11-05 13:58:51.645892 +30 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1306-AuthViewEducationOrganizationIdToStudentUSIThroughResponsibility.sql 2021-11-05 13:58:51.64897 +31 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.1320-UpdateVersionTo53.sql 2021-11-05 13:58:51.651192 +32 EdFi.Ods.Standard.Artifacts.PgSql.Data.Ods.0020-SchoolYears.sql 2021-11-05 13:58:51.693692 +33 EdFi.Ods.Standard.Artifacts.PgSql.Data.Ods.1010-OperationalContexts.sql 2021-11-05 13:58:51.696478 +34 EdFi.Ods.Standard.Artifacts.PgSql.Data.Ods.1040-Set-Default-SchoolYear.sql 2021-11-05 13:58:51.701263 +35 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0010-CreateChangesSchema.sql 2021-11-05 13:58:51.737683 +36 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0020-CreateChangeVersionSequence.sql 2021-11-05 13:58:51.741547 +37 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0030-AddColumnChangeVersionForTables.sql 2021-11-05 13:58:53.881459 +38 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0040-CreateTriggerUpdateChangeVersionGenerator.sql 2021-11-05 13:58:53.909269 +39 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0045-CreateTrackedDeleteSchema.sql 2021-11-05 13:58:53.913855 +40 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0050-CreateTrackedDeleteTables.sql 2021-11-05 13:58:55.07856 +41 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0060-CreateDeletedForTrackingTriggers.sql 2021-11-05 13:58:55.15893 +42 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0070-AddIndexChangeVersionForTables.sql 2021-11-05 13:58:55.420951 +43 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0110-AddSnapshot-Tables.sql 2021-11-05 13:58:55.429032 +44 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0120-AddSnapshotIdColumnUniqueIndexes.sql 2021-11-05 13:58:55.436384 +45 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.0130-AddSnapshotExtendedProperties.sql 2021-11-05 13:58:55.439955 +46 EdFi.Ods.Standard.Artifacts.PgSql.Structure.Ods.Changes.1010-CreateGetMaxChangeVersionFunction.sql 2021-11-05 13:58:55.442697 +\. + + +-- +-- Data for Name: absenceeventcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.absenceeventcategorydescriptor (absenceeventcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: academichonorcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.academichonorcategorydescriptor (academichonorcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: academicsubjectdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.academicsubjectdescriptor (academicsubjectdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: academicweek; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.academicweek (schoolid, weekidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accommodationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.accommodationdescriptor (accommodationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: account; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.account (accountidentifier, educationorganizationid, fiscalyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accountabilityrating; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.accountabilityrating (educationorganizationid, ratingtitle, schoolyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accountclassificationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.accountclassificationdescriptor (accountclassificationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: accountcode; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.accountcode (accountclassificationdescriptorid, accountcodenumber, educationorganizationid, fiscalyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: achievementcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.achievementcategorydescriptor (achievementcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: actual; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.actual (accountidentifier, asofdate, educationorganizationid, fiscalyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: additionalcredittypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.additionalcredittypedescriptor (additionalcredittypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: addresstypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.addresstypedescriptor (addresstypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: administrationenvironmentdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.administrationenvironmentdescriptor (administrationenvironmentdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: administrativefundingcontroldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.administrativefundingcontroldescriptor (administrativefundingcontroldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: ancestryethnicorigindescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.ancestryethnicorigindescriptor (ancestryethnicorigindescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessment; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessment (assessmentidentifier, namespace, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentcategorydescriptor (assessmentcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentidentificationsystemdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentidentificationsystemdescriptor (assessmentidentificationsystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentitem; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentitem (assessmentidentifier, identificationcode, namespace, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentitemcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentitemcategorydescriptor (assessmentitemcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentitemresultdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentitemresultdescriptor (assessmentitemresultdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentperioddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentperioddescriptor (assessmentperioddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentreportingmethoddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentreportingmethoddescriptor (assessmentreportingmethoddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: assessmentscorerangelearningstandard; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.assessmentscorerangelearningstandard (assessmentidentifier, namespace, scorerangeid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: attemptstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.attemptstatusdescriptor (attemptstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: attendanceeventcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.attendanceeventcategorydescriptor (attendanceeventcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: barriertointernetaccessinresidencedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor (barriertointernetaccessinresidencedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: behaviordescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.behaviordescriptor (behaviordescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: bellschedule; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.bellschedule (bellschedulename, schoolid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: budget; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.budget (accountidentifier, asofdate, educationorganizationid, fiscalyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendar; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.calendar (calendarcode, schoolid, schoolyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendardate; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.calendardate (calendarcode, date, schoolid, schoolyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendareventdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.calendareventdescriptor (calendareventdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: calendartypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.calendartypedescriptor (calendartypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: careerpathwaydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.careerpathwaydescriptor (careerpathwaydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: charterapprovalagencytypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.charterapprovalagencytypedescriptor (charterapprovalagencytypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: charterstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.charterstatusdescriptor (charterstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: citizenshipstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.citizenshipstatusdescriptor (citizenshipstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: classperiod; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.classperiod (classperiodname, schoolid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: classroompositiondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.classroompositiondescriptor (classroompositiondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: cohort; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.cohort (cohortidentifier, educationorganizationid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: cohortscopedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.cohortscopedescriptor (cohortscopedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: cohorttypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.cohorttypedescriptor (cohorttypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: cohortyeartypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.cohortyeartypedescriptor (cohortyeartypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: communityorganization; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.communityorganization (communityorganizationid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: communityprovider; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.communityprovider (communityproviderid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: communityproviderlicense; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.communityproviderlicense (communityproviderid, licenseidentifier, licensingorganization, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: competencyleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.competencyleveldescriptor (competencyleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: competencyobjective; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.competencyobjective (educationorganizationid, objective, objectivegradeleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: contacttypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.contacttypedescriptor (contacttypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: contentclassdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.contentclassdescriptor (contentclassdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: continuationofservicesreasondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.continuationofservicesreasondescriptor (continuationofservicesreasondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: contractedstaff; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.contractedstaff (accountidentifier, asofdate, educationorganizationid, fiscalyear, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: costratedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.costratedescriptor (costratedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: countrydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.countrydescriptor (countrydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: course; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.course (coursecode, educationorganizationid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courseattemptresultdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.courseattemptresultdescriptor (courseattemptresultdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: coursedefinedbydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.coursedefinedbydescriptor (coursedefinedbydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: coursegpaapplicabilitydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.coursegpaapplicabilitydescriptor (coursegpaapplicabilitydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courseidentificationsystemdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.courseidentificationsystemdescriptor (courseidentificationsystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courselevelcharacteristicdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.courselevelcharacteristicdescriptor (courselevelcharacteristicdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courseoffering; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.courseoffering (localcoursecode, schoolid, schoolyear, sessionname, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: courserepeatcodedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.courserepeatcodedescriptor (courserepeatcodedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: coursetranscript; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.coursetranscript (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: credential; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.credential (credentialidentifier, stateofissuestateabbreviationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: credentialfielddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.credentialfielddescriptor (credentialfielddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: credentialtypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.credentialtypedescriptor (credentialtypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: creditcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.creditcategorydescriptor (creditcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: credittypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.credittypedescriptor (credittypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: cteprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.cteprogramservicedescriptor (cteprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: curriculumuseddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.curriculumuseddescriptor (curriculumuseddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: deliverymethoddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.deliverymethoddescriptor (deliverymethoddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: descriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.descriptor (descriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: diagnosisdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.diagnosisdescriptor (diagnosisdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: diplomaleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.diplomaleveldescriptor (diplomaleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: diplomatypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.diplomatypedescriptor (diplomatypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disabilitydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disabilitydescriptor (disabilitydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disabilitydesignationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disabilitydesignationdescriptor (disabilitydesignationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disabilitydeterminationsourcetypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor (disabilitydeterminationsourcetypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplineaction; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disciplineaction (disciplineactionidentifier, disciplinedate, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplineactionlengthdifferencereasondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor (disciplineactionlengthdifferencereasondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplinedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disciplinedescriptor (disciplinedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplineincident; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disciplineincident (incidentidentifier, schoolid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: disciplineincidentparticipationcodedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor (disciplineincidentparticipationcodedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationalenvironmentdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationalenvironmentdescriptor (educationalenvironmentdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationcontent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationcontent (contentidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganization; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganization (educationorganizationid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganizationcategorydescriptor (educationorganizationcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationidentificationsystemdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor (educationorganizationidentificationsystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationinterventionprescriptionassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganizationinterventionprescriptionassociation (educationorganizationid, interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationnetwork; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganizationnetwork (educationorganizationnetworkid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationnetworkassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganizationnetworkassociation (educationorganizationnetworkid, membereducationorganizationid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationorganizationpeerassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationorganizationpeerassociation (educationorganizationid, peereducationorganizationid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationplandescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationplandescriptor (educationplandescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: educationservicecenter; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.educationservicecenter (educationservicecenterid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: electronicmailtypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.electronicmailtypedescriptor (electronicmailtypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: employmentstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.employmentstatusdescriptor (employmentstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: entrygradelevelreasondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.entrygradelevelreasondescriptor (entrygradelevelreasondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: entrytypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.entrytypedescriptor (entrytypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: eventcircumstancedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.eventcircumstancedescriptor (eventcircumstancedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: exitwithdrawtypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.exitwithdrawtypedescriptor (exitwithdrawtypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: feederschoolassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.feederschoolassociation (begindate, feederschoolid, schoolid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: generalstudentprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.generalstudentprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: grade; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.grade (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradebookentry; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradebookentry (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradebookentrytypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradebookentrytypedescriptor (gradebookentrytypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradeleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradeleveldescriptor (gradeleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradepointaveragetypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradepointaveragetypedescriptor (gradepointaveragetypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradetypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradetypedescriptor (gradetypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradingperiod; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradingperiod (gradingperioddescriptorid, periodsequence, schoolid, schoolyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gradingperioddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gradingperioddescriptor (gradingperioddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: graduationplan; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.graduationplan (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: graduationplantypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.graduationplantypedescriptor (graduationplantypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: gunfreeschoolsactreportingstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor (gunfreeschoolsactreportingstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: homelessprimarynighttimeresidencedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor (homelessprimarynighttimeresidencedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: homelessprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.homelessprogramservicedescriptor (homelessprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: identificationdocumentusedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.identificationdocumentusedescriptor (identificationdocumentusedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: incidentlocationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.incidentlocationdescriptor (incidentlocationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: indicatordescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.indicatordescriptor (indicatordescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: indicatorgroupdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.indicatorgroupdescriptor (indicatorgroupdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: indicatorleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.indicatorleveldescriptor (indicatorleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: institutiontelephonenumbertypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.institutiontelephonenumbertypedescriptor (institutiontelephonenumbertypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interactivitystyledescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.interactivitystyledescriptor (interactivitystyledescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: internetaccessdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.internetaccessdescriptor (internetaccessdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: internetaccesstypeinresidencedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.internetaccesstypeinresidencedescriptor (internetaccesstypeinresidencedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: internetperformanceinresidencedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.internetperformanceinresidencedescriptor (internetperformanceinresidencedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: intervention; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.intervention (educationorganizationid, interventionidentificationcode, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventionclassdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.interventionclassdescriptor (interventionclassdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventioneffectivenessratingdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.interventioneffectivenessratingdescriptor (interventioneffectivenessratingdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventionprescription; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.interventionprescription (educationorganizationid, interventionprescriptionidentificationcode, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: interventionstudy; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.interventionstudy (educationorganizationid, interventionstudyidentificationcode, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: languagedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.languagedescriptor (languagedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: languageinstructionprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.languageinstructionprogramservicedescriptor (languageinstructionprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: languageusedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.languageusedescriptor (languageusedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningobjective; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.learningobjective (learningobjectiveid, namespace, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandard; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.learningstandard (learningstandardid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.learningstandardcategorydescriptor (learningstandardcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardequivalenceassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.learningstandardequivalenceassociation (namespace, sourcelearningstandardid, targetlearningstandardid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardequivalencestrengthdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor (learningstandardequivalencestrengthdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: learningstandardscopedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.learningstandardscopedescriptor (learningstandardscopedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: levelofeducationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.levelofeducationdescriptor (levelofeducationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: licensestatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.licensestatusdescriptor (licensestatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: licensetypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.licensetypedescriptor (licensetypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: limitedenglishproficiencydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.limitedenglishproficiencydescriptor (limitedenglishproficiencydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: localedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.localedescriptor (localedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: localeducationagency; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.localeducationagency (localeducationagencyid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: localeducationagencycategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.localeducationagencycategorydescriptor (localeducationagencycategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: location; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.location (classroomidentificationcode, schoolid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: magnetspecialprogramemphasisschooldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor (magnetspecialprogramemphasisschooldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: mediumofinstructiondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.mediumofinstructiondescriptor (mediumofinstructiondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: methodcreditearneddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.methodcreditearneddescriptor (methodcreditearneddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: migranteducationprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.migranteducationprogramservicedescriptor (migranteducationprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: monitoreddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.monitoreddescriptor (monitoreddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: neglectedordelinquentprogramdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.neglectedordelinquentprogramdescriptor (neglectedordelinquentprogramdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: neglectedordelinquentprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor (neglectedordelinquentprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: networkpurposedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.networkpurposedescriptor (networkpurposedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: objectiveassessment; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.objectiveassessment (assessmentidentifier, identificationcode, namespace, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: oldethnicitydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.oldethnicitydescriptor (oldethnicitydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: openstaffposition; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.openstaffposition (educationorganizationid, requisitionnumber, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: operationalstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.operationalstatusdescriptor (operationalstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: organizationdepartment; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.organizationdepartment (organizationdepartmentid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: othernametypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.othernametypedescriptor (othernametypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: parent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.parent (parentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: participationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.participationdescriptor (participationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: participationstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.participationstatusdescriptor (participationstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: payroll; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.payroll (accountidentifier, asofdate, educationorganizationid, fiscalyear, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: performancebaseconversiondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.performancebaseconversiondescriptor (performancebaseconversiondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: performanceleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.performanceleveldescriptor (performanceleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: person; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.person (personid, sourcesystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: personalinformationverificationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.personalinformationverificationdescriptor (personalinformationverificationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: platformtypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.platformtypedescriptor (platformtypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: populationserveddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.populationserveddescriptor (populationserveddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: postingresultdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.postingresultdescriptor (postingresultdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: postsecondaryevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.postsecondaryevent (eventdate, postsecondaryeventcategorydescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: postsecondaryeventcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.postsecondaryeventcategorydescriptor (postsecondaryeventcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: postsecondaryinstitution; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.postsecondaryinstitution (postsecondaryinstitutionid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: postsecondaryinstitutionleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor (postsecondaryinstitutionleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: primarylearningdeviceaccessdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.primarylearningdeviceaccessdescriptor (primarylearningdeviceaccessdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: primarylearningdeviceawayfromschooldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor (primarylearningdeviceawayfromschooldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: primarylearningdeviceproviderdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.primarylearningdeviceproviderdescriptor (primarylearningdeviceproviderdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: proficiencydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.proficiencydescriptor (proficiencydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: program; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.program (educationorganizationid, programname, programtypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: programassignmentdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.programassignmentdescriptor (programassignmentdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: programcharacteristicdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.programcharacteristicdescriptor (programcharacteristicdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: programsponsordescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.programsponsordescriptor (programsponsordescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: programtypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.programtypedescriptor (programtypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: progressdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.progressdescriptor (progressdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: progressleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.progressleveldescriptor (progressleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: providercategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.providercategorydescriptor (providercategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: providerprofitabilitydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.providerprofitabilitydescriptor (providerprofitabilitydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: providerstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.providerstatusdescriptor (providerstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: publicationstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.publicationstatusdescriptor (publicationstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: questionformdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.questionformdescriptor (questionformdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: racedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.racedescriptor (racedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: reasonexiteddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.reasonexiteddescriptor (reasonexiteddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: reasonnottesteddescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.reasonnottesteddescriptor (reasonnottesteddescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: recognitiontypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.recognitiontypedescriptor (recognitiontypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: relationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.relationdescriptor (relationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: repeatidentifierdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.repeatidentifierdescriptor (repeatidentifierdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: reportcard; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.reportcard (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: reporterdescriptiondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.reporterdescriptiondescriptor (reporterdescriptiondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: residencystatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.residencystatusdescriptor (residencystatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: responseindicatordescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.responseindicatordescriptor (responseindicatordescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: responsibilitydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.responsibilitydescriptor (responsibilitydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: restraintevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.restraintevent (restrainteventidentifier, schoolid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: restrainteventreasondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.restrainteventreasondescriptor (restrainteventreasondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: resultdatatypetypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.resultdatatypetypedescriptor (resultdatatypetypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: retestindicatordescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.retestindicatordescriptor (retestindicatordescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: school; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.school (schoolid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: schoolcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.schoolcategorydescriptor (schoolcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: schoolchoiceimplementstatusdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor (schoolchoiceimplementstatusdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: schoolfoodserviceprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor (schoolfoodserviceprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: schooltypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.schooltypedescriptor (schooltypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: section; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.section (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sectionattendancetakenevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.sectionattendancetakenevent (calendarcode, date, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sectioncharacteristicdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.sectioncharacteristicdescriptor (sectioncharacteristicdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: separationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.separationdescriptor (separationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: separationreasondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.separationreasondescriptor (separationreasondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: servicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.servicedescriptor (servicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: session; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.session (schoolid, schoolyear, sessionname, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sexdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.sexdescriptor (sexdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: sourcesystemdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.sourcesystemdescriptor (sourcesystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: specialeducationprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.specialeducationprogramservicedescriptor (specialeducationprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: specialeducationsettingdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.specialeducationsettingdescriptor (specialeducationsettingdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staff; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staff (staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffabsenceevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffabsenceevent (absenceeventcategorydescriptorid, eventdate, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffclassificationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffclassificationdescriptor (staffclassificationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffcohortassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffcohortassociation (begindate, cohortidentifier, educationorganizationid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffdisciplineincidentassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffdisciplineincidentassociation (incidentidentifier, schoolid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationassignmentassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffeducationorganizationassignmentassociation (begindate, educationorganizationid, staffclassificationdescriptorid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationcontactassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffeducationorganizationcontactassociation (contacttitle, educationorganizationid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffeducationorganizationemploymentassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffeducationorganizationemploymentassociation (educationorganizationid, employmentstatusdescriptorid, hiredate, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffidentificationsystemdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffidentificationsystemdescriptor (staffidentificationsystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffleave; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffleave (begindate, staffleaveeventcategorydescriptorid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffleaveeventcategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffleaveeventcategorydescriptor (staffleaveeventcategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffprogramassociation (begindate, programeducationorganizationid, programname, programtypedescriptorid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffschoolassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffschoolassociation (programassignmentdescriptorid, schoolid, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: staffsectionassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.staffsectionassociation (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, staffusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: stateabbreviationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.stateabbreviationdescriptor (stateabbreviationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: stateeducationagency; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.stateeducationagency (stateeducationagencyid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: student; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.student (studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentacademicrecord; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentacademicrecord (educationorganizationid, schoolyear, studentusi, termdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentassessment; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentassessment (assessmentidentifier, namespace, studentassessmentidentifier, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentcharacteristicdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentcharacteristicdescriptor (studentcharacteristicdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentcohortassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentcohortassociation (begindate, cohortidentifier, educationorganizationid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentcompetencyobjective; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentcompetencyobjective (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentcteprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentcteprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentdisciplineincidentassociation (incidentidentifier, schoolid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentbehaviorassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation (behaviordescriptorid, incidentidentifier, schoolid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentdisciplineincidentnonoffenderassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation (incidentidentifier, schoolid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studenteducationorganizationassociation (educationorganizationid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studenteducationorganizationresponsibilityassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studenteducationorganizationresponsibilityassociation (begindate, educationorganizationid, responsibilitydescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentgradebookentry; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentgradebookentry (begindate, dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studenthomelessprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studenthomelessprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentidentificationsystemdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentidentificationsystemdescriptor (studentidentificationsystemdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentinterventionassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentinterventionassociation (educationorganizationid, interventionidentificationcode, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentinterventionattendanceevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentinterventionattendanceevent (attendanceeventcategorydescriptorid, educationorganizationid, eventdate, interventionidentificationcode, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentlanguageinstructionprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentlanguageinstructionprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentlearningobjective; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentlearningobjective (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentmigranteducationprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentmigranteducationprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentneglectedordelinquentprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentneglectedordelinquentprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentparentassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentparentassociation (parentusi, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentparticipationcodedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentparticipationcodedescriptor (studentparticipationcodedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentprogramattendanceevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentprogramattendanceevent (attendanceeventcategorydescriptorid, educationorganizationid, eventdate, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentschoolassociation (entrydate, schoolid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolattendanceevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentschoolattendanceevent (attendanceeventcategorydescriptorid, eventdate, schoolid, schoolyear, sessionname, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentschoolfoodserviceprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentschoolfoodserviceprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentsectionassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentsectionassociation (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentsectionattendanceevent; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentsectionattendanceevent (attendanceeventcategorydescriptorid, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studentspecialeducationprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studentspecialeducationprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: studenttitleipartaprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.studenttitleipartaprogramassociation (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: survey; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.survey (namespace, surveyidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveycategorydescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveycategorydescriptor (surveycategorydescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveycourseassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveycourseassociation (coursecode, educationorganizationid, namespace, surveyidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyleveldescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyleveldescriptor (surveyleveldescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyprogramassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyprogramassociation (educationorganizationid, namespace, programname, programtypedescriptorid, surveyidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestion; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyquestion (namespace, questioncode, surveyidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyquestionresponse; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyquestionresponse (namespace, questioncode, surveyidentifier, surveyresponseidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponse; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyresponse (namespace, surveyidentifier, surveyresponseidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponseeducationorganizationtargetassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation (educationorganizationid, namespace, surveyidentifier, surveyresponseidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveyresponsestafftargetassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveyresponsestafftargetassociation (namespace, staffusi, surveyidentifier, surveyresponseidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysection; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveysection (namespace, surveyidentifier, surveysectiontitle, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveysectionassociation (localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, surveyidentifier, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionresponse; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveysectionresponse (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionresponseeducationorganizationtargetassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveysectionresponseeducationorganizationtargetassociation (educationorganizationid, namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: surveysectionresponsestafftargetassociation; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.surveysectionresponsestafftargetassociation (namespace, staffusi, surveyidentifier, surveyresponseidentifier, surveysectiontitle, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: teachingcredentialbasisdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.teachingcredentialbasisdescriptor (teachingcredentialbasisdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: teachingcredentialdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.teachingcredentialdescriptor (teachingcredentialdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: technicalskillsassessmentdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.technicalskillsassessmentdescriptor (technicalskillsassessmentdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: telephonenumbertypedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.telephonenumbertypedescriptor (telephonenumbertypedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: termdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.termdescriptor (termdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: titleipartaparticipantdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.titleipartaparticipantdescriptor (titleipartaparticipantdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: titleipartaprogramservicedescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.titleipartaprogramservicedescriptor (titleipartaprogramservicedescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: titleipartaschooldesignationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.titleipartaschooldesignationdescriptor (titleipartaschooldesignationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: tribalaffiliationdescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.tribalaffiliationdescriptor (tribalaffiliationdescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: visadescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.visadescriptor (visadescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Data for Name: weapondescriptor; Type: TABLE DATA; Schema: tracked_deletes_edfi; Owner: postgres +-- + +COPY tracked_deletes_edfi.weapondescriptor (weapondescriptorid, id, changeversion) FROM stdin; +\. + + +-- +-- Name: changeversionsequence; Type: SEQUENCE SET; Schema: changes; Owner: postgres +-- + +SELECT pg_catalog.setval('changes.changeversionsequence', 3092, true); + + +-- +-- Name: descriptor_descriptorid_seq; Type: SEQUENCE SET; Schema: edfi; Owner: postgres +-- + +SELECT pg_catalog.setval('edfi.descriptor_descriptorid_seq', 3032, true); + + +-- +-- Name: parent_parentusi_seq; Type: SEQUENCE SET; Schema: edfi; Owner: postgres +-- + +SELECT pg_catalog.setval('edfi.parent_parentusi_seq', 1, false); + + +-- +-- Name: staff_staffusi_seq; Type: SEQUENCE SET; Schema: edfi; Owner: postgres +-- + +SELECT pg_catalog.setval('edfi.staff_staffusi_seq', 1, false); + + +-- +-- Name: student_studentusi_seq; Type: SEQUENCE SET; Schema: edfi; Owner: postgres +-- + +SELECT pg_catalog.setval('edfi.student_studentusi_seq', 1, false); + + +-- +-- Name: DeployJournal_schemaversionsid_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('public."DeployJournal_schemaversionsid_seq"', 46, true); + + +-- +-- Name: educationorganizationidtoeducationorganizationid educationorganizationidtoeducationorganizationid_pk; Type: CONSTRAINT; Schema: auth; Owner: postgres +-- + +ALTER TABLE ONLY auth.educationorganizationidtoeducationorganizationid + ADD CONSTRAINT educationorganizationidtoeducationorganizationid_pk PRIMARY KEY (sourceeducationorganizationid, targeteducationorganizationid); + + +-- +-- Name: snapshot snapshot_pk; Type: CONSTRAINT; Schema: changes; Owner: postgres +-- + +ALTER TABLE ONLY changes.snapshot + ADD CONSTRAINT snapshot_pk PRIMARY KEY (snapshotidentifier); + + +-- +-- Name: absenceeventcategorydescriptor absenceeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.absenceeventcategorydescriptor + ADD CONSTRAINT absenceeventcategorydescriptor_pk PRIMARY KEY (absenceeventcategorydescriptorid); + + +-- +-- Name: academichonorcategorydescriptor academichonorcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.academichonorcategorydescriptor + ADD CONSTRAINT academichonorcategorydescriptor_pk PRIMARY KEY (academichonorcategorydescriptorid); + + +-- +-- Name: academicsubjectdescriptor academicsubjectdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.academicsubjectdescriptor + ADD CONSTRAINT academicsubjectdescriptor_pk PRIMARY KEY (academicsubjectdescriptorid); + + +-- +-- Name: academicweek academicweek_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.academicweek + ADD CONSTRAINT academicweek_pk PRIMARY KEY (schoolid, weekidentifier); + + +-- +-- Name: accommodationdescriptor accommodationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accommodationdescriptor + ADD CONSTRAINT accommodationdescriptor_pk PRIMARY KEY (accommodationdescriptorid); + + +-- +-- Name: account account_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.account + ADD CONSTRAINT account_pk PRIMARY KEY (accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: accountabilityrating accountabilityrating_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountabilityrating + ADD CONSTRAINT accountabilityrating_pk PRIMARY KEY (educationorganizationid, ratingtitle, schoolyear); + + +-- +-- Name: accountaccountcode accountaccountcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountaccountcode + ADD CONSTRAINT accountaccountcode_pk PRIMARY KEY (accountclassificationdescriptorid, accountcodenumber, accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: accountclassificationdescriptor accountclassificationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountclassificationdescriptor + ADD CONSTRAINT accountclassificationdescriptor_pk PRIMARY KEY (accountclassificationdescriptorid); + + +-- +-- Name: accountcode accountcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountcode + ADD CONSTRAINT accountcode_pk PRIMARY KEY (accountclassificationdescriptorid, accountcodenumber, educationorganizationid, fiscalyear); + + +-- +-- Name: achievementcategorydescriptor achievementcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.achievementcategorydescriptor + ADD CONSTRAINT achievementcategorydescriptor_pk PRIMARY KEY (achievementcategorydescriptorid); + + +-- +-- Name: actual actual_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.actual + ADD CONSTRAINT actual_pk PRIMARY KEY (accountidentifier, asofdate, educationorganizationid, fiscalyear); + + +-- +-- Name: additionalcredittypedescriptor additionalcredittypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.additionalcredittypedescriptor + ADD CONSTRAINT additionalcredittypedescriptor_pk PRIMARY KEY (additionalcredittypedescriptorid); + + +-- +-- Name: addresstypedescriptor addresstypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.addresstypedescriptor + ADD CONSTRAINT addresstypedescriptor_pk PRIMARY KEY (addresstypedescriptorid); + + +-- +-- Name: administrationenvironmentdescriptor administrationenvironmentdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.administrationenvironmentdescriptor + ADD CONSTRAINT administrationenvironmentdescriptor_pk PRIMARY KEY (administrationenvironmentdescriptorid); + + +-- +-- Name: administrativefundingcontroldescriptor administrativefundingcontroldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.administrativefundingcontroldescriptor + ADD CONSTRAINT administrativefundingcontroldescriptor_pk PRIMARY KEY (administrativefundingcontroldescriptorid); + + +-- +-- Name: ancestryethnicorigindescriptor ancestryethnicorigindescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.ancestryethnicorigindescriptor + ADD CONSTRAINT ancestryethnicorigindescriptor_pk PRIMARY KEY (ancestryethnicorigindescriptorid); + + +-- +-- Name: assessment assessment_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessment + ADD CONSTRAINT assessment_pk PRIMARY KEY (assessmentidentifier, namespace); + + +-- +-- Name: assessmentacademicsubject assessmentacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentacademicsubject + ADD CONSTRAINT assessmentacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, assessmentidentifier, namespace); + + +-- +-- Name: assessmentassessedgradelevel assessmentassessedgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentassessedgradelevel + ADD CONSTRAINT assessmentassessedgradelevel_pk PRIMARY KEY (assessmentidentifier, gradeleveldescriptorid, namespace); + + +-- +-- Name: assessmentcategorydescriptor assessmentcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcategorydescriptor + ADD CONSTRAINT assessmentcategorydescriptor_pk PRIMARY KEY (assessmentcategorydescriptorid); + + +-- +-- Name: assessmentcontentstandard assessmentcontentstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcontentstandard + ADD CONSTRAINT assessmentcontentstandard_pk PRIMARY KEY (assessmentidentifier, namespace); + + +-- +-- Name: assessmentcontentstandardauthor assessmentcontentstandardauthor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcontentstandardauthor + ADD CONSTRAINT assessmentcontentstandardauthor_pk PRIMARY KEY (assessmentidentifier, author, namespace); + + +-- +-- Name: assessmentidentificationcode assessmentidentificationcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentidentificationcode + ADD CONSTRAINT assessmentidentificationcode_pk PRIMARY KEY (assessmentidentificationsystemdescriptorid, assessmentidentifier, namespace); + + +-- +-- Name: assessmentidentificationsystemdescriptor assessmentidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentidentificationsystemdescriptor + ADD CONSTRAINT assessmentidentificationsystemdescriptor_pk PRIMARY KEY (assessmentidentificationsystemdescriptorid); + + +-- +-- Name: assessmentitem assessmentitem_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitem + ADD CONSTRAINT assessmentitem_pk PRIMARY KEY (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: assessmentitemcategorydescriptor assessmentitemcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemcategorydescriptor + ADD CONSTRAINT assessmentitemcategorydescriptor_pk PRIMARY KEY (assessmentitemcategorydescriptorid); + + +-- +-- Name: assessmentitemlearningstandard assessmentitemlearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemlearningstandard + ADD CONSTRAINT assessmentitemlearningstandard_pk PRIMARY KEY (assessmentidentifier, identificationcode, learningstandardid, namespace); + + +-- +-- Name: assessmentitempossibleresponse assessmentitempossibleresponse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitempossibleresponse + ADD CONSTRAINT assessmentitempossibleresponse_pk PRIMARY KEY (assessmentidentifier, identificationcode, namespace, responsevalue); + + +-- +-- Name: assessmentitemresultdescriptor assessmentitemresultdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemresultdescriptor + ADD CONSTRAINT assessmentitemresultdescriptor_pk PRIMARY KEY (assessmentitemresultdescriptorid); + + +-- +-- Name: assessmentlanguage assessmentlanguage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentlanguage + ADD CONSTRAINT assessmentlanguage_pk PRIMARY KEY (assessmentidentifier, languagedescriptorid, namespace); + + +-- +-- Name: assessmentperformancelevel assessmentperformancelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperformancelevel + ADD CONSTRAINT assessmentperformancelevel_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, performanceleveldescriptorid); + + +-- +-- Name: assessmentperiod assessmentperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperiod + ADD CONSTRAINT assessmentperiod_pk PRIMARY KEY (assessmentidentifier, namespace); + + +-- +-- Name: assessmentperioddescriptor assessmentperioddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperioddescriptor + ADD CONSTRAINT assessmentperioddescriptor_pk PRIMARY KEY (assessmentperioddescriptorid); + + +-- +-- Name: assessmentplatformtype assessmentplatformtype_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentplatformtype + ADD CONSTRAINT assessmentplatformtype_pk PRIMARY KEY (assessmentidentifier, namespace, platformtypedescriptorid); + + +-- +-- Name: assessmentprogram assessmentprogram_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentprogram + ADD CONSTRAINT assessmentprogram_pk PRIMARY KEY (assessmentidentifier, educationorganizationid, namespace, programname, programtypedescriptorid); + + +-- +-- Name: assessmentreportingmethoddescriptor assessmentreportingmethoddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentreportingmethoddescriptor + ADD CONSTRAINT assessmentreportingmethoddescriptor_pk PRIMARY KEY (assessmentreportingmethoddescriptorid); + + +-- +-- Name: assessmentscore assessmentscore_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscore + ADD CONSTRAINT assessmentscore_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace); + + +-- +-- Name: assessmentscorerangelearningstandard assessmentscorerangelearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandard + ADD CONSTRAINT assessmentscorerangelearningstandard_pk PRIMARY KEY (assessmentidentifier, namespace, scorerangeid); + + +-- +-- Name: assessmentscorerangelearningstandardlearningstandard assessmentscorerangelearningstandardlearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandardlearningstandard + ADD CONSTRAINT assessmentscorerangelearningstandardlearningstandard_pk PRIMARY KEY (assessmentidentifier, learningstandardid, namespace, scorerangeid); + + +-- +-- Name: assessmentsection assessmentsection_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentsection + ADD CONSTRAINT assessmentsection_pk PRIMARY KEY (assessmentidentifier, localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: attemptstatusdescriptor attemptstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.attemptstatusdescriptor + ADD CONSTRAINT attemptstatusdescriptor_pk PRIMARY KEY (attemptstatusdescriptorid); + + +-- +-- Name: attendanceeventcategorydescriptor attendanceeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.attendanceeventcategorydescriptor + ADD CONSTRAINT attendanceeventcategorydescriptor_pk PRIMARY KEY (attendanceeventcategorydescriptorid); + + +-- +-- Name: barriertointernetaccessinresidencedescriptor barriertointernetaccessinresidencedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.barriertointernetaccessinresidencedescriptor + ADD CONSTRAINT barriertointernetaccessinresidencedescriptor_pk PRIMARY KEY (barriertointernetaccessinresidencedescriptorid); + + +-- +-- Name: behaviordescriptor behaviordescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.behaviordescriptor + ADD CONSTRAINT behaviordescriptor_pk PRIMARY KEY (behaviordescriptorid); + + +-- +-- Name: bellschedule bellschedule_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellschedule + ADD CONSTRAINT bellschedule_pk PRIMARY KEY (bellschedulename, schoolid); + + +-- +-- Name: bellscheduleclassperiod bellscheduleclassperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellscheduleclassperiod + ADD CONSTRAINT bellscheduleclassperiod_pk PRIMARY KEY (bellschedulename, classperiodname, schoolid); + + +-- +-- Name: bellscheduledate bellscheduledate_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellscheduledate + ADD CONSTRAINT bellscheduledate_pk PRIMARY KEY (bellschedulename, date, schoolid); + + +-- +-- Name: bellschedulegradelevel bellschedulegradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellschedulegradelevel + ADD CONSTRAINT bellschedulegradelevel_pk PRIMARY KEY (bellschedulename, gradeleveldescriptorid, schoolid); + + +-- +-- Name: budget budget_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.budget + ADD CONSTRAINT budget_pk PRIMARY KEY (accountidentifier, asofdate, educationorganizationid, fiscalyear); + + +-- +-- Name: calendar calendar_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendar + ADD CONSTRAINT calendar_pk PRIMARY KEY (calendarcode, schoolid, schoolyear); + + +-- +-- Name: calendardate calendardate_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendardate + ADD CONSTRAINT calendardate_pk PRIMARY KEY (calendarcode, date, schoolid, schoolyear); + + +-- +-- Name: calendardatecalendarevent calendardatecalendarevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendardatecalendarevent + ADD CONSTRAINT calendardatecalendarevent_pk PRIMARY KEY (calendarcode, calendareventdescriptorid, date, schoolid, schoolyear); + + +-- +-- Name: calendareventdescriptor calendareventdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendareventdescriptor + ADD CONSTRAINT calendareventdescriptor_pk PRIMARY KEY (calendareventdescriptorid); + + +-- +-- Name: calendargradelevel calendargradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendargradelevel + ADD CONSTRAINT calendargradelevel_pk PRIMARY KEY (calendarcode, gradeleveldescriptorid, schoolid, schoolyear); + + +-- +-- Name: calendartypedescriptor calendartypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendartypedescriptor + ADD CONSTRAINT calendartypedescriptor_pk PRIMARY KEY (calendartypedescriptorid); + + +-- +-- Name: careerpathwaydescriptor careerpathwaydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.careerpathwaydescriptor + ADD CONSTRAINT careerpathwaydescriptor_pk PRIMARY KEY (careerpathwaydescriptorid); + + +-- +-- Name: charterapprovalagencytypedescriptor charterapprovalagencytypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.charterapprovalagencytypedescriptor + ADD CONSTRAINT charterapprovalagencytypedescriptor_pk PRIMARY KEY (charterapprovalagencytypedescriptorid); + + +-- +-- Name: charterstatusdescriptor charterstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.charterstatusdescriptor + ADD CONSTRAINT charterstatusdescriptor_pk PRIMARY KEY (charterstatusdescriptorid); + + +-- +-- Name: citizenshipstatusdescriptor citizenshipstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.citizenshipstatusdescriptor + ADD CONSTRAINT citizenshipstatusdescriptor_pk PRIMARY KEY (citizenshipstatusdescriptorid); + + +-- +-- Name: classperiod classperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.classperiod + ADD CONSTRAINT classperiod_pk PRIMARY KEY (classperiodname, schoolid); + + +-- +-- Name: classperiodmeetingtime classperiodmeetingtime_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.classperiodmeetingtime + ADD CONSTRAINT classperiodmeetingtime_pk PRIMARY KEY (classperiodname, endtime, schoolid, starttime); + + +-- +-- Name: classroompositiondescriptor classroompositiondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.classroompositiondescriptor + ADD CONSTRAINT classroompositiondescriptor_pk PRIMARY KEY (classroompositiondescriptorid); + + +-- +-- Name: cohort cohort_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohort + ADD CONSTRAINT cohort_pk PRIMARY KEY (cohortidentifier, educationorganizationid); + + +-- +-- Name: cohortprogram cohortprogram_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortprogram + ADD CONSTRAINT cohortprogram_pk PRIMARY KEY (cohortidentifier, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: cohortscopedescriptor cohortscopedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortscopedescriptor + ADD CONSTRAINT cohortscopedescriptor_pk PRIMARY KEY (cohortscopedescriptorid); + + +-- +-- Name: cohorttypedescriptor cohorttypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohorttypedescriptor + ADD CONSTRAINT cohorttypedescriptor_pk PRIMARY KEY (cohorttypedescriptorid); + + +-- +-- Name: cohortyeartypedescriptor cohortyeartypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortyeartypedescriptor + ADD CONSTRAINT cohortyeartypedescriptor_pk PRIMARY KEY (cohortyeartypedescriptorid); + + +-- +-- Name: communityorganization communityorganization_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityorganization + ADD CONSTRAINT communityorganization_pk PRIMARY KEY (communityorganizationid); + + +-- +-- Name: communityprovider communityprovider_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityprovider + ADD CONSTRAINT communityprovider_pk PRIMARY KEY (communityproviderid); + + +-- +-- Name: communityproviderlicense communityproviderlicense_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityproviderlicense + ADD CONSTRAINT communityproviderlicense_pk PRIMARY KEY (communityproviderid, licenseidentifier, licensingorganization); + + +-- +-- Name: competencyleveldescriptor competencyleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.competencyleveldescriptor + ADD CONSTRAINT competencyleveldescriptor_pk PRIMARY KEY (competencyleveldescriptorid); + + +-- +-- Name: competencyobjective competencyobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.competencyobjective + ADD CONSTRAINT competencyobjective_pk PRIMARY KEY (educationorganizationid, objective, objectivegradeleveldescriptorid); + + +-- +-- Name: contacttypedescriptor contacttypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contacttypedescriptor + ADD CONSTRAINT contacttypedescriptor_pk PRIMARY KEY (contacttypedescriptorid); + + +-- +-- Name: contentclassdescriptor contentclassdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contentclassdescriptor + ADD CONSTRAINT contentclassdescriptor_pk PRIMARY KEY (contentclassdescriptorid); + + +-- +-- Name: continuationofservicesreasondescriptor continuationofservicesreasondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.continuationofservicesreasondescriptor + ADD CONSTRAINT continuationofservicesreasondescriptor_pk PRIMARY KEY (continuationofservicesreasondescriptorid); + + +-- +-- Name: contractedstaff contractedstaff_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contractedstaff + ADD CONSTRAINT contractedstaff_pk PRIMARY KEY (accountidentifier, asofdate, educationorganizationid, fiscalyear, staffusi); + + +-- +-- Name: costratedescriptor costratedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.costratedescriptor + ADD CONSTRAINT costratedescriptor_pk PRIMARY KEY (costratedescriptorid); + + +-- +-- Name: countrydescriptor countrydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.countrydescriptor + ADD CONSTRAINT countrydescriptor_pk PRIMARY KEY (countrydescriptorid); + + +-- +-- Name: course course_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT course_pk PRIMARY KEY (coursecode, educationorganizationid); + + +-- +-- Name: courseattemptresultdescriptor courseattemptresultdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseattemptresultdescriptor + ADD CONSTRAINT courseattemptresultdescriptor_pk PRIMARY KEY (courseattemptresultdescriptorid); + + +-- +-- Name: coursecompetencylevel coursecompetencylevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursecompetencylevel + ADD CONSTRAINT coursecompetencylevel_pk PRIMARY KEY (competencyleveldescriptorid, coursecode, educationorganizationid); + + +-- +-- Name: coursedefinedbydescriptor coursedefinedbydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursedefinedbydescriptor + ADD CONSTRAINT coursedefinedbydescriptor_pk PRIMARY KEY (coursedefinedbydescriptorid); + + +-- +-- Name: coursegpaapplicabilitydescriptor coursegpaapplicabilitydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursegpaapplicabilitydescriptor + ADD CONSTRAINT coursegpaapplicabilitydescriptor_pk PRIMARY KEY (coursegpaapplicabilitydescriptorid); + + +-- +-- Name: courseidentificationcode courseidentificationcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseidentificationcode + ADD CONSTRAINT courseidentificationcode_pk PRIMARY KEY (coursecode, courseidentificationsystemdescriptorid, educationorganizationid); + + +-- +-- Name: courseidentificationsystemdescriptor courseidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseidentificationsystemdescriptor + ADD CONSTRAINT courseidentificationsystemdescriptor_pk PRIMARY KEY (courseidentificationsystemdescriptorid); + + +-- +-- Name: courselearningobjective courselearningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselearningobjective + ADD CONSTRAINT courselearningobjective_pk PRIMARY KEY (coursecode, educationorganizationid, learningobjectiveid, namespace); + + +-- +-- Name: courselearningstandard courselearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselearningstandard + ADD CONSTRAINT courselearningstandard_pk PRIMARY KEY (coursecode, educationorganizationid, learningstandardid); + + +-- +-- Name: courselevelcharacteristic courselevelcharacteristic_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselevelcharacteristic + ADD CONSTRAINT courselevelcharacteristic_pk PRIMARY KEY (coursecode, courselevelcharacteristicdescriptorid, educationorganizationid); + + +-- +-- Name: courselevelcharacteristicdescriptor courselevelcharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselevelcharacteristicdescriptor + ADD CONSTRAINT courselevelcharacteristicdescriptor_pk PRIMARY KEY (courselevelcharacteristicdescriptorid); + + +-- +-- Name: courseofferedgradelevel courseofferedgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferedgradelevel + ADD CONSTRAINT courseofferedgradelevel_pk PRIMARY KEY (coursecode, educationorganizationid, gradeleveldescriptorid); + + +-- +-- Name: courseoffering courseoffering_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseoffering + ADD CONSTRAINT courseoffering_pk PRIMARY KEY (localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: courseofferingcourselevelcharacteristic courseofferingcourselevelcharacteristic_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcourselevelcharacteristic + ADD CONSTRAINT courseofferingcourselevelcharacteristic_pk PRIMARY KEY (courselevelcharacteristicdescriptorid, localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: courseofferingcurriculumused courseofferingcurriculumused_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcurriculumused + ADD CONSTRAINT courseofferingcurriculumused_pk PRIMARY KEY (curriculumuseddescriptorid, localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: courseofferingofferedgradelevel courseofferingofferedgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingofferedgradelevel + ADD CONSTRAINT courseofferingofferedgradelevel_pk PRIMARY KEY (gradeleveldescriptorid, localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: courserepeatcodedescriptor courserepeatcodedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courserepeatcodedescriptor + ADD CONSTRAINT courserepeatcodedescriptor_pk PRIMARY KEY (courserepeatcodedescriptorid); + + +-- +-- Name: coursetranscript coursetranscript_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT coursetranscript_pk PRIMARY KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: coursetranscriptacademicsubject coursetranscriptacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptacademicsubject + ADD CONSTRAINT coursetranscriptacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: coursetranscriptalternativecourseidentificationcode coursetranscriptalternativecourseidentificationcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptalternativecourseidentificationcode + ADD CONSTRAINT coursetranscriptalternativecourseidentificationcode_pk PRIMARY KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, courseidentificationsystemdescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: coursetranscriptcreditcategory coursetranscriptcreditcategory_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptcreditcategory + ADD CONSTRAINT coursetranscriptcreditcategory_pk PRIMARY KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, creditcategorydescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: coursetranscriptearnedadditionalcredits coursetranscriptearnedadditionalcredits_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptearnedadditionalcredits + ADD CONSTRAINT coursetranscriptearnedadditionalcredits_pk PRIMARY KEY (additionalcredittypedescriptorid, courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: coursetranscriptpartialcoursetranscriptawards coursetranscriptpartialcoursetranscriptawards_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptpartialcoursetranscriptawards + ADD CONSTRAINT coursetranscriptpartialcoursetranscriptawards_pk PRIMARY KEY (awarddate, courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: credential credential_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credential + ADD CONSTRAINT credential_pk PRIMARY KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: credentialacademicsubject credentialacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialacademicsubject + ADD CONSTRAINT credentialacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: credentialendorsement credentialendorsement_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialendorsement + ADD CONSTRAINT credentialendorsement_pk PRIMARY KEY (credentialendorsement, credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: credentialfielddescriptor credentialfielddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialfielddescriptor + ADD CONSTRAINT credentialfielddescriptor_pk PRIMARY KEY (credentialfielddescriptorid); + + +-- +-- Name: credentialgradelevel credentialgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialgradelevel + ADD CONSTRAINT credentialgradelevel_pk PRIMARY KEY (credentialidentifier, gradeleveldescriptorid, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: credentialtypedescriptor credentialtypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialtypedescriptor + ADD CONSTRAINT credentialtypedescriptor_pk PRIMARY KEY (credentialtypedescriptorid); + + +-- +-- Name: creditcategorydescriptor creditcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.creditcategorydescriptor + ADD CONSTRAINT creditcategorydescriptor_pk PRIMARY KEY (creditcategorydescriptorid); + + +-- +-- Name: credittypedescriptor credittypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credittypedescriptor + ADD CONSTRAINT credittypedescriptor_pk PRIMARY KEY (credittypedescriptorid); + + +-- +-- Name: cteprogramservicedescriptor cteprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cteprogramservicedescriptor + ADD CONSTRAINT cteprogramservicedescriptor_pk PRIMARY KEY (cteprogramservicedescriptorid); + + +-- +-- Name: curriculumuseddescriptor curriculumuseddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.curriculumuseddescriptor + ADD CONSTRAINT curriculumuseddescriptor_pk PRIMARY KEY (curriculumuseddescriptorid); + + +-- +-- Name: deliverymethoddescriptor deliverymethoddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.deliverymethoddescriptor + ADD CONSTRAINT deliverymethoddescriptor_pk PRIMARY KEY (deliverymethoddescriptorid); + + +-- +-- Name: descriptor descriptor_ak; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.descriptor + ADD CONSTRAINT descriptor_ak UNIQUE (codevalue, namespace); + + +-- +-- Name: descriptor descriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.descriptor + ADD CONSTRAINT descriptor_pk PRIMARY KEY (descriptorid); + + +-- +-- Name: diagnosisdescriptor diagnosisdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.diagnosisdescriptor + ADD CONSTRAINT diagnosisdescriptor_pk PRIMARY KEY (diagnosisdescriptorid); + + +-- +-- Name: diplomaleveldescriptor diplomaleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.diplomaleveldescriptor + ADD CONSTRAINT diplomaleveldescriptor_pk PRIMARY KEY (diplomaleveldescriptorid); + + +-- +-- Name: diplomatypedescriptor diplomatypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.diplomatypedescriptor + ADD CONSTRAINT diplomatypedescriptor_pk PRIMARY KEY (diplomatypedescriptorid); + + +-- +-- Name: disabilitydescriptor disabilitydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disabilitydescriptor + ADD CONSTRAINT disabilitydescriptor_pk PRIMARY KEY (disabilitydescriptorid); + + +-- +-- Name: disabilitydesignationdescriptor disabilitydesignationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disabilitydesignationdescriptor + ADD CONSTRAINT disabilitydesignationdescriptor_pk PRIMARY KEY (disabilitydesignationdescriptorid); + + +-- +-- Name: disabilitydeterminationsourcetypedescriptor disabilitydeterminationsourcetypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disabilitydeterminationsourcetypedescriptor + ADD CONSTRAINT disabilitydeterminationsourcetypedescriptor_pk PRIMARY KEY (disabilitydeterminationsourcetypedescriptorid); + + +-- +-- Name: disciplineaction disciplineaction_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineaction + ADD CONSTRAINT disciplineaction_pk PRIMARY KEY (disciplineactionidentifier, disciplinedate, studentusi); + + +-- +-- Name: disciplineactiondiscipline disciplineactiondiscipline_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactiondiscipline + ADD CONSTRAINT disciplineactiondiscipline_pk PRIMARY KEY (disciplineactionidentifier, disciplinedate, disciplinedescriptorid, studentusi); + + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor disciplineactionlengthdifferencereasondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionlengthdifferencereasondescriptor + ADD CONSTRAINT disciplineactionlengthdifferencereasondescriptor_pk PRIMARY KEY (disciplineactionlengthdifferencereasondescriptorid); + + +-- +-- Name: disciplineactionstaff disciplineactionstaff_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstaff + ADD CONSTRAINT disciplineactionstaff_pk PRIMARY KEY (disciplineactionidentifier, disciplinedate, staffusi, studentusi); + + +-- +-- Name: disciplineactionstudentdisciplineincidentassociation disciplineactionstudentdisciplineincidentassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstudentdisciplineincidentassociation + ADD CONSTRAINT disciplineactionstudentdisciplineincidentassociation_pk PRIMARY KEY (disciplineactionidentifier, disciplinedate, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: disciplineactionstudentdisciplineincidentbehaviorassociation disciplineactionstudentdisciplineincidentbehaviorassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstudentdisciplineincidentbehaviorassociation + ADD CONSTRAINT disciplineactionstudentdisciplineincidentbehaviorassociation_pk PRIMARY KEY (behaviordescriptorid, disciplineactionidentifier, disciplinedate, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: disciplinedescriptor disciplinedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplinedescriptor + ADD CONSTRAINT disciplinedescriptor_pk PRIMARY KEY (disciplinedescriptorid); + + +-- +-- Name: disciplineincident disciplineincident_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincident + ADD CONSTRAINT disciplineincident_pk PRIMARY KEY (incidentidentifier, schoolid); + + +-- +-- Name: disciplineincidentbehavior disciplineincidentbehavior_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentbehavior + ADD CONSTRAINT disciplineincidentbehavior_pk PRIMARY KEY (behaviordescriptorid, incidentidentifier, schoolid); + + +-- +-- Name: disciplineincidentexternalparticipant disciplineincidentexternalparticipant_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentexternalparticipant + ADD CONSTRAINT disciplineincidentexternalparticipant_pk PRIMARY KEY (disciplineincidentparticipationcodedescriptorid, firstname, incidentidentifier, lastsurname, schoolid); + + +-- +-- Name: disciplineincidentparticipationcodedescriptor disciplineincidentparticipationcodedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentparticipationcodedescriptor + ADD CONSTRAINT disciplineincidentparticipationcodedescriptor_pk PRIMARY KEY (disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: disciplineincidentweapon disciplineincidentweapon_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentweapon + ADD CONSTRAINT disciplineincidentweapon_pk PRIMARY KEY (incidentidentifier, schoolid, weapondescriptorid); + + +-- +-- Name: educationalenvironmentdescriptor educationalenvironmentdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationalenvironmentdescriptor + ADD CONSTRAINT educationalenvironmentdescriptor_pk PRIMARY KEY (educationalenvironmentdescriptorid); + + +-- +-- Name: educationcontent educationcontent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontent + ADD CONSTRAINT educationcontent_pk PRIMARY KEY (contentidentifier); + + +-- +-- Name: educationcontentappropriategradelevel educationcontentappropriategradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentappropriategradelevel + ADD CONSTRAINT educationcontentappropriategradelevel_pk PRIMARY KEY (contentidentifier, gradeleveldescriptorid); + + +-- +-- Name: educationcontentappropriatesex educationcontentappropriatesex_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentappropriatesex + ADD CONSTRAINT educationcontentappropriatesex_pk PRIMARY KEY (contentidentifier, sexdescriptorid); + + +-- +-- Name: educationcontentauthor educationcontentauthor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentauthor + ADD CONSTRAINT educationcontentauthor_pk PRIMARY KEY (author, contentidentifier); + + +-- +-- Name: educationcontentderivativesourceeducationcontent educationcontentderivativesourceeducationcontent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourceeducationcontent + ADD CONSTRAINT educationcontentderivativesourceeducationcontent_pk PRIMARY KEY (contentidentifier, derivativesourcecontentidentifier); + + +-- +-- Name: educationcontentderivativesourcelearningresourcemetadatauri educationcontentderivativesourcelearningresourcemetadatauri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourcelearningresourcemetadatauri + ADD CONSTRAINT educationcontentderivativesourcelearningresourcemetadatauri_pk PRIMARY KEY (contentidentifier, derivativesourcelearningresourcemetadatauri); + + +-- +-- Name: educationcontentderivativesourceuri educationcontentderivativesourceuri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourceuri + ADD CONSTRAINT educationcontentderivativesourceuri_pk PRIMARY KEY (contentidentifier, derivativesourceuri); + + +-- +-- Name: educationcontentlanguage educationcontentlanguage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentlanguage + ADD CONSTRAINT educationcontentlanguage_pk PRIMARY KEY (contentidentifier, languagedescriptorid); + + +-- +-- Name: educationorganization educationorganization_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganization + ADD CONSTRAINT educationorganization_pk PRIMARY KEY (educationorganizationid); + + +-- +-- Name: educationorganizationaddress educationorganizationaddress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddress + ADD CONSTRAINT educationorganizationaddress_pk PRIMARY KEY (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: educationorganizationaddressperiod educationorganizationaddressperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddressperiod + ADD CONSTRAINT educationorganizationaddressperiod_pk PRIMARY KEY (addresstypedescriptorid, begindate, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: educationorganizationcategory educationorganizationcategory_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationcategory + ADD CONSTRAINT educationorganizationcategory_pk PRIMARY KEY (educationorganizationcategorydescriptorid, educationorganizationid); + + +-- +-- Name: educationorganizationcategorydescriptor educationorganizationcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationcategorydescriptor + ADD CONSTRAINT educationorganizationcategorydescriptor_pk PRIMARY KEY (educationorganizationcategorydescriptorid); + + +-- +-- Name: educationorganizationidentificationcode educationorganizationidentificationcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationidentificationcode + ADD CONSTRAINT educationorganizationidentificationcode_pk PRIMARY KEY (educationorganizationid, educationorganizationidentificationsystemdescriptorid); + + +-- +-- Name: educationorganizationidentificationsystemdescriptor educationorganizationidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationidentificationsystemdescriptor + ADD CONSTRAINT educationorganizationidentificationsystemdescriptor_pk PRIMARY KEY (educationorganizationidentificationsystemdescriptorid); + + +-- +-- Name: educationorganizationindicator educationorganizationindicator_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicator + ADD CONSTRAINT educationorganizationindicator_pk PRIMARY KEY (educationorganizationid, indicatordescriptorid); + + +-- +-- Name: educationorganizationindicatorperiod educationorganizationindicatorperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicatorperiod + ADD CONSTRAINT educationorganizationindicatorperiod_pk PRIMARY KEY (begindate, educationorganizationid, indicatordescriptorid); + + +-- +-- Name: educationorganizationinstitutiontelephone educationorganizationinstitutiontelephone_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinstitutiontelephone + ADD CONSTRAINT educationorganizationinstitutiontelephone_pk PRIMARY KEY (educationorganizationid, institutiontelephonenumbertypedescriptorid); + + +-- +-- Name: educationorganizationinternationaladdress educationorganizationinternationaladdress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinternationaladdress + ADD CONSTRAINT educationorganizationinternationaladdress_pk PRIMARY KEY (addresstypedescriptorid, educationorganizationid); + + +-- +-- Name: educationorganizationinterventionprescriptionassociation educationorganizationinterventionprescriptionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinterventionprescriptionassociation + ADD CONSTRAINT educationorganizationinterventionprescriptionassociation_pk PRIMARY KEY (educationorganizationid, interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: educationorganizationnetwork educationorganizationnetwork_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationnetwork + ADD CONSTRAINT educationorganizationnetwork_pk PRIMARY KEY (educationorganizationnetworkid); + + +-- +-- Name: educationorganizationnetworkassociation educationorganizationnetworkassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationnetworkassociation + ADD CONSTRAINT educationorganizationnetworkassociation_pk PRIMARY KEY (educationorganizationnetworkid, membereducationorganizationid); + + +-- +-- Name: educationorganizationpeerassociation educationorganizationpeerassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationpeerassociation + ADD CONSTRAINT educationorganizationpeerassociation_pk PRIMARY KEY (educationorganizationid, peereducationorganizationid); + + +-- +-- Name: educationplandescriptor educationplandescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationplandescriptor + ADD CONSTRAINT educationplandescriptor_pk PRIMARY KEY (educationplandescriptorid); + + +-- +-- Name: educationservicecenter educationservicecenter_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationservicecenter + ADD CONSTRAINT educationservicecenter_pk PRIMARY KEY (educationservicecenterid); + + +-- +-- Name: electronicmailtypedescriptor electronicmailtypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.electronicmailtypedescriptor + ADD CONSTRAINT electronicmailtypedescriptor_pk PRIMARY KEY (electronicmailtypedescriptorid); + + +-- +-- Name: employmentstatusdescriptor employmentstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.employmentstatusdescriptor + ADD CONSTRAINT employmentstatusdescriptor_pk PRIMARY KEY (employmentstatusdescriptorid); + + +-- +-- Name: entrygradelevelreasondescriptor entrygradelevelreasondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.entrygradelevelreasondescriptor + ADD CONSTRAINT entrygradelevelreasondescriptor_pk PRIMARY KEY (entrygradelevelreasondescriptorid); + + +-- +-- Name: entrytypedescriptor entrytypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.entrytypedescriptor + ADD CONSTRAINT entrytypedescriptor_pk PRIMARY KEY (entrytypedescriptorid); + + +-- +-- Name: eventcircumstancedescriptor eventcircumstancedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.eventcircumstancedescriptor + ADD CONSTRAINT eventcircumstancedescriptor_pk PRIMARY KEY (eventcircumstancedescriptorid); + + +-- +-- Name: exitwithdrawtypedescriptor exitwithdrawtypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.exitwithdrawtypedescriptor + ADD CONSTRAINT exitwithdrawtypedescriptor_pk PRIMARY KEY (exitwithdrawtypedescriptorid); + + +-- +-- Name: feederschoolassociation feederschoolassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.feederschoolassociation + ADD CONSTRAINT feederschoolassociation_pk PRIMARY KEY (begindate, feederschoolid, schoolid); + + +-- +-- Name: generalstudentprogramassociation generalstudentprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociation + ADD CONSTRAINT generalstudentprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: generalstudentprogramassociationparticipationstatus generalstudentprogramassociationparticipationstatus_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociationparticipationstatus + ADD CONSTRAINT generalstudentprogramassociationparticipationstatus_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: generalstudentprogramassociationprogramparticipationstatus generalstudentprogramassociationprogramparticipationstatus_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociationprogramparticipationstatus + ADD CONSTRAINT generalstudentprogramassociationprogramparticipationstatus_pk PRIMARY KEY (begindate, educationorganizationid, participationstatusdescriptorid, programeducationorganizationid, programname, programtypedescriptorid, statusbegindate, studentusi); + + +-- +-- Name: grade grade_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.grade + ADD CONSTRAINT grade_pk PRIMARY KEY (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: gradebookentry gradebookentry_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentry + ADD CONSTRAINT gradebookentry_pk PRIMARY KEY (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: gradebookentrylearningobjective gradebookentrylearningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrylearningobjective + ADD CONSTRAINT gradebookentrylearningobjective_pk PRIMARY KEY (dateassigned, gradebookentrytitle, learningobjectiveid, localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: gradebookentrylearningstandard gradebookentrylearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrylearningstandard + ADD CONSTRAINT gradebookentrylearningstandard_pk PRIMARY KEY (dateassigned, gradebookentrytitle, learningstandardid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: gradebookentrytypedescriptor gradebookentrytypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrytypedescriptor + ADD CONSTRAINT gradebookentrytypedescriptor_pk PRIMARY KEY (gradebookentrytypedescriptorid); + + +-- +-- Name: gradelearningstandardgrade gradelearningstandardgrade_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradelearningstandardgrade + ADD CONSTRAINT gradelearningstandardgrade_pk PRIMARY KEY (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, learningstandardid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: gradeleveldescriptor gradeleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradeleveldescriptor + ADD CONSTRAINT gradeleveldescriptor_pk PRIMARY KEY (gradeleveldescriptorid); + + +-- +-- Name: gradepointaveragetypedescriptor gradepointaveragetypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradepointaveragetypedescriptor + ADD CONSTRAINT gradepointaveragetypedescriptor_pk PRIMARY KEY (gradepointaveragetypedescriptorid); + + +-- +-- Name: gradetypedescriptor gradetypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradetypedescriptor + ADD CONSTRAINT gradetypedescriptor_pk PRIMARY KEY (gradetypedescriptorid); + + +-- +-- Name: gradingperiod gradingperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradingperiod + ADD CONSTRAINT gradingperiod_pk PRIMARY KEY (gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: gradingperioddescriptor gradingperioddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradingperioddescriptor + ADD CONSTRAINT gradingperioddescriptor_pk PRIMARY KEY (gradingperioddescriptorid); + + +-- +-- Name: graduationplan graduationplan_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplan + ADD CONSTRAINT graduationplan_pk PRIMARY KEY (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: graduationplancreditsbycourse graduationplancreditsbycourse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycourse + ADD CONSTRAINT graduationplancreditsbycourse_pk PRIMARY KEY (coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: graduationplancreditsbycoursecourse graduationplancreditsbycoursecourse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycoursecourse + ADD CONSTRAINT graduationplancreditsbycoursecourse_pk PRIMARY KEY (coursecode, courseeducationorganizationid, coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: graduationplancreditsbycreditcategory graduationplancreditsbycreditcategory_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycreditcategory + ADD CONSTRAINT graduationplancreditsbycreditcategory_pk PRIMARY KEY (creditcategorydescriptorid, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: graduationplancreditsbysubject graduationplancreditsbysubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbysubject + ADD CONSTRAINT graduationplancreditsbysubject_pk PRIMARY KEY (academicsubjectdescriptorid, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: graduationplanrequiredassessment graduationplanrequiredassessment_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessment + ADD CONSTRAINT graduationplanrequiredassessment_pk PRIMARY KEY (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace); + + +-- +-- Name: graduationplanrequiredassessmentperformancelevel graduationplanrequiredassessmentperformancelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentperformancelevel + ADD CONSTRAINT graduationplanrequiredassessmentperformancelevel_pk PRIMARY KEY (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace); + + +-- +-- Name: graduationplanrequiredassessmentscore graduationplanrequiredassessmentscore_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentscore + ADD CONSTRAINT graduationplanrequiredassessmentscore_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace); + + +-- +-- Name: graduationplantypedescriptor graduationplantypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplantypedescriptor + ADD CONSTRAINT graduationplantypedescriptor_pk PRIMARY KEY (graduationplantypedescriptorid); + + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor gunfreeschoolsactreportingstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gunfreeschoolsactreportingstatusdescriptor + ADD CONSTRAINT gunfreeschoolsactreportingstatusdescriptor_pk PRIMARY KEY (gunfreeschoolsactreportingstatusdescriptorid); + + +-- +-- Name: homelessprimarynighttimeresidencedescriptor homelessprimarynighttimeresidencedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.homelessprimarynighttimeresidencedescriptor + ADD CONSTRAINT homelessprimarynighttimeresidencedescriptor_pk PRIMARY KEY (homelessprimarynighttimeresidencedescriptorid); + + +-- +-- Name: homelessprogramservicedescriptor homelessprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.homelessprogramservicedescriptor + ADD CONSTRAINT homelessprogramservicedescriptor_pk PRIMARY KEY (homelessprogramservicedescriptorid); + + +-- +-- Name: identificationdocumentusedescriptor identificationdocumentusedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.identificationdocumentusedescriptor + ADD CONSTRAINT identificationdocumentusedescriptor_pk PRIMARY KEY (identificationdocumentusedescriptorid); + + +-- +-- Name: incidentlocationdescriptor incidentlocationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.incidentlocationdescriptor + ADD CONSTRAINT incidentlocationdescriptor_pk PRIMARY KEY (incidentlocationdescriptorid); + + +-- +-- Name: indicatordescriptor indicatordescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.indicatordescriptor + ADD CONSTRAINT indicatordescriptor_pk PRIMARY KEY (indicatordescriptorid); + + +-- +-- Name: indicatorgroupdescriptor indicatorgroupdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.indicatorgroupdescriptor + ADD CONSTRAINT indicatorgroupdescriptor_pk PRIMARY KEY (indicatorgroupdescriptorid); + + +-- +-- Name: indicatorleveldescriptor indicatorleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.indicatorleveldescriptor + ADD CONSTRAINT indicatorleveldescriptor_pk PRIMARY KEY (indicatorleveldescriptorid); + + +-- +-- Name: institutiontelephonenumbertypedescriptor institutiontelephonenumbertypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.institutiontelephonenumbertypedescriptor + ADD CONSTRAINT institutiontelephonenumbertypedescriptor_pk PRIMARY KEY (institutiontelephonenumbertypedescriptorid); + + +-- +-- Name: interactivitystyledescriptor interactivitystyledescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interactivitystyledescriptor + ADD CONSTRAINT interactivitystyledescriptor_pk PRIMARY KEY (interactivitystyledescriptorid); + + +-- +-- Name: internetaccessdescriptor internetaccessdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.internetaccessdescriptor + ADD CONSTRAINT internetaccessdescriptor_pk PRIMARY KEY (internetaccessdescriptorid); + + +-- +-- Name: internetaccesstypeinresidencedescriptor internetaccesstypeinresidencedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.internetaccesstypeinresidencedescriptor + ADD CONSTRAINT internetaccesstypeinresidencedescriptor_pk PRIMARY KEY (internetaccesstypeinresidencedescriptorid); + + +-- +-- Name: internetperformanceinresidencedescriptor internetperformanceinresidencedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.internetperformanceinresidencedescriptor + ADD CONSTRAINT internetperformanceinresidencedescriptor_pk PRIMARY KEY (internetperformanceinresidencedescriptorid); + + +-- +-- Name: intervention intervention_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.intervention + ADD CONSTRAINT intervention_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: interventionappropriategradelevel interventionappropriategradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionappropriategradelevel + ADD CONSTRAINT interventionappropriategradelevel_pk PRIMARY KEY (educationorganizationid, gradeleveldescriptorid, interventionidentificationcode); + + +-- +-- Name: interventionappropriatesex interventionappropriatesex_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionappropriatesex + ADD CONSTRAINT interventionappropriatesex_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, sexdescriptorid); + + +-- +-- Name: interventionclassdescriptor interventionclassdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionclassdescriptor + ADD CONSTRAINT interventionclassdescriptor_pk PRIMARY KEY (interventionclassdescriptorid); + + +-- +-- Name: interventiondiagnosis interventiondiagnosis_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventiondiagnosis + ADD CONSTRAINT interventiondiagnosis_pk PRIMARY KEY (diagnosisdescriptorid, educationorganizationid, interventionidentificationcode); + + +-- +-- Name: interventioneducationcontent interventioneducationcontent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioneducationcontent + ADD CONSTRAINT interventioneducationcontent_pk PRIMARY KEY (contentidentifier, educationorganizationid, interventionidentificationcode); + + +-- +-- Name: interventioneffectivenessratingdescriptor interventioneffectivenessratingdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioneffectivenessratingdescriptor + ADD CONSTRAINT interventioneffectivenessratingdescriptor_pk PRIMARY KEY (interventioneffectivenessratingdescriptorid); + + +-- +-- Name: interventioninterventionprescription interventioninterventionprescription_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioninterventionprescription + ADD CONSTRAINT interventioninterventionprescription_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: interventionlearningresourcemetadatauri interventionlearningresourcemetadatauri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionlearningresourcemetadatauri + ADD CONSTRAINT interventionlearningresourcemetadatauri_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, learningresourcemetadatauri); + + +-- +-- Name: interventionmeetingtime interventionmeetingtime_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionmeetingtime + ADD CONSTRAINT interventionmeetingtime_pk PRIMARY KEY (educationorganizationid, endtime, interventionidentificationcode, starttime); + + +-- +-- Name: interventionpopulationserved interventionpopulationserved_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionpopulationserved + ADD CONSTRAINT interventionpopulationserved_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, populationserveddescriptorid); + + +-- +-- Name: interventionprescription interventionprescription_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescription + ADD CONSTRAINT interventionprescription_pk PRIMARY KEY (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: interventionprescriptionappropriategradelevel interventionprescriptionappropriategradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionappropriategradelevel + ADD CONSTRAINT interventionprescriptionappropriategradelevel_pk PRIMARY KEY (educationorganizationid, gradeleveldescriptorid, interventionprescriptionidentificationcode); + + +-- +-- Name: interventionprescriptionappropriatesex interventionprescriptionappropriatesex_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionappropriatesex + ADD CONSTRAINT interventionprescriptionappropriatesex_pk PRIMARY KEY (educationorganizationid, interventionprescriptionidentificationcode, sexdescriptorid); + + +-- +-- Name: interventionprescriptiondiagnosis interventionprescriptiondiagnosis_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptiondiagnosis + ADD CONSTRAINT interventionprescriptiondiagnosis_pk PRIMARY KEY (diagnosisdescriptorid, educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: interventionprescriptioneducationcontent interventionprescriptioneducationcontent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptioneducationcontent + ADD CONSTRAINT interventionprescriptioneducationcontent_pk PRIMARY KEY (contentidentifier, educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: interventionprescriptionlearningresourcemetadatauri interventionprescriptionlearningresourcemetadatauri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionlearningresourcemetadatauri + ADD CONSTRAINT interventionprescriptionlearningresourcemetadatauri_pk PRIMARY KEY (educationorganizationid, interventionprescriptionidentificationcode, learningresourcemetadatauri); + + +-- +-- Name: interventionprescriptionpopulationserved interventionprescriptionpopulationserved_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionpopulationserved + ADD CONSTRAINT interventionprescriptionpopulationserved_pk PRIMARY KEY (educationorganizationid, interventionprescriptionidentificationcode, populationserveddescriptorid); + + +-- +-- Name: interventionprescriptionuri interventionprescriptionuri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionuri + ADD CONSTRAINT interventionprescriptionuri_pk PRIMARY KEY (educationorganizationid, interventionprescriptionidentificationcode, uri); + + +-- +-- Name: interventionstaff interventionstaff_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstaff + ADD CONSTRAINT interventionstaff_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, staffusi); + + +-- +-- Name: interventionstudy interventionstudy_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudy + ADD CONSTRAINT interventionstudy_pk PRIMARY KEY (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: interventionstudyappropriategradelevel interventionstudyappropriategradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyappropriategradelevel + ADD CONSTRAINT interventionstudyappropriategradelevel_pk PRIMARY KEY (educationorganizationid, gradeleveldescriptorid, interventionstudyidentificationcode); + + +-- +-- Name: interventionstudyappropriatesex interventionstudyappropriatesex_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyappropriatesex + ADD CONSTRAINT interventionstudyappropriatesex_pk PRIMARY KEY (educationorganizationid, interventionstudyidentificationcode, sexdescriptorid); + + +-- +-- Name: interventionstudyeducationcontent interventionstudyeducationcontent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyeducationcontent + ADD CONSTRAINT interventionstudyeducationcontent_pk PRIMARY KEY (contentidentifier, educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: interventionstudyinterventioneffectiveness interventionstudyinterventioneffectiveness_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyinterventioneffectiveness + ADD CONSTRAINT interventionstudyinterventioneffectiveness_pk PRIMARY KEY (diagnosisdescriptorid, educationorganizationid, gradeleveldescriptorid, interventionstudyidentificationcode, populationserveddescriptorid); + + +-- +-- Name: interventionstudylearningresourcemetadatauri interventionstudylearningresourcemetadatauri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudylearningresourcemetadatauri + ADD CONSTRAINT interventionstudylearningresourcemetadatauri_pk PRIMARY KEY (educationorganizationid, interventionstudyidentificationcode, learningresourcemetadatauri); + + +-- +-- Name: interventionstudypopulationserved interventionstudypopulationserved_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudypopulationserved + ADD CONSTRAINT interventionstudypopulationserved_pk PRIMARY KEY (educationorganizationid, interventionstudyidentificationcode, populationserveddescriptorid); + + +-- +-- Name: interventionstudystateabbreviation interventionstudystateabbreviation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudystateabbreviation + ADD CONSTRAINT interventionstudystateabbreviation_pk PRIMARY KEY (educationorganizationid, interventionstudyidentificationcode, stateabbreviationdescriptorid); + + +-- +-- Name: interventionstudyuri interventionstudyuri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyuri + ADD CONSTRAINT interventionstudyuri_pk PRIMARY KEY (educationorganizationid, interventionstudyidentificationcode, uri); + + +-- +-- Name: interventionuri interventionuri_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionuri + ADD CONSTRAINT interventionuri_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, uri); + + +-- +-- Name: languagedescriptor languagedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.languagedescriptor + ADD CONSTRAINT languagedescriptor_pk PRIMARY KEY (languagedescriptorid); + + +-- +-- Name: languageinstructionprogramservicedescriptor languageinstructionprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.languageinstructionprogramservicedescriptor + ADD CONSTRAINT languageinstructionprogramservicedescriptor_pk PRIMARY KEY (languageinstructionprogramservicedescriptorid); + + +-- +-- Name: languageusedescriptor languageusedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.languageusedescriptor + ADD CONSTRAINT languageusedescriptor_pk PRIMARY KEY (languageusedescriptorid); + + +-- +-- Name: learningobjective learningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjective + ADD CONSTRAINT learningobjective_pk PRIMARY KEY (learningobjectiveid, namespace); + + +-- +-- Name: learningobjectiveacademicsubject learningobjectiveacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectiveacademicsubject + ADD CONSTRAINT learningobjectiveacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, learningobjectiveid, namespace); + + +-- +-- Name: learningobjectivecontentstandard learningobjectivecontentstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivecontentstandard + ADD CONSTRAINT learningobjectivecontentstandard_pk PRIMARY KEY (learningobjectiveid, namespace); + + +-- +-- Name: learningobjectivecontentstandardauthor learningobjectivecontentstandardauthor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivecontentstandardauthor + ADD CONSTRAINT learningobjectivecontentstandardauthor_pk PRIMARY KEY (author, learningobjectiveid, namespace); + + +-- +-- Name: learningobjectivegradelevel learningobjectivegradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivegradelevel + ADD CONSTRAINT learningobjectivegradelevel_pk PRIMARY KEY (gradeleveldescriptorid, learningobjectiveid, namespace); + + +-- +-- Name: learningobjectivelearningstandard learningobjectivelearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivelearningstandard + ADD CONSTRAINT learningobjectivelearningstandard_pk PRIMARY KEY (learningobjectiveid, learningstandardid, namespace); + + +-- +-- Name: learningstandard learningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandard + ADD CONSTRAINT learningstandard_pk PRIMARY KEY (learningstandardid); + + +-- +-- Name: learningstandardacademicsubject learningstandardacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardacademicsubject + ADD CONSTRAINT learningstandardacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, learningstandardid); + + +-- +-- Name: learningstandardcategorydescriptor learningstandardcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcategorydescriptor + ADD CONSTRAINT learningstandardcategorydescriptor_pk PRIMARY KEY (learningstandardcategorydescriptorid); + + +-- +-- Name: learningstandardcontentstandard learningstandardcontentstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcontentstandard + ADD CONSTRAINT learningstandardcontentstandard_pk PRIMARY KEY (learningstandardid); + + +-- +-- Name: learningstandardcontentstandardauthor learningstandardcontentstandardauthor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcontentstandardauthor + ADD CONSTRAINT learningstandardcontentstandardauthor_pk PRIMARY KEY (author, learningstandardid); + + +-- +-- Name: learningstandardequivalenceassociation learningstandardequivalenceassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardequivalenceassociation + ADD CONSTRAINT learningstandardequivalenceassociation_pk PRIMARY KEY (namespace, sourcelearningstandardid, targetlearningstandardid); + + +-- +-- Name: learningstandardequivalencestrengthdescriptor learningstandardequivalencestrengthdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardequivalencestrengthdescriptor + ADD CONSTRAINT learningstandardequivalencestrengthdescriptor_pk PRIMARY KEY (learningstandardequivalencestrengthdescriptorid); + + +-- +-- Name: learningstandardgradelevel learningstandardgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardgradelevel + ADD CONSTRAINT learningstandardgradelevel_pk PRIMARY KEY (gradeleveldescriptorid, learningstandardid); + + +-- +-- Name: learningstandardidentificationcode learningstandardidentificationcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardidentificationcode + ADD CONSTRAINT learningstandardidentificationcode_pk PRIMARY KEY (contentstandardname, identificationcode, learningstandardid); + + +-- +-- Name: learningstandardprerequisitelearningstandard learningstandardprerequisitelearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardprerequisitelearningstandard + ADD CONSTRAINT learningstandardprerequisitelearningstandard_pk PRIMARY KEY (learningstandardid, prerequisitelearningstandardid); + + +-- +-- Name: learningstandardscopedescriptor learningstandardscopedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardscopedescriptor + ADD CONSTRAINT learningstandardscopedescriptor_pk PRIMARY KEY (learningstandardscopedescriptorid); + + +-- +-- Name: levelofeducationdescriptor levelofeducationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.levelofeducationdescriptor + ADD CONSTRAINT levelofeducationdescriptor_pk PRIMARY KEY (levelofeducationdescriptorid); + + +-- +-- Name: licensestatusdescriptor licensestatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.licensestatusdescriptor + ADD CONSTRAINT licensestatusdescriptor_pk PRIMARY KEY (licensestatusdescriptorid); + + +-- +-- Name: licensetypedescriptor licensetypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.licensetypedescriptor + ADD CONSTRAINT licensetypedescriptor_pk PRIMARY KEY (licensetypedescriptorid); + + +-- +-- Name: limitedenglishproficiencydescriptor limitedenglishproficiencydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.limitedenglishproficiencydescriptor + ADD CONSTRAINT limitedenglishproficiencydescriptor_pk PRIMARY KEY (limitedenglishproficiencydescriptorid); + + +-- +-- Name: localedescriptor localedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localedescriptor + ADD CONSTRAINT localedescriptor_pk PRIMARY KEY (localedescriptorid); + + +-- +-- Name: localeducationagency localeducationagency_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT localeducationagency_pk PRIMARY KEY (localeducationagencyid); + + +-- +-- Name: localeducationagencyaccountability localeducationagencyaccountability_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyaccountability + ADD CONSTRAINT localeducationagencyaccountability_pk PRIMARY KEY (localeducationagencyid, schoolyear); + + +-- +-- Name: localeducationagencycategorydescriptor localeducationagencycategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencycategorydescriptor + ADD CONSTRAINT localeducationagencycategorydescriptor_pk PRIMARY KEY (localeducationagencycategorydescriptorid); + + +-- +-- Name: localeducationagencyfederalfunds localeducationagencyfederalfunds_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyfederalfunds + ADD CONSTRAINT localeducationagencyfederalfunds_pk PRIMARY KEY (fiscalyear, localeducationagencyid); + + +-- +-- Name: location location_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.location + ADD CONSTRAINT location_pk PRIMARY KEY (classroomidentificationcode, schoolid); + + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor magnetspecialprogramemphasisschooldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.magnetspecialprogramemphasisschooldescriptor + ADD CONSTRAINT magnetspecialprogramemphasisschooldescriptor_pk PRIMARY KEY (magnetspecialprogramemphasisschooldescriptorid); + + +-- +-- Name: mediumofinstructiondescriptor mediumofinstructiondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.mediumofinstructiondescriptor + ADD CONSTRAINT mediumofinstructiondescriptor_pk PRIMARY KEY (mediumofinstructiondescriptorid); + + +-- +-- Name: methodcreditearneddescriptor methodcreditearneddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.methodcreditearneddescriptor + ADD CONSTRAINT methodcreditearneddescriptor_pk PRIMARY KEY (methodcreditearneddescriptorid); + + +-- +-- Name: migranteducationprogramservicedescriptor migranteducationprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.migranteducationprogramservicedescriptor + ADD CONSTRAINT migranteducationprogramservicedescriptor_pk PRIMARY KEY (migranteducationprogramservicedescriptorid); + + +-- +-- Name: monitoreddescriptor monitoreddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.monitoreddescriptor + ADD CONSTRAINT monitoreddescriptor_pk PRIMARY KEY (monitoreddescriptorid); + + +-- +-- Name: neglectedordelinquentprogramdescriptor neglectedordelinquentprogramdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.neglectedordelinquentprogramdescriptor + ADD CONSTRAINT neglectedordelinquentprogramdescriptor_pk PRIMARY KEY (neglectedordelinquentprogramdescriptorid); + + +-- +-- Name: neglectedordelinquentprogramservicedescriptor neglectedordelinquentprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.neglectedordelinquentprogramservicedescriptor + ADD CONSTRAINT neglectedordelinquentprogramservicedescriptor_pk PRIMARY KEY (neglectedordelinquentprogramservicedescriptorid); + + +-- +-- Name: networkpurposedescriptor networkpurposedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.networkpurposedescriptor + ADD CONSTRAINT networkpurposedescriptor_pk PRIMARY KEY (networkpurposedescriptorid); + + +-- +-- Name: objectiveassessment objectiveassessment_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessment + ADD CONSTRAINT objectiveassessment_pk PRIMARY KEY (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: objectiveassessmentassessmentitem objectiveassessmentassessmentitem_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentassessmentitem + ADD CONSTRAINT objectiveassessmentassessmentitem_pk PRIMARY KEY (assessmentidentifier, assessmentitemidentificationcode, identificationcode, namespace); + + +-- +-- Name: objectiveassessmentlearningobjective objectiveassessmentlearningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentlearningobjective + ADD CONSTRAINT objectiveassessmentlearningobjective_pk PRIMARY KEY (assessmentidentifier, identificationcode, learningobjectiveid, learningobjectivenamespace, namespace); + + +-- +-- Name: objectiveassessmentlearningstandard objectiveassessmentlearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentlearningstandard + ADD CONSTRAINT objectiveassessmentlearningstandard_pk PRIMARY KEY (assessmentidentifier, identificationcode, learningstandardid, namespace); + + +-- +-- Name: objectiveassessmentperformancelevel objectiveassessmentperformancelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentperformancelevel + ADD CONSTRAINT objectiveassessmentperformancelevel_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, performanceleveldescriptorid); + + +-- +-- Name: objectiveassessmentscore objectiveassessmentscore_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentscore + ADD CONSTRAINT objectiveassessmentscore_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace); + + +-- +-- Name: oldethnicitydescriptor oldethnicitydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.oldethnicitydescriptor + ADD CONSTRAINT oldethnicitydescriptor_pk PRIMARY KEY (oldethnicitydescriptorid); + + +-- +-- Name: openstaffposition openstaffposition_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffposition + ADD CONSTRAINT openstaffposition_pk PRIMARY KEY (educationorganizationid, requisitionnumber); + + +-- +-- Name: openstaffpositionacademicsubject openstaffpositionacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffpositionacademicsubject + ADD CONSTRAINT openstaffpositionacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, educationorganizationid, requisitionnumber); + + +-- +-- Name: openstaffpositioninstructionalgradelevel openstaffpositioninstructionalgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffpositioninstructionalgradelevel + ADD CONSTRAINT openstaffpositioninstructionalgradelevel_pk PRIMARY KEY (educationorganizationid, gradeleveldescriptorid, requisitionnumber); + + +-- +-- Name: operationalstatusdescriptor operationalstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.operationalstatusdescriptor + ADD CONSTRAINT operationalstatusdescriptor_pk PRIMARY KEY (operationalstatusdescriptorid); + + +-- +-- Name: organizationdepartment organizationdepartment_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.organizationdepartment + ADD CONSTRAINT organizationdepartment_pk PRIMARY KEY (organizationdepartmentid); + + +-- +-- Name: othernametypedescriptor othernametypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.othernametypedescriptor + ADD CONSTRAINT othernametypedescriptor_pk PRIMARY KEY (othernametypedescriptorid); + + +-- +-- Name: parent parent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parent + ADD CONSTRAINT parent_pk PRIMARY KEY (parentusi); + + +-- +-- Name: parentaddress parentaddress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddress + ADD CONSTRAINT parentaddress_pk PRIMARY KEY (addresstypedescriptorid, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: parentaddressperiod parentaddressperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddressperiod + ADD CONSTRAINT parentaddressperiod_pk PRIMARY KEY (addresstypedescriptorid, begindate, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: parentelectronicmail parentelectronicmail_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentelectronicmail + ADD CONSTRAINT parentelectronicmail_pk PRIMARY KEY (electronicmailaddress, electronicmailtypedescriptorid, parentusi); + + +-- +-- Name: parentinternationaladdress parentinternationaladdress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentinternationaladdress + ADD CONSTRAINT parentinternationaladdress_pk PRIMARY KEY (addresstypedescriptorid, parentusi); + + +-- +-- Name: parentlanguage parentlanguage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentlanguage + ADD CONSTRAINT parentlanguage_pk PRIMARY KEY (languagedescriptorid, parentusi); + + +-- +-- Name: parentlanguageuse parentlanguageuse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentlanguageuse + ADD CONSTRAINT parentlanguageuse_pk PRIMARY KEY (languagedescriptorid, languageusedescriptorid, parentusi); + + +-- +-- Name: parentothername parentothername_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentothername + ADD CONSTRAINT parentothername_pk PRIMARY KEY (othernametypedescriptorid, parentusi); + + +-- +-- Name: parentpersonalidentificationdocument parentpersonalidentificationdocument_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentpersonalidentificationdocument + ADD CONSTRAINT parentpersonalidentificationdocument_pk PRIMARY KEY (identificationdocumentusedescriptorid, parentusi, personalinformationverificationdescriptorid); + + +-- +-- Name: parenttelephone parenttelephone_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parenttelephone + ADD CONSTRAINT parenttelephone_pk PRIMARY KEY (parentusi, telephonenumber, telephonenumbertypedescriptorid); + + +-- +-- Name: participationdescriptor participationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.participationdescriptor + ADD CONSTRAINT participationdescriptor_pk PRIMARY KEY (participationdescriptorid); + + +-- +-- Name: participationstatusdescriptor participationstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.participationstatusdescriptor + ADD CONSTRAINT participationstatusdescriptor_pk PRIMARY KEY (participationstatusdescriptorid); + + +-- +-- Name: payroll payroll_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.payroll + ADD CONSTRAINT payroll_pk PRIMARY KEY (accountidentifier, asofdate, educationorganizationid, fiscalyear, staffusi); + + +-- +-- Name: performancebaseconversiondescriptor performancebaseconversiondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.performancebaseconversiondescriptor + ADD CONSTRAINT performancebaseconversiondescriptor_pk PRIMARY KEY (performancebaseconversiondescriptorid); + + +-- +-- Name: performanceleveldescriptor performanceleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.performanceleveldescriptor + ADD CONSTRAINT performanceleveldescriptor_pk PRIMARY KEY (performanceleveldescriptorid); + + +-- +-- Name: person person_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.person + ADD CONSTRAINT person_pk PRIMARY KEY (personid, sourcesystemdescriptorid); + + +-- +-- Name: personalinformationverificationdescriptor personalinformationverificationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.personalinformationverificationdescriptor + ADD CONSTRAINT personalinformationverificationdescriptor_pk PRIMARY KEY (personalinformationverificationdescriptorid); + + +-- +-- Name: platformtypedescriptor platformtypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.platformtypedescriptor + ADD CONSTRAINT platformtypedescriptor_pk PRIMARY KEY (platformtypedescriptorid); + + +-- +-- Name: populationserveddescriptor populationserveddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.populationserveddescriptor + ADD CONSTRAINT populationserveddescriptor_pk PRIMARY KEY (populationserveddescriptorid); + + +-- +-- Name: postingresultdescriptor postingresultdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postingresultdescriptor + ADD CONSTRAINT postingresultdescriptor_pk PRIMARY KEY (postingresultdescriptorid); + + +-- +-- Name: postsecondaryevent postsecondaryevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryevent + ADD CONSTRAINT postsecondaryevent_pk PRIMARY KEY (eventdate, postsecondaryeventcategorydescriptorid, studentusi); + + +-- +-- Name: postsecondaryeventcategorydescriptor postsecondaryeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryeventcategorydescriptor + ADD CONSTRAINT postsecondaryeventcategorydescriptor_pk PRIMARY KEY (postsecondaryeventcategorydescriptorid); + + +-- +-- Name: postsecondaryinstitution postsecondaryinstitution_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitution + ADD CONSTRAINT postsecondaryinstitution_pk PRIMARY KEY (postsecondaryinstitutionid); + + +-- +-- Name: postsecondaryinstitutionleveldescriptor postsecondaryinstitutionleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitutionleveldescriptor + ADD CONSTRAINT postsecondaryinstitutionleveldescriptor_pk PRIMARY KEY (postsecondaryinstitutionleveldescriptorid); + + +-- +-- Name: postsecondaryinstitutionmediumofinstruction postsecondaryinstitutionmediumofinstruction_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitutionmediumofinstruction + ADD CONSTRAINT postsecondaryinstitutionmediumofinstruction_pk PRIMARY KEY (mediumofinstructiondescriptorid, postsecondaryinstitutionid); + + +-- +-- Name: primarylearningdeviceaccessdescriptor primarylearningdeviceaccessdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.primarylearningdeviceaccessdescriptor + ADD CONSTRAINT primarylearningdeviceaccessdescriptor_pk PRIMARY KEY (primarylearningdeviceaccessdescriptorid); + + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor primarylearningdeviceawayfromschooldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.primarylearningdeviceawayfromschooldescriptor + ADD CONSTRAINT primarylearningdeviceawayfromschooldescriptor_pk PRIMARY KEY (primarylearningdeviceawayfromschooldescriptorid); + + +-- +-- Name: primarylearningdeviceproviderdescriptor primarylearningdeviceproviderdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.primarylearningdeviceproviderdescriptor + ADD CONSTRAINT primarylearningdeviceproviderdescriptor_pk PRIMARY KEY (primarylearningdeviceproviderdescriptorid); + + +-- +-- Name: proficiencydescriptor proficiencydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.proficiencydescriptor + ADD CONSTRAINT proficiencydescriptor_pk PRIMARY KEY (proficiencydescriptorid); + + +-- +-- Name: program program_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.program + ADD CONSTRAINT program_pk PRIMARY KEY (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: programassignmentdescriptor programassignmentdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programassignmentdescriptor + ADD CONSTRAINT programassignmentdescriptor_pk PRIMARY KEY (programassignmentdescriptorid); + + +-- +-- Name: programcharacteristic programcharacteristic_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programcharacteristic + ADD CONSTRAINT programcharacteristic_pk PRIMARY KEY (educationorganizationid, programcharacteristicdescriptorid, programname, programtypedescriptorid); + + +-- +-- Name: programcharacteristicdescriptor programcharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programcharacteristicdescriptor + ADD CONSTRAINT programcharacteristicdescriptor_pk PRIMARY KEY (programcharacteristicdescriptorid); + + +-- +-- Name: programlearningobjective programlearningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programlearningobjective + ADD CONSTRAINT programlearningobjective_pk PRIMARY KEY (educationorganizationid, learningobjectiveid, namespace, programname, programtypedescriptorid); + + +-- +-- Name: programlearningstandard programlearningstandard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programlearningstandard + ADD CONSTRAINT programlearningstandard_pk PRIMARY KEY (educationorganizationid, learningstandardid, programname, programtypedescriptorid); + + +-- +-- Name: programservice programservice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programservice + ADD CONSTRAINT programservice_pk PRIMARY KEY (educationorganizationid, programname, programtypedescriptorid, servicedescriptorid); + + +-- +-- Name: programsponsor programsponsor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programsponsor + ADD CONSTRAINT programsponsor_pk PRIMARY KEY (educationorganizationid, programname, programsponsordescriptorid, programtypedescriptorid); + + +-- +-- Name: programsponsordescriptor programsponsordescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programsponsordescriptor + ADD CONSTRAINT programsponsordescriptor_pk PRIMARY KEY (programsponsordescriptorid); + + +-- +-- Name: programtypedescriptor programtypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programtypedescriptor + ADD CONSTRAINT programtypedescriptor_pk PRIMARY KEY (programtypedescriptorid); + + +-- +-- Name: progressdescriptor progressdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.progressdescriptor + ADD CONSTRAINT progressdescriptor_pk PRIMARY KEY (progressdescriptorid); + + +-- +-- Name: progressleveldescriptor progressleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.progressleveldescriptor + ADD CONSTRAINT progressleveldescriptor_pk PRIMARY KEY (progressleveldescriptorid); + + +-- +-- Name: providercategorydescriptor providercategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.providercategorydescriptor + ADD CONSTRAINT providercategorydescriptor_pk PRIMARY KEY (providercategorydescriptorid); + + +-- +-- Name: providerprofitabilitydescriptor providerprofitabilitydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.providerprofitabilitydescriptor + ADD CONSTRAINT providerprofitabilitydescriptor_pk PRIMARY KEY (providerprofitabilitydescriptorid); + + +-- +-- Name: providerstatusdescriptor providerstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.providerstatusdescriptor + ADD CONSTRAINT providerstatusdescriptor_pk PRIMARY KEY (providerstatusdescriptorid); + + +-- +-- Name: publicationstatusdescriptor publicationstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.publicationstatusdescriptor + ADD CONSTRAINT publicationstatusdescriptor_pk PRIMARY KEY (publicationstatusdescriptorid); + + +-- +-- Name: questionformdescriptor questionformdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.questionformdescriptor + ADD CONSTRAINT questionformdescriptor_pk PRIMARY KEY (questionformdescriptorid); + + +-- +-- Name: racedescriptor racedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.racedescriptor + ADD CONSTRAINT racedescriptor_pk PRIMARY KEY (racedescriptorid); + + +-- +-- Name: reasonexiteddescriptor reasonexiteddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reasonexiteddescriptor + ADD CONSTRAINT reasonexiteddescriptor_pk PRIMARY KEY (reasonexiteddescriptorid); + + +-- +-- Name: reasonnottesteddescriptor reasonnottesteddescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reasonnottesteddescriptor + ADD CONSTRAINT reasonnottesteddescriptor_pk PRIMARY KEY (reasonnottesteddescriptorid); + + +-- +-- Name: recognitiontypedescriptor recognitiontypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.recognitiontypedescriptor + ADD CONSTRAINT recognitiontypedescriptor_pk PRIMARY KEY (recognitiontypedescriptorid); + + +-- +-- Name: relationdescriptor relationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.relationdescriptor + ADD CONSTRAINT relationdescriptor_pk PRIMARY KEY (relationdescriptorid); + + +-- +-- Name: repeatidentifierdescriptor repeatidentifierdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.repeatidentifierdescriptor + ADD CONSTRAINT repeatidentifierdescriptor_pk PRIMARY KEY (repeatidentifierdescriptorid); + + +-- +-- Name: reportcard reportcard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcard + ADD CONSTRAINT reportcard_pk PRIMARY KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: reportcardgrade reportcardgrade_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardgrade + ADD CONSTRAINT reportcardgrade_pk PRIMARY KEY (begindate, educationorganizationid, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: reportcardgradepointaverage reportcardgradepointaverage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardgradepointaverage + ADD CONSTRAINT reportcardgradepointaverage_pk PRIMARY KEY (educationorganizationid, gradepointaveragetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: reportcardstudentcompetencyobjective reportcardstudentcompetencyobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardstudentcompetencyobjective + ADD CONSTRAINT reportcardstudentcompetencyobjective_pk PRIMARY KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi); + + +-- +-- Name: reportcardstudentlearningobjective reportcardstudentlearningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardstudentlearningobjective + ADD CONSTRAINT reportcardstudentlearningobjective_pk PRIMARY KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi); + + +-- +-- Name: reporterdescriptiondescriptor reporterdescriptiondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reporterdescriptiondescriptor + ADD CONSTRAINT reporterdescriptiondescriptor_pk PRIMARY KEY (reporterdescriptiondescriptorid); + + +-- +-- Name: residencystatusdescriptor residencystatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.residencystatusdescriptor + ADD CONSTRAINT residencystatusdescriptor_pk PRIMARY KEY (residencystatusdescriptorid); + + +-- +-- Name: responseindicatordescriptor responseindicatordescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.responseindicatordescriptor + ADD CONSTRAINT responseindicatordescriptor_pk PRIMARY KEY (responseindicatordescriptorid); + + +-- +-- Name: responsibilitydescriptor responsibilitydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.responsibilitydescriptor + ADD CONSTRAINT responsibilitydescriptor_pk PRIMARY KEY (responsibilitydescriptorid); + + +-- +-- Name: restraintevent restraintevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restraintevent + ADD CONSTRAINT restraintevent_pk PRIMARY KEY (restrainteventidentifier, schoolid, studentusi); + + +-- +-- Name: restrainteventprogram restrainteventprogram_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventprogram + ADD CONSTRAINT restrainteventprogram_pk PRIMARY KEY (educationorganizationid, programname, programtypedescriptorid, restrainteventidentifier, schoolid, studentusi); + + +-- +-- Name: restrainteventreason restrainteventreason_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventreason + ADD CONSTRAINT restrainteventreason_pk PRIMARY KEY (restrainteventidentifier, restrainteventreasondescriptorid, schoolid, studentusi); + + +-- +-- Name: restrainteventreasondescriptor restrainteventreasondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventreasondescriptor + ADD CONSTRAINT restrainteventreasondescriptor_pk PRIMARY KEY (restrainteventreasondescriptorid); + + +-- +-- Name: resultdatatypetypedescriptor resultdatatypetypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.resultdatatypetypedescriptor + ADD CONSTRAINT resultdatatypetypedescriptor_pk PRIMARY KEY (resultdatatypetypedescriptorid); + + +-- +-- Name: retestindicatordescriptor retestindicatordescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.retestindicatordescriptor + ADD CONSTRAINT retestindicatordescriptor_pk PRIMARY KEY (retestindicatordescriptorid); + + +-- +-- Name: school school_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT school_pk PRIMARY KEY (schoolid); + + +-- +-- Name: schoolcategory schoolcategory_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolcategory + ADD CONSTRAINT schoolcategory_pk PRIMARY KEY (schoolcategorydescriptorid, schoolid); + + +-- +-- Name: schoolcategorydescriptor schoolcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolcategorydescriptor + ADD CONSTRAINT schoolcategorydescriptor_pk PRIMARY KEY (schoolcategorydescriptorid); + + +-- +-- Name: schoolchoiceimplementstatusdescriptor schoolchoiceimplementstatusdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolchoiceimplementstatusdescriptor + ADD CONSTRAINT schoolchoiceimplementstatusdescriptor_pk PRIMARY KEY (schoolchoiceimplementstatusdescriptorid); + + +-- +-- Name: schoolfoodserviceprogramservicedescriptor schoolfoodserviceprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolfoodserviceprogramservicedescriptor + ADD CONSTRAINT schoolfoodserviceprogramservicedescriptor_pk PRIMARY KEY (schoolfoodserviceprogramservicedescriptorid); + + +-- +-- Name: schoolgradelevel schoolgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolgradelevel + ADD CONSTRAINT schoolgradelevel_pk PRIMARY KEY (gradeleveldescriptorid, schoolid); + + +-- +-- Name: schooltypedescriptor schooltypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schooltypedescriptor + ADD CONSTRAINT schooltypedescriptor_pk PRIMARY KEY (schooltypedescriptorid); + + +-- +-- Name: schoolyeartype schoolyeartype_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolyeartype + ADD CONSTRAINT schoolyeartype_pk PRIMARY KEY (schoolyear); + + +-- +-- Name: section section_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT section_pk PRIMARY KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: sectionattendancetakenevent sectionattendancetakenevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionattendancetakenevent + ADD CONSTRAINT sectionattendancetakenevent_pk PRIMARY KEY (calendarcode, date, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: sectioncharacteristic sectioncharacteristic_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncharacteristic + ADD CONSTRAINT sectioncharacteristic_pk PRIMARY KEY (localcoursecode, schoolid, schoolyear, sectioncharacteristicdescriptorid, sectionidentifier, sessionname); + + +-- +-- Name: sectioncharacteristicdescriptor sectioncharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncharacteristicdescriptor + ADD CONSTRAINT sectioncharacteristicdescriptor_pk PRIMARY KEY (sectioncharacteristicdescriptorid); + + +-- +-- Name: sectionclassperiod sectionclassperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionclassperiod + ADD CONSTRAINT sectionclassperiod_pk PRIMARY KEY (classperiodname, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: sectioncourselevelcharacteristic sectioncourselevelcharacteristic_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncourselevelcharacteristic + ADD CONSTRAINT sectioncourselevelcharacteristic_pk PRIMARY KEY (courselevelcharacteristicdescriptorid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: sectionofferedgradelevel sectionofferedgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionofferedgradelevel + ADD CONSTRAINT sectionofferedgradelevel_pk PRIMARY KEY (gradeleveldescriptorid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: sectionprogram sectionprogram_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionprogram + ADD CONSTRAINT sectionprogram_pk PRIMARY KEY (educationorganizationid, localcoursecode, programname, programtypedescriptorid, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: separationdescriptor separationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.separationdescriptor + ADD CONSTRAINT separationdescriptor_pk PRIMARY KEY (separationdescriptorid); + + +-- +-- Name: separationreasondescriptor separationreasondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.separationreasondescriptor + ADD CONSTRAINT separationreasondescriptor_pk PRIMARY KEY (separationreasondescriptorid); + + +-- +-- Name: servicedescriptor servicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.servicedescriptor + ADD CONSTRAINT servicedescriptor_pk PRIMARY KEY (servicedescriptorid); + + +-- +-- Name: session session_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.session + ADD CONSTRAINT session_pk PRIMARY KEY (schoolid, schoolyear, sessionname); + + +-- +-- Name: sessionacademicweek sessionacademicweek_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessionacademicweek + ADD CONSTRAINT sessionacademicweek_pk PRIMARY KEY (schoolid, schoolyear, sessionname, weekidentifier); + + +-- +-- Name: sessiongradingperiod sessiongradingperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessiongradingperiod + ADD CONSTRAINT sessiongradingperiod_pk PRIMARY KEY (gradingperioddescriptorid, periodsequence, schoolid, schoolyear, sessionname); + + +-- +-- Name: sexdescriptor sexdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sexdescriptor + ADD CONSTRAINT sexdescriptor_pk PRIMARY KEY (sexdescriptorid); + + +-- +-- Name: sourcesystemdescriptor sourcesystemdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sourcesystemdescriptor + ADD CONSTRAINT sourcesystemdescriptor_pk PRIMARY KEY (sourcesystemdescriptorid); + + +-- +-- Name: specialeducationprogramservicedescriptor specialeducationprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.specialeducationprogramservicedescriptor + ADD CONSTRAINT specialeducationprogramservicedescriptor_pk PRIMARY KEY (specialeducationprogramservicedescriptorid); + + +-- +-- Name: specialeducationsettingdescriptor specialeducationsettingdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.specialeducationsettingdescriptor + ADD CONSTRAINT specialeducationsettingdescriptor_pk PRIMARY KEY (specialeducationsettingdescriptorid); + + +-- +-- Name: staff staff_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff + ADD CONSTRAINT staff_pk PRIMARY KEY (staffusi); + + +-- +-- Name: staffabsenceevent staffabsenceevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffabsenceevent + ADD CONSTRAINT staffabsenceevent_pk PRIMARY KEY (absenceeventcategorydescriptorid, eventdate, staffusi); + + +-- +-- Name: staffaddress staffaddress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddress + ADD CONSTRAINT staffaddress_pk PRIMARY KEY (addresstypedescriptorid, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: staffaddressperiod staffaddressperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddressperiod + ADD CONSTRAINT staffaddressperiod_pk PRIMARY KEY (addresstypedescriptorid, begindate, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: staffancestryethnicorigin staffancestryethnicorigin_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffancestryethnicorigin + ADD CONSTRAINT staffancestryethnicorigin_pk PRIMARY KEY (ancestryethnicorigindescriptorid, staffusi); + + +-- +-- Name: staffclassificationdescriptor staffclassificationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffclassificationdescriptor + ADD CONSTRAINT staffclassificationdescriptor_pk PRIMARY KEY (staffclassificationdescriptorid); + + +-- +-- Name: staffcohortassociation staffcohortassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffcohortassociation + ADD CONSTRAINT staffcohortassociation_pk PRIMARY KEY (begindate, cohortidentifier, educationorganizationid, staffusi); + + +-- +-- Name: staffcredential staffcredential_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffcredential + ADD CONSTRAINT staffcredential_pk PRIMARY KEY (credentialidentifier, staffusi, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: staffdisciplineincidentassociation staffdisciplineincidentassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffdisciplineincidentassociation + ADD CONSTRAINT staffdisciplineincidentassociation_pk PRIMARY KEY (incidentidentifier, schoolid, staffusi); + + +-- +-- Name: staffdisciplineincidentassociationdisciplineincidentpart_7fa4be staffdisciplineincidentassociationdisciplineincide_7fa4be_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be + ADD CONSTRAINT staffdisciplineincidentassociationdisciplineincide_7fa4be_pk PRIMARY KEY (disciplineincidentparticipationcodedescriptorid, incidentidentifier, schoolid, staffusi); + + +-- +-- Name: staffeducationorganizationassignmentassociation staffeducationorganizationassignmentassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT staffeducationorganizationassignmentassociation_pk PRIMARY KEY (begindate, educationorganizationid, staffclassificationdescriptorid, staffusi); + + +-- +-- Name: staffeducationorganizationcontactassociation staffeducationorganizationcontactassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociation + ADD CONSTRAINT staffeducationorganizationcontactassociation_pk PRIMARY KEY (contacttitle, educationorganizationid, staffusi); + + +-- +-- Name: staffeducationorganizationcontactassociationaddress staffeducationorganizationcontactassociationaddress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddress + ADD CONSTRAINT staffeducationorganizationcontactassociationaddress_pk PRIMARY KEY (contacttitle, educationorganizationid, staffusi); + + +-- +-- Name: staffeducationorganizationcontactassociationaddressperiod staffeducationorganizationcontactassociationaddressperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddressperiod + ADD CONSTRAINT staffeducationorganizationcontactassociationaddressperiod_pk PRIMARY KEY (begindate, contacttitle, educationorganizationid, staffusi); + + +-- +-- Name: staffeducationorganizationcontactassociationtelephone staffeducationorganizationcontactassociationtelephone_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationtelephone + ADD CONSTRAINT staffeducationorganizationcontactassociationtelephone_pk PRIMARY KEY (contacttitle, educationorganizationid, staffusi, telephonenumber, telephonenumbertypedescriptorid); + + +-- +-- Name: staffeducationorganizationemploymentassociation staffeducationorganizationemploymentassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT staffeducationorganizationemploymentassociation_pk PRIMARY KEY (educationorganizationid, employmentstatusdescriptorid, hiredate, staffusi); + + +-- +-- Name: staffelectronicmail staffelectronicmail_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffelectronicmail + ADD CONSTRAINT staffelectronicmail_pk PRIMARY KEY (electronicmailaddress, electronicmailtypedescriptorid, staffusi); + + +-- +-- Name: staffidentificationcode staffidentificationcode_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationcode + ADD CONSTRAINT staffidentificationcode_pk PRIMARY KEY (staffidentificationsystemdescriptorid, staffusi); + + +-- +-- Name: staffidentificationdocument staffidentificationdocument_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationdocument + ADD CONSTRAINT staffidentificationdocument_pk PRIMARY KEY (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, staffusi); + + +-- +-- Name: staffidentificationsystemdescriptor staffidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationsystemdescriptor + ADD CONSTRAINT staffidentificationsystemdescriptor_pk PRIMARY KEY (staffidentificationsystemdescriptorid); + + +-- +-- Name: staffinternationaladdress staffinternationaladdress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffinternationaladdress + ADD CONSTRAINT staffinternationaladdress_pk PRIMARY KEY (addresstypedescriptorid, staffusi); + + +-- +-- Name: stafflanguage stafflanguage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafflanguage + ADD CONSTRAINT stafflanguage_pk PRIMARY KEY (languagedescriptorid, staffusi); + + +-- +-- Name: stafflanguageuse stafflanguageuse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafflanguageuse + ADD CONSTRAINT stafflanguageuse_pk PRIMARY KEY (languagedescriptorid, languageusedescriptorid, staffusi); + + +-- +-- Name: staffleave staffleave_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffleave + ADD CONSTRAINT staffleave_pk PRIMARY KEY (begindate, staffleaveeventcategorydescriptorid, staffusi); + + +-- +-- Name: staffleaveeventcategorydescriptor staffleaveeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffleaveeventcategorydescriptor + ADD CONSTRAINT staffleaveeventcategorydescriptor_pk PRIMARY KEY (staffleaveeventcategorydescriptorid); + + +-- +-- Name: staffothername staffothername_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffothername + ADD CONSTRAINT staffothername_pk PRIMARY KEY (othernametypedescriptorid, staffusi); + + +-- +-- Name: staffpersonalidentificationdocument staffpersonalidentificationdocument_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffpersonalidentificationdocument + ADD CONSTRAINT staffpersonalidentificationdocument_pk PRIMARY KEY (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, staffusi); + + +-- +-- Name: staffprogramassociation staffprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffprogramassociation + ADD CONSTRAINT staffprogramassociation_pk PRIMARY KEY (begindate, programeducationorganizationid, programname, programtypedescriptorid, staffusi); + + +-- +-- Name: staffrace staffrace_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrace + ADD CONSTRAINT staffrace_pk PRIMARY KEY (racedescriptorid, staffusi); + + +-- +-- Name: staffrecognition staffrecognition_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrecognition + ADD CONSTRAINT staffrecognition_pk PRIMARY KEY (recognitiontypedescriptorid, staffusi); + + +-- +-- Name: staffschoolassociation staffschoolassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociation + ADD CONSTRAINT staffschoolassociation_pk PRIMARY KEY (programassignmentdescriptorid, schoolid, staffusi); + + +-- +-- Name: staffschoolassociationacademicsubject staffschoolassociationacademicsubject_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociationacademicsubject + ADD CONSTRAINT staffschoolassociationacademicsubject_pk PRIMARY KEY (academicsubjectdescriptorid, programassignmentdescriptorid, schoolid, staffusi); + + +-- +-- Name: staffschoolassociationgradelevel staffschoolassociationgradelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociationgradelevel + ADD CONSTRAINT staffschoolassociationgradelevel_pk PRIMARY KEY (gradeleveldescriptorid, programassignmentdescriptorid, schoolid, staffusi); + + +-- +-- Name: staffsectionassociation staffsectionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffsectionassociation + ADD CONSTRAINT staffsectionassociation_pk PRIMARY KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, staffusi); + + +-- +-- Name: stafftelephone stafftelephone_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafftelephone + ADD CONSTRAINT stafftelephone_pk PRIMARY KEY (staffusi, telephonenumber, telephonenumbertypedescriptorid); + + +-- +-- Name: stafftribalaffiliation stafftribalaffiliation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafftribalaffiliation + ADD CONSTRAINT stafftribalaffiliation_pk PRIMARY KEY (staffusi, tribalaffiliationdescriptorid); + + +-- +-- Name: staffvisa staffvisa_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffvisa + ADD CONSTRAINT staffvisa_pk PRIMARY KEY (staffusi, visadescriptorid); + + +-- +-- Name: stateabbreviationdescriptor stateabbreviationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateabbreviationdescriptor + ADD CONSTRAINT stateabbreviationdescriptor_pk PRIMARY KEY (stateabbreviationdescriptorid); + + +-- +-- Name: stateeducationagency stateeducationagency_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagency + ADD CONSTRAINT stateeducationagency_pk PRIMARY KEY (stateeducationagencyid); + + +-- +-- Name: stateeducationagencyaccountability stateeducationagencyaccountability_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagencyaccountability + ADD CONSTRAINT stateeducationagencyaccountability_pk PRIMARY KEY (schoolyear, stateeducationagencyid); + + +-- +-- Name: stateeducationagencyfederalfunds stateeducationagencyfederalfunds_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagencyfederalfunds + ADD CONSTRAINT stateeducationagencyfederalfunds_pk PRIMARY KEY (fiscalyear, stateeducationagencyid); + + +-- +-- Name: student student_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student + ADD CONSTRAINT student_pk PRIMARY KEY (studentusi); + + +-- +-- Name: studentacademicrecord studentacademicrecord_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT studentacademicrecord_pk PRIMARY KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentacademicrecordacademichonor studentacademicrecordacademichonor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordacademichonor + ADD CONSTRAINT studentacademicrecordacademichonor_pk PRIMARY KEY (academichonorcategorydescriptorid, educationorganizationid, honordescription, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentacademicrecordclassranking studentacademicrecordclassranking_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordclassranking + ADD CONSTRAINT studentacademicrecordclassranking_pk PRIMARY KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentacademicrecorddiploma studentacademicrecorddiploma_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecorddiploma + ADD CONSTRAINT studentacademicrecorddiploma_pk PRIMARY KEY (diplomaawarddate, diplomatypedescriptorid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentacademicrecordgradepointaverage studentacademicrecordgradepointaverage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordgradepointaverage + ADD CONSTRAINT studentacademicrecordgradepointaverage_pk PRIMARY KEY (educationorganizationid, gradepointaveragetypedescriptorid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentacademicrecordrecognition studentacademicrecordrecognition_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordrecognition + ADD CONSTRAINT studentacademicrecordrecognition_pk PRIMARY KEY (educationorganizationid, recognitiontypedescriptorid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentacademicrecordreportcard studentacademicrecordreportcard_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordreportcard + ADD CONSTRAINT studentacademicrecordreportcard_pk PRIMARY KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: studentassessment studentassessment_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT studentassessment_pk PRIMARY KEY (assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentaccommodation studentassessmentaccommodation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentaccommodation + ADD CONSTRAINT studentassessmentaccommodation_pk PRIMARY KEY (accommodationdescriptorid, assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentitem studentassessmentitem_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentitem + ADD CONSTRAINT studentassessmentitem_pk PRIMARY KEY (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentperformancelevel studentassessmentperformancelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentperformancelevel + ADD CONSTRAINT studentassessmentperformancelevel_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, performanceleveldescriptorid, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentscoreresult studentassessmentscoreresult_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentscoreresult + ADD CONSTRAINT studentassessmentscoreresult_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentstudentobjectiveassessment studentassessmentstudentobjectiveassessment_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessment + ADD CONSTRAINT studentassessmentstudentobjectiveassessment_pk PRIMARY KEY (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentstudentobjectiveassessmentperformancelevel studentassessmentstudentobjectiveassessmentperformancelevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentperformancelevel + ADD CONSTRAINT studentassessmentstudentobjectiveassessmentperformancelevel_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, performanceleveldescriptorid, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentassessmentstudentobjectiveassessmentscoreresult studentassessmentstudentobjectiveassessmentscoreresult_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentscoreresult + ADD CONSTRAINT studentassessmentstudentobjectiveassessmentscoreresult_pk PRIMARY KEY (assessmentidentifier, assessmentreportingmethoddescriptorid, identificationcode, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: studentcharacteristicdescriptor studentcharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcharacteristicdescriptor + ADD CONSTRAINT studentcharacteristicdescriptor_pk PRIMARY KEY (studentcharacteristicdescriptorid); + + +-- +-- Name: studentcohortassociation studentcohortassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcohortassociation + ADD CONSTRAINT studentcohortassociation_pk PRIMARY KEY (begindate, cohortidentifier, educationorganizationid, studentusi); + + +-- +-- Name: studentcohortassociationsection studentcohortassociationsection_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcohortassociationsection + ADD CONSTRAINT studentcohortassociationsection_pk PRIMARY KEY (begindate, cohortidentifier, educationorganizationid, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studentcompetencyobjective studentcompetencyobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjective + ADD CONSTRAINT studentcompetencyobjective_pk PRIMARY KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi); + + +-- +-- Name: studentcompetencyobjectivegeneralstudentprogramassociation studentcompetencyobjectivegeneralstudentprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjectivegeneralstudentprogramassociation + ADD CONSTRAINT studentcompetencyobjectivegeneralstudentprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentcompetencyobjectivestudentsectionassociation studentcompetencyobjectivestudentsectionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjectivestudentsectionassociation + ADD CONSTRAINT studentcompetencyobjectivestudentsectionassociation_pk PRIMARY KEY (begindate, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studentcteprogramassociation studentcteprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociation + ADD CONSTRAINT studentcteprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentcteprogramassociationcteprogram studentcteprogramassociationcteprogram_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationcteprogram + ADD CONSTRAINT studentcteprogramassociationcteprogram_pk PRIMARY KEY (begindate, careerpathwaydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentcteprogramassociationcteprogramservice studentcteprogramassociationcteprogramservice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationcteprogramservice + ADD CONSTRAINT studentcteprogramassociationcteprogramservice_pk PRIMARY KEY (begindate, cteprogramservicedescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentcteprogramassociationservice studentcteprogramassociationservice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationservice + ADD CONSTRAINT studentcteprogramassociationservice_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, servicedescriptorid, studentusi); + + +-- +-- Name: studentdisciplineincidentassociation studentdisciplineincidentassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociation + ADD CONSTRAINT studentdisciplineincidentassociation_pk PRIMARY KEY (incidentidentifier, schoolid, studentusi); + + +-- +-- Name: studentdisciplineincidentassociationbehavior studentdisciplineincidentassociationbehavior_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociationbehavior + ADD CONSTRAINT studentdisciplineincidentassociationbehavior_pk PRIMARY KEY (behaviordescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: studentdisciplineincidentbehaviorassociation studentdisciplineincidentbehaviorassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociation + ADD CONSTRAINT studentdisciplineincidentbehaviorassociation_pk PRIMARY KEY (behaviordescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 studentdisciplineincidentbehaviorassociationdiscip_ae6a21_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 + ADD CONSTRAINT studentdisciplineincidentbehaviorassociationdiscip_ae6a21_pk PRIMARY KEY (behaviordescriptorid, disciplineincidentparticipationcodedescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation studentdisciplineincidentnonoffenderassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentnonoffenderassociation + ADD CONSTRAINT studentdisciplineincidentnonoffenderassociation_pk PRIMARY KEY (incidentidentifier, schoolid, studentusi); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociationdisciplin_4c979a studentdisciplineincidentnonoffenderassociationdis_4c979a_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a + ADD CONSTRAINT studentdisciplineincidentnonoffenderassociationdis_4c979a_pk PRIMARY KEY (disciplineincidentparticipationcodedescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: studenteducationorganizationassociation studenteducationorganizationassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT studenteducationorganizationassociation_pk PRIMARY KEY (educationorganizationid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationaddress studenteducationorganizationassociationaddress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddress + ADD CONSTRAINT studenteducationorganizationassociationaddress_pk PRIMARY KEY (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi); + + +-- +-- Name: studenteducationorganizationassociationaddressperiod studenteducationorganizationassociationaddressperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddressperiod + ADD CONSTRAINT studenteducationorganizationassociationaddressperiod_pk PRIMARY KEY (addresstypedescriptorid, begindate, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi); + + +-- +-- Name: studenteducationorganizationassociationancestryethnicorigin studenteducationorganizationassociationancestryethnicorigin_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationancestryethnicorigin + ADD CONSTRAINT studenteducationorganizationassociationancestryethnicorigin_pk PRIMARY KEY (ancestryethnicorigindescriptorid, educationorganizationid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationcohortyear studenteducationorganizationassociationcohortyear_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationcohortyear + ADD CONSTRAINT studenteducationorganizationassociationcohortyear_pk PRIMARY KEY (cohortyeartypedescriptorid, educationorganizationid, schoolyear, studentusi); + + +-- +-- Name: studenteducationorganizationassociationdisability studenteducationorganizationassociationdisability_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisability + ADD CONSTRAINT studenteducationorganizationassociationdisability_pk PRIMARY KEY (disabilitydescriptorid, educationorganizationid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationdisabilitydesignation studenteducationorganizationassociationdisabilitydesignation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisabilitydesignation + ADD CONSTRAINT studenteducationorganizationassociationdisabilitydesignation_pk PRIMARY KEY (disabilitydescriptorid, disabilitydesignationdescriptorid, educationorganizationid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationelectronicmail studenteducationorganizationassociationelectronicmail_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationelectronicmail + ADD CONSTRAINT studenteducationorganizationassociationelectronicmail_pk PRIMARY KEY (educationorganizationid, electronicmailaddress, electronicmailtypedescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationinternationaladdress studenteducationorganizationassociationinternationaladdress_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationinternationaladdress + ADD CONSTRAINT studenteducationorganizationassociationinternationaladdress_pk PRIMARY KEY (addresstypedescriptorid, educationorganizationid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationlanguage studenteducationorganizationassociationlanguage_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationlanguage + ADD CONSTRAINT studenteducationorganizationassociationlanguage_pk PRIMARY KEY (educationorganizationid, languagedescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationlanguageuse studenteducationorganizationassociationlanguageuse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationlanguageuse + ADD CONSTRAINT studenteducationorganizationassociationlanguageuse_pk PRIMARY KEY (educationorganizationid, languagedescriptorid, languageusedescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationprogramparticipat_810575 studenteducationorganizationassociationprogrampart_810575_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationprogramparticipat_810575 + ADD CONSTRAINT studenteducationorganizationassociationprogrampart_810575_pk PRIMARY KEY (educationorganizationid, programcharacteristicdescriptorid, programtypedescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationprogramparticipation studenteducationorganizationassociationprogramparticipation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationprogramparticipation + ADD CONSTRAINT studenteducationorganizationassociationprogramparticipation_pk PRIMARY KEY (educationorganizationid, programtypedescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationrace studenteducationorganizationassociationrace_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationrace + ADD CONSTRAINT studenteducationorganizationassociationrace_pk PRIMARY KEY (educationorganizationid, racedescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteri_a18fcf studenteducationorganizationassociationstudentchar_a18fcf_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf + ADD CONSTRAINT studenteducationorganizationassociationstudentchar_a18fcf_pk PRIMARY KEY (begindate, educationorganizationid, studentcharacteristicdescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteristic studenteducationorganizationassociationstudentcharacteristic_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentcharacteristic + ADD CONSTRAINT studenteducationorganizationassociationstudentcharacteristic_pk PRIMARY KEY (educationorganizationid, studentcharacteristicdescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationstudentidentifica_c15030 studenteducationorganizationassociationstudentiden_c15030_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentidentifica_c15030 + ADD CONSTRAINT studenteducationorganizationassociationstudentiden_c15030_pk PRIMARY KEY (assigningorganizationidentificationcode, educationorganizationid, studentidentificationsystemdescriptorid, studentusi); + + +-- +-- Name: studenteducationorganizationassociationstudentindicatorperiod studenteducationorganizationassociationstudentindi_a61b72_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentindicatorperiod + ADD CONSTRAINT studenteducationorganizationassociationstudentindi_a61b72_pk PRIMARY KEY (begindate, educationorganizationid, indicatorname, studentusi); + + +-- +-- Name: studenteducationorganizationassociationstudentindicator studenteducationorganizationassociationstudentindicator_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentindicator + ADD CONSTRAINT studenteducationorganizationassociationstudentindicator_pk PRIMARY KEY (educationorganizationid, indicatorname, studentusi); + + +-- +-- Name: studenteducationorganizationassociationtelephone studenteducationorganizationassociationtelephone_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationtelephone + ADD CONSTRAINT studenteducationorganizationassociationtelephone_pk PRIMARY KEY (educationorganizationid, studentusi, telephonenumber, telephonenumbertypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationtribalaffiliation studenteducationorganizationassociationtribalaffiliation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationtribalaffiliation + ADD CONSTRAINT studenteducationorganizationassociationtribalaffiliation_pk PRIMARY KEY (educationorganizationid, studentusi, tribalaffiliationdescriptorid); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation studenteducationorganizationresponsibilityassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationresponsibilityassociation + ADD CONSTRAINT studenteducationorganizationresponsibilityassociation_pk PRIMARY KEY (begindate, educationorganizationid, responsibilitydescriptorid, studentusi); + + +-- +-- Name: studentgradebookentry studentgradebookentry_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentgradebookentry + ADD CONSTRAINT studentgradebookentry_pk PRIMARY KEY (begindate, dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studenthomelessprogramassociation studenthomelessprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenthomelessprogramassociation + ADD CONSTRAINT studenthomelessprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studenthomelessprogramassociationhomelessprogramservice studenthomelessprogramassociationhomelessprogramservice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenthomelessprogramassociationhomelessprogramservice + ADD CONSTRAINT studenthomelessprogramassociationhomelessprogramservice_pk PRIMARY KEY (begindate, educationorganizationid, homelessprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentidentificationdocument studentidentificationdocument_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationdocument + ADD CONSTRAINT studentidentificationdocument_pk PRIMARY KEY (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, studentusi); + + +-- +-- Name: studentidentificationsystemdescriptor studentidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationsystemdescriptor + ADD CONSTRAINT studentidentificationsystemdescriptor_pk PRIMARY KEY (studentidentificationsystemdescriptorid); + + +-- +-- Name: studentinterventionassociation studentinterventionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociation + ADD CONSTRAINT studentinterventionassociation_pk PRIMARY KEY (educationorganizationid, interventionidentificationcode, studentusi); + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness studentinterventionassociationinterventioneffectiveness_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociationinterventioneffectiveness + ADD CONSTRAINT studentinterventionassociationinterventioneffectiveness_pk PRIMARY KEY (diagnosisdescriptorid, educationorganizationid, gradeleveldescriptorid, interventionidentificationcode, populationserveddescriptorid, studentusi); + + +-- +-- Name: studentinterventionattendanceevent studentinterventionattendanceevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionattendanceevent + ADD CONSTRAINT studentinterventionattendanceevent_pk PRIMARY KEY (attendanceeventcategorydescriptorid, educationorganizationid, eventdate, interventionidentificationcode, studentusi); + + +-- +-- Name: studentlanguageinstructionprogramassociation studentlanguageinstructionprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociation + ADD CONSTRAINT studentlanguageinstructionprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 studentlanguageinstructionprogramassociationenglis_1ac620_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT studentlanguageinstructionprogramassociationenglis_1ac620_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, schoolyear, studentusi); + + +-- +-- Name: studentlanguageinstructionprogramassociationlanguageinst_268e07 studentlanguageinstructionprogramassociationlangua_268e07_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 + ADD CONSTRAINT studentlanguageinstructionprogramassociationlangua_268e07_pk PRIMARY KEY (begindate, educationorganizationid, languageinstructionprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentlearningobjective studentlearningobjective_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjective + ADD CONSTRAINT studentlearningobjective_pk PRIMARY KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi); + + +-- +-- Name: studentlearningobjectivegeneralstudentprogramassociation studentlearningobjectivegeneralstudentprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjectivegeneralstudentprogramassociation + ADD CONSTRAINT studentlearningobjectivegeneralstudentprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentlearningobjectivestudentsectionassociation studentlearningobjectivestudentsectionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjectivestudentsectionassociation + ADD CONSTRAINT studentlearningobjectivestudentsectionassociation_pk PRIMARY KEY (begindate, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studentmigranteducationprogramassociation studentmigranteducationprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentmigranteducationprogramassociation + ADD CONSTRAINT studentmigranteducationprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentmigranteducationprogramassociationmigranteducatio_d9dcd7 studentmigranteducationprogramassociationmigranted_d9dcd7_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 + ADD CONSTRAINT studentmigranteducationprogramassociationmigranted_d9dcd7_pk PRIMARY KEY (begindate, educationorganizationid, migranteducationprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentneglectedordelinquentprogramassociation studentneglectedordelinquentprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociation + ADD CONSTRAINT studentneglectedordelinquentprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentneglectedordelinquentprogramassociationneglectedo_520251 studentneglectedordelinquentprogramassociationnegl_520251_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 + ADD CONSTRAINT studentneglectedordelinquentprogramassociationnegl_520251_pk PRIMARY KEY (begindate, educationorganizationid, neglectedordelinquentprogramservicedescriptorid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentothername studentothername_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentothername + ADD CONSTRAINT studentothername_pk PRIMARY KEY (othernametypedescriptorid, studentusi); + + +-- +-- Name: studentparentassociation studentparentassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentparentassociation + ADD CONSTRAINT studentparentassociation_pk PRIMARY KEY (parentusi, studentusi); + + +-- +-- Name: studentparticipationcodedescriptor studentparticipationcodedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentparticipationcodedescriptor + ADD CONSTRAINT studentparticipationcodedescriptor_pk PRIMARY KEY (studentparticipationcodedescriptorid); + + +-- +-- Name: studentpersonalidentificationdocument studentpersonalidentificationdocument_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentpersonalidentificationdocument + ADD CONSTRAINT studentpersonalidentificationdocument_pk PRIMARY KEY (identificationdocumentusedescriptorid, personalinformationverificationdescriptorid, studentusi); + + +-- +-- Name: studentprogramassociation studentprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramassociation + ADD CONSTRAINT studentprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentprogramassociationservice studentprogramassociationservice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramassociationservice + ADD CONSTRAINT studentprogramassociationservice_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, servicedescriptorid, studentusi); + + +-- +-- Name: studentprogramattendanceevent studentprogramattendanceevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramattendanceevent + ADD CONSTRAINT studentprogramattendanceevent_pk PRIMARY KEY (attendanceeventcategorydescriptorid, educationorganizationid, eventdate, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentschoolassociation studentschoolassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT studentschoolassociation_pk PRIMARY KEY (entrydate, schoolid, studentusi); + + +-- +-- Name: studentschoolassociationalternativegraduationplan studentschoolassociationalternativegraduationplan_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociationalternativegraduationplan + ADD CONSTRAINT studentschoolassociationalternativegraduationplan_pk PRIMARY KEY (alternativeeducationorganizationid, alternativegraduationplantypedescriptorid, alternativegraduationschoolyear, entrydate, schoolid, studentusi); + + +-- +-- Name: studentschoolassociationeducationplan studentschoolassociationeducationplan_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociationeducationplan + ADD CONSTRAINT studentschoolassociationeducationplan_pk PRIMARY KEY (educationplandescriptorid, entrydate, schoolid, studentusi); + + +-- +-- Name: studentschoolattendanceevent studentschoolattendanceevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT studentschoolattendanceevent_pk PRIMARY KEY (attendanceeventcategorydescriptorid, eventdate, schoolid, schoolyear, sessionname, studentusi); + + +-- +-- Name: studentschoolfoodserviceprogramassociation studentschoolfoodserviceprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolfoodserviceprogramassociation + ADD CONSTRAINT studentschoolfoodserviceprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb studentschoolfoodserviceprogramassociationschoolfo_85a0eb_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + ADD CONSTRAINT studentschoolfoodserviceprogramassociationschoolfo_85a0eb_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, schoolfoodserviceprogramservicedescriptorid, studentusi); + + +-- +-- Name: studentsectionassociation studentsectionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionassociation + ADD CONSTRAINT studentsectionassociation_pk PRIMARY KEY (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studentsectionattendanceevent studentsectionattendanceevent_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceevent + ADD CONSTRAINT studentsectionattendanceevent_pk PRIMARY KEY (attendanceeventcategorydescriptorid, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studentsectionattendanceeventclassperiod studentsectionattendanceeventclassperiod_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceeventclassperiod + ADD CONSTRAINT studentsectionattendanceeventclassperiod_pk PRIMARY KEY (attendanceeventcategorydescriptorid, classperiodname, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: studentspecialeducationprogramassociation studentspecialeducationprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociation + ADD CONSTRAINT studentspecialeducationprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentspecialeducationprogramassociationdisabilitydesignation studentspecialeducationprogramassociationdisabilit_a2fd20_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisabilitydesignation + ADD CONSTRAINT studentspecialeducationprogramassociationdisabilit_a2fd20_pk PRIMARY KEY (begindate, disabilitydescriptorid, disabilitydesignationdescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentspecialeducationprogramassociationdisability studentspecialeducationprogramassociationdisability_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisability + ADD CONSTRAINT studentspecialeducationprogramassociationdisability_pk PRIMARY KEY (begindate, disabilitydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentspecialeducationprogramassociationserviceprovider studentspecialeducationprogramassociationserviceprovider_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationserviceprovider + ADD CONSTRAINT studentspecialeducationprogramassociationserviceprovider_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, staffusi, studentusi); + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_a51ff9 studentspecialeducationprogramassociationspecialed_a51ff9_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 + ADD CONSTRAINT studentspecialeducationprogramassociationspecialed_a51ff9_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, studentusi); + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_bcba5c studentspecialeducationprogramassociationspecialed_bcba5c_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c + ADD CONSTRAINT studentspecialeducationprogramassociationspecialed_bcba5c_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, staffusi, studentusi); + + +-- +-- Name: studenttitleipartaprogramassociation studenttitleipartaprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociation + ADD CONSTRAINT studenttitleipartaprogramassociation_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studenttitleipartaprogramassociationservice studenttitleipartaprogramassociationservice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociationservice + ADD CONSTRAINT studenttitleipartaprogramassociationservice_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, servicedescriptorid, studentusi); + + +-- +-- Name: studenttitleipartaprogramassociationtitleipartaprogramservice studenttitleipartaprogramassociationtitleipartapro_8adb29_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociationtitleipartaprogramservice + ADD CONSTRAINT studenttitleipartaprogramassociationtitleipartapro_8adb29_pk PRIMARY KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi, titleipartaprogramservicedescriptorid); + + +-- +-- Name: studentvisa studentvisa_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentvisa + ADD CONSTRAINT studentvisa_pk PRIMARY KEY (studentusi, visadescriptorid); + + +-- +-- Name: survey survey_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.survey + ADD CONSTRAINT survey_pk PRIMARY KEY (namespace, surveyidentifier); + + +-- +-- Name: surveycategorydescriptor surveycategorydescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveycategorydescriptor + ADD CONSTRAINT surveycategorydescriptor_pk PRIMARY KEY (surveycategorydescriptorid); + + +-- +-- Name: surveycourseassociation surveycourseassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveycourseassociation + ADD CONSTRAINT surveycourseassociation_pk PRIMARY KEY (coursecode, educationorganizationid, namespace, surveyidentifier); + + +-- +-- Name: surveyleveldescriptor surveyleveldescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyleveldescriptor + ADD CONSTRAINT surveyleveldescriptor_pk PRIMARY KEY (surveyleveldescriptorid); + + +-- +-- Name: surveyprogramassociation surveyprogramassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyprogramassociation + ADD CONSTRAINT surveyprogramassociation_pk PRIMARY KEY (educationorganizationid, namespace, programname, programtypedescriptorid, surveyidentifier); + + +-- +-- Name: surveyquestion surveyquestion_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestion + ADD CONSTRAINT surveyquestion_pk PRIMARY KEY (namespace, questioncode, surveyidentifier); + + +-- +-- Name: surveyquestionmatrix surveyquestionmatrix_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionmatrix + ADD CONSTRAINT surveyquestionmatrix_pk PRIMARY KEY (matrixelement, namespace, questioncode, surveyidentifier); + + +-- +-- Name: surveyquestionresponse surveyquestionresponse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponse + ADD CONSTRAINT surveyquestionresponse_pk PRIMARY KEY (namespace, questioncode, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: surveyquestionresponsechoice surveyquestionresponsechoice_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponsechoice + ADD CONSTRAINT surveyquestionresponsechoice_pk PRIMARY KEY (namespace, questioncode, sortorder, surveyidentifier); + + +-- +-- Name: surveyquestionresponsesurveyquestionmatrixelementresponse surveyquestionresponsesurveyquestionmatrixelementresponse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponsesurveyquestionmatrixelementresponse + ADD CONSTRAINT surveyquestionresponsesurveyquestionmatrixelementresponse_pk PRIMARY KEY (matrixelement, namespace, questioncode, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: surveyquestionresponsevalue surveyquestionresponsevalue_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponsevalue + ADD CONSTRAINT surveyquestionresponsevalue_pk PRIMARY KEY (namespace, questioncode, surveyidentifier, surveyquestionresponsevalueidentifier, surveyresponseidentifier); + + +-- +-- Name: surveyresponse surveyresponse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponse + ADD CONSTRAINT surveyresponse_pk PRIMARY KEY (namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation surveyresponseeducationorganizationtargetassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponseeducationorganizationtargetassociation + ADD CONSTRAINT surveyresponseeducationorganizationtargetassociation_pk PRIMARY KEY (educationorganizationid, namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: surveyresponsestafftargetassociation surveyresponsestafftargetassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponsestafftargetassociation + ADD CONSTRAINT surveyresponsestafftargetassociation_pk PRIMARY KEY (namespace, staffusi, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: surveyresponsesurveylevel surveyresponsesurveylevel_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponsesurveylevel + ADD CONSTRAINT surveyresponsesurveylevel_pk PRIMARY KEY (namespace, surveyidentifier, surveyleveldescriptorid, surveyresponseidentifier); + + +-- +-- Name: surveysection surveysection_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysection + ADD CONSTRAINT surveysection_pk PRIMARY KEY (namespace, surveyidentifier, surveysectiontitle); + + +-- +-- Name: surveysectionassociation surveysectionassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionassociation + ADD CONSTRAINT surveysectionassociation_pk PRIMARY KEY (localcoursecode, namespace, schoolid, schoolyear, sectionidentifier, sessionname, surveyidentifier); + + +-- +-- Name: surveysectionresponse surveysectionresponse_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponse + ADD CONSTRAINT surveysectionresponse_pk PRIMARY KEY (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation surveysectionresponseeducationorganizationtargetassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponseeducationorganizationtargetassociation + ADD CONSTRAINT surveysectionresponseeducationorganizationtargetassociation_pk PRIMARY KEY (educationorganizationid, namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: surveysectionresponsestafftargetassociation surveysectionresponsestafftargetassociation_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponsestafftargetassociation + ADD CONSTRAINT surveysectionresponsestafftargetassociation_pk PRIMARY KEY (namespace, staffusi, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: teachingcredentialbasisdescriptor teachingcredentialbasisdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.teachingcredentialbasisdescriptor + ADD CONSTRAINT teachingcredentialbasisdescriptor_pk PRIMARY KEY (teachingcredentialbasisdescriptorid); + + +-- +-- Name: teachingcredentialdescriptor teachingcredentialdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.teachingcredentialdescriptor + ADD CONSTRAINT teachingcredentialdescriptor_pk PRIMARY KEY (teachingcredentialdescriptorid); + + +-- +-- Name: technicalskillsassessmentdescriptor technicalskillsassessmentdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.technicalskillsassessmentdescriptor + ADD CONSTRAINT technicalskillsassessmentdescriptor_pk PRIMARY KEY (technicalskillsassessmentdescriptorid); + + +-- +-- Name: telephonenumbertypedescriptor telephonenumbertypedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.telephonenumbertypedescriptor + ADD CONSTRAINT telephonenumbertypedescriptor_pk PRIMARY KEY (telephonenumbertypedescriptorid); + + +-- +-- Name: termdescriptor termdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.termdescriptor + ADD CONSTRAINT termdescriptor_pk PRIMARY KEY (termdescriptorid); + + +-- +-- Name: titleipartaparticipantdescriptor titleipartaparticipantdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.titleipartaparticipantdescriptor + ADD CONSTRAINT titleipartaparticipantdescriptor_pk PRIMARY KEY (titleipartaparticipantdescriptorid); + + +-- +-- Name: titleipartaprogramservicedescriptor titleipartaprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.titleipartaprogramservicedescriptor + ADD CONSTRAINT titleipartaprogramservicedescriptor_pk PRIMARY KEY (titleipartaprogramservicedescriptorid); + + +-- +-- Name: titleipartaschooldesignationdescriptor titleipartaschooldesignationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.titleipartaschooldesignationdescriptor + ADD CONSTRAINT titleipartaschooldesignationdescriptor_pk PRIMARY KEY (titleipartaschooldesignationdescriptorid); + + +-- +-- Name: tribalaffiliationdescriptor tribalaffiliationdescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.tribalaffiliationdescriptor + ADD CONSTRAINT tribalaffiliationdescriptor_pk PRIMARY KEY (tribalaffiliationdescriptorid); + + +-- +-- Name: visadescriptor visadescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.visadescriptor + ADD CONSTRAINT visadescriptor_pk PRIMARY KEY (visadescriptorid); + + +-- +-- Name: weapondescriptor weapondescriptor_pk; Type: CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.weapondescriptor + ADD CONSTRAINT weapondescriptor_pk PRIMARY KEY (weapondescriptorid); + + +-- +-- Name: descriptorequivalencegroupassignment pk_descequivgroupassign; Type: CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroupassignment + ADD CONSTRAINT pk_descequivgroupassign PRIMARY KEY (descriptorid); + + +-- +-- Name: descriptorequivalencegroupgeneralization pk_descequivgroupgeneral; Type: CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroupgeneralization + ADD CONSTRAINT pk_descequivgroupgeneral PRIMARY KEY (descriptorequivalencegroupid, generalizationdescriptorequivalencegroupid); + + +-- +-- Name: descriptorequivalencegroup pk_descriptorequivalencegroup; Type: CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroup + ADD CONSTRAINT pk_descriptorequivalencegroup PRIMARY KEY (descriptorequivalencegroupid); + + +-- +-- Name: operationalcontext pk_operationalcontext; Type: CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.operationalcontext + ADD CONSTRAINT pk_operationalcontext PRIMARY KEY (operationalcontexturi); + + +-- +-- Name: operationalcontextdescriptorusage pk_operationalcontextdescriptorusage; Type: CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.operationalcontextdescriptorusage + ADD CONSTRAINT pk_operationalcontextdescriptorusage PRIMARY KEY (operationalcontexturi, descriptorid); + + +-- +-- Name: DeployJournal PK_DeployJournal_Id; Type: CONSTRAINT; Schema: public; Owner: postgres +-- + +ALTER TABLE ONLY public."DeployJournal" + ADD CONSTRAINT "PK_DeployJournal_Id" PRIMARY KEY (schemaversionsid); + + +-- +-- Name: absenceeventcategorydescriptor absenceeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.absenceeventcategorydescriptor + ADD CONSTRAINT absenceeventcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: academichonorcategorydescriptor academichonorcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.academichonorcategorydescriptor + ADD CONSTRAINT academichonorcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: academicsubjectdescriptor academicsubjectdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.academicsubjectdescriptor + ADD CONSTRAINT academicsubjectdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: academicweek academicweek_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.academicweek + ADD CONSTRAINT academicweek_pk PRIMARY KEY (changeversion); + + +-- +-- Name: accommodationdescriptor accommodationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.accommodationdescriptor + ADD CONSTRAINT accommodationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: account account_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.account + ADD CONSTRAINT account_pk PRIMARY KEY (changeversion); + + +-- +-- Name: accountabilityrating accountabilityrating_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.accountabilityrating + ADD CONSTRAINT accountabilityrating_pk PRIMARY KEY (changeversion); + + +-- +-- Name: accountclassificationdescriptor accountclassificationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.accountclassificationdescriptor + ADD CONSTRAINT accountclassificationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: accountcode accountcode_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.accountcode + ADD CONSTRAINT accountcode_pk PRIMARY KEY (changeversion); + + +-- +-- Name: achievementcategorydescriptor achievementcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.achievementcategorydescriptor + ADD CONSTRAINT achievementcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: actual actual_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.actual + ADD CONSTRAINT actual_pk PRIMARY KEY (changeversion); + + +-- +-- Name: additionalcredittypedescriptor additionalcredittypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.additionalcredittypedescriptor + ADD CONSTRAINT additionalcredittypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: addresstypedescriptor addresstypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.addresstypedescriptor + ADD CONSTRAINT addresstypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: administrationenvironmentdescriptor administrationenvironmentdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.administrationenvironmentdescriptor + ADD CONSTRAINT administrationenvironmentdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: administrativefundingcontroldescriptor administrativefundingcontroldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.administrativefundingcontroldescriptor + ADD CONSTRAINT administrativefundingcontroldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: ancestryethnicorigindescriptor ancestryethnicorigindescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.ancestryethnicorigindescriptor + ADD CONSTRAINT ancestryethnicorigindescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessment assessment_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessment + ADD CONSTRAINT assessment_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentcategorydescriptor assessmentcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentcategorydescriptor + ADD CONSTRAINT assessmentcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentidentificationsystemdescriptor assessmentidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentidentificationsystemdescriptor + ADD CONSTRAINT assessmentidentificationsystemdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentitem assessmentitem_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentitem + ADD CONSTRAINT assessmentitem_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentitemcategorydescriptor assessmentitemcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentitemcategorydescriptor + ADD CONSTRAINT assessmentitemcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentitemresultdescriptor assessmentitemresultdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentitemresultdescriptor + ADD CONSTRAINT assessmentitemresultdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentperioddescriptor assessmentperioddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentperioddescriptor + ADD CONSTRAINT assessmentperioddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentreportingmethoddescriptor assessmentreportingmethoddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentreportingmethoddescriptor + ADD CONSTRAINT assessmentreportingmethoddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: assessmentscorerangelearningstandard assessmentscorerangelearningstandard_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.assessmentscorerangelearningstandard + ADD CONSTRAINT assessmentscorerangelearningstandard_pk PRIMARY KEY (changeversion); + + +-- +-- Name: attemptstatusdescriptor attemptstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.attemptstatusdescriptor + ADD CONSTRAINT attemptstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: attendanceeventcategorydescriptor attendanceeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.attendanceeventcategorydescriptor + ADD CONSTRAINT attendanceeventcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: barriertointernetaccessinresidencedescriptor barriertointernetaccessinresidencedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor + ADD CONSTRAINT barriertointernetaccessinresidencedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: behaviordescriptor behaviordescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.behaviordescriptor + ADD CONSTRAINT behaviordescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: bellschedule bellschedule_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.bellschedule + ADD CONSTRAINT bellschedule_pk PRIMARY KEY (changeversion); + + +-- +-- Name: budget budget_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.budget + ADD CONSTRAINT budget_pk PRIMARY KEY (changeversion); + + +-- +-- Name: calendar calendar_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.calendar + ADD CONSTRAINT calendar_pk PRIMARY KEY (changeversion); + + +-- +-- Name: calendardate calendardate_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.calendardate + ADD CONSTRAINT calendardate_pk PRIMARY KEY (changeversion); + + +-- +-- Name: calendareventdescriptor calendareventdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.calendareventdescriptor + ADD CONSTRAINT calendareventdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: calendartypedescriptor calendartypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.calendartypedescriptor + ADD CONSTRAINT calendartypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: careerpathwaydescriptor careerpathwaydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.careerpathwaydescriptor + ADD CONSTRAINT careerpathwaydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: charterapprovalagencytypedescriptor charterapprovalagencytypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.charterapprovalagencytypedescriptor + ADD CONSTRAINT charterapprovalagencytypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: charterstatusdescriptor charterstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.charterstatusdescriptor + ADD CONSTRAINT charterstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: citizenshipstatusdescriptor citizenshipstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.citizenshipstatusdescriptor + ADD CONSTRAINT citizenshipstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: classperiod classperiod_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.classperiod + ADD CONSTRAINT classperiod_pk PRIMARY KEY (changeversion); + + +-- +-- Name: classroompositiondescriptor classroompositiondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.classroompositiondescriptor + ADD CONSTRAINT classroompositiondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: cohort cohort_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.cohort + ADD CONSTRAINT cohort_pk PRIMARY KEY (changeversion); + + +-- +-- Name: cohortscopedescriptor cohortscopedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.cohortscopedescriptor + ADD CONSTRAINT cohortscopedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: cohorttypedescriptor cohorttypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.cohorttypedescriptor + ADD CONSTRAINT cohorttypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: cohortyeartypedescriptor cohortyeartypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.cohortyeartypedescriptor + ADD CONSTRAINT cohortyeartypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: communityorganization communityorganization_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.communityorganization + ADD CONSTRAINT communityorganization_pk PRIMARY KEY (changeversion); + + +-- +-- Name: communityprovider communityprovider_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.communityprovider + ADD CONSTRAINT communityprovider_pk PRIMARY KEY (changeversion); + + +-- +-- Name: communityproviderlicense communityproviderlicense_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.communityproviderlicense + ADD CONSTRAINT communityproviderlicense_pk PRIMARY KEY (changeversion); + + +-- +-- Name: competencyleveldescriptor competencyleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.competencyleveldescriptor + ADD CONSTRAINT competencyleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: competencyobjective competencyobjective_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.competencyobjective + ADD CONSTRAINT competencyobjective_pk PRIMARY KEY (changeversion); + + +-- +-- Name: contacttypedescriptor contacttypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.contacttypedescriptor + ADD CONSTRAINT contacttypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: contentclassdescriptor contentclassdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.contentclassdescriptor + ADD CONSTRAINT contentclassdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: continuationofservicesreasondescriptor continuationofservicesreasondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.continuationofservicesreasondescriptor + ADD CONSTRAINT continuationofservicesreasondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: contractedstaff contractedstaff_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.contractedstaff + ADD CONSTRAINT contractedstaff_pk PRIMARY KEY (changeversion); + + +-- +-- Name: costratedescriptor costratedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.costratedescriptor + ADD CONSTRAINT costratedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: countrydescriptor countrydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.countrydescriptor + ADD CONSTRAINT countrydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: course course_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.course + ADD CONSTRAINT course_pk PRIMARY KEY (changeversion); + + +-- +-- Name: courseattemptresultdescriptor courseattemptresultdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.courseattemptresultdescriptor + ADD CONSTRAINT courseattemptresultdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: coursedefinedbydescriptor coursedefinedbydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.coursedefinedbydescriptor + ADD CONSTRAINT coursedefinedbydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: coursegpaapplicabilitydescriptor coursegpaapplicabilitydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.coursegpaapplicabilitydescriptor + ADD CONSTRAINT coursegpaapplicabilitydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: courseidentificationsystemdescriptor courseidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.courseidentificationsystemdescriptor + ADD CONSTRAINT courseidentificationsystemdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: courselevelcharacteristicdescriptor courselevelcharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.courselevelcharacteristicdescriptor + ADD CONSTRAINT courselevelcharacteristicdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: courseoffering courseoffering_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.courseoffering + ADD CONSTRAINT courseoffering_pk PRIMARY KEY (changeversion); + + +-- +-- Name: courserepeatcodedescriptor courserepeatcodedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.courserepeatcodedescriptor + ADD CONSTRAINT courserepeatcodedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: coursetranscript coursetranscript_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.coursetranscript + ADD CONSTRAINT coursetranscript_pk PRIMARY KEY (changeversion); + + +-- +-- Name: credential credential_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.credential + ADD CONSTRAINT credential_pk PRIMARY KEY (changeversion); + + +-- +-- Name: credentialfielddescriptor credentialfielddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.credentialfielddescriptor + ADD CONSTRAINT credentialfielddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: credentialtypedescriptor credentialtypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.credentialtypedescriptor + ADD CONSTRAINT credentialtypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: creditcategorydescriptor creditcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.creditcategorydescriptor + ADD CONSTRAINT creditcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: credittypedescriptor credittypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.credittypedescriptor + ADD CONSTRAINT credittypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: cteprogramservicedescriptor cteprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.cteprogramservicedescriptor + ADD CONSTRAINT cteprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: curriculumuseddescriptor curriculumuseddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.curriculumuseddescriptor + ADD CONSTRAINT curriculumuseddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: deliverymethoddescriptor deliverymethoddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.deliverymethoddescriptor + ADD CONSTRAINT deliverymethoddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: descriptor descriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.descriptor + ADD CONSTRAINT descriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: diagnosisdescriptor diagnosisdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.diagnosisdescriptor + ADD CONSTRAINT diagnosisdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: diplomaleveldescriptor diplomaleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.diplomaleveldescriptor + ADD CONSTRAINT diplomaleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: diplomatypedescriptor diplomatypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.diplomatypedescriptor + ADD CONSTRAINT diplomatypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disabilitydescriptor disabilitydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disabilitydescriptor + ADD CONSTRAINT disabilitydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disabilitydesignationdescriptor disabilitydesignationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disabilitydesignationdescriptor + ADD CONSTRAINT disabilitydesignationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disabilitydeterminationsourcetypedescriptor disabilitydeterminationsourcetypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor + ADD CONSTRAINT disabilitydeterminationsourcetypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disciplineaction disciplineaction_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disciplineaction + ADD CONSTRAINT disciplineaction_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor disciplineactionlengthdifferencereasondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor + ADD CONSTRAINT disciplineactionlengthdifferencereasondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disciplinedescriptor disciplinedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disciplinedescriptor + ADD CONSTRAINT disciplinedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disciplineincident disciplineincident_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disciplineincident + ADD CONSTRAINT disciplineincident_pk PRIMARY KEY (changeversion); + + +-- +-- Name: disciplineincidentparticipationcodedescriptor disciplineincidentparticipationcodedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor + ADD CONSTRAINT disciplineincidentparticipationcodedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationalenvironmentdescriptor educationalenvironmentdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationalenvironmentdescriptor + ADD CONSTRAINT educationalenvironmentdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationcontent educationcontent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationcontent + ADD CONSTRAINT educationcontent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganization educationorganization_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganization + ADD CONSTRAINT educationorganization_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganizationcategorydescriptor educationorganizationcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganizationcategorydescriptor + ADD CONSTRAINT educationorganizationcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganizationidentificationsystemdescriptor educationorganizationidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor + ADD CONSTRAINT educationorganizationidentificationsystemdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganizationinterventionprescriptionassociation educationorganizationinterventionprescriptionassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganizationinterventionprescriptionassociation + ADD CONSTRAINT educationorganizationinterventionprescriptionassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganizationnetwork educationorganizationnetwork_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganizationnetwork + ADD CONSTRAINT educationorganizationnetwork_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganizationnetworkassociation educationorganizationnetworkassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganizationnetworkassociation + ADD CONSTRAINT educationorganizationnetworkassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationorganizationpeerassociation educationorganizationpeerassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationorganizationpeerassociation + ADD CONSTRAINT educationorganizationpeerassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationplandescriptor educationplandescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationplandescriptor + ADD CONSTRAINT educationplandescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: educationservicecenter educationservicecenter_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.educationservicecenter + ADD CONSTRAINT educationservicecenter_pk PRIMARY KEY (changeversion); + + +-- +-- Name: electronicmailtypedescriptor electronicmailtypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.electronicmailtypedescriptor + ADD CONSTRAINT electronicmailtypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: employmentstatusdescriptor employmentstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.employmentstatusdescriptor + ADD CONSTRAINT employmentstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: entrygradelevelreasondescriptor entrygradelevelreasondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.entrygradelevelreasondescriptor + ADD CONSTRAINT entrygradelevelreasondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: entrytypedescriptor entrytypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.entrytypedescriptor + ADD CONSTRAINT entrytypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: eventcircumstancedescriptor eventcircumstancedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.eventcircumstancedescriptor + ADD CONSTRAINT eventcircumstancedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: exitwithdrawtypedescriptor exitwithdrawtypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.exitwithdrawtypedescriptor + ADD CONSTRAINT exitwithdrawtypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: feederschoolassociation feederschoolassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.feederschoolassociation + ADD CONSTRAINT feederschoolassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: generalstudentprogramassociation generalstudentprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.generalstudentprogramassociation + ADD CONSTRAINT generalstudentprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: grade grade_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.grade + ADD CONSTRAINT grade_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradebookentry gradebookentry_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradebookentry + ADD CONSTRAINT gradebookentry_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradebookentrytypedescriptor gradebookentrytypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradebookentrytypedescriptor + ADD CONSTRAINT gradebookentrytypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradeleveldescriptor gradeleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradeleveldescriptor + ADD CONSTRAINT gradeleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradepointaveragetypedescriptor gradepointaveragetypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradepointaveragetypedescriptor + ADD CONSTRAINT gradepointaveragetypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradetypedescriptor gradetypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradetypedescriptor + ADD CONSTRAINT gradetypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradingperiod gradingperiod_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradingperiod + ADD CONSTRAINT gradingperiod_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gradingperioddescriptor gradingperioddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gradingperioddescriptor + ADD CONSTRAINT gradingperioddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: graduationplan graduationplan_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.graduationplan + ADD CONSTRAINT graduationplan_pk PRIMARY KEY (changeversion); + + +-- +-- Name: graduationplantypedescriptor graduationplantypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.graduationplantypedescriptor + ADD CONSTRAINT graduationplantypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor gunfreeschoolsactreportingstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor + ADD CONSTRAINT gunfreeschoolsactreportingstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: homelessprimarynighttimeresidencedescriptor homelessprimarynighttimeresidencedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor + ADD CONSTRAINT homelessprimarynighttimeresidencedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: homelessprogramservicedescriptor homelessprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.homelessprogramservicedescriptor + ADD CONSTRAINT homelessprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: identificationdocumentusedescriptor identificationdocumentusedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.identificationdocumentusedescriptor + ADD CONSTRAINT identificationdocumentusedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: incidentlocationdescriptor incidentlocationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.incidentlocationdescriptor + ADD CONSTRAINT incidentlocationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: indicatordescriptor indicatordescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.indicatordescriptor + ADD CONSTRAINT indicatordescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: indicatorgroupdescriptor indicatorgroupdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.indicatorgroupdescriptor + ADD CONSTRAINT indicatorgroupdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: indicatorleveldescriptor indicatorleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.indicatorleveldescriptor + ADD CONSTRAINT indicatorleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: institutiontelephonenumbertypedescriptor institutiontelephonenumbertypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.institutiontelephonenumbertypedescriptor + ADD CONSTRAINT institutiontelephonenumbertypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: interactivitystyledescriptor interactivitystyledescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.interactivitystyledescriptor + ADD CONSTRAINT interactivitystyledescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: internetaccessdescriptor internetaccessdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.internetaccessdescriptor + ADD CONSTRAINT internetaccessdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: internetaccesstypeinresidencedescriptor internetaccesstypeinresidencedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.internetaccesstypeinresidencedescriptor + ADD CONSTRAINT internetaccesstypeinresidencedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: internetperformanceinresidencedescriptor internetperformanceinresidencedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.internetperformanceinresidencedescriptor + ADD CONSTRAINT internetperformanceinresidencedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: intervention intervention_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.intervention + ADD CONSTRAINT intervention_pk PRIMARY KEY (changeversion); + + +-- +-- Name: interventionclassdescriptor interventionclassdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.interventionclassdescriptor + ADD CONSTRAINT interventionclassdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: interventioneffectivenessratingdescriptor interventioneffectivenessratingdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.interventioneffectivenessratingdescriptor + ADD CONSTRAINT interventioneffectivenessratingdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: interventionprescription interventionprescription_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.interventionprescription + ADD CONSTRAINT interventionprescription_pk PRIMARY KEY (changeversion); + + +-- +-- Name: interventionstudy interventionstudy_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.interventionstudy + ADD CONSTRAINT interventionstudy_pk PRIMARY KEY (changeversion); + + +-- +-- Name: languagedescriptor languagedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.languagedescriptor + ADD CONSTRAINT languagedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: languageinstructionprogramservicedescriptor languageinstructionprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.languageinstructionprogramservicedescriptor + ADD CONSTRAINT languageinstructionprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: languageusedescriptor languageusedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.languageusedescriptor + ADD CONSTRAINT languageusedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: learningobjective learningobjective_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.learningobjective + ADD CONSTRAINT learningobjective_pk PRIMARY KEY (changeversion); + + +-- +-- Name: learningstandard learningstandard_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.learningstandard + ADD CONSTRAINT learningstandard_pk PRIMARY KEY (changeversion); + + +-- +-- Name: learningstandardcategorydescriptor learningstandardcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.learningstandardcategorydescriptor + ADD CONSTRAINT learningstandardcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: learningstandardequivalenceassociation learningstandardequivalenceassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.learningstandardequivalenceassociation + ADD CONSTRAINT learningstandardequivalenceassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: learningstandardequivalencestrengthdescriptor learningstandardequivalencestrengthdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor + ADD CONSTRAINT learningstandardequivalencestrengthdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: learningstandardscopedescriptor learningstandardscopedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.learningstandardscopedescriptor + ADD CONSTRAINT learningstandardscopedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: levelofeducationdescriptor levelofeducationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.levelofeducationdescriptor + ADD CONSTRAINT levelofeducationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: licensestatusdescriptor licensestatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.licensestatusdescriptor + ADD CONSTRAINT licensestatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: licensetypedescriptor licensetypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.licensetypedescriptor + ADD CONSTRAINT licensetypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: limitedenglishproficiencydescriptor limitedenglishproficiencydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.limitedenglishproficiencydescriptor + ADD CONSTRAINT limitedenglishproficiencydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: localedescriptor localedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.localedescriptor + ADD CONSTRAINT localedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: localeducationagency localeducationagency_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.localeducationagency + ADD CONSTRAINT localeducationagency_pk PRIMARY KEY (changeversion); + + +-- +-- Name: localeducationagencycategorydescriptor localeducationagencycategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.localeducationagencycategorydescriptor + ADD CONSTRAINT localeducationagencycategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: location location_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.location + ADD CONSTRAINT location_pk PRIMARY KEY (changeversion); + + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor magnetspecialprogramemphasisschooldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor + ADD CONSTRAINT magnetspecialprogramemphasisschooldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: mediumofinstructiondescriptor mediumofinstructiondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.mediumofinstructiondescriptor + ADD CONSTRAINT mediumofinstructiondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: methodcreditearneddescriptor methodcreditearneddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.methodcreditearneddescriptor + ADD CONSTRAINT methodcreditearneddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: migranteducationprogramservicedescriptor migranteducationprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.migranteducationprogramservicedescriptor + ADD CONSTRAINT migranteducationprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: monitoreddescriptor monitoreddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.monitoreddescriptor + ADD CONSTRAINT monitoreddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: neglectedordelinquentprogramdescriptor neglectedordelinquentprogramdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.neglectedordelinquentprogramdescriptor + ADD CONSTRAINT neglectedordelinquentprogramdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: neglectedordelinquentprogramservicedescriptor neglectedordelinquentprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor + ADD CONSTRAINT neglectedordelinquentprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: networkpurposedescriptor networkpurposedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.networkpurposedescriptor + ADD CONSTRAINT networkpurposedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: objectiveassessment objectiveassessment_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.objectiveassessment + ADD CONSTRAINT objectiveassessment_pk PRIMARY KEY (changeversion); + + +-- +-- Name: oldethnicitydescriptor oldethnicitydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.oldethnicitydescriptor + ADD CONSTRAINT oldethnicitydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: openstaffposition openstaffposition_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.openstaffposition + ADD CONSTRAINT openstaffposition_pk PRIMARY KEY (changeversion); + + +-- +-- Name: operationalstatusdescriptor operationalstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.operationalstatusdescriptor + ADD CONSTRAINT operationalstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: organizationdepartment organizationdepartment_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.organizationdepartment + ADD CONSTRAINT organizationdepartment_pk PRIMARY KEY (changeversion); + + +-- +-- Name: othernametypedescriptor othernametypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.othernametypedescriptor + ADD CONSTRAINT othernametypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: parent parent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.parent + ADD CONSTRAINT parent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: participationdescriptor participationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.participationdescriptor + ADD CONSTRAINT participationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: participationstatusdescriptor participationstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.participationstatusdescriptor + ADD CONSTRAINT participationstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: payroll payroll_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.payroll + ADD CONSTRAINT payroll_pk PRIMARY KEY (changeversion); + + +-- +-- Name: performancebaseconversiondescriptor performancebaseconversiondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.performancebaseconversiondescriptor + ADD CONSTRAINT performancebaseconversiondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: performanceleveldescriptor performanceleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.performanceleveldescriptor + ADD CONSTRAINT performanceleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: person person_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.person + ADD CONSTRAINT person_pk PRIMARY KEY (changeversion); + + +-- +-- Name: personalinformationverificationdescriptor personalinformationverificationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.personalinformationverificationdescriptor + ADD CONSTRAINT personalinformationverificationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: platformtypedescriptor platformtypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.platformtypedescriptor + ADD CONSTRAINT platformtypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: populationserveddescriptor populationserveddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.populationserveddescriptor + ADD CONSTRAINT populationserveddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: postingresultdescriptor postingresultdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.postingresultdescriptor + ADD CONSTRAINT postingresultdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: postsecondaryevent postsecondaryevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.postsecondaryevent + ADD CONSTRAINT postsecondaryevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: postsecondaryeventcategorydescriptor postsecondaryeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.postsecondaryeventcategorydescriptor + ADD CONSTRAINT postsecondaryeventcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: postsecondaryinstitution postsecondaryinstitution_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.postsecondaryinstitution + ADD CONSTRAINT postsecondaryinstitution_pk PRIMARY KEY (changeversion); + + +-- +-- Name: postsecondaryinstitutionleveldescriptor postsecondaryinstitutionleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor + ADD CONSTRAINT postsecondaryinstitutionleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: primarylearningdeviceaccessdescriptor primarylearningdeviceaccessdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.primarylearningdeviceaccessdescriptor + ADD CONSTRAINT primarylearningdeviceaccessdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor primarylearningdeviceawayfromschooldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor + ADD CONSTRAINT primarylearningdeviceawayfromschooldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: primarylearningdeviceproviderdescriptor primarylearningdeviceproviderdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.primarylearningdeviceproviderdescriptor + ADD CONSTRAINT primarylearningdeviceproviderdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: proficiencydescriptor proficiencydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.proficiencydescriptor + ADD CONSTRAINT proficiencydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: program program_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.program + ADD CONSTRAINT program_pk PRIMARY KEY (changeversion); + + +-- +-- Name: programassignmentdescriptor programassignmentdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.programassignmentdescriptor + ADD CONSTRAINT programassignmentdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: programcharacteristicdescriptor programcharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.programcharacteristicdescriptor + ADD CONSTRAINT programcharacteristicdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: programsponsordescriptor programsponsordescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.programsponsordescriptor + ADD CONSTRAINT programsponsordescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: programtypedescriptor programtypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.programtypedescriptor + ADD CONSTRAINT programtypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: progressdescriptor progressdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.progressdescriptor + ADD CONSTRAINT progressdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: progressleveldescriptor progressleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.progressleveldescriptor + ADD CONSTRAINT progressleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: providercategorydescriptor providercategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.providercategorydescriptor + ADD CONSTRAINT providercategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: providerprofitabilitydescriptor providerprofitabilitydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.providerprofitabilitydescriptor + ADD CONSTRAINT providerprofitabilitydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: providerstatusdescriptor providerstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.providerstatusdescriptor + ADD CONSTRAINT providerstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: publicationstatusdescriptor publicationstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.publicationstatusdescriptor + ADD CONSTRAINT publicationstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: questionformdescriptor questionformdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.questionformdescriptor + ADD CONSTRAINT questionformdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: racedescriptor racedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.racedescriptor + ADD CONSTRAINT racedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: reasonexiteddescriptor reasonexiteddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.reasonexiteddescriptor + ADD CONSTRAINT reasonexiteddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: reasonnottesteddescriptor reasonnottesteddescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.reasonnottesteddescriptor + ADD CONSTRAINT reasonnottesteddescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: recognitiontypedescriptor recognitiontypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.recognitiontypedescriptor + ADD CONSTRAINT recognitiontypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: relationdescriptor relationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.relationdescriptor + ADD CONSTRAINT relationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: repeatidentifierdescriptor repeatidentifierdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.repeatidentifierdescriptor + ADD CONSTRAINT repeatidentifierdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: reportcard reportcard_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.reportcard + ADD CONSTRAINT reportcard_pk PRIMARY KEY (changeversion); + + +-- +-- Name: reporterdescriptiondescriptor reporterdescriptiondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.reporterdescriptiondescriptor + ADD CONSTRAINT reporterdescriptiondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: residencystatusdescriptor residencystatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.residencystatusdescriptor + ADD CONSTRAINT residencystatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: responseindicatordescriptor responseindicatordescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.responseindicatordescriptor + ADD CONSTRAINT responseindicatordescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: responsibilitydescriptor responsibilitydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.responsibilitydescriptor + ADD CONSTRAINT responsibilitydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: restraintevent restraintevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.restraintevent + ADD CONSTRAINT restraintevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: restrainteventreasondescriptor restrainteventreasondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.restrainteventreasondescriptor + ADD CONSTRAINT restrainteventreasondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: resultdatatypetypedescriptor resultdatatypetypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.resultdatatypetypedescriptor + ADD CONSTRAINT resultdatatypetypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: retestindicatordescriptor retestindicatordescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.retestindicatordescriptor + ADD CONSTRAINT retestindicatordescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: school school_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.school + ADD CONSTRAINT school_pk PRIMARY KEY (changeversion); + + +-- +-- Name: schoolcategorydescriptor schoolcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.schoolcategorydescriptor + ADD CONSTRAINT schoolcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: schoolchoiceimplementstatusdescriptor schoolchoiceimplementstatusdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor + ADD CONSTRAINT schoolchoiceimplementstatusdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: schoolfoodserviceprogramservicedescriptor schoolfoodserviceprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor + ADD CONSTRAINT schoolfoodserviceprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: schooltypedescriptor schooltypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.schooltypedescriptor + ADD CONSTRAINT schooltypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: section section_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.section + ADD CONSTRAINT section_pk PRIMARY KEY (changeversion); + + +-- +-- Name: sectionattendancetakenevent sectionattendancetakenevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.sectionattendancetakenevent + ADD CONSTRAINT sectionattendancetakenevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: sectioncharacteristicdescriptor sectioncharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.sectioncharacteristicdescriptor + ADD CONSTRAINT sectioncharacteristicdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: separationdescriptor separationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.separationdescriptor + ADD CONSTRAINT separationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: separationreasondescriptor separationreasondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.separationreasondescriptor + ADD CONSTRAINT separationreasondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: servicedescriptor servicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.servicedescriptor + ADD CONSTRAINT servicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: session session_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.session + ADD CONSTRAINT session_pk PRIMARY KEY (changeversion); + + +-- +-- Name: sexdescriptor sexdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.sexdescriptor + ADD CONSTRAINT sexdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: sourcesystemdescriptor sourcesystemdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.sourcesystemdescriptor + ADD CONSTRAINT sourcesystemdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: specialeducationprogramservicedescriptor specialeducationprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.specialeducationprogramservicedescriptor + ADD CONSTRAINT specialeducationprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: specialeducationsettingdescriptor specialeducationsettingdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.specialeducationsettingdescriptor + ADD CONSTRAINT specialeducationsettingdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staff staff_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staff + ADD CONSTRAINT staff_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffabsenceevent staffabsenceevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffabsenceevent + ADD CONSTRAINT staffabsenceevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffclassificationdescriptor staffclassificationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffclassificationdescriptor + ADD CONSTRAINT staffclassificationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffcohortassociation staffcohortassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffcohortassociation + ADD CONSTRAINT staffcohortassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffdisciplineincidentassociation staffdisciplineincidentassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffdisciplineincidentassociation + ADD CONSTRAINT staffdisciplineincidentassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffeducationorganizationassignmentassociation staffeducationorganizationassignmentassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT staffeducationorganizationassignmentassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffeducationorganizationcontactassociation staffeducationorganizationcontactassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffeducationorganizationcontactassociation + ADD CONSTRAINT staffeducationorganizationcontactassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffeducationorganizationemploymentassociation staffeducationorganizationemploymentassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT staffeducationorganizationemploymentassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffidentificationsystemdescriptor staffidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffidentificationsystemdescriptor + ADD CONSTRAINT staffidentificationsystemdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffleave staffleave_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffleave + ADD CONSTRAINT staffleave_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffleaveeventcategorydescriptor staffleaveeventcategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffleaveeventcategorydescriptor + ADD CONSTRAINT staffleaveeventcategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffprogramassociation staffprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffprogramassociation + ADD CONSTRAINT staffprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffschoolassociation staffschoolassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffschoolassociation + ADD CONSTRAINT staffschoolassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: staffsectionassociation staffsectionassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.staffsectionassociation + ADD CONSTRAINT staffsectionassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: stateabbreviationdescriptor stateabbreviationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.stateabbreviationdescriptor + ADD CONSTRAINT stateabbreviationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: stateeducationagency stateeducationagency_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.stateeducationagency + ADD CONSTRAINT stateeducationagency_pk PRIMARY KEY (changeversion); + + +-- +-- Name: student student_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.student + ADD CONSTRAINT student_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentacademicrecord studentacademicrecord_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentacademicrecord + ADD CONSTRAINT studentacademicrecord_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentassessment studentassessment_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentassessment + ADD CONSTRAINT studentassessment_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentcharacteristicdescriptor studentcharacteristicdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentcharacteristicdescriptor + ADD CONSTRAINT studentcharacteristicdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentcohortassociation studentcohortassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentcohortassociation + ADD CONSTRAINT studentcohortassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentcompetencyobjective studentcompetencyobjective_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentcompetencyobjective + ADD CONSTRAINT studentcompetencyobjective_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentcteprogramassociation studentcteprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentcteprogramassociation + ADD CONSTRAINT studentcteprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentdisciplineincidentassociation studentdisciplineincidentassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentdisciplineincidentassociation + ADD CONSTRAINT studentdisciplineincidentassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentdisciplineincidentbehaviorassociation studentdisciplineincidentbehaviorassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation + ADD CONSTRAINT studentdisciplineincidentbehaviorassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation studentdisciplineincidentnonoffenderassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation + ADD CONSTRAINT studentdisciplineincidentnonoffenderassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studenteducationorganizationassociation studenteducationorganizationassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studenteducationorganizationassociation + ADD CONSTRAINT studenteducationorganizationassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation studenteducationorganizationresponsibilityassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studenteducationorganizationresponsibilityassociation + ADD CONSTRAINT studenteducationorganizationresponsibilityassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentgradebookentry studentgradebookentry_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentgradebookentry + ADD CONSTRAINT studentgradebookentry_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studenthomelessprogramassociation studenthomelessprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studenthomelessprogramassociation + ADD CONSTRAINT studenthomelessprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentidentificationsystemdescriptor studentidentificationsystemdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentidentificationsystemdescriptor + ADD CONSTRAINT studentidentificationsystemdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentinterventionassociation studentinterventionassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentinterventionassociation + ADD CONSTRAINT studentinterventionassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentinterventionattendanceevent studentinterventionattendanceevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentinterventionattendanceevent + ADD CONSTRAINT studentinterventionattendanceevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentlanguageinstructionprogramassociation studentlanguageinstructionprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentlanguageinstructionprogramassociation + ADD CONSTRAINT studentlanguageinstructionprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentlearningobjective studentlearningobjective_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentlearningobjective + ADD CONSTRAINT studentlearningobjective_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentmigranteducationprogramassociation studentmigranteducationprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentmigranteducationprogramassociation + ADD CONSTRAINT studentmigranteducationprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentneglectedordelinquentprogramassociation studentneglectedordelinquentprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentneglectedordelinquentprogramassociation + ADD CONSTRAINT studentneglectedordelinquentprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentparentassociation studentparentassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentparentassociation + ADD CONSTRAINT studentparentassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentparticipationcodedescriptor studentparticipationcodedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentparticipationcodedescriptor + ADD CONSTRAINT studentparticipationcodedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentprogramassociation studentprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentprogramassociation + ADD CONSTRAINT studentprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentprogramattendanceevent studentprogramattendanceevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentprogramattendanceevent + ADD CONSTRAINT studentprogramattendanceevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentschoolassociation studentschoolassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentschoolassociation + ADD CONSTRAINT studentschoolassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentschoolattendanceevent studentschoolattendanceevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentschoolattendanceevent + ADD CONSTRAINT studentschoolattendanceevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentschoolfoodserviceprogramassociation studentschoolfoodserviceprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentschoolfoodserviceprogramassociation + ADD CONSTRAINT studentschoolfoodserviceprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentsectionassociation studentsectionassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentsectionassociation + ADD CONSTRAINT studentsectionassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentsectionattendanceevent studentsectionattendanceevent_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentsectionattendanceevent + ADD CONSTRAINT studentsectionattendanceevent_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studentspecialeducationprogramassociation studentspecialeducationprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studentspecialeducationprogramassociation + ADD CONSTRAINT studentspecialeducationprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: studenttitleipartaprogramassociation studenttitleipartaprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.studenttitleipartaprogramassociation + ADD CONSTRAINT studenttitleipartaprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: survey survey_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.survey + ADD CONSTRAINT survey_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveycategorydescriptor surveycategorydescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveycategorydescriptor + ADD CONSTRAINT surveycategorydescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveycourseassociation surveycourseassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveycourseassociation + ADD CONSTRAINT surveycourseassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyleveldescriptor surveyleveldescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyleveldescriptor + ADD CONSTRAINT surveyleveldescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyprogramassociation surveyprogramassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyprogramassociation + ADD CONSTRAINT surveyprogramassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyquestion surveyquestion_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyquestion + ADD CONSTRAINT surveyquestion_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyquestionresponse surveyquestionresponse_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyquestionresponse + ADD CONSTRAINT surveyquestionresponse_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyresponse surveyresponse_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyresponse + ADD CONSTRAINT surveyresponse_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation surveyresponseeducationorganizationtargetassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation + ADD CONSTRAINT surveyresponseeducationorganizationtargetassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveyresponsestafftargetassociation surveyresponsestafftargetassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveyresponsestafftargetassociation + ADD CONSTRAINT surveyresponsestafftargetassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveysection surveysection_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveysection + ADD CONSTRAINT surveysection_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveysectionassociation surveysectionassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveysectionassociation + ADD CONSTRAINT surveysectionassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveysectionresponse surveysectionresponse_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveysectionresponse + ADD CONSTRAINT surveysectionresponse_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation surveysectionresponseeducationorganizationtargetassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveysectionresponseeducationorganizationtargetassociation + ADD CONSTRAINT surveysectionresponseeducationorganizationtargetassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: surveysectionresponsestafftargetassociation surveysectionresponsestafftargetassociation_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.surveysectionresponsestafftargetassociation + ADD CONSTRAINT surveysectionresponsestafftargetassociation_pk PRIMARY KEY (changeversion); + + +-- +-- Name: teachingcredentialbasisdescriptor teachingcredentialbasisdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.teachingcredentialbasisdescriptor + ADD CONSTRAINT teachingcredentialbasisdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: teachingcredentialdescriptor teachingcredentialdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.teachingcredentialdescriptor + ADD CONSTRAINT teachingcredentialdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: technicalskillsassessmentdescriptor technicalskillsassessmentdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.technicalskillsassessmentdescriptor + ADD CONSTRAINT technicalskillsassessmentdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: telephonenumbertypedescriptor telephonenumbertypedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.telephonenumbertypedescriptor + ADD CONSTRAINT telephonenumbertypedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: termdescriptor termdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.termdescriptor + ADD CONSTRAINT termdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: titleipartaparticipantdescriptor titleipartaparticipantdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.titleipartaparticipantdescriptor + ADD CONSTRAINT titleipartaparticipantdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: titleipartaprogramservicedescriptor titleipartaprogramservicedescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.titleipartaprogramservicedescriptor + ADD CONSTRAINT titleipartaprogramservicedescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: titleipartaschooldesignationdescriptor titleipartaschooldesignationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.titleipartaschooldesignationdescriptor + ADD CONSTRAINT titleipartaschooldesignationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: tribalaffiliationdescriptor tribalaffiliationdescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.tribalaffiliationdescriptor + ADD CONSTRAINT tribalaffiliationdescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: visadescriptor visadescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.visadescriptor + ADD CONSTRAINT visadescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: weapondescriptor weapondescriptor_pk; Type: CONSTRAINT; Schema: tracked_deletes_edfi; Owner: postgres +-- + +ALTER TABLE ONLY tracked_deletes_edfi.weapondescriptor + ADD CONSTRAINT weapondescriptor_pk PRIMARY KEY (changeversion); + + +-- +-- Name: ux_6ad27b_id; Type: INDEX; Schema: changes; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_6ad27b_id ON changes.snapshot USING btree (id); + + +-- +-- Name: fk_000ac5_technicalskillsassessmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_000ac5_technicalskillsassessmentdescriptor ON edfi.studentcteprogramassociation USING btree (technicalskillsassessmentdescriptorid); + + +-- +-- Name: fk_005337_generalstudentprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_005337_generalstudentprogramassociation ON edfi.studentcompetencyobjectivegeneralstudentprogramassociation USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_005337_studentcompetencyobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_005337_studentcompetencyobjective ON edfi.studentcompetencyobjectivegeneralstudentprogramassociation USING btree (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi); + + +-- +-- Name: fk_014e05_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_014e05_educationcontent ON edfi.interventionstudyeducationcontent USING btree (contentidentifier); + + +-- +-- Name: fk_014e05_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_014e05_interventionstudy ON edfi.interventionstudyeducationcontent USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_01fe80_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_01fe80_school ON edfi.classperiod USING btree (schoolid); + + +-- +-- Name: fk_0325c5_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0325c5_course ON edfi.courseoffering USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_0325c5_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0325c5_school ON edfi.courseoffering USING btree (schoolid); + + +-- +-- Name: fk_0325c5_session; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0325c5_session ON edfi.courseoffering USING btree (schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_03f044_surveyleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_03f044_surveyleveldescriptor ON edfi.surveyresponsesurveylevel USING btree (surveyleveldescriptorid); + + +-- +-- Name: fk_03f044_surveyresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_03f044_surveyresponse ON edfi.surveyresponsesurveylevel USING btree (namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_047c7a_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_047c7a_educationcontent ON edfi.educationcontentderivativesourceuri USING btree (contentidentifier); + + +-- +-- Name: fk_048797_surveyquestionresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_048797_surveyquestionresponse ON edfi.surveyquestionresponsesurveyquestionmatrixelementresponse USING btree (namespace, questioncode, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_0516f9_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0516f9_educationorganization ON edfi.generalstudentprogramassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_0516f9_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0516f9_program ON edfi.generalstudentprogramassociation USING btree (programeducationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_0516f9_reasonexiteddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0516f9_reasonexiteddescriptor ON edfi.generalstudentprogramassociation USING btree (reasonexiteddescriptorid); + + +-- +-- Name: fk_0516f9_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0516f9_student ON edfi.generalstudentprogramassociation USING btree (studentusi); + + +-- +-- Name: fk_0628e0_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0628e0_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationtribalaffiliation USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_0628e0_tribalaffiliationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0628e0_tribalaffiliationdescriptor ON edfi.studenteducationorganizationassociationtribalaffiliation USING btree (tribalaffiliationdescriptorid); + + +-- +-- Name: fk_07722c_calendar; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_07722c_calendar ON edfi.calendargradelevel USING btree (calendarcode, schoolid, schoolyear); + + +-- +-- Name: fk_07722c_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_07722c_gradeleveldescriptor ON edfi.calendargradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_0789bb_calendardate; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0789bb_calendardate ON edfi.calendardatecalendarevent USING btree (calendarcode, date, schoolid, schoolyear); + + +-- +-- Name: fk_0789bb_calendareventdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0789bb_calendareventdescriptor ON edfi.calendardatecalendarevent USING btree (calendareventdescriptorid); + + +-- +-- Name: fk_0855d2_generalstudentprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0855d2_generalstudentprogramassociation ON edfi.generalstudentprogramassociationprogramparticipationstatus USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_0855d2_participationstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0855d2_participationstatusdescriptor ON edfi.generalstudentprogramassociationprogramparticipationstatus USING btree (participationstatusdescriptorid); + + +-- +-- Name: fk_09668f_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_09668f_schoolyeartype ON edfi.stateeducationagencyaccountability USING btree (schoolyear); + + +-- +-- Name: fk_09668f_stateeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_09668f_stateeducationagency ON edfi.stateeducationagencyaccountability USING btree (stateeducationagencyid); + + +-- +-- Name: fk_0a2145_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0a2145_educationcontent ON edfi.educationcontentappropriategradelevel USING btree (contentidentifier); + + +-- +-- Name: fk_0a2145_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0a2145_gradeleveldescriptor ON edfi.educationcontentappropriategradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_0c9651_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0c9651_assessmentreportingmethoddescriptor ON edfi.studentassessmentstudentobjectiveassessmentscoreresult USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_0c9651_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0c9651_resultdatatypetypedescriptor ON edfi.studentassessmentstudentobjectiveassessmentscoreresult USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_0c9651_studentassessmentstudentobjectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0c9651_studentassessmentstudentobjectiveassessment ON edfi.studentassessmentstudentobjectiveassessmentscoreresult USING btree (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_0d16f7_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0d16f7_disciplineincident ON edfi.disciplineincidentexternalparticipant USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_0d16f7_disciplineincidentparticipationcodedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0d16f7_disciplineincidentparticipationcodedescriptor ON edfi.disciplineincidentexternalparticipant USING btree (disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: fk_0e0a11_othernametypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0e0a11_othernametypedescriptor ON edfi.parentothername USING btree (othernametypedescriptorid); + + +-- +-- Name: fk_0e0a11_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0e0a11_parent ON edfi.parentothername USING btree (parentusi); + + +-- +-- Name: fk_0ee746_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ee746_addresstypedescriptor ON edfi.educationorganizationinternationaladdress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_0ee746_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ee746_countrydescriptor ON edfi.educationorganizationinternationaladdress USING btree (countrydescriptorid); + + +-- +-- Name: fk_0ee746_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ee746_educationorganization ON edfi.educationorganizationinternationaladdress USING btree (educationorganizationid); + + +-- +-- Name: fk_0fae05_deliverymethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0fae05_deliverymethoddescriptor ON edfi.intervention USING btree (deliverymethoddescriptorid); + + +-- +-- Name: fk_0fae05_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0fae05_educationorganization ON edfi.intervention USING btree (educationorganizationid); + + +-- +-- Name: fk_0fae05_interventionclassdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0fae05_interventionclassdescriptor ON edfi.intervention USING btree (interventionclassdescriptorid); + + +-- +-- Name: fk_0fceba_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0fceba_assessmentreportingmethoddescriptor ON edfi.studentassessmentscoreresult USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_0fceba_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0fceba_resultdatatypetypedescriptor ON edfi.studentassessmentscoreresult USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_0fceba_studentassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0fceba_studentassessment ON edfi.studentassessmentscoreresult USING btree (assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_0ff8d6_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_credittypedescriptor ON edfi.studentacademicrecord USING btree (cumulativeearnedcredittypedescriptorid); + + +-- +-- Name: fk_0ff8d6_credittypedescriptor1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_credittypedescriptor1 ON edfi.studentacademicrecord USING btree (cumulativeattemptedcredittypedescriptorid); + + +-- +-- Name: fk_0ff8d6_credittypedescriptor2; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_credittypedescriptor2 ON edfi.studentacademicrecord USING btree (sessionearnedcredittypedescriptorid); + + +-- +-- Name: fk_0ff8d6_credittypedescriptor3; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_credittypedescriptor3 ON edfi.studentacademicrecord USING btree (sessionattemptedcredittypedescriptorid); + + +-- +-- Name: fk_0ff8d6_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_educationorganization ON edfi.studentacademicrecord USING btree (educationorganizationid); + + +-- +-- Name: fk_0ff8d6_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_schoolyeartype ON edfi.studentacademicrecord USING btree (schoolyear); + + +-- +-- Name: fk_0ff8d6_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_student ON edfi.studentacademicrecord USING btree (studentusi); + + +-- +-- Name: fk_0ff8d6_termdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_0ff8d6_termdescriptor ON edfi.studentacademicrecord USING btree (termdescriptorid); + + +-- +-- Name: fk_1141c9_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1141c9_academicsubjectdescriptor ON edfi.credentialacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_1141c9_credential; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1141c9_credential ON edfi.credentialacademicsubject USING btree (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_11bd42_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_11bd42_assessment ON edfi.assessmentperformancelevel USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_11bd42_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_11bd42_assessmentreportingmethoddescriptor ON edfi.assessmentperformancelevel USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_11bd42_performanceleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_11bd42_performanceleveldescriptor ON edfi.assessmentperformancelevel USING btree (performanceleveldescriptorid); + + +-- +-- Name: fk_11bd42_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_11bd42_resultdatatypetypedescriptor ON edfi.assessmentperformancelevel USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_11f7b6_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_11f7b6_school ON edfi.feederschoolassociation USING btree (feederschoolid); + + +-- +-- Name: fk_11f7b6_school1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_11f7b6_school1 ON edfi.feederschoolassociation USING btree (schoolid); + + +-- +-- Name: fk_123e27_parentaddress; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_123e27_parentaddress ON edfi.parentaddressperiod USING btree (addresstypedescriptorid, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: fk_13b924_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_13b924_academicsubjectdescriptor ON edfi.organizationdepartment USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_13b924_educationorganization1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_13b924_educationorganization1 ON edfi.organizationdepartment USING btree (parenteducationorganizationid); + + +-- +-- Name: fk_151580_assessmentitem; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_151580_assessmentitem ON edfi.assessmentitemlearningstandard USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_151580_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_151580_learningstandard ON edfi.assessmentitemlearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_1587d8_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1587d8_section ON edfi.sectioncharacteristic USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_1587d8_sectioncharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1587d8_sectioncharacteristicdescriptor ON edfi.sectioncharacteristic USING btree (sectioncharacteristicdescriptorid); + + +-- +-- Name: fk_15b619_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_15b619_school ON edfi.location USING btree (schoolid); + + +-- +-- Name: fk_16896e_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_16896e_program ON edfi.programcharacteristic USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_16896e_programcharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_16896e_programcharacteristicdescriptor ON edfi.programcharacteristic USING btree (programcharacteristicdescriptorid); + + +-- +-- Name: fk_170747_cohort; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_170747_cohort ON edfi.staffcohortassociation USING btree (cohortidentifier, educationorganizationid); + + +-- +-- Name: fk_170747_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_170747_staff ON edfi.staffcohortassociation USING btree (staffusi); + + +-- +-- Name: fk_175995_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_175995_course ON edfi.courseofferedgradelevel USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_175995_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_175995_gradeleveldescriptor ON edfi.courseofferedgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_17c02a_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_17c02a_learningstandard ON edfi.learningstandardequivalenceassociation USING btree (sourcelearningstandardid); + + +-- +-- Name: fk_17c02a_learningstandard1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_17c02a_learningstandard1 ON edfi.learningstandardequivalenceassociation USING btree (targetlearningstandardid); + + +-- +-- Name: fk_17c02a_learningstandardequivalencestrengthdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_17c02a_learningstandardequivalencestrengthdescriptor ON edfi.learningstandardequivalenceassociation USING btree (learningstandardequivalencestrengthdescriptorid); + + +-- +-- Name: fk_18889f_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_18889f_course ON edfi.courseidentificationcode USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_18889f_courseidentificationsystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_18889f_courseidentificationsystemdescriptor ON edfi.courseidentificationcode USING btree (courseidentificationsystemdescriptorid); + + +-- +-- Name: fk_19c6d6_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_19c6d6_academicsubjectdescriptor ON edfi.cohort USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_19c6d6_cohortscopedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_19c6d6_cohortscopedescriptor ON edfi.cohort USING btree (cohortscopedescriptorid); + + +-- +-- Name: fk_19c6d6_cohorttypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_19c6d6_cohorttypedescriptor ON edfi.cohort USING btree (cohorttypedescriptorid); + + +-- +-- Name: fk_19c6d6_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_19c6d6_educationorganization ON edfi.cohort USING btree (educationorganizationid); + + +-- +-- Name: fk_1a4369_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1a4369_assessment ON edfi.graduationplanrequiredassessment USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_1a4369_graduationplan; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1a4369_graduationplan ON edfi.graduationplanrequiredassessment USING btree (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: fk_1ac620_monitoreddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ac620_monitoreddescriptor ON edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 USING btree (monitoreddescriptorid); + + +-- +-- Name: fk_1ac620_participationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ac620_participationdescriptor ON edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 USING btree (participationdescriptorid); + + +-- +-- Name: fk_1ac620_proficiencydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ac620_proficiencydescriptor ON edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 USING btree (proficiencydescriptorid); + + +-- +-- Name: fk_1ac620_progressdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ac620_progressdescriptor ON edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 USING btree (progressdescriptorid); + + +-- +-- Name: fk_1ac620_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ac620_schoolyeartype ON edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 USING btree (schoolyear); + + +-- +-- Name: fk_1ac620_studentlanguageinstructionprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ac620_studentlanguageinstructionprogramassociation ON edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_1b7007_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1b7007_assessmentreportingmethoddescriptor ON edfi.objectiveassessmentperformancelevel USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_1b7007_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1b7007_objectiveassessment ON edfi.objectiveassessmentperformancelevel USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_1b7007_performanceleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1b7007_performanceleveldescriptor ON edfi.objectiveassessmentperformancelevel USING btree (performanceleveldescriptorid); + + +-- +-- Name: fk_1b7007_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1b7007_resultdatatypetypedescriptor ON edfi.objectiveassessmentperformancelevel USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_1ba71e_gunfreeschoolsactreportingstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ba71e_gunfreeschoolsactreportingstatusdescriptor ON edfi.localeducationagencyaccountability USING btree (gunfreeschoolsactreportingstatusdescriptorid); + + +-- +-- Name: fk_1ba71e_localeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ba71e_localeducationagency ON edfi.localeducationagencyaccountability USING btree (localeducationagencyid); + + +-- +-- Name: fk_1ba71e_schoolchoiceimplementstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ba71e_schoolchoiceimplementstatusdescriptor ON edfi.localeducationagencyaccountability USING btree (schoolchoiceimplementstatusdescriptorid); + + +-- +-- Name: fk_1ba71e_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ba71e_schoolyeartype ON edfi.localeducationagencyaccountability USING btree (schoolyear); + + +-- +-- Name: fk_1bab8a_cteprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1bab8a_cteprogramservicedescriptor ON edfi.studentcteprogramassociationcteprogramservice USING btree (cteprogramservicedescriptorid); + + +-- +-- Name: fk_1bab8a_studentcteprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1bab8a_studentcteprogramassociation ON edfi.studentcteprogramassociationcteprogramservice USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_1bb88c_questionformdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1bb88c_questionformdescriptor ON edfi.surveyquestion USING btree (questionformdescriptorid); + + +-- +-- Name: fk_1bb88c_survey; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1bb88c_survey ON edfi.surveyquestion USING btree (namespace, surveyidentifier); + + +-- +-- Name: fk_1bb88c_surveysection; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1bb88c_surveysection ON edfi.surveyquestion USING btree (namespace, surveyidentifier, surveysectiontitle); + + +-- +-- Name: fk_1c30e0_generalstudentprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1c30e0_generalstudentprogramassociation ON edfi.studentlearningobjectivegeneralstudentprogramassociation USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_1c30e0_studentlearningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1c30e0_studentlearningobjective ON edfi.studentlearningobjectivegeneralstudentprogramassociation USING btree (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi); + + +-- +-- Name: fk_1c6225_account; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1c6225_account ON edfi.budget USING btree (accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: fk_1c624b_surveyquestion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1c624b_surveyquestion ON edfi.surveyquestionresponsechoice USING btree (namespace, questioncode, surveyidentifier); + + +-- +-- Name: fk_1c8d3f_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1c8d3f_languagedescriptor ON edfi.stafflanguage USING btree (languagedescriptorid); + + +-- +-- Name: fk_1c8d3f_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1c8d3f_staff ON edfi.stafflanguage USING btree (staffusi); + + +-- +-- Name: fk_1dcb14_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1dcb14_interventionstudy ON edfi.interventionstudylearningresourcemetadatauri USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_1ee70e_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ee70e_learningstandard ON edfi.objectiveassessmentlearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_1ee70e_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_1ee70e_objectiveassessment ON edfi.objectiveassessmentlearningstandard USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_2096ce_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_academicsubjectdescriptor ON edfi.course USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_2096ce_careerpathwaydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_careerpathwaydescriptor ON edfi.course USING btree (careerpathwaydescriptorid); + + +-- +-- Name: fk_2096ce_coursedefinedbydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_coursedefinedbydescriptor ON edfi.course USING btree (coursedefinedbydescriptorid); + + +-- +-- Name: fk_2096ce_coursegpaapplicabilitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_coursegpaapplicabilitydescriptor ON edfi.course USING btree (coursegpaapplicabilitydescriptorid); + + +-- +-- Name: fk_2096ce_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_credittypedescriptor ON edfi.course USING btree (minimumavailablecredittypedescriptorid); + + +-- +-- Name: fk_2096ce_credittypedescriptor1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_credittypedescriptor1 ON edfi.course USING btree (maximumavailablecredittypedescriptorid); + + +-- +-- Name: fk_2096ce_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2096ce_educationorganization ON edfi.course USING btree (educationorganizationid); + + +-- +-- Name: fk_210b6b_courselevelcharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_210b6b_courselevelcharacteristicdescriptor ON edfi.courseofferingcourselevelcharacteristic USING btree (courselevelcharacteristicdescriptorid); + + +-- +-- Name: fk_210b6b_courseoffering; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_210b6b_courseoffering ON edfi.courseofferingcourselevelcharacteristic USING btree (localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_211bb3_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_211bb3_educationorganization ON edfi.survey USING btree (educationorganizationid); + + +-- +-- Name: fk_211bb3_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_211bb3_schoolyeartype ON edfi.survey USING btree (schoolyear); + + +-- +-- Name: fk_211bb3_session; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_211bb3_session ON edfi.survey USING btree (schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_211bb3_surveycategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_211bb3_surveycategorydescriptor ON edfi.survey USING btree (surveycategorydescriptorid); + + +-- +-- Name: fk_2189c3_surveyresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2189c3_surveyresponse ON edfi.surveysectionresponse USING btree (namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_2189c3_surveysection; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2189c3_surveysection ON edfi.surveysectionresponse USING btree (namespace, surveyidentifier, surveysectiontitle); + + +-- +-- Name: fk_21acd5_assessmentcontentstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_21acd5_assessmentcontentstandard ON edfi.assessmentcontentstandardauthor USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_226b3d_bellschedule; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_226b3d_bellschedule ON edfi.bellschedulegradelevel USING btree (bellschedulename, schoolid); + + +-- +-- Name: fk_226b3d_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_226b3d_gradeleveldescriptor ON edfi.bellschedulegradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_22ceba_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_22ceba_assessment ON edfi.assessmentsection USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_22ceba_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_22ceba_section ON edfi.assessmentsection USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_23fa0f_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_23fa0f_academicsubjectdescriptor ON edfi.learningobjectiveacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_23fa0f_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_23fa0f_learningobjective ON edfi.learningobjectiveacademicsubject USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_247572_communityorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_247572_communityorganization ON edfi.communityprovider USING btree (communityorganizationid); + + +-- +-- Name: fk_247572_providercategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_247572_providercategorydescriptor ON edfi.communityprovider USING btree (providercategorydescriptorid); + + +-- +-- Name: fk_247572_providerprofitabilitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_247572_providerprofitabilitydescriptor ON edfi.communityprovider USING btree (providerprofitabilitydescriptorid); + + +-- +-- Name: fk_247572_providerstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_247572_providerstatusdescriptor ON edfi.communityprovider USING btree (providerstatusdescriptorid); + + +-- +-- Name: fk_252151_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_252151_educationorganization ON edfi.educationorganizationnetworkassociation USING btree (membereducationorganizationid); + + +-- +-- Name: fk_252151_educationorganizationnetwork; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_252151_educationorganizationnetwork ON edfi.educationorganizationnetworkassociation USING btree (educationorganizationnetworkid); + + +-- +-- Name: fk_25c08c_charterstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25c08c_charterstatusdescriptor ON edfi.localeducationagency USING btree (charterstatusdescriptorid); + + +-- +-- Name: fk_25c08c_educationservicecenter; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25c08c_educationservicecenter ON edfi.localeducationagency USING btree (educationservicecenterid); + + +-- +-- Name: fk_25c08c_localeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25c08c_localeducationagency ON edfi.localeducationagency USING btree (parentlocaleducationagencyid); + + +-- +-- Name: fk_25c08c_localeducationagencycategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25c08c_localeducationagencycategorydescriptor ON edfi.localeducationagency USING btree (localeducationagencycategorydescriptorid); + + +-- +-- Name: fk_25c08c_stateeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25c08c_stateeducationagency ON edfi.localeducationagency USING btree (stateeducationagencyid); + + +-- +-- Name: fk_25cb9c_cohort; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25cb9c_cohort ON edfi.studentinterventionassociation USING btree (cohortidentifier, cohorteducationorganizationid); + + +-- +-- Name: fk_25cb9c_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25cb9c_intervention ON edfi.studentinterventionassociation USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_25cb9c_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_25cb9c_student ON edfi.studentinterventionassociation USING btree (studentusi); + + +-- +-- Name: fk_268e07_languageinstructionprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_268e07_languageinstructionprogramservicedescriptor ON edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 USING btree (languageinstructionprogramservicedescriptorid); + + +-- +-- Name: fk_268e07_studentlanguageinstructionprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_268e07_studentlanguageinstructionprogramassociation ON edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_269e10_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_269e10_academicsubjectdescriptor ON edfi.objectiveassessment USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_269e10_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_269e10_assessment ON edfi.objectiveassessment USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_269e10_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_269e10_objectiveassessment ON edfi.objectiveassessment USING btree (assessmentidentifier, parentidentificationcode, namespace); + + +-- +-- Name: fk_27d914_titleipartaparticipantdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_27d914_titleipartaparticipantdescriptor ON edfi.studenttitleipartaprogramassociation USING btree (titleipartaparticipantdescriptorid); + + +-- +-- Name: fk_285d36_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_285d36_academicsubjectdescriptor ON edfi.openstaffpositionacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_285d36_openstaffposition; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_285d36_openstaffposition ON edfi.openstaffpositionacademicsubject USING btree (educationorganizationid, requisitionnumber); + + +-- +-- Name: fk_2935bf_administrativefundingcontroldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2935bf_administrativefundingcontroldescriptor ON edfi.postsecondaryinstitution USING btree (administrativefundingcontroldescriptorid); + + +-- +-- Name: fk_2935bf_postsecondaryinstitutionleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2935bf_postsecondaryinstitutionleveldescriptor ON edfi.postsecondaryinstitution USING btree (postsecondaryinstitutionleveldescriptorid); + + +-- +-- Name: fk_29e870_diagnosisdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_29e870_diagnosisdescriptor ON edfi.studentinterventionassociationinterventioneffectiveness USING btree (diagnosisdescriptorid); + + +-- +-- Name: fk_29e870_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_29e870_gradeleveldescriptor ON edfi.studentinterventionassociationinterventioneffectiveness USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_29e870_interventioneffectivenessratingdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_29e870_interventioneffectivenessratingdescriptor ON edfi.studentinterventionassociationinterventioneffectiveness USING btree (interventioneffectivenessratingdescriptorid); + + +-- +-- Name: fk_29e870_populationserveddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_29e870_populationserveddescriptor ON edfi.studentinterventionassociationinterventioneffectiveness USING btree (populationserveddescriptorid); + + +-- +-- Name: fk_29e870_studentinterventionassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_29e870_studentinterventionassociation ON edfi.studentinterventionassociationinterventioneffectiveness USING btree (educationorganizationid, interventionidentificationcode, studentusi); + + +-- +-- Name: fk_2a164d_citizenshipstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a164d_citizenshipstatusdescriptor ON edfi.student USING btree (citizenshipstatusdescriptorid); + + +-- +-- Name: fk_2a164d_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a164d_countrydescriptor ON edfi.student USING btree (birthcountrydescriptorid); + + +-- +-- Name: fk_2a164d_person; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a164d_person ON edfi.student USING btree (personid, sourcesystemdescriptorid); + + +-- +-- Name: fk_2a164d_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a164d_sexdescriptor ON edfi.student USING btree (birthsexdescriptorid); + + +-- +-- Name: fk_2a164d_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a164d_stateabbreviationdescriptor ON edfi.student USING btree (birthstateabbreviationdescriptorid); + + +-- +-- Name: fk_2a4725_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a4725_languagedescriptor ON edfi.studenteducationorganizationassociationlanguage USING btree (languagedescriptorid); + + +-- +-- Name: fk_2a4725_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2a4725_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationlanguage USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_2b286a_academichonorcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2b286a_academichonorcategorydescriptor ON edfi.studentacademicrecordacademichonor USING btree (academichonorcategorydescriptorid); + + +-- +-- Name: fk_2b286a_achievementcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2b286a_achievementcategorydescriptor ON edfi.studentacademicrecordacademichonor USING btree (achievementcategorydescriptorid); + + +-- +-- Name: fk_2b286a_studentacademicrecord; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2b286a_studentacademicrecord ON edfi.studentacademicrecordacademichonor USING btree (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_2c2b13_ancestryethnicorigindescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c2b13_ancestryethnicorigindescriptor ON edfi.studenteducationorganizationassociationancestryethnicorigin USING btree (ancestryethnicorigindescriptorid); + + +-- +-- Name: fk_2c2b13_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c2b13_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationancestryethnicorigin USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_2c4cdb_disciplineaction; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c4cdb_disciplineaction ON edfi.disciplineactionstudentdisciplineincidentbehaviorassociation USING btree (disciplineactionidentifier, disciplinedate, studentusi); + + +-- +-- Name: fk_2c4cdb_studentdisciplineincidentbehaviorassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c4cdb_studentdisciplineincidentbehaviorassociation ON edfi.disciplineactionstudentdisciplineincidentbehaviorassociation USING btree (behaviordescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: fk_2c91e8_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c91e8_assessmentreportingmethoddescriptor ON edfi.objectiveassessmentscore USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_2c91e8_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c91e8_objectiveassessment ON edfi.objectiveassessmentscore USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_2c91e8_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2c91e8_resultdatatypetypedescriptor ON edfi.objectiveassessmentscore USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_2d3c0c_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2d3c0c_educationorganization ON edfi.accountabilityrating USING btree (educationorganizationid); + + +-- +-- Name: fk_2d3c0c_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2d3c0c_schoolyeartype ON edfi.accountabilityrating USING btree (schoolyear); + + +-- +-- Name: fk_2d57be_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2d57be_countrydescriptor ON edfi.studentidentificationdocument USING btree (issuercountrydescriptorid); + + +-- +-- Name: fk_2d57be_identificationdocumentusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2d57be_identificationdocumentusedescriptor ON edfi.studentidentificationdocument USING btree (identificationdocumentusedescriptorid); + + +-- +-- Name: fk_2d57be_personalinformationverificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2d57be_personalinformationverificationdescriptor ON edfi.studentidentificationdocument USING btree (personalinformationverificationdescriptorid); + + +-- +-- Name: fk_2d57be_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2d57be_student ON edfi.studentidentificationdocument USING btree (studentusi); + + +-- +-- Name: fk_2e333a_languageusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2e333a_languageusedescriptor ON edfi.studenteducationorganizationassociationlanguageuse USING btree (languageusedescriptorid); + + +-- +-- Name: fk_2e333a_studenteducationorganizationassociationlanguage; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_2e333a_studenteducationorganizationassociationlanguage ON edfi.studenteducationorganizationassociationlanguageuse USING btree (educationorganizationid, languagedescriptorid, studentusi); + + +-- +-- Name: fk_309217_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_309217_program ON edfi.sectionprogram USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_309217_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_309217_section ON edfi.sectionprogram USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_30e866_disciplineaction; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_30e866_disciplineaction ON edfi.disciplineactionstaff USING btree (disciplineactionidentifier, disciplinedate, studentusi); + + +-- +-- Name: fk_30e866_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_30e866_staff ON edfi.disciplineactionstaff USING btree (staffusi); + + +-- +-- Name: fk_31779a_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_31779a_countrydescriptor ON edfi.staffidentificationdocument USING btree (issuercountrydescriptorid); + + +-- +-- Name: fk_31779a_identificationdocumentusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_31779a_identificationdocumentusedescriptor ON edfi.staffidentificationdocument USING btree (identificationdocumentusedescriptorid); + + +-- +-- Name: fk_31779a_personalinformationverificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_31779a_personalinformationverificationdescriptor ON edfi.staffidentificationdocument USING btree (personalinformationverificationdescriptorid); + + +-- +-- Name: fk_31779a_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_31779a_staff ON edfi.staffidentificationdocument USING btree (staffusi); + + +-- +-- Name: fk_317aeb_attendanceeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_317aeb_attendanceeventcategorydescriptor ON edfi.studentprogramattendanceevent USING btree (attendanceeventcategorydescriptorid); + + +-- +-- Name: fk_317aeb_educationalenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_317aeb_educationalenvironmentdescriptor ON edfi.studentprogramattendanceevent USING btree (educationalenvironmentdescriptorid); + + +-- +-- Name: fk_317aeb_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_317aeb_educationorganization ON edfi.studentprogramattendanceevent USING btree (educationorganizationid); + + +-- +-- Name: fk_317aeb_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_317aeb_program ON edfi.studentprogramattendanceevent USING btree (programeducationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_317aeb_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_317aeb_student ON edfi.studentprogramattendanceevent USING btree (studentusi); + + +-- +-- Name: fk_31bbf7_courseoffering; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_31bbf7_courseoffering ON edfi.courseofferingcurriculumused USING btree (localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_31bbf7_curriculumuseddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_31bbf7_curriculumuseddescriptor ON edfi.courseofferingcurriculumused USING btree (curriculumuseddescriptorid); + + +-- +-- Name: fk_32920f_disabilitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_32920f_disabilitydescriptor ON edfi.studentspecialeducationprogramassociationdisability USING btree (disabilitydescriptorid); + + +-- +-- Name: fk_32920f_disabilitydeterminationsourcetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_32920f_disabilitydeterminationsourcetypedescriptor ON edfi.studentspecialeducationprogramassociationdisability USING btree (disabilitydeterminationsourcetypedescriptorid); + + +-- +-- Name: fk_32920f_studentspecialeducationprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_32920f_studentspecialeducationprogramassociation ON edfi.studentspecialeducationprogramassociationdisability USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_34f9df_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_34f9df_languagedescriptor ON edfi.parentlanguage USING btree (languagedescriptorid); + + +-- +-- Name: fk_34f9df_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_34f9df_parent ON edfi.parentlanguage USING btree (parentusi); + + +-- +-- Name: fk_354642_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_354642_academicsubjectdescriptor ON edfi.coursetranscriptacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_354642_coursetranscript; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_354642_coursetranscript ON edfi.coursetranscriptacademicsubject USING btree (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_35afab_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_35afab_intervention ON edfi.interventionuri USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_369ddc_cohort; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_369ddc_cohort ON edfi.studentcohortassociation USING btree (cohortidentifier, educationorganizationid); + + +-- +-- Name: fk_369ddc_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_369ddc_student ON edfi.studentcohortassociation USING btree (studentusi); + + +-- +-- Name: fk_3734d1_assessmentperioddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3734d1_assessmentperioddescriptor ON edfi.assessmentperiod USING btree (assessmentperioddescriptorid); + + +-- +-- Name: fk_3800be_educationalenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3800be_educationalenvironmentdescriptor ON edfi.restraintevent USING btree (educationalenvironmentdescriptorid); + + +-- +-- Name: fk_3800be_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3800be_school ON edfi.restraintevent USING btree (schoolid); + + +-- +-- Name: fk_3800be_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3800be_student ON edfi.restraintevent USING btree (studentusi); + + +-- +-- Name: fk_38677c_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_38677c_gradeleveldescriptor ON edfi.learningstandardgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_38677c_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_38677c_learningstandard ON edfi.learningstandardgradelevel USING btree (learningstandardid); + + +-- +-- Name: fk_39073d_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_39073d_staff ON edfi.surveysectionresponsestafftargetassociation USING btree (staffusi); + + +-- +-- Name: fk_39073d_surveysectionresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_39073d_surveysectionresponse ON edfi.surveysectionresponsestafftargetassociation USING btree (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: fk_395c07_competencyleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_395c07_competencyleveldescriptor ON edfi.studentcompetencyobjective USING btree (competencyleveldescriptorid); + + +-- +-- Name: fk_395c07_competencyobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_395c07_competencyobjective ON edfi.studentcompetencyobjective USING btree (objectiveeducationorganizationid, objective, objectivegradeleveldescriptorid); + + +-- +-- Name: fk_395c07_gradingperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_395c07_gradingperiod ON edfi.studentcompetencyobjective USING btree (gradingperioddescriptorid, gradingperiodsequence, gradingperiodschoolid, gradingperiodschoolyear); + + +-- +-- Name: fk_395c07_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_395c07_student ON edfi.studentcompetencyobjective USING btree (studentusi); + + +-- +-- Name: fk_39aa3c_attemptstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_39aa3c_attemptstatusdescriptor ON edfi.studentsectionassociation USING btree (attemptstatusdescriptorid); + + +-- +-- Name: fk_39aa3c_repeatidentifierdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_39aa3c_repeatidentifierdescriptor ON edfi.studentsectionassociation USING btree (repeatidentifierdescriptorid); + + +-- +-- Name: fk_39aa3c_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_39aa3c_section ON edfi.studentsectionassociation USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_39aa3c_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_39aa3c_student ON edfi.studentsectionassociation USING btree (studentusi); + + +-- +-- Name: fk_3ab5d4_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3ab5d4_educationcontent ON edfi.interventionprescriptioneducationcontent USING btree (contentidentifier); + + +-- +-- Name: fk_3ab5d4_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3ab5d4_interventionprescription ON edfi.interventionprescriptioneducationcontent USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_3af731_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3af731_assessment ON edfi.assessmentidentificationcode USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_3af731_assessmentidentificationsystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3af731_assessmentidentificationsystemdescriptor ON edfi.assessmentidentificationcode USING btree (assessmentidentificationsystemdescriptorid); + + +-- +-- Name: fk_3b5b30_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3b5b30_academicsubjectdescriptor ON edfi.graduationplancreditsbysubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_3b5b30_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3b5b30_credittypedescriptor ON edfi.graduationplancreditsbysubject USING btree (credittypedescriptorid); + + +-- +-- Name: fk_3b5b30_graduationplan; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3b5b30_graduationplan ON edfi.graduationplancreditsbysubject USING btree (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: fk_3c7e00_stateeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3c7e00_stateeducationagency ON edfi.stateeducationagencyfederalfunds USING btree (stateeducationagencyid); + + +-- +-- Name: fk_3c823d_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3c823d_educationcontent ON edfi.interventioneducationcontent USING btree (contentidentifier); + + +-- +-- Name: fk_3c823d_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3c823d_intervention ON edfi.interventioneducationcontent USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_3cc1d4_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3cc1d4_educationorganization ON edfi.openstaffposition USING btree (educationorganizationid); + + +-- +-- Name: fk_3cc1d4_employmentstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3cc1d4_employmentstatusdescriptor ON edfi.openstaffposition USING btree (employmentstatusdescriptorid); + + +-- +-- Name: fk_3cc1d4_postingresultdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3cc1d4_postingresultdescriptor ON edfi.openstaffposition USING btree (postingresultdescriptorid); + + +-- +-- Name: fk_3cc1d4_programassignmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3cc1d4_programassignmentdescriptor ON edfi.openstaffposition USING btree (programassignmentdescriptorid); + + +-- +-- Name: fk_3cc1d4_staffclassificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3cc1d4_staffclassificationdescriptor ON edfi.openstaffposition USING btree (staffclassificationdescriptorid); + + +-- +-- Name: fk_3d5433_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3d5433_gradeleveldescriptor ON edfi.interventionappropriategradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_3d5433_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3d5433_intervention ON edfi.interventionappropriategradelevel USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_3db81b_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3db81b_gradeleveldescriptor ON edfi.staffschoolassociationgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_3db81b_staffschoolassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3db81b_staffschoolassociation ON edfi.staffschoolassociationgradelevel USING btree (programassignmentdescriptorid, schoolid, staffusi); + + +-- +-- Name: fk_3e8699_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3e8699_learningobjective ON edfi.objectiveassessmentlearningobjective USING btree (learningobjectiveid, learningobjectivenamespace); + + +-- +-- Name: fk_3e8699_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_3e8699_objectiveassessment ON edfi.objectiveassessmentlearningobjective USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_400d06_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_400d06_academicsubjectdescriptor ON edfi.assessmentacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_400d06_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_400d06_assessment ON edfi.assessmentacademicsubject USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_421bfa_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_421bfa_educationcontent ON edfi.educationcontentderivativesourcelearningresourcemetadatauri USING btree (contentidentifier); + + +-- +-- Name: fk_427110_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_427110_educationorganization ON edfi.educationorganizationcategory USING btree (educationorganizationid); + + +-- +-- Name: fk_427110_educationorganizationcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_427110_educationorganizationcategorydescriptor ON edfi.educationorganizationcategory USING btree (educationorganizationcategorydescriptorid); + + +-- +-- Name: fk_42aa64_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_42aa64_educationorganization ON edfi.studenteducationorganizationresponsibilityassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_42aa64_responsibilitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_42aa64_responsibilitydescriptor ON edfi.studenteducationorganizationresponsibilityassociation USING btree (responsibilitydescriptorid); + + +-- +-- Name: fk_42aa64_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_42aa64_student ON edfi.studenteducationorganizationresponsibilityassociation USING btree (studentusi); + + +-- +-- Name: fk_435263_classperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_435263_classperiod ON edfi.classperiodmeetingtime USING btree (classperiodname, schoolid); + + +-- +-- Name: fk_43bbe1_stateeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_43bbe1_stateeducationagency ON edfi.educationservicecenter USING btree (stateeducationagencyid); + + +-- +-- Name: fk_44e78d_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_44e78d_credittypedescriptor ON edfi.graduationplancreditsbycourse USING btree (credittypedescriptorid); + + +-- +-- Name: fk_44e78d_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_44e78d_gradeleveldescriptor ON edfi.graduationplancreditsbycourse USING btree (whentakengradeleveldescriptorid); + + +-- +-- Name: fk_44e78d_graduationplan; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_44e78d_graduationplan ON edfi.graduationplancreditsbycourse USING btree (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: fk_44f909_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_44f909_learningstandard ON edfi.programlearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_44f909_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_44f909_program ON edfi.programlearningstandard USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_4525e6_operationalstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4525e6_operationalstatusdescriptor ON edfi.educationorganization USING btree (operationalstatusdescriptorid); + + +-- +-- Name: fk_453ba8_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_453ba8_parent ON edfi.parenttelephone USING btree (parentusi); + + +-- +-- Name: fk_453ba8_telephonenumbertypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_453ba8_telephonenumbertypedescriptor ON edfi.parenttelephone USING btree (telephonenumbertypedescriptorid); + + +-- +-- Name: fk_465c76_classperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_465c76_classperiod ON edfi.sectionclassperiod USING btree (classperiodname, schoolid); + + +-- +-- Name: fk_465c76_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_465c76_section ON edfi.sectionclassperiod USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_466cfa_gradebookentrytypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_466cfa_gradebookentrytypedescriptor ON edfi.gradebookentry USING btree (gradebookentrytypedescriptorid); + + +-- +-- Name: fk_466cfa_gradingperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_466cfa_gradingperiod ON edfi.gradebookentry USING btree (gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: fk_466cfa_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_466cfa_section ON edfi.gradebookentry USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_4736c7_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4736c7_gradeleveldescriptor ON edfi.interventionprescriptionappropriategradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_4736c7_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4736c7_interventionprescription ON edfi.interventionprescriptionappropriategradelevel USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_4925da_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4925da_addresstypedescriptor ON edfi.educationorganizationaddress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_4925da_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4925da_educationorganization ON edfi.educationorganizationaddress USING btree (educationorganizationid); + + +-- +-- Name: fk_4925da_localedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4925da_localedescriptor ON edfi.educationorganizationaddress USING btree (localedescriptorid); + + +-- +-- Name: fk_4925da_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4925da_stateabbreviationdescriptor ON edfi.educationorganizationaddress USING btree (stateabbreviationdescriptorid); + + +-- +-- Name: fk_4a3f1c_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4a3f1c_interventionprescription ON edfi.interventionprescriptionappropriatesex USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_4a3f1c_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4a3f1c_sexdescriptor ON edfi.interventionprescriptionappropriatesex USING btree (sexdescriptorid); + + +-- +-- Name: fk_4a715c_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4a715c_educationorganization ON edfi.educationorganizationidentificationcode USING btree (educationorganizationid); + + +-- +-- Name: fk_4a715c_educationorganizationidentificationsystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4a715c_educationorganizationidentificationsystemdescriptor ON edfi.educationorganizationidentificationcode USING btree (educationorganizationidentificationsystemdescriptorid); + + +-- +-- Name: fk_4acf8e_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4acf8e_interventionprescription ON edfi.interventionprescriptionuri USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_4b43da_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4b43da_disciplineincident ON edfi.studentdisciplineincidentnonoffenderassociation USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_4b43da_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4b43da_student ON edfi.studentdisciplineincidentnonoffenderassociation USING btree (studentusi); + + +-- +-- Name: fk_4c38bb_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4c38bb_program ON edfi.programsponsor USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_4c38bb_programsponsordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4c38bb_programsponsordescriptor ON edfi.programsponsor USING btree (programsponsordescriptorid); + + +-- +-- Name: fk_4c979a_disciplineincidentparticipationcodedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4c979a_disciplineincidentparticipationcodedescriptor ON edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a USING btree (disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: fk_4c979a_studentdisciplineincidentnonoffenderassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4c979a_studentdisciplineincidentnonoffenderassociation ON edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a USING btree (incidentidentifier, schoolid, studentusi); + + +-- +-- Name: fk_4c9e40_learningstandardcontentstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4c9e40_learningstandardcontentstandard ON edfi.learningstandardcontentstandardauthor USING btree (learningstandardid); + + +-- +-- Name: fk_4ca65b_disabilitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4ca65b_disabilitydescriptor ON edfi.studenteducationorganizationassociationdisability USING btree (disabilitydescriptorid); + + +-- +-- Name: fk_4ca65b_disabilitydeterminationsourcetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4ca65b_disabilitydeterminationsourcetypedescriptor ON edfi.studenteducationorganizationassociationdisability USING btree (disabilitydeterminationsourcetypedescriptorid); + + +-- +-- Name: fk_4ca65b_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4ca65b_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationdisability USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_4de15a_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4de15a_staff ON edfi.stafftelephone USING btree (staffusi); + + +-- +-- Name: fk_4de15a_telephonenumbertypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4de15a_telephonenumbertypedescriptor ON edfi.stafftelephone USING btree (telephonenumbertypedescriptorid); + + +-- +-- Name: fk_4e3afe_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e3afe_countrydescriptor ON edfi.staffpersonalidentificationdocument USING btree (issuercountrydescriptorid); + + +-- +-- Name: fk_4e3afe_identificationdocumentusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e3afe_identificationdocumentusedescriptor ON edfi.staffpersonalidentificationdocument USING btree (identificationdocumentusedescriptorid); + + +-- +-- Name: fk_4e3afe_personalinformationverificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e3afe_personalinformationverificationdescriptor ON edfi.staffpersonalidentificationdocument USING btree (personalinformationverificationdescriptorid); + + +-- +-- Name: fk_4e3afe_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e3afe_staff ON edfi.staffpersonalidentificationdocument USING btree (staffusi); + + +-- +-- Name: fk_4e79b9_credential; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e79b9_credential ON edfi.staffeducationorganizationemploymentassociation USING btree (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_4e79b9_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e79b9_educationorganization ON edfi.staffeducationorganizationemploymentassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_4e79b9_employmentstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e79b9_employmentstatusdescriptor ON edfi.staffeducationorganizationemploymentassociation USING btree (employmentstatusdescriptorid); + + +-- +-- Name: fk_4e79b9_separationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e79b9_separationdescriptor ON edfi.staffeducationorganizationemploymentassociation USING btree (separationdescriptorid); + + +-- +-- Name: fk_4e79b9_separationreasondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e79b9_separationreasondescriptor ON edfi.staffeducationorganizationemploymentassociation USING btree (separationreasondescriptorid); + + +-- +-- Name: fk_4e79b9_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_4e79b9_staff ON edfi.staffeducationorganizationemploymentassociation USING btree (staffusi); + + +-- +-- Name: fk_515cb5_classroompositiondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_515cb5_classroompositiondescriptor ON edfi.staffsectionassociation USING btree (classroompositiondescriptorid); + + +-- +-- Name: fk_515cb5_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_515cb5_section ON edfi.staffsectionassociation USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_515cb5_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_515cb5_staff ON edfi.staffsectionassociation USING btree (staffusi); + + +-- +-- Name: fk_520251_neglectedordelinquentprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_520251_neglectedordelinquentprogramservicedescriptor ON edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 USING btree (neglectedordelinquentprogramservicedescriptorid); + + +-- +-- Name: fk_520251_studentneglectedordelinquentprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_520251_studentneglectedordelinquentprogramassociation ON edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_53fe8d_account; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_53fe8d_account ON edfi.payroll USING btree (accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: fk_53fe8d_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_53fe8d_staff ON edfi.payroll USING btree (staffusi); + + +-- +-- Name: fk_57ca0f_account; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_57ca0f_account ON edfi.contractedstaff USING btree (accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: fk_57ca0f_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_57ca0f_staff ON edfi.contractedstaff USING btree (staffusi); + + +-- +-- Name: fk_57f7d2_credential; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_57f7d2_credential ON edfi.credentialendorsement USING btree (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_58013b_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_58013b_assessment ON edfi.assessmentprogram USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_58013b_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_58013b_program ON edfi.assessmentprogram USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_581f0f_competencyleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_581f0f_competencyleveldescriptor ON edfi.coursecompetencylevel USING btree (competencyleveldescriptorid); + + +-- +-- Name: fk_581f0f_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_581f0f_course ON edfi.coursecompetencylevel USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_582e49_electronicmailtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_582e49_electronicmailtypedescriptor ON edfi.studenteducationorganizationassociationelectronicmail USING btree (electronicmailtypedescriptorid); + + +-- +-- Name: fk_582e49_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_582e49_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationelectronicmail USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_588d15_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_588d15_learningobjective ON edfi.learningobjective USING btree (parentlearningobjectiveid, parentnamespace); + + +-- +-- Name: fk_59fcb5_cohort; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_59fcb5_cohort ON edfi.cohortprogram USING btree (cohortidentifier, educationorganizationid); + + +-- +-- Name: fk_59fcb5_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_59fcb5_program ON edfi.cohortprogram USING btree (programeducationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_5a18f9_gradingperioddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5a18f9_gradingperioddescriptor ON edfi.gradingperiod USING btree (gradingperioddescriptorid); + + +-- +-- Name: fk_5a18f9_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5a18f9_school ON edfi.gradingperiod USING btree (schoolid); + + +-- +-- Name: fk_5a18f9_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5a18f9_schoolyeartype ON edfi.gradingperiod USING btree (schoolyear); + + +-- +-- Name: fk_5a8c0e_localeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5a8c0e_localeducationagency ON edfi.localeducationagencyfederalfunds USING btree (localeducationagencyid); + + +-- +-- Name: fk_5c2c98_programtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5c2c98_programtypedescriptor ON edfi.studenteducationorganizationassociationprogramparticipation USING btree (programtypedescriptorid); + + +-- +-- Name: fk_5c2c98_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5c2c98_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationprogramparticipation USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_5e049e_achievementcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5e049e_achievementcategorydescriptor ON edfi.studentacademicrecordrecognition USING btree (achievementcategorydescriptorid); + + +-- +-- Name: fk_5e049e_recognitiontypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5e049e_recognitiontypedescriptor ON edfi.studentacademicrecordrecognition USING btree (recognitiontypedescriptorid); + + +-- +-- Name: fk_5e049e_studentacademicrecord; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5e049e_studentacademicrecord ON edfi.studentacademicrecordrecognition USING btree (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_5e9932_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5e9932_educationorganization ON edfi.competencyobjective USING btree (educationorganizationid); + + +-- +-- Name: fk_5e9932_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5e9932_gradeleveldescriptor ON edfi.competencyobjective USING btree (objectivegradeleveldescriptorid); + + +-- +-- Name: fk_5ee8fd_disabilitydesignationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5ee8fd_disabilitydesignationdescriptor ON edfi.studenteducationorganizationassociationdisabilitydesignation USING btree (disabilitydesignationdescriptorid); + + +-- +-- Name: fk_5ee8fd_studenteducationorganizationassociationdisability; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5ee8fd_studenteducationorganizationassociationdisability ON edfi.studenteducationorganizationassociationdisabilitydesignation USING btree (disabilitydescriptorid, educationorganizationid, studentusi); + + +-- +-- Name: fk_5f7953_levelofeducationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5f7953_levelofeducationdescriptor ON edfi.parent USING btree (highestcompletedlevelofeducationdescriptorid); + + +-- +-- Name: fk_5f7953_person; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5f7953_person ON edfi.parent USING btree (personid, sourcesystemdescriptorid); + + +-- +-- Name: fk_5f7953_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_5f7953_sexdescriptor ON edfi.parent USING btree (sexdescriptorid); + + +-- +-- Name: fk_6007db_sourcesystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6007db_sourcesystemdescriptor ON edfi.person USING btree (sourcesystemdescriptorid); + + +-- +-- Name: fk_61b087_attendanceeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_61b087_attendanceeventcategorydescriptor ON edfi.studentsectionattendanceevent USING btree (attendanceeventcategorydescriptorid); + + +-- +-- Name: fk_61b087_educationalenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_61b087_educationalenvironmentdescriptor ON edfi.studentsectionattendanceevent USING btree (educationalenvironmentdescriptorid); + + +-- +-- Name: fk_61b087_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_61b087_section ON edfi.studentsectionattendanceevent USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_61b087_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_61b087_student ON edfi.studentsectionattendanceevent USING btree (studentusi); + + +-- +-- Name: fk_631023_attendanceeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_631023_attendanceeventcategorydescriptor ON edfi.studentinterventionattendanceevent USING btree (attendanceeventcategorydescriptorid); + + +-- +-- Name: fk_631023_educationalenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_631023_educationalenvironmentdescriptor ON edfi.studentinterventionattendanceevent USING btree (educationalenvironmentdescriptorid); + + +-- +-- Name: fk_631023_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_631023_intervention ON edfi.studentinterventionattendanceevent USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_631023_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_631023_student ON edfi.studentinterventionattendanceevent USING btree (studentusi); + + +-- +-- Name: fk_644654_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_644654_course ON edfi.courselearningstandard USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_644654_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_644654_learningstandard ON edfi.courselearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_64d76d_surveyquestion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_64d76d_surveyquestion ON edfi.surveyquestionmatrix USING btree (namespace, questioncode, surveyidentifier); + + +-- +-- Name: fk_64d8a6_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_64d8a6_gradeleveldescriptor ON edfi.schoolgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_64d8a6_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_64d8a6_school ON edfi.schoolgradelevel USING btree (schoolid); + + +-- +-- Name: fk_6621ee_courseidentificationsystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6621ee_courseidentificationsystemdescriptor ON edfi.coursetranscriptalternativecourseidentificationcode USING btree (courseidentificationsystemdescriptorid); + + +-- +-- Name: fk_6621ee_coursetranscript; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6621ee_coursetranscript ON edfi.coursetranscriptalternativecourseidentificationcode USING btree (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_678d65_neglectedordelinquentprogramdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_678d65_neglectedordelinquentprogramdescriptor ON edfi.studentneglectedordelinquentprogramassociation USING btree (neglectedordelinquentprogramdescriptorid); + + +-- +-- Name: fk_678d65_progressleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_678d65_progressleveldescriptor ON edfi.studentneglectedordelinquentprogramassociation USING btree (elaprogressleveldescriptorid); + + +-- +-- Name: fk_678d65_progressleveldescriptor1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_678d65_progressleveldescriptor1 ON edfi.studentneglectedordelinquentprogramassociation USING btree (mathematicsprogressleveldescriptorid); + + +-- +-- Name: fk_679174_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_679174_disciplineincident ON edfi.studentdisciplineincidentassociation USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_679174_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_679174_student ON edfi.studentdisciplineincidentassociation USING btree (studentusi); + + +-- +-- Name: fk_679174_studentparticipationcodedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_679174_studentparticipationcodedescriptor ON edfi.studentdisciplineincidentassociation USING btree (studentparticipationcodedescriptorid); + + +-- +-- Name: fk_681927_citizenshipstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_681927_citizenshipstatusdescriptor ON edfi.staff USING btree (citizenshipstatusdescriptorid); + + +-- +-- Name: fk_681927_levelofeducationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_681927_levelofeducationdescriptor ON edfi.staff USING btree (highestcompletedlevelofeducationdescriptorid); + + +-- +-- Name: fk_681927_oldethnicitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_681927_oldethnicitydescriptor ON edfi.staff USING btree (oldethnicitydescriptorid); + + +-- +-- Name: fk_681927_person; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_681927_person ON edfi.staff USING btree (personid, sourcesystemdescriptorid); + + +-- +-- Name: fk_681927_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_681927_sexdescriptor ON edfi.staff USING btree (sexdescriptorid); + + +-- +-- Name: fk_68857c_gradebookentry; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_68857c_gradebookentry ON edfi.gradebookentrylearningobjective USING btree (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_68857c_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_68857c_learningobjective ON edfi.gradebookentrylearningobjective USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_6959b4_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6959b4_school ON edfi.session USING btree (schoolid); + + +-- +-- Name: fk_6959b4_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6959b4_schoolyeartype ON edfi.session USING btree (schoolyear); + + +-- +-- Name: fk_6959b4_termdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6959b4_termdescriptor ON edfi.session USING btree (termdescriptorid); + + +-- +-- Name: fk_696d9a_racedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_696d9a_racedescriptor ON edfi.staffrace USING btree (racedescriptorid); + + +-- +-- Name: fk_696d9a_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_696d9a_staff ON edfi.staffrace USING btree (staffusi); + + +-- +-- Name: fk_699b02_assessmentitem; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_699b02_assessmentitem ON edfi.assessmentitempossibleresponse USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_69cd6f_servicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_69cd6f_servicedescriptor ON edfi.studentprogramassociationservice USING btree (servicedescriptorid); + + +-- +-- Name: fk_69cd6f_studentprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_69cd6f_studentprogramassociation ON edfi.studentprogramassociationservice USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_69dd58_cohortyeartypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_69dd58_cohortyeartypedescriptor ON edfi.studenteducationorganizationassociationcohortyear USING btree (cohortyeartypedescriptorid); + + +-- +-- Name: fk_69dd58_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_69dd58_schoolyeartype ON edfi.studenteducationorganizationassociationcohortyear USING btree (schoolyear); + + +-- +-- Name: fk_69dd58_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_69dd58_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationcohortyear USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_69dd58_termdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_69dd58_termdescriptor ON edfi.studenteducationorganizationassociationcohortyear USING btree (termdescriptorid); + + +-- +-- Name: fk_6acf2b_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_course ON edfi.coursetranscript USING btree (coursecode, courseeducationorganizationid); + + +-- +-- Name: fk_6acf2b_courseattemptresultdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_courseattemptresultdescriptor ON edfi.coursetranscript USING btree (courseattemptresultdescriptorid); + + +-- +-- Name: fk_6acf2b_courserepeatcodedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_courserepeatcodedescriptor ON edfi.coursetranscript USING btree (courserepeatcodedescriptorid); + + +-- +-- Name: fk_6acf2b_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_credittypedescriptor ON edfi.coursetranscript USING btree (attemptedcredittypedescriptorid); + + +-- +-- Name: fk_6acf2b_credittypedescriptor1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_credittypedescriptor1 ON edfi.coursetranscript USING btree (earnedcredittypedescriptorid); + + +-- +-- Name: fk_6acf2b_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_educationorganization ON edfi.coursetranscript USING btree (externaleducationorganizationid); + + +-- +-- Name: fk_6acf2b_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_gradeleveldescriptor ON edfi.coursetranscript USING btree (whentakengradeleveldescriptorid); + + +-- +-- Name: fk_6acf2b_methodcreditearneddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_methodcreditearneddescriptor ON edfi.coursetranscript USING btree (methodcreditearneddescriptorid); + + +-- +-- Name: fk_6acf2b_studentacademicrecord; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6acf2b_studentacademicrecord ON edfi.coursetranscript USING btree (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_6cd27e_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd27e_addresstypedescriptor ON edfi.staffinternationaladdress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_6cd27e_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd27e_countrydescriptor ON edfi.staffinternationaladdress USING btree (countrydescriptorid); + + +-- +-- Name: fk_6cd27e_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd27e_staff ON edfi.staffinternationaladdress USING btree (staffusi); + + +-- +-- Name: fk_6cd2e3_administrativefundingcontroldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_administrativefundingcontroldescriptor ON edfi.school USING btree (administrativefundingcontroldescriptorid); + + +-- +-- Name: fk_6cd2e3_charterapprovalagencytypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_charterapprovalagencytypedescriptor ON edfi.school USING btree (charterapprovalagencytypedescriptorid); + + +-- +-- Name: fk_6cd2e3_charterstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_charterstatusdescriptor ON edfi.school USING btree (charterstatusdescriptorid); + + +-- +-- Name: fk_6cd2e3_internetaccessdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_internetaccessdescriptor ON edfi.school USING btree (internetaccessdescriptorid); + + +-- +-- Name: fk_6cd2e3_localeducationagency; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_localeducationagency ON edfi.school USING btree (localeducationagencyid); + + +-- +-- Name: fk_6cd2e3_magnetspecialprogramemphasisschooldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_magnetspecialprogramemphasisschooldescriptor ON edfi.school USING btree (magnetspecialprogramemphasisschooldescriptorid); + + +-- +-- Name: fk_6cd2e3_schooltypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_schooltypedescriptor ON edfi.school USING btree (schooltypedescriptorid); + + +-- +-- Name: fk_6cd2e3_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_schoolyeartype ON edfi.school USING btree (charterapprovalschoolyear); + + +-- +-- Name: fk_6cd2e3_titleipartaschooldesignationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6cd2e3_titleipartaschooldesignationdescriptor ON edfi.school USING btree (titleipartaschooldesignationdescriptorid); + + +-- +-- Name: fk_6e1291_bellschedule; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6e1291_bellschedule ON edfi.bellscheduledate USING btree (bellschedulename, schoolid); + + +-- +-- Name: fk_6fa51c_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6fa51c_intervention ON edfi.interventionstaff USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_6fa51c_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_6fa51c_staff ON edfi.interventionstaff USING btree (staffusi); + + +-- +-- Name: fk_70e978_graduationplan; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_70e978_graduationplan ON edfi.studentschoolassociationalternativegraduationplan USING btree (alternativeeducationorganizationid, alternativegraduationplantypedescriptorid, alternativegraduationschoolyear); + + +-- +-- Name: fk_70e978_studentschoolassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_70e978_studentschoolassociation ON edfi.studentschoolassociationalternativegraduationplan USING btree (entrydate, schoolid, studentusi); + + +-- +-- Name: fk_70f675_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_70f675_educationorganization ON edfi.learningstandardcontentstandard USING btree (mandatingeducationorganizationid); + + +-- +-- Name: fk_70f675_publicationstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_70f675_publicationstatusdescriptor ON edfi.learningstandardcontentstandard USING btree (publicationstatusdescriptorid); + + +-- +-- Name: fk_72eb60_academicweek; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_72eb60_academicweek ON edfi.sessionacademicweek USING btree (schoolid, weekidentifier); + + +-- +-- Name: fk_72eb60_session; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_72eb60_session ON edfi.sessionacademicweek USING btree (schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_730be1_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_730be1_educationorganization ON edfi.surveysectionresponseeducationorganizationtargetassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_730be1_surveysectionresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_730be1_surveysectionresponse ON edfi.surveysectionresponseeducationorganizationtargetassociation USING btree (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: fk_735dd8_contacttypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_735dd8_contacttypedescriptor ON edfi.staffeducationorganizationcontactassociation USING btree (contacttypedescriptorid); + + +-- +-- Name: fk_735dd8_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_735dd8_educationorganization ON edfi.staffeducationorganizationcontactassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_735dd8_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_735dd8_staff ON edfi.staffeducationorganizationcontactassociation USING btree (staffusi); + + +-- +-- Name: fk_73601f_disciplineaction; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_73601f_disciplineaction ON edfi.disciplineactiondiscipline USING btree (disciplineactionidentifier, disciplinedate, studentusi); + + +-- +-- Name: fk_73601f_disciplinedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_73601f_disciplinedescriptor ON edfi.disciplineactiondiscipline USING btree (disciplinedescriptorid); + + +-- +-- Name: fk_742dd2_staffeducationorganizationcontactassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_742dd2_staffeducationorganizationcontactassociation ON edfi.staffeducationorganizationcontactassociationtelephone USING btree (contacttitle, educationorganizationid, staffusi); + + +-- +-- Name: fk_742dd2_telephonenumbertypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_742dd2_telephonenumbertypedescriptor ON edfi.staffeducationorganizationcontactassociationtelephone USING btree (telephonenumbertypedescriptorid); + + +-- +-- Name: fk_7483c6_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7483c6_staff ON edfi.staffidentificationcode USING btree (staffusi); + + +-- +-- Name: fk_7483c6_staffidentificationsystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7483c6_staffidentificationsystemdescriptor ON edfi.staffidentificationcode USING btree (staffidentificationsystemdescriptorid); + + +-- +-- Name: fk_74e4e5_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_74e4e5_educationorganization ON edfi.educationorganizationpeerassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_74e4e5_educationorganization1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_74e4e5_educationorganization1 ON edfi.educationorganizationpeerassociation USING btree (peereducationorganizationid); + + +-- +-- Name: fk_7808ee_assessmentcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7808ee_assessmentcategorydescriptor ON edfi.assessment USING btree (assessmentcategorydescriptorid); + + +-- +-- Name: fk_7808ee_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7808ee_educationorganization ON edfi.assessment USING btree (educationorganizationid); + + +-- +-- Name: fk_789691_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_789691_school ON edfi.schoolcategory USING btree (schoolid); + + +-- +-- Name: fk_789691_schoolcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_789691_schoolcategorydescriptor ON edfi.schoolcategory USING btree (schoolcategorydescriptorid); + + +-- +-- Name: fk_78fd7f_attendanceeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_78fd7f_attendanceeventcategorydescriptor ON edfi.studentschoolattendanceevent USING btree (attendanceeventcategorydescriptorid); + + +-- +-- Name: fk_78fd7f_educationalenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_78fd7f_educationalenvironmentdescriptor ON edfi.studentschoolattendanceevent USING btree (educationalenvironmentdescriptorid); + + +-- +-- Name: fk_78fd7f_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_78fd7f_school ON edfi.studentschoolattendanceevent USING btree (schoolid); + + +-- +-- Name: fk_78fd7f_session; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_78fd7f_session ON edfi.studentschoolattendanceevent USING btree (schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_78fd7f_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_78fd7f_student ON edfi.studentschoolattendanceevent USING btree (studentusi); + + +-- +-- Name: fk_79895a_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_79895a_educationorganization ON edfi.educationorganizationinstitutiontelephone USING btree (educationorganizationid); + + +-- +-- Name: fk_79895a_institutiontelephonenumbertypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_79895a_institutiontelephonenumbertypedescriptor ON edfi.educationorganizationinstitutiontelephone USING btree (institutiontelephonenumbertypedescriptorid); + + +-- +-- Name: fk_7bbbe7_calendardate; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7bbbe7_calendardate ON edfi.sectionattendancetakenevent USING btree (calendarcode, date, schoolid, schoolyear); + + +-- +-- Name: fk_7bbbe7_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7bbbe7_section ON edfi.sectionattendancetakenevent USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_7bbbe7_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7bbbe7_staff ON edfi.sectionattendancetakenevent USING btree (staffusi); + + +-- +-- Name: fk_7d2fb4_servicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7d2fb4_servicedescriptor ON edfi.studenttitleipartaprogramassociationservice USING btree (servicedescriptorid); + + +-- +-- Name: fk_7d2fb4_studenttitleipartaprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7d2fb4_studenttitleipartaprogramassociation ON edfi.studenttitleipartaprogramassociationservice USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_7e1b0d_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7e1b0d_educationorganization ON edfi.account USING btree (educationorganizationid); + + +-- +-- Name: fk_7f600a_assessmentitem; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7f600a_assessmentitem ON edfi.studentassessmentitem USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_7f600a_assessmentitemresultdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7f600a_assessmentitemresultdescriptor ON edfi.studentassessmentitem USING btree (assessmentitemresultdescriptorid); + + +-- +-- Name: fk_7f600a_responseindicatordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7f600a_responseindicatordescriptor ON edfi.studentassessmentitem USING btree (responseindicatordescriptorid); + + +-- +-- Name: fk_7f600a_studentassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7f600a_studentassessment ON edfi.studentassessmentitem USING btree (assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_7fa4be_disciplineincidentparticipationcodedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7fa4be_disciplineincidentparticipationcodedescriptor ON edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be USING btree (disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: fk_7fa4be_staffdisciplineincidentassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_7fa4be_staffdisciplineincidentassociation ON edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be USING btree (incidentidentifier, schoolid, staffusi); + + +-- +-- Name: fk_80c6c1_classperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_80c6c1_classperiod ON edfi.studentsectionattendanceeventclassperiod USING btree (classperiodname, schoolid); + + +-- +-- Name: fk_80c6c1_studentsectionattendanceevent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_80c6c1_studentsectionattendanceevent ON edfi.studentsectionattendanceeventclassperiod USING btree (attendanceeventcategorydescriptorid, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_810575_programcharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_810575_programcharacteristicdescriptor ON edfi.studenteducationorganizationassociationprogramparticipat_810575 USING btree (programcharacteristicdescriptorid); + + +-- +-- Name: fk_810575_studenteducationorganizationassociationprogrampartici; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_810575_studenteducationorganizationassociationprogrampartici ON edfi.studenteducationorganizationassociationprogramparticipat_810575 USING btree (educationorganizationid, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_81b800_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_81b800_learningstandard ON edfi.learningstandardprerequisitelearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_81b800_learningstandard1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_81b800_learningstandard1 ON edfi.learningstandardprerequisitelearningstandard USING btree (prerequisitelearningstandardid); + + +-- +-- Name: fk_839e20_gradetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_839e20_gradetypedescriptor ON edfi.grade USING btree (gradetypedescriptorid); + + +-- +-- Name: fk_839e20_gradingperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_839e20_gradingperiod ON edfi.grade USING btree (gradingperioddescriptorid, gradingperiodsequence, schoolid, gradingperiodschoolyear); + + +-- +-- Name: fk_839e20_performancebaseconversiondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_839e20_performancebaseconversiondescriptor ON edfi.grade USING btree (performancebaseconversiondescriptorid); + + +-- +-- Name: fk_839e20_studentsectionassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_839e20_studentsectionassociation ON edfi.grade USING btree (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_8486ae_educationorganizationindicator; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8486ae_educationorganizationindicator ON edfi.educationorganizationindicatorperiod USING btree (educationorganizationid, indicatordescriptorid); + + +-- +-- Name: fk_84e5e0_reportcard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_84e5e0_reportcard ON edfi.studentacademicrecordreportcard USING btree (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: fk_84e5e0_studentacademicrecord; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_84e5e0_studentacademicrecord ON edfi.studentacademicrecordreportcard USING btree (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_8574ad_gradepointaveragetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8574ad_gradepointaveragetypedescriptor ON edfi.reportcardgradepointaverage USING btree (gradepointaveragetypedescriptorid); + + +-- +-- Name: fk_8574ad_reportcard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8574ad_reportcard ON edfi.reportcardgradepointaverage USING btree (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: fk_85798e_electronicmailtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_85798e_electronicmailtypedescriptor ON edfi.parentelectronicmail USING btree (electronicmailtypedescriptorid); + + +-- +-- Name: fk_85798e_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_85798e_parent ON edfi.parentelectronicmail USING btree (parentusi); + + +-- +-- Name: fk_857b52_calendar; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_calendar ON edfi.studentschoolassociation USING btree (calendarcode, schoolid, schoolyear); + + +-- +-- Name: fk_857b52_entrygradelevelreasondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_entrygradelevelreasondescriptor ON edfi.studentschoolassociation USING btree (entrygradelevelreasondescriptorid); + + +-- +-- Name: fk_857b52_entrytypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_entrytypedescriptor ON edfi.studentschoolassociation USING btree (entrytypedescriptorid); + + +-- +-- Name: fk_857b52_exitwithdrawtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_exitwithdrawtypedescriptor ON edfi.studentschoolassociation USING btree (exitwithdrawtypedescriptorid); + + +-- +-- Name: fk_857b52_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_gradeleveldescriptor ON edfi.studentschoolassociation USING btree (entrygradeleveldescriptorid); + + +-- +-- Name: fk_857b52_graduationplan; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_graduationplan ON edfi.studentschoolassociation USING btree (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: fk_857b52_residencystatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_residencystatusdescriptor ON edfi.studentschoolassociation USING btree (residencystatusdescriptorid); + + +-- +-- Name: fk_857b52_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_school ON edfi.studentschoolassociation USING btree (schoolid); + + +-- +-- Name: fk_857b52_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_schoolyeartype ON edfi.studentschoolassociation USING btree (schoolyear); + + +-- +-- Name: fk_857b52_schoolyeartype1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_schoolyeartype1 ON edfi.studentschoolassociation USING btree (classofschoolyear); + + +-- +-- Name: fk_857b52_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_857b52_student ON edfi.studentschoolassociation USING btree (studentusi); + + +-- +-- Name: fk_85a0eb_schoolfoodserviceprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_85a0eb_schoolfoodserviceprogramservicedescriptor ON edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb USING btree (schoolfoodserviceprogramservicedescriptorid); + + +-- +-- Name: fk_85a0eb_studentschoolfoodserviceprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_85a0eb_studentschoolfoodserviceprogramassociation ON edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_85e741_continuationofservicesreasondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_85e741_continuationofservicesreasondescriptor ON edfi.studentmigranteducationprogramassociation USING btree (continuationofservicesreasondescriptorid); + + +-- +-- Name: fk_876ba3_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_876ba3_assessmentreportingmethoddescriptor ON edfi.graduationplanrequiredassessmentperformancelevel USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_876ba3_performanceleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_876ba3_performanceleveldescriptor ON edfi.graduationplanrequiredassessmentperformancelevel USING btree (performanceleveldescriptorid); + + +-- +-- Name: fk_876ba3_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_876ba3_resultdatatypetypedescriptor ON edfi.graduationplanrequiredassessmentperformancelevel USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_87d32b_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_87d32b_gradeleveldescriptor ON edfi.interventionstudyappropriategradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_87d32b_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_87d32b_interventionstudy ON edfi.interventionstudyappropriategradelevel USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_893629_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_893629_addresstypedescriptor ON edfi.staffeducationorganizationcontactassociationaddress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_893629_localedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_893629_localedescriptor ON edfi.staffeducationorganizationcontactassociationaddress USING btree (localedescriptorid); + + +-- +-- Name: fk_893629_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_893629_stateabbreviationdescriptor ON edfi.staffeducationorganizationcontactassociationaddress USING btree (stateabbreviationdescriptorid); + + +-- +-- Name: fk_8a9a67_calendar; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8a9a67_calendar ON edfi.calendardate USING btree (calendarcode, schoolid, schoolyear); + + +-- +-- Name: fk_8adb29_studenttitleipartaprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8adb29_studenttitleipartaprogramassociation ON edfi.studenttitleipartaprogramassociationtitleipartaprogramservice USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_8adb29_titleipartaprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8adb29_titleipartaprogramservicedescriptor ON edfi.studenttitleipartaprogramassociationtitleipartaprogramservice USING btree (titleipartaprogramservicedescriptorid); + + +-- +-- Name: fk_8ceb4c_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8ceb4c_learningstandard ON edfi.learningstandard USING btree (parentlearningstandardid); + + +-- +-- Name: fk_8ceb4c_learningstandardcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8ceb4c_learningstandardcategorydescriptor ON edfi.learningstandard USING btree (learningstandardcategorydescriptorid); + + +-- +-- Name: fk_8ceb4c_learningstandardscopedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8ceb4c_learningstandardscopedescriptor ON edfi.learningstandard USING btree (learningstandardscopedescriptorid); + + +-- +-- Name: fk_8d3fd8_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d3fd8_gradeleveldescriptor ON edfi.sectionofferedgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_8d3fd8_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d3fd8_section ON edfi.sectionofferedgradelevel USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_8d6383_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d6383_parent ON edfi.surveyresponse USING btree (parentusi); + + +-- +-- Name: fk_8d6383_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d6383_staff ON edfi.surveyresponse USING btree (staffusi); + + +-- +-- Name: fk_8d6383_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d6383_student ON edfi.surveyresponse USING btree (studentusi); + + +-- +-- Name: fk_8d6383_survey; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d6383_survey ON edfi.surveyresponse USING btree (namespace, surveyidentifier); + + +-- +-- Name: fk_8d650e_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d650e_addresstypedescriptor ON edfi.parentinternationaladdress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_8d650e_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d650e_countrydescriptor ON edfi.parentinternationaladdress USING btree (countrydescriptorid); + + +-- +-- Name: fk_8d650e_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8d650e_parent ON edfi.parentinternationaladdress USING btree (parentusi); + + +-- +-- Name: fk_8e1257_barriertointernetaccessinresidencedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_barriertointernetaccessinresidencedescriptor ON edfi.studenteducationorganizationassociation USING btree (barriertointernetaccessinresidencedescriptorid); + + +-- +-- Name: fk_8e1257_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_educationorganization ON edfi.studenteducationorganizationassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_8e1257_internetaccesstypeinresidencedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_internetaccesstypeinresidencedescriptor ON edfi.studenteducationorganizationassociation USING btree (internetaccesstypeinresidencedescriptorid); + + +-- +-- Name: fk_8e1257_internetperformanceinresidencedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_internetperformanceinresidencedescriptor ON edfi.studenteducationorganizationassociation USING btree (internetperformanceinresidencedescriptorid); + + +-- +-- Name: fk_8e1257_limitedenglishproficiencydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_limitedenglishproficiencydescriptor ON edfi.studenteducationorganizationassociation USING btree (limitedenglishproficiencydescriptorid); + + +-- +-- Name: fk_8e1257_oldethnicitydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_oldethnicitydescriptor ON edfi.studenteducationorganizationassociation USING btree (oldethnicitydescriptorid); + + +-- +-- Name: fk_8e1257_primarylearningdeviceaccessdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_primarylearningdeviceaccessdescriptor ON edfi.studenteducationorganizationassociation USING btree (primarylearningdeviceaccessdescriptorid); + + +-- +-- Name: fk_8e1257_primarylearningdeviceawayfromschooldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_primarylearningdeviceawayfromschooldescriptor ON edfi.studenteducationorganizationassociation USING btree (primarylearningdeviceawayfromschooldescriptorid); + + +-- +-- Name: fk_8e1257_primarylearningdeviceproviderdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_primarylearningdeviceproviderdescriptor ON edfi.studenteducationorganizationassociation USING btree (primarylearningdeviceproviderdescriptorid); + + +-- +-- Name: fk_8e1257_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_sexdescriptor ON edfi.studenteducationorganizationassociation USING btree (sexdescriptorid); + + +-- +-- Name: fk_8e1257_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e1257_student ON edfi.studenteducationorganizationassociation USING btree (studentusi); + + +-- +-- Name: fk_8e9d64_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e9d64_interventionstudy ON edfi.interventionstudystateabbreviation USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_8e9d64_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_8e9d64_stateabbreviationdescriptor ON edfi.interventionstudystateabbreviation USING btree (stateabbreviationdescriptorid); + + +-- +-- Name: fk_9046e7_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9046e7_interventionstudy ON edfi.interventionstudyuri USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_90920d_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_90920d_educationorganization ON edfi.program USING btree (educationorganizationid); + + +-- +-- Name: fk_90920d_programtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_90920d_programtypedescriptor ON edfi.program USING btree (programtypedescriptorid); + + +-- +-- Name: fk_92327a_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_92327a_learningstandard ON edfi.learningstandardidentificationcode USING btree (learningstandardid); + + +-- +-- Name: fk_92f7f8_grade; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_92f7f8_grade ON edfi.gradelearningstandardgrade USING btree (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_92f7f8_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_92f7f8_learningstandard ON edfi.gradelearningstandardgrade USING btree (learningstandardid); + + +-- +-- Name: fk_92f7f8_performancebaseconversiondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_92f7f8_performancebaseconversiondescriptor ON edfi.gradelearningstandardgrade USING btree (performancebaseconversiondescriptorid); + + +-- +-- Name: fk_9739a2_studenteducationorganizationassociationaddress; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9739a2_studenteducationorganizationassociationaddress ON edfi.studenteducationorganizationassociationaddressperiod USING btree (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi); + + +-- +-- Name: fk_98cd8a_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_98cd8a_educationcontent ON edfi.educationcontentderivativesourceeducationcontent USING btree (contentidentifier); + + +-- +-- Name: fk_98cd8a_educationcontent1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_98cd8a_educationcontent1 ON edfi.educationcontentderivativesourceeducationcontent USING btree (derivativesourcecontentidentifier); + + +-- +-- Name: fk_9960a9_assessmentscorerangelearningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9960a9_assessmentscorerangelearningstandard ON edfi.assessmentscorerangelearningstandardlearningstandard USING btree (assessmentidentifier, namespace, scorerangeid); + + +-- +-- Name: fk_9960a9_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9960a9_learningstandard ON edfi.assessmentscorerangelearningstandardlearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_9965a5_contentclassdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9965a5_contentclassdescriptor ON edfi.educationcontent USING btree (contentclassdescriptorid); + + +-- +-- Name: fk_9965a5_costratedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9965a5_costratedescriptor ON edfi.educationcontent USING btree (costratedescriptorid); + + +-- +-- Name: fk_9965a5_interactivitystyledescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9965a5_interactivitystyledescriptor ON edfi.educationcontent USING btree (interactivitystyledescriptorid); + + +-- +-- Name: fk_9965a5_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9965a5_learningstandard ON edfi.educationcontent USING btree (learningstandardid); + + +-- +-- Name: fk_9b6ed1_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9b6ed1_educationcontent ON edfi.educationcontentappropriatesex USING btree (contentidentifier); + + +-- +-- Name: fk_9b6ed1_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9b6ed1_sexdescriptor ON edfi.educationcontentappropriatesex USING btree (sexdescriptorid); + + +-- +-- Name: fk_9bbaf5_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9bbaf5_school ON edfi.bellschedule USING btree (schoolid); + + +-- +-- Name: fk_9bd9d6_mediumofinstructiondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9bd9d6_mediumofinstructiondescriptor ON edfi.postsecondaryinstitutionmediumofinstruction USING btree (mediumofinstructiondescriptorid); + + +-- +-- Name: fk_9bd9d6_postsecondaryinstitution; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9bd9d6_postsecondaryinstitution ON edfi.postsecondaryinstitutionmediumofinstruction USING btree (postsecondaryinstitutionid); + + +-- +-- Name: fk_9e377d_bellschedule; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9e377d_bellschedule ON edfi.bellscheduleclassperiod USING btree (bellschedulename, schoolid); + + +-- +-- Name: fk_9e377d_classperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9e377d_classperiod ON edfi.bellscheduleclassperiod USING btree (classperiodname, schoolid); + + +-- +-- Name: fk_9e6edd_diagnosisdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9e6edd_diagnosisdescriptor ON edfi.interventionprescriptiondiagnosis USING btree (diagnosisdescriptorid); + + +-- +-- Name: fk_9e6edd_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9e6edd_interventionprescription ON edfi.interventionprescriptiondiagnosis USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_9f1246_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9f1246_course ON edfi.surveycourseassociation USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_9f1246_survey; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_9f1246_survey ON edfi.surveycourseassociation USING btree (namespace, surveyidentifier); + + +-- +-- Name: fk_a165fa_learningobjectivecontentstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a165fa_learningobjectivecontentstandard ON edfi.learningobjectivecontentstandardauthor USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_a18fcf_studenteducationorganizationassociationstudentcharact; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a18fcf_studenteducationorganizationassociationstudentcharact ON edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf USING btree (educationorganizationid, studentcharacteristicdescriptorid, studentusi); + + +-- +-- Name: fk_a20588_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a20588_assessment ON edfi.assessmentscorerangelearningstandard USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_a20588_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a20588_assessmentreportingmethoddescriptor ON edfi.assessmentscorerangelearningstandard USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_a20588_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a20588_objectiveassessment ON edfi.assessmentscorerangelearningstandard USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_a2d4a8_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a2d4a8_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationtelephone USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_a2d4a8_telephonenumbertypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a2d4a8_telephonenumbertypedescriptor ON edfi.studenteducationorganizationassociationtelephone USING btree (telephonenumbertypedescriptorid); + + +-- +-- Name: fk_a2fd20_disabilitydesignationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a2fd20_disabilitydesignationdescriptor ON edfi.studentspecialeducationprogramassociationdisabilitydesignation USING btree (disabilitydesignationdescriptorid); + + +-- +-- Name: fk_a2fd20_studentspecialeducationprogramassociationdisability; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a2fd20_studentspecialeducationprogramassociationdisability ON edfi.studentspecialeducationprogramassociationdisabilitydesignation USING btree (begindate, disabilitydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_a3387e_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a3387e_assessment ON edfi.assessmentplatformtype USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_a3387e_platformtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a3387e_platformtypedescriptor ON edfi.assessmentplatformtype USING btree (platformtypedescriptorid); + + +-- +-- Name: fk_a3f725_achievementcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a3f725_achievementcategorydescriptor ON edfi.studentacademicrecorddiploma USING btree (achievementcategorydescriptorid); + + +-- +-- Name: fk_a3f725_diplomaleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a3f725_diplomaleveldescriptor ON edfi.studentacademicrecorddiploma USING btree (diplomaleveldescriptorid); + + +-- +-- Name: fk_a3f725_diplomatypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a3f725_diplomatypedescriptor ON edfi.studentacademicrecorddiploma USING btree (diplomatypedescriptorid); + + +-- +-- Name: fk_a3f725_studentacademicrecord; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a3f725_studentacademicrecord ON edfi.studentacademicrecorddiploma USING btree (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_a4a6ae_ancestryethnicorigindescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a4a6ae_ancestryethnicorigindescriptor ON edfi.staffancestryethnicorigin USING btree (ancestryethnicorigindescriptorid); + + +-- +-- Name: fk_a4a6ae_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a4a6ae_staff ON edfi.staffancestryethnicorigin USING btree (staffusi); + + +-- +-- Name: fk_a50f80_homelessprimarynighttimeresidencedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a50f80_homelessprimarynighttimeresidencedescriptor ON edfi.studenthomelessprogramassociation USING btree (homelessprimarynighttimeresidencedescriptorid); + + +-- +-- Name: fk_a51ff9_specialeducationprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a51ff9_specialeducationprogramservicedescriptor ON edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 USING btree (specialeducationprogramservicedescriptorid); + + +-- +-- Name: fk_a51ff9_studentspecialeducationprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a51ff9_studentspecialeducationprogramassociation ON edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_a545e5_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a545e5_disciplineincident ON edfi.disciplineincidentweapon USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_a545e5_weapondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a545e5_weapondescriptor ON edfi.disciplineincidentweapon USING btree (weapondescriptorid); + + +-- +-- Name: fk_a61b72_studenteducationorganizationassociationstudentindicat; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a61b72_studenteducationorganizationassociationstudentindicat ON edfi.studenteducationorganizationassociationstudentindicatorperiod USING btree (educationorganizationid, indicatorname, studentusi); + + +-- +-- Name: fk_a64540_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a64540_intervention ON edfi.interventionmeetingtime USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_a6a1f0_racedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a6a1f0_racedescriptor ON edfi.studenteducationorganizationassociationrace USING btree (racedescriptorid); + + +-- +-- Name: fk_a6a1f0_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a6a1f0_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationrace USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_a741a8_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a741a8_countrydescriptor ON edfi.studentpersonalidentificationdocument USING btree (issuercountrydescriptorid); + + +-- +-- Name: fk_a741a8_identificationdocumentusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a741a8_identificationdocumentusedescriptor ON edfi.studentpersonalidentificationdocument USING btree (identificationdocumentusedescriptorid); + + +-- +-- Name: fk_a741a8_personalinformationverificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a741a8_personalinformationverificationdescriptor ON edfi.studentpersonalidentificationdocument USING btree (personalinformationverificationdescriptorid); + + +-- +-- Name: fk_a741a8_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a741a8_student ON edfi.studentpersonalidentificationdocument USING btree (studentusi); + + +-- +-- Name: fk_a82b93_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a82b93_addresstypedescriptor ON edfi.studenteducationorganizationassociationinternationaladdress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_a82b93_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a82b93_countrydescriptor ON edfi.studenteducationorganizationassociationinternationaladdress USING btree (countrydescriptorid); + + +-- +-- Name: fk_a82b93_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a82b93_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationinternationaladdress USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_a8bc47_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a8bc47_intervention ON edfi.interventionappropriatesex USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_a8bc47_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a8bc47_sexdescriptor ON edfi.interventionappropriatesex USING btree (sexdescriptorid); + + +-- +-- Name: fk_a92ef0_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a92ef0_gradeleveldescriptor ON edfi.learningobjectivegradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_a92ef0_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a92ef0_learningobjective ON edfi.learningobjectivegradelevel USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_a97956_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a97956_school ON edfi.academicweek USING btree (schoolid); + + +-- +-- Name: fk_a984df_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a984df_interventionprescription ON edfi.interventionprescriptionpopulationserved USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_a984df_populationserveddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a984df_populationserveddescriptor ON edfi.interventionprescriptionpopulationserved USING btree (populationserveddescriptorid); + + +-- +-- Name: fk_a9c0d9_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a9c0d9_program ON edfi.staffprogramassociation USING btree (programeducationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_a9c0d9_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_a9c0d9_staff ON edfi.staffprogramassociation USING btree (staffusi); + + +-- +-- Name: fk_aa5751_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_aa5751_student ON edfi.studentvisa USING btree (studentusi); + + +-- +-- Name: fk_aa5751_visadescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_aa5751_visadescriptor ON edfi.studentvisa USING btree (visadescriptorid); + + +-- +-- Name: fk_aaa07e_courseoffering; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_aaa07e_courseoffering ON edfi.courseofferingofferedgradelevel USING btree (localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_aaa07e_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_aaa07e_gradeleveldescriptor ON edfi.courseofferingofferedgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_aaade9_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_aaade9_academicsubjectdescriptor ON edfi.learningstandardacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_aaade9_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_aaade9_learningstandard ON edfi.learningstandardacademicsubject USING btree (learningstandardid); + + +-- +-- Name: fk_ab7096_coursetranscript; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ab7096_coursetranscript ON edfi.coursetranscriptcreditcategory USING btree (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_ab7096_creditcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ab7096_creditcategorydescriptor ON edfi.coursetranscriptcreditcategory USING btree (creditcategorydescriptorid); + + +-- +-- Name: fk_ae53d1_othernametypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ae53d1_othernametypedescriptor ON edfi.studentothername USING btree (othernametypedescriptorid); + + +-- +-- Name: fk_ae53d1_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ae53d1_student ON edfi.studentothername USING btree (studentusi); + + +-- +-- Name: fk_ae6a21_disciplineincidentparticipationcodedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ae6a21_disciplineincidentparticipationcodedescriptor ON edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 USING btree (disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: fk_ae6a21_studentdisciplineincidentbehaviorassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ae6a21_studentdisciplineincidentbehaviorassociation ON edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 USING btree (behaviordescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: fk_af7be7_gradepointaveragetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_af7be7_gradepointaveragetypedescriptor ON edfi.studentacademicrecordgradepointaverage USING btree (gradepointaveragetypedescriptorid); + + +-- +-- Name: fk_af7be7_studentacademicrecord; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_af7be7_studentacademicrecord ON edfi.studentacademicrecordgradepointaverage USING btree (educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_af86db_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_af86db_disciplineincident ON edfi.staffdisciplineincidentassociation USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_af86db_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_af86db_staff ON edfi.staffdisciplineincidentassociation USING btree (staffusi); + + +-- +-- Name: fk_afd39a_staffeducationorganizationcontactassociationaddress; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_afd39a_staffeducationorganizationcontactassociationaddress ON edfi.staffeducationorganizationcontactassociationaddressperiod USING btree (contacttitle, educationorganizationid, staffusi); + + +-- +-- Name: fk_b0cb9e_othernametypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b0cb9e_othernametypedescriptor ON edfi.staffothername USING btree (othernametypedescriptorid); + + +-- +-- Name: fk_b0cb9e_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b0cb9e_staff ON edfi.staffothername USING btree (staffusi); + + +-- +-- Name: fk_b13bbd_absenceeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b13bbd_absenceeventcategorydescriptor ON edfi.staffabsenceevent USING btree (absenceeventcategorydescriptorid); + + +-- +-- Name: fk_b13bbd_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b13bbd_staff ON edfi.staffabsenceevent USING btree (staffusi); + + +-- +-- Name: fk_b1c42b_credentialfielddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c42b_credentialfielddescriptor ON edfi.credential USING btree (credentialfielddescriptorid); + + +-- +-- Name: fk_b1c42b_credentialtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c42b_credentialtypedescriptor ON edfi.credential USING btree (credentialtypedescriptorid); + + +-- +-- Name: fk_b1c42b_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c42b_stateabbreviationdescriptor ON edfi.credential USING btree (stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_b1c42b_teachingcredentialbasisdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c42b_teachingcredentialbasisdescriptor ON edfi.credential USING btree (teachingcredentialbasisdescriptorid); + + +-- +-- Name: fk_b1c42b_teachingcredentialdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c42b_teachingcredentialdescriptor ON edfi.credential USING btree (teachingcredentialdescriptorid); + + +-- +-- Name: fk_b1c52f_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c52f_objectiveassessment ON edfi.studentassessmentstudentobjectiveassessment USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_b1c52f_studentassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b1c52f_studentassessment ON edfi.studentassessmentstudentobjectiveassessment USING btree (assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_b2bd0a_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b2bd0a_educationorganization ON edfi.surveyresponseeducationorganizationtargetassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_b2bd0a_surveyresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b2bd0a_surveyresponse ON edfi.surveyresponseeducationorganizationtargetassociation USING btree (namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_b2e25d_diagnosisdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b2e25d_diagnosisdescriptor ON edfi.interventiondiagnosis USING btree (diagnosisdescriptorid); + + +-- +-- Name: fk_b2e25d_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b2e25d_intervention ON edfi.interventiondiagnosis USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_b31a96_homelessprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b31a96_homelessprogramservicedescriptor ON edfi.studenthomelessprogramassociationhomelessprogramservice USING btree (homelessprogramservicedescriptorid); + + +-- +-- Name: fk_b31a96_studenthomelessprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b31a96_studenthomelessprogramassociation ON edfi.studenthomelessprogramassociationhomelessprogramservice USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_b3fd05_participationstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b3fd05_participationstatusdescriptor ON edfi.generalstudentprogramassociationparticipationstatus USING btree (participationstatusdescriptorid); + + +-- +-- Name: fk_b43eed_behaviordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b43eed_behaviordescriptor ON edfi.studentdisciplineincidentassociationbehavior USING btree (behaviordescriptorid); + + +-- +-- Name: fk_b43eed_studentdisciplineincidentassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b43eed_studentdisciplineincidentassociation ON edfi.studentdisciplineincidentassociationbehavior USING btree (incidentidentifier, schoolid, studentusi); + + +-- +-- Name: fk_b50e36_additionalcredittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b50e36_additionalcredittypedescriptor ON edfi.coursetranscriptearnedadditionalcredits USING btree (additionalcredittypedescriptorid); + + +-- +-- Name: fk_b50e36_coursetranscript; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b50e36_coursetranscript ON edfi.coursetranscriptearnedadditionalcredits USING btree (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_b527e7_languageusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b527e7_languageusedescriptor ON edfi.stafflanguageuse USING btree (languageusedescriptorid); + + +-- +-- Name: fk_b527e7_stafflanguage; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b527e7_stafflanguage ON edfi.stafflanguageuse USING btree (languagedescriptorid, staffusi); + + +-- +-- Name: fk_b772b6_countrydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b772b6_countrydescriptor ON edfi.parentpersonalidentificationdocument USING btree (issuercountrydescriptorid); + + +-- +-- Name: fk_b772b6_identificationdocumentusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b772b6_identificationdocumentusedescriptor ON edfi.parentpersonalidentificationdocument USING btree (identificationdocumentusedescriptorid); + + +-- +-- Name: fk_b772b6_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b772b6_parent ON edfi.parentpersonalidentificationdocument USING btree (parentusi); + + +-- +-- Name: fk_b772b6_personalinformationverificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b772b6_personalinformationverificationdescriptor ON edfi.parentpersonalidentificationdocument USING btree (personalinformationverificationdescriptorid); + + +-- +-- Name: fk_b7f969_staffaddress; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b7f969_staffaddress ON edfi.staffaddressperiod USING btree (addresstypedescriptorid, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: fk_b865d7_studentcharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b865d7_studentcharacteristicdescriptor ON edfi.studenteducationorganizationassociationstudentcharacteristic USING btree (studentcharacteristicdescriptorid); + + +-- +-- Name: fk_b865d7_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b865d7_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationstudentcharacteristic USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_b8b6d7_postsecondaryeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b8b6d7_postsecondaryeventcategorydescriptor ON edfi.postsecondaryevent USING btree (postsecondaryeventcategorydescriptorid); + + +-- +-- Name: fk_b8b6d7_postsecondaryinstitution; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b8b6d7_postsecondaryinstitution ON edfi.postsecondaryevent USING btree (postsecondaryinstitutionid); + + +-- +-- Name: fk_b8b6d7_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b8b6d7_student ON edfi.postsecondaryevent USING btree (studentusi); + + +-- +-- Name: fk_b9be24_credential; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b9be24_credential ON edfi.staffeducationorganizationassignmentassociation USING btree (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_b9be24_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b9be24_educationorganization ON edfi.staffeducationorganizationassignmentassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_b9be24_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b9be24_staff ON edfi.staffeducationorganizationassignmentassociation USING btree (staffusi); + + +-- +-- Name: fk_b9be24_staffclassificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b9be24_staffclassificationdescriptor ON edfi.staffeducationorganizationassignmentassociation USING btree (staffclassificationdescriptorid); + + +-- +-- Name: fk_b9be24_staffeducationorganizationemploymentassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_b9be24_staffeducationorganizationemploymentassociation ON edfi.staffeducationorganizationassignmentassociation USING btree (employmenteducationorganizationid, employmentstatusdescriptorid, employmenthiredate, staffusi); + + +-- +-- Name: fk_baaa9d_competencyleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_baaa9d_competencyleveldescriptor ON edfi.studentlearningobjective USING btree (competencyleveldescriptorid); + + +-- +-- Name: fk_baaa9d_gradingperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_baaa9d_gradingperiod ON edfi.studentlearningobjective USING btree (gradingperioddescriptorid, gradingperiodsequence, gradingperiodschoolid, gradingperiodschoolyear); + + +-- +-- Name: fk_baaa9d_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_baaa9d_learningobjective ON edfi.studentlearningobjective USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_baaa9d_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_baaa9d_student ON edfi.studentlearningobjective USING btree (studentusi); + + +-- +-- Name: fk_bcba5c_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bcba5c_staff ON edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c USING btree (staffusi); + + +-- +-- Name: fk_bcba5c_studentspecialeducationprogramassociationspecialeduca; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bcba5c_studentspecialeducationprogramassociationspecialeduca ON edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, studentusi); + + +-- +-- Name: fk_bd89c0_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bd89c0_educationorganization ON edfi.assessmentcontentstandard USING btree (mandatingeducationorganizationid); + + +-- +-- Name: fk_bd89c0_publicationstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bd89c0_publicationstatusdescriptor ON edfi.assessmentcontentstandard USING btree (publicationstatusdescriptorid); + + +-- +-- Name: fk_be1ea4_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_be1ea4_credittypedescriptor ON edfi.graduationplan USING btree (totalrequiredcredittypedescriptorid); + + +-- +-- Name: fk_be1ea4_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_be1ea4_educationorganization ON edfi.graduationplan USING btree (educationorganizationid); + + +-- +-- Name: fk_be1ea4_graduationplantypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_be1ea4_graduationplantypedescriptor ON edfi.graduationplan USING btree (graduationplantypedescriptorid); + + +-- +-- Name: fk_be1ea4_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_be1ea4_schoolyeartype ON edfi.graduationplan USING btree (graduationschoolyear); + + +-- +-- Name: fk_bf9d92_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bf9d92_parent ON edfi.studentparentassociation USING btree (parentusi); + + +-- +-- Name: fk_bf9d92_relationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bf9d92_relationdescriptor ON edfi.studentparentassociation USING btree (relationdescriptorid); + + +-- +-- Name: fk_bf9d92_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_bf9d92_student ON edfi.studentparentassociation USING btree (studentusi); + + +-- +-- Name: fk_c098ce_reportcard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c098ce_reportcard ON edfi.reportcardstudentlearningobjective USING btree (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: fk_c098ce_studentlearningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c098ce_studentlearningobjective ON edfi.reportcardstudentlearningobjective USING btree (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi); + + +-- +-- Name: fk_c0da6b_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c0da6b_course ON edfi.courselearningobjective USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_c0da6b_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c0da6b_learningobjective ON edfi.courselearningobjective USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_c0e4a3_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c0e4a3_addresstypedescriptor ON edfi.staffaddress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_c0e4a3_localedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c0e4a3_localedescriptor ON edfi.staffaddress USING btree (localedescriptorid); + + +-- +-- Name: fk_c0e4a3_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c0e4a3_staff ON edfi.staffaddress USING btree (staffusi); + + +-- +-- Name: fk_c0e4a3_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c0e4a3_stateabbreviationdescriptor ON edfi.staffaddress USING btree (stateabbreviationdescriptorid); + + +-- +-- Name: fk_c15030_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c15030_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationstudentidentifica_c15030 USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_c15030_studentidentificationsystemdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c15030_studentidentificationsystemdescriptor ON edfi.studenteducationorganizationassociationstudentidentifica_c15030 USING btree (studentidentificationsystemdescriptorid); + + +-- +-- Name: fk_c16804_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c16804_section ON edfi.surveysectionassociation USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_c16804_survey; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c16804_survey ON edfi.surveysectionassociation USING btree (namespace, surveyidentifier); + + +-- +-- Name: fk_c16d6c_reportcard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c16d6c_reportcard ON edfi.reportcardstudentcompetencyobjective USING btree (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: fk_c16d6c_studentcompetencyobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c16d6c_studentcompetencyobjective ON edfi.reportcardstudentcompetencyobjective USING btree (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi); + + +-- +-- Name: fk_c2bd3c_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c2bd3c_assessmentreportingmethoddescriptor ON edfi.studentassessmentperformancelevel USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_c2bd3c_performanceleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c2bd3c_performanceleveldescriptor ON edfi.studentassessmentperformancelevel USING btree (performanceleveldescriptorid); + + +-- +-- Name: fk_c2bd3c_studentassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c2bd3c_studentassessment ON edfi.studentassessmentperformancelevel USING btree (assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_c2efaa_competencyleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c2efaa_competencyleveldescriptor ON edfi.studentgradebookentry USING btree (competencyleveldescriptorid); + + +-- +-- Name: fk_c2efaa_gradebookentry; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c2efaa_gradebookentry ON edfi.studentgradebookentry USING btree (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_c2efaa_studentsectionassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c2efaa_studentsectionassociation ON edfi.studentgradebookentry USING btree (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_c40642_account; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c40642_account ON edfi.actual USING btree (accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: fk_c45364_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c45364_interventionstudy ON edfi.interventionstudypopulationserved USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_c45364_populationserveddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c45364_populationserveddescriptor ON edfi.interventionstudypopulationserved USING btree (populationserveddescriptorid); + + +-- +-- Name: fk_c4b3e0_gradingperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c4b3e0_gradingperiod ON edfi.sessiongradingperiod USING btree (gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: fk_c4b3e0_session; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c4b3e0_session ON edfi.sessiongradingperiod USING btree (schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_c60190_achievementcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c60190_achievementcategorydescriptor ON edfi.staffrecognition USING btree (achievementcategorydescriptorid); + + +-- +-- Name: fk_c60190_recognitiontypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c60190_recognitiontypedescriptor ON edfi.staffrecognition USING btree (recognitiontypedescriptorid); + + +-- +-- Name: fk_c60190_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c60190_staff ON edfi.staffrecognition USING btree (staffusi); + + +-- +-- Name: fk_c7b5a8_gradebookentry; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c7b5a8_gradebookentry ON edfi.gradebookentrylearningstandard USING btree (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_c7b5a8_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c7b5a8_learningstandard ON edfi.gradebookentrylearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_c7db20_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c7db20_intervention ON edfi.interventionlearningresourcemetadatauri USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_c7e725_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c7e725_course ON edfi.courselevelcharacteristic USING btree (coursecode, educationorganizationid); + + +-- +-- Name: fk_c7e725_courselevelcharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c7e725_courselevelcharacteristicdescriptor ON edfi.courselevelcharacteristic USING btree (courselevelcharacteristicdescriptorid); + + +-- +-- Name: fk_c99b99_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c99b99_learningobjective ON edfi.learningobjectivelearningstandard USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_c99b99_learningstandard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_c99b99_learningstandard ON edfi.learningobjectivelearningstandard USING btree (learningstandardid); + + +-- +-- Name: fk_ca697a_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ca697a_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationstudentindicator USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_cabdcb_behaviordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cabdcb_behaviordescriptor ON edfi.disciplineincidentbehavior USING btree (behaviordescriptorid); + + +-- +-- Name: fk_cabdcb_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cabdcb_disciplineincident ON edfi.disciplineincidentbehavior USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_cbeb99_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cbeb99_intervention ON edfi.interventionpopulationserved USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_cbeb99_populationserveddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cbeb99_populationserveddescriptor ON edfi.interventionpopulationserved USING btree (populationserveddescriptorid); + + +-- +-- Name: fk_cc3333_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cc3333_addresstypedescriptor ON edfi.parentaddress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_cc3333_localedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cc3333_localedescriptor ON edfi.parentaddress USING btree (localedescriptorid); + + +-- +-- Name: fk_cc3333_parent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cc3333_parent ON edfi.parentaddress USING btree (parentusi); + + +-- +-- Name: fk_cc3333_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_cc3333_stateabbreviationdescriptor ON edfi.parentaddress USING btree (stateabbreviationdescriptorid); + + +-- +-- Name: fk_ce2080_calendar; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ce2080_calendar ON edfi.staffschoolassociation USING btree (calendarcode, schoolid, schoolyear); + + +-- +-- Name: fk_ce2080_programassignmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ce2080_programassignmentdescriptor ON edfi.staffschoolassociation USING btree (programassignmentdescriptorid); + + +-- +-- Name: fk_ce2080_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ce2080_school ON edfi.staffschoolassociation USING btree (schoolid); + + +-- +-- Name: fk_ce2080_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ce2080_schoolyeartype ON edfi.staffschoolassociation USING btree (schoolyear); + + +-- +-- Name: fk_ce2080_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ce2080_staff ON edfi.staffschoolassociation USING btree (staffusi); + + +-- +-- Name: fk_d047f5_surveyquestionresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d047f5_surveyquestionresponse ON edfi.surveyquestionresponsevalue USING btree (namespace, questioncode, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_d2362d_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d2362d_section ON edfi.studentcohortassociationsection USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_d2362d_studentcohortassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d2362d_studentcohortassociation ON edfi.studentcohortassociationsection USING btree (begindate, cohortidentifier, educationorganizationid, studentusi); + + +-- +-- Name: fk_d24efe_account; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d24efe_account ON edfi.accountaccountcode USING btree (accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: fk_d24efe_accountcode; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d24efe_accountcode ON edfi.accountaccountcode USING btree (accountclassificationdescriptorid, accountcodenumber, educationorganizationid, fiscalyear); + + +-- +-- Name: fk_d2c8a9_studentlearningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d2c8a9_studentlearningobjective ON edfi.studentlearningobjectivestudentsectionassociation USING btree (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi); + + +-- +-- Name: fk_d2c8a9_studentsectionassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d2c8a9_studentsectionassociation ON edfi.studentlearningobjectivestudentsectionassociation USING btree (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_d3d793_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d3d793_program ON edfi.restrainteventprogram USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_d3d793_restraintevent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d3d793_restraintevent ON edfi.restrainteventprogram USING btree (restrainteventidentifier, schoolid, studentusi); + + +-- +-- Name: fk_d44be7_educationorganizationaddress; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d44be7_educationorganizationaddress ON edfi.educationorganizationaddressperiod USING btree (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername); + + +-- +-- Name: fk_d53ee9_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d53ee9_interventionstudy ON edfi.interventionstudyappropriatesex USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_d53ee9_sexdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d53ee9_sexdescriptor ON edfi.interventionstudyappropriatesex USING btree (sexdescriptorid); + + +-- +-- Name: fk_d5d0a3_calendartypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d5d0a3_calendartypedescriptor ON edfi.calendar USING btree (calendartypedescriptorid); + + +-- +-- Name: fk_d5d0a3_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d5d0a3_school ON edfi.calendar USING btree (schoolid); + + +-- +-- Name: fk_d5d0a3_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d5d0a3_schoolyeartype ON edfi.calendar USING btree (schoolyear); + + +-- +-- Name: fk_d678fa_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d678fa_educationcontent ON edfi.educationcontentlanguage USING btree (contentidentifier); + + +-- +-- Name: fk_d678fa_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d678fa_languagedescriptor ON edfi.educationcontentlanguage USING btree (languagedescriptorid); + + +-- +-- Name: fk_d891fb_academicsubjectdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d891fb_academicsubjectdescriptor ON edfi.staffschoolassociationacademicsubject USING btree (academicsubjectdescriptorid); + + +-- +-- Name: fk_d891fb_staffschoolassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d891fb_staffschoolassociation ON edfi.staffschoolassociationacademicsubject USING btree (programassignmentdescriptorid, schoolid, staffusi); + + +-- +-- Name: fk_d90abb_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d90abb_assessment ON edfi.assessmentlanguage USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_d90abb_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d90abb_languagedescriptor ON edfi.assessmentlanguage USING btree (languagedescriptorid); + + +-- +-- Name: fk_d92986_deliverymethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d92986_deliverymethoddescriptor ON edfi.interventionstudy USING btree (deliverymethoddescriptorid); + + +-- +-- Name: fk_d92986_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d92986_educationorganization ON edfi.interventionstudy USING btree (educationorganizationid); + + +-- +-- Name: fk_d92986_interventionclassdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d92986_interventionclassdescriptor ON edfi.interventionstudy USING btree (interventionclassdescriptorid); + + +-- +-- Name: fk_d92986_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d92986_interventionprescription ON edfi.interventionstudy USING btree (interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_d93663_electronicmailtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d93663_electronicmailtypedescriptor ON edfi.staffelectronicmail USING btree (electronicmailtypedescriptorid); + + +-- +-- Name: fk_d93663_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d93663_staff ON edfi.staffelectronicmail USING btree (staffusi); + + +-- +-- Name: fk_d98560_assessmentitem; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d98560_assessmentitem ON edfi.objectiveassessmentassessmentitem USING btree (assessmentidentifier, assessmentitemidentificationcode, namespace); + + +-- +-- Name: fk_d98560_objectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d98560_objectiveassessment ON edfi.objectiveassessmentassessmentitem USING btree (assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: fk_d9dcd7_migranteducationprogramservicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d9dcd7_migranteducationprogramservicedescriptor ON edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 USING btree (migranteducationprogramservicedescriptorid); + + +-- +-- Name: fk_d9dcd7_studentmigranteducationprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_d9dcd7_studentmigranteducationprogramassociation ON edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_dafcc7_course; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dafcc7_course ON edfi.graduationplancreditsbycoursecourse USING btree (coursecode, courseeducationorganizationid); + + +-- +-- Name: fk_dafcc7_graduationplancreditsbycourse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dafcc7_graduationplancreditsbycourse ON edfi.graduationplancreditsbycoursecourse USING btree (coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: fk_db9e7c_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_db9e7c_assessmentreportingmethoddescriptor ON edfi.graduationplanrequiredassessmentscore USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_db9e7c_graduationplanrequiredassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_db9e7c_graduationplanrequiredassessment ON edfi.graduationplanrequiredassessmentscore USING btree (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace); + + +-- +-- Name: fk_db9e7c_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_db9e7c_resultdatatypetypedescriptor ON edfi.graduationplanrequiredassessmentscore USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_dc3dcf_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dc3dcf_assessment ON edfi.assessmentitem USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_dc3dcf_assessmentitemcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dc3dcf_assessmentitemcategorydescriptor ON edfi.assessmentitem USING btree (assessmentitemcategorydescriptorid); + + +-- +-- Name: fk_dde098_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dde098_educationorganization ON edfi.educationorganizationindicator USING btree (educationorganizationid); + + +-- +-- Name: fk_dde098_indicatordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dde098_indicatordescriptor ON edfi.educationorganizationindicator USING btree (indicatordescriptorid); + + +-- +-- Name: fk_dde098_indicatorgroupdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dde098_indicatorgroupdescriptor ON edfi.educationorganizationindicator USING btree (indicatorgroupdescriptorid); + + +-- +-- Name: fk_dde098_indicatorleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dde098_indicatorleveldescriptor ON edfi.educationorganizationindicator USING btree (indicatorleveldescriptorid); + + +-- +-- Name: fk_ddfc9b_creditcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ddfc9b_creditcategorydescriptor ON edfi.graduationplancreditsbycreditcategory USING btree (creditcategorydescriptorid); + + +-- +-- Name: fk_ddfc9b_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ddfc9b_credittypedescriptor ON edfi.graduationplancreditsbycreditcategory USING btree (credittypedescriptorid); + + +-- +-- Name: fk_ddfc9b_graduationplan; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ddfc9b_graduationplan ON edfi.graduationplancreditsbycreditcategory USING btree (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: fk_de959d_accommodationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_de959d_accommodationdescriptor ON edfi.studentassessmentaccommodation USING btree (accommodationdescriptorid); + + +-- +-- Name: fk_de959d_studentassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_de959d_studentassessment ON edfi.studentassessmentaccommodation USING btree (assessmentidentifier, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_debd4f_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_debd4f_staff ON edfi.staffleave USING btree (staffusi); + + +-- +-- Name: fk_debd4f_staffleaveeventcategorydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_debd4f_staffleaveeventcategorydescriptor ON edfi.staffleave USING btree (staffleaveeventcategorydescriptorid); + + +-- +-- Name: fk_df7331_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_df7331_assessment ON edfi.assessmentscore USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_df7331_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_df7331_assessmentreportingmethoddescriptor ON edfi.assessmentscore USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_df7331_resultdatatypetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_df7331_resultdatatypetypedescriptor ON edfi.assessmentscore USING btree (resultdatatypetypedescriptorid); + + +-- +-- Name: fk_dfca5d_courseoffering; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_courseoffering ON edfi.section USING btree (localcoursecode, schoolid, schoolyear, sessionname); + + +-- +-- Name: fk_dfca5d_credittypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_credittypedescriptor ON edfi.section USING btree (availablecredittypedescriptorid); + + +-- +-- Name: fk_dfca5d_educationalenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_educationalenvironmentdescriptor ON edfi.section USING btree (educationalenvironmentdescriptorid); + + +-- +-- Name: fk_dfca5d_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_languagedescriptor ON edfi.section USING btree (instructionlanguagedescriptorid); + + +-- +-- Name: fk_dfca5d_location; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_location ON edfi.section USING btree (locationclassroomidentificationcode, locationschoolid); + + +-- +-- Name: fk_dfca5d_mediumofinstructiondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_mediumofinstructiondescriptor ON edfi.section USING btree (mediumofinstructiondescriptorid); + + +-- +-- Name: fk_dfca5d_populationserveddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_populationserveddescriptor ON edfi.section USING btree (populationserveddescriptorid); + + +-- +-- Name: fk_dfca5d_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_dfca5d_school ON edfi.section USING btree (locationschoolid); + + +-- +-- Name: fk_e12298_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e12298_interventionprescription ON edfi.interventionprescriptionlearningresourcemetadatauri USING btree (educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_e19c72_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e19c72_gradeleveldescriptor ON edfi.openstaffpositioninstructionalgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_e19c72_openstaffposition; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e19c72_openstaffposition ON edfi.openstaffpositioninstructionalgradelevel USING btree (educationorganizationid, requisitionnumber); + + +-- +-- Name: fk_e232ae_restraintevent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e232ae_restraintevent ON edfi.restrainteventreason USING btree (restrainteventidentifier, schoolid, studentusi); + + +-- +-- Name: fk_e232ae_restrainteventreasondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e232ae_restrainteventreasondescriptor ON edfi.restrainteventreason USING btree (restrainteventreasondescriptorid); + + +-- +-- Name: fk_e27213_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e27213_staff ON edfi.staffvisa USING btree (staffusi); + + +-- +-- Name: fk_e27213_visadescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e27213_visadescriptor ON edfi.staffvisa USING btree (visadescriptorid); + + +-- +-- Name: fk_e3e5a4_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e3e5a4_program ON edfi.surveyprogramassociation USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_e3e5a4_survey; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e3e5a4_survey ON edfi.surveyprogramassociation USING btree (namespace, surveyidentifier); + + +-- +-- Name: fk_e45c0b_incidentlocationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e45c0b_incidentlocationdescriptor ON edfi.disciplineincident USING btree (incidentlocationdescriptorid); + + +-- +-- Name: fk_e45c0b_reporterdescriptiondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e45c0b_reporterdescriptiondescriptor ON edfi.disciplineincident USING btree (reporterdescriptiondescriptorid); + + +-- +-- Name: fk_e45c0b_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e45c0b_school ON edfi.disciplineincident USING btree (schoolid); + + +-- +-- Name: fk_e45c0b_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e45c0b_staff ON edfi.disciplineincident USING btree (staffusi); + + +-- +-- Name: fk_e5572a_survey; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e5572a_survey ON edfi.surveysection USING btree (namespace, surveyidentifier); + + +-- +-- Name: fk_e670ae_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e670ae_educationorganization ON edfi.educationorganizationinterventionprescriptionassociation USING btree (educationorganizationid); + + +-- +-- Name: fk_e670ae_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e670ae_interventionprescription ON edfi.educationorganizationinterventionprescriptionassociation USING btree (interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_e77b10_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e77b10_staff ON edfi.stafftribalaffiliation USING btree (staffusi); + + +-- +-- Name: fk_e77b10_tribalaffiliationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e77b10_tribalaffiliationdescriptor ON edfi.stafftribalaffiliation USING btree (tribalaffiliationdescriptorid); + + +-- +-- Name: fk_e79fe2_intervention; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e79fe2_intervention ON edfi.interventioninterventionprescription USING btree (educationorganizationid, interventionidentificationcode); + + +-- +-- Name: fk_e79fe2_interventionprescription; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e79fe2_interventionprescription ON edfi.interventioninterventionprescription USING btree (interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: fk_e811ad_coursetranscript; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e811ad_coursetranscript ON edfi.coursetranscriptpartialcoursetranscriptawards USING btree (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: fk_e811ad_methodcreditearneddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e811ad_methodcreditearneddescriptor ON edfi.coursetranscriptpartialcoursetranscriptawards USING btree (methodcreditearneddescriptorid); + + +-- +-- Name: fk_e83625_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e83625_assessment ON edfi.assessmentassessedgradelevel USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_e83625_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e83625_gradeleveldescriptor ON edfi.assessmentassessedgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_e88dea_networkpurposedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e88dea_networkpurposedescriptor ON edfi.educationorganizationnetwork USING btree (networkpurposedescriptorid); + + +-- +-- Name: fk_e93bc3_deliverymethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e93bc3_deliverymethoddescriptor ON edfi.interventionprescription USING btree (deliverymethoddescriptorid); + + +-- +-- Name: fk_e93bc3_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e93bc3_educationorganization ON edfi.interventionprescription USING btree (educationorganizationid); + + +-- +-- Name: fk_e93bc3_interventionclassdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e93bc3_interventionclassdescriptor ON edfi.interventionprescription USING btree (interventionclassdescriptorid); + + +-- +-- Name: fk_e943d3_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e943d3_program ON edfi.programservice USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_e943d3_servicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_e943d3_servicedescriptor ON edfi.programservice USING btree (servicedescriptorid); + + +-- +-- Name: fk_eb5c90_servicedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eb5c90_servicedescriptor ON edfi.studentcteprogramassociationservice USING btree (servicedescriptorid); + + +-- +-- Name: fk_eb5c90_studentcteprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eb5c90_studentcteprogramassociation ON edfi.studentcteprogramassociationservice USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_ec1992_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ec1992_educationorganization ON edfi.reportcard USING btree (educationorganizationid); + + +-- +-- Name: fk_ec1992_gradingperiod; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ec1992_gradingperiod ON edfi.reportcard USING btree (gradingperioddescriptorid, gradingperiodsequence, gradingperiodschoolid, gradingperiodschoolyear); + + +-- +-- Name: fk_ec1992_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ec1992_student ON edfi.reportcard USING btree (studentusi); + + +-- +-- Name: fk_eddd02_surveyquestion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eddd02_surveyquestion ON edfi.surveyquestionresponse USING btree (namespace, questioncode, surveyidentifier); + + +-- +-- Name: fk_eddd02_surveyresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eddd02_surveyresponse ON edfi.surveyquestionresponse USING btree (namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_ee3b2a_administrationenvironmentdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_administrationenvironmentdescriptor ON edfi.studentassessment USING btree (administrationenvironmentdescriptorid); + + +-- +-- Name: fk_ee3b2a_assessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_assessment ON edfi.studentassessment USING btree (assessmentidentifier, namespace); + + +-- +-- Name: fk_ee3b2a_eventcircumstancedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_eventcircumstancedescriptor ON edfi.studentassessment USING btree (eventcircumstancedescriptorid); + + +-- +-- Name: fk_ee3b2a_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_gradeleveldescriptor ON edfi.studentassessment USING btree (whenassessedgradeleveldescriptorid); + + +-- +-- Name: fk_ee3b2a_languagedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_languagedescriptor ON edfi.studentassessment USING btree (administrationlanguagedescriptorid); + + +-- +-- Name: fk_ee3b2a_platformtypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_platformtypedescriptor ON edfi.studentassessment USING btree (platformtypedescriptorid); + + +-- +-- Name: fk_ee3b2a_reasonnottesteddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_reasonnottesteddescriptor ON edfi.studentassessment USING btree (reasonnottesteddescriptorid); + + +-- +-- Name: fk_ee3b2a_retestindicatordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_retestindicatordescriptor ON edfi.studentassessment USING btree (retestindicatordescriptorid); + + +-- +-- Name: fk_ee3b2a_schoolyeartype; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_schoolyeartype ON edfi.studentassessment USING btree (schoolyear); + + +-- +-- Name: fk_ee3b2a_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee3b2a_student ON edfi.studentassessment USING btree (studentusi); + + +-- +-- Name: fk_ee50f2_careerpathwaydescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee50f2_careerpathwaydescriptor ON edfi.studentcteprogramassociationcteprogram USING btree (careerpathwaydescriptorid); + + +-- +-- Name: fk_ee50f2_studentcteprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee50f2_studentcteprogramassociation ON edfi.studentcteprogramassociationcteprogram USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: fk_ee68ed_studentcompetencyobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee68ed_studentcompetencyobjective ON edfi.studentcompetencyobjectivestudentsectionassociation USING btree (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi); + + +-- +-- Name: fk_ee68ed_studentsectionassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ee68ed_studentsectionassociation ON edfi.studentcompetencyobjectivestudentsectionassociation USING btree (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_eec7b6_disciplineactionlengthdifferencereasondescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eec7b6_disciplineactionlengthdifferencereasondescriptor ON edfi.disciplineaction USING btree (disciplineactionlengthdifferencereasondescriptorid); + + +-- +-- Name: fk_eec7b6_school; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eec7b6_school ON edfi.disciplineaction USING btree (responsibilityschoolid); + + +-- +-- Name: fk_eec7b6_school1; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eec7b6_school1 ON edfi.disciplineaction USING btree (assignmentschoolid); + + +-- +-- Name: fk_eec7b6_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_eec7b6_student ON edfi.disciplineaction USING btree (studentusi); + + +-- +-- Name: fk_ef0ece_disciplineaction; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef0ece_disciplineaction ON edfi.disciplineactionstudentdisciplineincidentassociation USING btree (disciplineactionidentifier, disciplinedate, studentusi); + + +-- +-- Name: fk_ef0ece_studentdisciplineincidentassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef0ece_studentdisciplineincidentassociation ON edfi.disciplineactionstudentdisciplineincidentassociation USING btree (incidentidentifier, schoolid, studentusi); + + +-- +-- Name: fk_ef90b6_diagnosisdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef90b6_diagnosisdescriptor ON edfi.interventionstudyinterventioneffectiveness USING btree (diagnosisdescriptorid); + + +-- +-- Name: fk_ef90b6_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef90b6_gradeleveldescriptor ON edfi.interventionstudyinterventioneffectiveness USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_ef90b6_interventioneffectivenessratingdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef90b6_interventioneffectivenessratingdescriptor ON edfi.interventionstudyinterventioneffectiveness USING btree (interventioneffectivenessratingdescriptorid); + + +-- +-- Name: fk_ef90b6_interventionstudy; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef90b6_interventionstudy ON edfi.interventionstudyinterventioneffectiveness USING btree (educationorganizationid, interventionstudyidentificationcode); + + +-- +-- Name: fk_ef90b6_populationserveddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_ef90b6_populationserveddescriptor ON edfi.interventionstudyinterventioneffectiveness USING btree (populationserveddescriptorid); + + +-- +-- Name: fk_f05a16_credential; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f05a16_credential ON edfi.credentialgradelevel USING btree (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_f05a16_gradeleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f05a16_gradeleveldescriptor ON edfi.credentialgradelevel USING btree (gradeleveldescriptorid); + + +-- +-- Name: fk_f092ff_communityprovider; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f092ff_communityprovider ON edfi.communityproviderlicense USING btree (communityproviderid); + + +-- +-- Name: fk_f092ff_licensestatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f092ff_licensestatusdescriptor ON edfi.communityproviderlicense USING btree (licensestatusdescriptorid); + + +-- +-- Name: fk_f092ff_licensetypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f092ff_licensetypedescriptor ON edfi.communityproviderlicense USING btree (licensetypedescriptorid); + + +-- +-- Name: fk_f203d3_grade; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f203d3_grade ON edfi.reportcardgrade USING btree (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: fk_f203d3_reportcard; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f203d3_reportcard ON edfi.reportcardgrade USING btree (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: fk_f221cc_courselevelcharacteristicdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f221cc_courselevelcharacteristicdescriptor ON edfi.sectioncourselevelcharacteristic USING btree (courselevelcharacteristicdescriptorid); + + +-- +-- Name: fk_f221cc_section; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f221cc_section ON edfi.sectioncourselevelcharacteristic USING btree (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname); + + +-- +-- Name: fk_f32347_assessmentreportingmethoddescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f32347_assessmentreportingmethoddescriptor ON edfi.studentassessmentstudentobjectiveassessmentperformancelevel USING btree (assessmentreportingmethoddescriptorid); + + +-- +-- Name: fk_f32347_performanceleveldescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f32347_performanceleveldescriptor ON edfi.studentassessmentstudentobjectiveassessmentperformancelevel USING btree (performanceleveldescriptorid); + + +-- +-- Name: fk_f32347_studentassessmentstudentobjectiveassessment; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f32347_studentassessmentstudentobjectiveassessment ON edfi.studentassessmentstudentobjectiveassessmentperformancelevel USING btree (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi); + + +-- +-- Name: fk_f3917b_credential; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f3917b_credential ON edfi.staffcredential USING btree (credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: fk_f3917b_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f3917b_staff ON edfi.staffcredential USING btree (staffusi); + + +-- +-- Name: fk_f4934f_behaviordescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f4934f_behaviordescriptor ON edfi.studentdisciplineincidentbehaviorassociation USING btree (behaviordescriptorid); + + +-- +-- Name: fk_f4934f_disciplineincident; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f4934f_disciplineincident ON edfi.studentdisciplineincidentbehaviorassociation USING btree (incidentidentifier, schoolid); + + +-- +-- Name: fk_f4934f_student; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f4934f_student ON edfi.studentdisciplineincidentbehaviorassociation USING btree (studentusi); + + +-- +-- Name: fk_f5911f_learningobjective; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f5911f_learningobjective ON edfi.programlearningobjective USING btree (learningobjectiveid, namespace); + + +-- +-- Name: fk_f5911f_program; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f5911f_program ON edfi.programlearningobjective USING btree (educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: fk_f5b9f6_educationplandescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f5b9f6_educationplandescriptor ON edfi.studentschoolassociationeducationplan USING btree (educationplandescriptorid); + + +-- +-- Name: fk_f5b9f6_studentschoolassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f5b9f6_studentschoolassociation ON edfi.studentschoolassociationeducationplan USING btree (entrydate, schoolid, studentusi); + + +-- +-- Name: fk_f605af_educationcontent; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f605af_educationcontent ON edfi.educationcontentauthor USING btree (contentidentifier); + + +-- +-- Name: fk_f67c61_languageusedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f67c61_languageusedescriptor ON edfi.parentlanguageuse USING btree (languageusedescriptorid); + + +-- +-- Name: fk_f67c61_parentlanguage; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f67c61_parentlanguage ON edfi.parentlanguageuse USING btree (languagedescriptorid, parentusi); + + +-- +-- Name: fk_f86fd9_specialeducationsettingdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f86fd9_specialeducationsettingdescriptor ON edfi.studentspecialeducationprogramassociation USING btree (specialeducationsettingdescriptorid); + + +-- +-- Name: fk_f9457e_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f9457e_staff ON edfi.surveyresponsestafftargetassociation USING btree (staffusi); + + +-- +-- Name: fk_f9457e_surveyresponse; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f9457e_surveyresponse ON edfi.surveyresponsestafftargetassociation USING btree (namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: fk_f99184_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f99184_educationorganization ON edfi.learningobjectivecontentstandard USING btree (mandatingeducationorganizationid); + + +-- +-- Name: fk_f99184_publicationstatusdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f99184_publicationstatusdescriptor ON edfi.learningobjectivecontentstandard USING btree (publicationstatusdescriptorid); + + +-- +-- Name: fk_f9e163_addresstypedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f9e163_addresstypedescriptor ON edfi.studenteducationorganizationassociationaddress USING btree (addresstypedescriptorid); + + +-- +-- Name: fk_f9e163_localedescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f9e163_localedescriptor ON edfi.studenteducationorganizationassociationaddress USING btree (localedescriptorid); + + +-- +-- Name: fk_f9e163_stateabbreviationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f9e163_stateabbreviationdescriptor ON edfi.studenteducationorganizationassociationaddress USING btree (stateabbreviationdescriptorid); + + +-- +-- Name: fk_f9e163_studenteducationorganizationassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_f9e163_studenteducationorganizationassociation ON edfi.studenteducationorganizationassociationaddress USING btree (educationorganizationid, studentusi); + + +-- +-- Name: fk_fb1ef3_accountclassificationdescriptor; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_fb1ef3_accountclassificationdescriptor ON edfi.accountcode USING btree (accountclassificationdescriptorid); + + +-- +-- Name: fk_fb1ef3_educationorganization; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_fb1ef3_educationorganization ON edfi.accountcode USING btree (educationorganizationid); + + +-- +-- Name: fk_fece89_staff; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_fece89_staff ON edfi.studentspecialeducationprogramassociationserviceprovider USING btree (staffusi); + + +-- +-- Name: fk_fece89_studentspecialeducationprogramassociation; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX fk_fece89_studentspecialeducationprogramassociation ON edfi.studentspecialeducationprogramassociationserviceprovider USING btree (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: parent_ui_parentuniqueid; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX parent_ui_parentuniqueid ON edfi.parent USING btree (parentuniqueid); + + +-- +-- Name: staff_ui_staffuniqueid; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX staff_ui_staffuniqueid ON edfi.staff USING btree (staffuniqueid); + + +-- +-- Name: student_ui_studentuniqueid; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX student_ui_studentuniqueid ON edfi.student USING btree (studentuniqueid); + + +-- +-- Name: ux_01fe80_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_01fe80_changeversion ON edfi.classperiod USING btree (changeversion); + + +-- +-- Name: ux_01fe80_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_01fe80_id ON edfi.classperiod USING btree (id); + + +-- +-- Name: ux_0325c5_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_0325c5_changeversion ON edfi.courseoffering USING btree (changeversion); + + +-- +-- Name: ux_0325c5_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_0325c5_id ON edfi.courseoffering USING btree (id); + + +-- +-- Name: ux_0516f9_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_0516f9_changeversion ON edfi.generalstudentprogramassociation USING btree (changeversion); + + +-- +-- Name: ux_0516f9_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_0516f9_id ON edfi.generalstudentprogramassociation USING btree (id); + + +-- +-- Name: ux_0fae05_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_0fae05_changeversion ON edfi.intervention USING btree (changeversion); + + +-- +-- Name: ux_0fae05_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_0fae05_id ON edfi.intervention USING btree (id); + + +-- +-- Name: ux_0ff8d6_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_0ff8d6_changeversion ON edfi.studentacademicrecord USING btree (changeversion); + + +-- +-- Name: ux_0ff8d6_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_0ff8d6_id ON edfi.studentacademicrecord USING btree (id); + + +-- +-- Name: ux_11f7b6_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_11f7b6_changeversion ON edfi.feederschoolassociation USING btree (changeversion); + + +-- +-- Name: ux_11f7b6_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_11f7b6_id ON edfi.feederschoolassociation USING btree (id); + + +-- +-- Name: ux_15b619_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_15b619_changeversion ON edfi.location USING btree (changeversion); + + +-- +-- Name: ux_15b619_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_15b619_id ON edfi.location USING btree (id); + + +-- +-- Name: ux_170747_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_170747_changeversion ON edfi.staffcohortassociation USING btree (changeversion); + + +-- +-- Name: ux_170747_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_170747_id ON edfi.staffcohortassociation USING btree (id); + + +-- +-- Name: ux_17c02a_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_17c02a_changeversion ON edfi.learningstandardequivalenceassociation USING btree (changeversion); + + +-- +-- Name: ux_17c02a_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_17c02a_id ON edfi.learningstandardequivalenceassociation USING btree (id); + + +-- +-- Name: ux_19c6d6_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_19c6d6_changeversion ON edfi.cohort USING btree (changeversion); + + +-- +-- Name: ux_19c6d6_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_19c6d6_id ON edfi.cohort USING btree (id); + + +-- +-- Name: ux_1bb88c_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_1bb88c_changeversion ON edfi.surveyquestion USING btree (changeversion); + + +-- +-- Name: ux_1bb88c_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_1bb88c_id ON edfi.surveyquestion USING btree (id); + + +-- +-- Name: ux_1c6225_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_1c6225_changeversion ON edfi.budget USING btree (changeversion); + + +-- +-- Name: ux_1c6225_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_1c6225_id ON edfi.budget USING btree (id); + + +-- +-- Name: ux_2096ce_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_2096ce_changeversion ON edfi.course USING btree (changeversion); + + +-- +-- Name: ux_2096ce_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_2096ce_id ON edfi.course USING btree (id); + + +-- +-- Name: ux_211bb3_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_211bb3_changeversion ON edfi.survey USING btree (changeversion); + + +-- +-- Name: ux_211bb3_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_211bb3_id ON edfi.survey USING btree (id); + + +-- +-- Name: ux_2189c3_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_2189c3_changeversion ON edfi.surveysectionresponse USING btree (changeversion); + + +-- +-- Name: ux_2189c3_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_2189c3_id ON edfi.surveysectionresponse USING btree (id); + + +-- +-- Name: ux_219915_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_219915_changeversion ON edfi.descriptor USING btree (changeversion); + + +-- +-- Name: ux_219915_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_219915_id ON edfi.descriptor USING btree (id); + + +-- +-- Name: ux_252151_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_252151_changeversion ON edfi.educationorganizationnetworkassociation USING btree (changeversion); + + +-- +-- Name: ux_252151_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_252151_id ON edfi.educationorganizationnetworkassociation USING btree (id); + + +-- +-- Name: ux_25cb9c_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_25cb9c_changeversion ON edfi.studentinterventionassociation USING btree (changeversion); + + +-- +-- Name: ux_25cb9c_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_25cb9c_id ON edfi.studentinterventionassociation USING btree (id); + + +-- +-- Name: ux_269e10_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_269e10_changeversion ON edfi.objectiveassessment USING btree (changeversion); + + +-- +-- Name: ux_269e10_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_269e10_id ON edfi.objectiveassessment USING btree (id); + + +-- +-- Name: ux_2a164d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_2a164d_changeversion ON edfi.student USING btree (changeversion); + + +-- +-- Name: ux_2a164d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_2a164d_id ON edfi.student USING btree (id); + + +-- +-- Name: ux_2d3c0c_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_2d3c0c_changeversion ON edfi.accountabilityrating USING btree (changeversion); + + +-- +-- Name: ux_2d3c0c_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_2d3c0c_id ON edfi.accountabilityrating USING btree (id); + + +-- +-- Name: ux_317aeb_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_317aeb_changeversion ON edfi.studentprogramattendanceevent USING btree (changeversion); + + +-- +-- Name: ux_317aeb_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_317aeb_id ON edfi.studentprogramattendanceevent USING btree (id); + + +-- +-- Name: ux_369ddc_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_369ddc_changeversion ON edfi.studentcohortassociation USING btree (changeversion); + + +-- +-- Name: ux_369ddc_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_369ddc_id ON edfi.studentcohortassociation USING btree (id); + + +-- +-- Name: ux_3800be_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_3800be_changeversion ON edfi.restraintevent USING btree (changeversion); + + +-- +-- Name: ux_3800be_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_3800be_id ON edfi.restraintevent USING btree (id); + + +-- +-- Name: ux_39073d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_39073d_changeversion ON edfi.surveysectionresponsestafftargetassociation USING btree (changeversion); + + +-- +-- Name: ux_39073d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_39073d_id ON edfi.surveysectionresponsestafftargetassociation USING btree (id); + + +-- +-- Name: ux_395c07_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_395c07_changeversion ON edfi.studentcompetencyobjective USING btree (changeversion); + + +-- +-- Name: ux_395c07_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_395c07_id ON edfi.studentcompetencyobjective USING btree (id); + + +-- +-- Name: ux_39aa3c_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_39aa3c_changeversion ON edfi.studentsectionassociation USING btree (changeversion); + + +-- +-- Name: ux_39aa3c_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_39aa3c_id ON edfi.studentsectionassociation USING btree (id); + + +-- +-- Name: ux_3cc1d4_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_3cc1d4_changeversion ON edfi.openstaffposition USING btree (changeversion); + + +-- +-- Name: ux_3cc1d4_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_3cc1d4_id ON edfi.openstaffposition USING btree (id); + + +-- +-- Name: ux_42aa64_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_42aa64_changeversion ON edfi.studenteducationorganizationresponsibilityassociation USING btree (changeversion); + + +-- +-- Name: ux_42aa64_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_42aa64_id ON edfi.studenteducationorganizationresponsibilityassociation USING btree (id); + + +-- +-- Name: ux_4525e6_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_4525e6_changeversion ON edfi.educationorganization USING btree (changeversion); + + +-- +-- Name: ux_4525e6_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_4525e6_id ON edfi.educationorganization USING btree (id); + + +-- +-- Name: ux_464d7a_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_464d7a_changeversion ON edfi.schoolyeartype USING btree (changeversion); + + +-- +-- Name: ux_464d7a_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_464d7a_id ON edfi.schoolyeartype USING btree (id); + + +-- +-- Name: ux_466cfa_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_466cfa_changeversion ON edfi.gradebookentry USING btree (changeversion); + + +-- +-- Name: ux_466cfa_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_466cfa_id ON edfi.gradebookentry USING btree (id); + + +-- +-- Name: ux_4b43da_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_4b43da_changeversion ON edfi.studentdisciplineincidentnonoffenderassociation USING btree (changeversion); + + +-- +-- Name: ux_4b43da_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_4b43da_id ON edfi.studentdisciplineincidentnonoffenderassociation USING btree (id); + + +-- +-- Name: ux_4e79b9_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_4e79b9_changeversion ON edfi.staffeducationorganizationemploymentassociation USING btree (changeversion); + + +-- +-- Name: ux_4e79b9_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_4e79b9_id ON edfi.staffeducationorganizationemploymentassociation USING btree (id); + + +-- +-- Name: ux_515cb5_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_515cb5_changeversion ON edfi.staffsectionassociation USING btree (changeversion); + + +-- +-- Name: ux_515cb5_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_515cb5_id ON edfi.staffsectionassociation USING btree (id); + + +-- +-- Name: ux_53fe8d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_53fe8d_changeversion ON edfi.payroll USING btree (changeversion); + + +-- +-- Name: ux_53fe8d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_53fe8d_id ON edfi.payroll USING btree (id); + + +-- +-- Name: ux_57ca0f_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_57ca0f_changeversion ON edfi.contractedstaff USING btree (changeversion); + + +-- +-- Name: ux_57ca0f_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_57ca0f_id ON edfi.contractedstaff USING btree (id); + + +-- +-- Name: ux_588d15_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_588d15_changeversion ON edfi.learningobjective USING btree (changeversion); + + +-- +-- Name: ux_588d15_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_588d15_id ON edfi.learningobjective USING btree (id); + + +-- +-- Name: ux_5a18f9_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_5a18f9_changeversion ON edfi.gradingperiod USING btree (changeversion); + + +-- +-- Name: ux_5a18f9_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_5a18f9_id ON edfi.gradingperiod USING btree (id); + + +-- +-- Name: ux_5e9932_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_5e9932_changeversion ON edfi.competencyobjective USING btree (changeversion); + + +-- +-- Name: ux_5e9932_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_5e9932_id ON edfi.competencyobjective USING btree (id); + + +-- +-- Name: ux_5f7953_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_5f7953_changeversion ON edfi.parent USING btree (changeversion); + + +-- +-- Name: ux_5f7953_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_5f7953_id ON edfi.parent USING btree (id); + + +-- +-- Name: ux_6007db_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_6007db_changeversion ON edfi.person USING btree (changeversion); + + +-- +-- Name: ux_6007db_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_6007db_id ON edfi.person USING btree (id); + + +-- +-- Name: ux_61b087_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_61b087_changeversion ON edfi.studentsectionattendanceevent USING btree (changeversion); + + +-- +-- Name: ux_61b087_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_61b087_id ON edfi.studentsectionattendanceevent USING btree (id); + + +-- +-- Name: ux_631023_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_631023_changeversion ON edfi.studentinterventionattendanceevent USING btree (changeversion); + + +-- +-- Name: ux_631023_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_631023_id ON edfi.studentinterventionattendanceevent USING btree (id); + + +-- +-- Name: ux_679174_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_679174_changeversion ON edfi.studentdisciplineincidentassociation USING btree (changeversion); + + +-- +-- Name: ux_679174_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_679174_id ON edfi.studentdisciplineincidentassociation USING btree (id); + + +-- +-- Name: ux_681927_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_681927_changeversion ON edfi.staff USING btree (changeversion); + + +-- +-- Name: ux_681927_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_681927_id ON edfi.staff USING btree (id); + + +-- +-- Name: ux_6959b4_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_6959b4_changeversion ON edfi.session USING btree (changeversion); + + +-- +-- Name: ux_6959b4_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_6959b4_id ON edfi.session USING btree (id); + + +-- +-- Name: ux_6acf2b_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_6acf2b_changeversion ON edfi.coursetranscript USING btree (changeversion); + + +-- +-- Name: ux_6acf2b_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_6acf2b_id ON edfi.coursetranscript USING btree (id); + + +-- +-- Name: ux_730be1_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_730be1_changeversion ON edfi.surveysectionresponseeducationorganizationtargetassociation USING btree (changeversion); + + +-- +-- Name: ux_730be1_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_730be1_id ON edfi.surveysectionresponseeducationorganizationtargetassociation USING btree (id); + + +-- +-- Name: ux_735dd8_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_735dd8_changeversion ON edfi.staffeducationorganizationcontactassociation USING btree (changeversion); + + +-- +-- Name: ux_735dd8_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_735dd8_id ON edfi.staffeducationorganizationcontactassociation USING btree (id); + + +-- +-- Name: ux_74e4e5_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_74e4e5_changeversion ON edfi.educationorganizationpeerassociation USING btree (changeversion); + + +-- +-- Name: ux_74e4e5_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_74e4e5_id ON edfi.educationorganizationpeerassociation USING btree (id); + + +-- +-- Name: ux_7808ee_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_7808ee_changeversion ON edfi.assessment USING btree (changeversion); + + +-- +-- Name: ux_7808ee_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_7808ee_id ON edfi.assessment USING btree (id); + + +-- +-- Name: ux_78fd7f_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_78fd7f_changeversion ON edfi.studentschoolattendanceevent USING btree (changeversion); + + +-- +-- Name: ux_78fd7f_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_78fd7f_id ON edfi.studentschoolattendanceevent USING btree (id); + + +-- +-- Name: ux_7bbbe7_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_7bbbe7_changeversion ON edfi.sectionattendancetakenevent USING btree (changeversion); + + +-- +-- Name: ux_7bbbe7_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_7bbbe7_id ON edfi.sectionattendancetakenevent USING btree (id); + + +-- +-- Name: ux_7e1b0d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_7e1b0d_changeversion ON edfi.account USING btree (changeversion); + + +-- +-- Name: ux_7e1b0d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_7e1b0d_id ON edfi.account USING btree (id); + + +-- +-- Name: ux_839e20_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_839e20_changeversion ON edfi.grade USING btree (changeversion); + + +-- +-- Name: ux_839e20_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_839e20_id ON edfi.grade USING btree (id); + + +-- +-- Name: ux_857b52_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_857b52_changeversion ON edfi.studentschoolassociation USING btree (changeversion); + + +-- +-- Name: ux_857b52_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_857b52_id ON edfi.studentschoolassociation USING btree (id); + + +-- +-- Name: ux_8a9a67_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_8a9a67_changeversion ON edfi.calendardate USING btree (changeversion); + + +-- +-- Name: ux_8a9a67_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_8a9a67_id ON edfi.calendardate USING btree (id); + + +-- +-- Name: ux_8ceb4c_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_8ceb4c_changeversion ON edfi.learningstandard USING btree (changeversion); + + +-- +-- Name: ux_8ceb4c_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_8ceb4c_id ON edfi.learningstandard USING btree (id); + + +-- +-- Name: ux_8d6383_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_8d6383_changeversion ON edfi.surveyresponse USING btree (changeversion); + + +-- +-- Name: ux_8d6383_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_8d6383_id ON edfi.surveyresponse USING btree (id); + + +-- +-- Name: ux_8e1257_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_8e1257_changeversion ON edfi.studenteducationorganizationassociation USING btree (changeversion); + + +-- +-- Name: ux_8e1257_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_8e1257_id ON edfi.studenteducationorganizationassociation USING btree (id); + + +-- +-- Name: ux_90920d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_90920d_changeversion ON edfi.program USING btree (changeversion); + + +-- +-- Name: ux_90920d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_90920d_id ON edfi.program USING btree (id); + + +-- +-- Name: ux_9965a5_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_9965a5_changeversion ON edfi.educationcontent USING btree (changeversion); + + +-- +-- Name: ux_9965a5_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_9965a5_id ON edfi.educationcontent USING btree (id); + + +-- +-- Name: ux_9bbaf5_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_9bbaf5_changeversion ON edfi.bellschedule USING btree (changeversion); + + +-- +-- Name: ux_9bbaf5_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_9bbaf5_id ON edfi.bellschedule USING btree (id); + + +-- +-- Name: ux_9f1246_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_9f1246_changeversion ON edfi.surveycourseassociation USING btree (changeversion); + + +-- +-- Name: ux_9f1246_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_9f1246_id ON edfi.surveycourseassociation USING btree (id); + + +-- +-- Name: ux_a20588_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_a20588_changeversion ON edfi.assessmentscorerangelearningstandard USING btree (changeversion); + + +-- +-- Name: ux_a20588_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_a20588_id ON edfi.assessmentscorerangelearningstandard USING btree (id); + + +-- +-- Name: ux_a97956_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_a97956_changeversion ON edfi.academicweek USING btree (changeversion); + + +-- +-- Name: ux_a97956_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_a97956_id ON edfi.academicweek USING btree (id); + + +-- +-- Name: ux_a9c0d9_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_a9c0d9_changeversion ON edfi.staffprogramassociation USING btree (changeversion); + + +-- +-- Name: ux_a9c0d9_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_a9c0d9_id ON edfi.staffprogramassociation USING btree (id); + + +-- +-- Name: ux_af86db_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_af86db_changeversion ON edfi.staffdisciplineincidentassociation USING btree (changeversion); + + +-- +-- Name: ux_af86db_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_af86db_id ON edfi.staffdisciplineincidentassociation USING btree (id); + + +-- +-- Name: ux_b13bbd_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_b13bbd_changeversion ON edfi.staffabsenceevent USING btree (changeversion); + + +-- +-- Name: ux_b13bbd_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_b13bbd_id ON edfi.staffabsenceevent USING btree (id); + + +-- +-- Name: ux_b1c42b_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_b1c42b_changeversion ON edfi.credential USING btree (changeversion); + + +-- +-- Name: ux_b1c42b_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_b1c42b_id ON edfi.credential USING btree (id); + + +-- +-- Name: ux_b2bd0a_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_b2bd0a_changeversion ON edfi.surveyresponseeducationorganizationtargetassociation USING btree (changeversion); + + +-- +-- Name: ux_b2bd0a_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_b2bd0a_id ON edfi.surveyresponseeducationorganizationtargetassociation USING btree (id); + + +-- +-- Name: ux_b8b6d7_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_b8b6d7_changeversion ON edfi.postsecondaryevent USING btree (changeversion); + + +-- +-- Name: ux_b8b6d7_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_b8b6d7_id ON edfi.postsecondaryevent USING btree (id); + + +-- +-- Name: ux_b9be24_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_b9be24_changeversion ON edfi.staffeducationorganizationassignmentassociation USING btree (changeversion); + + +-- +-- Name: ux_b9be24_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_b9be24_id ON edfi.staffeducationorganizationassignmentassociation USING btree (id); + + +-- +-- Name: ux_baaa9d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_baaa9d_changeversion ON edfi.studentlearningobjective USING btree (changeversion); + + +-- +-- Name: ux_baaa9d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_baaa9d_id ON edfi.studentlearningobjective USING btree (id); + + +-- +-- Name: ux_be1ea4_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_be1ea4_changeversion ON edfi.graduationplan USING btree (changeversion); + + +-- +-- Name: ux_be1ea4_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_be1ea4_id ON edfi.graduationplan USING btree (id); + + +-- +-- Name: ux_bf9d92_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_bf9d92_changeversion ON edfi.studentparentassociation USING btree (changeversion); + + +-- +-- Name: ux_bf9d92_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_bf9d92_id ON edfi.studentparentassociation USING btree (id); + + +-- +-- Name: ux_c16804_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_c16804_changeversion ON edfi.surveysectionassociation USING btree (changeversion); + + +-- +-- Name: ux_c16804_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_c16804_id ON edfi.surveysectionassociation USING btree (id); + + +-- +-- Name: ux_c2efaa_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_c2efaa_changeversion ON edfi.studentgradebookentry USING btree (changeversion); + + +-- +-- Name: ux_c2efaa_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_c2efaa_id ON edfi.studentgradebookentry USING btree (id); + + +-- +-- Name: ux_c40642_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_c40642_changeversion ON edfi.actual USING btree (changeversion); + + +-- +-- Name: ux_c40642_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_c40642_id ON edfi.actual USING btree (id); + + +-- +-- Name: ux_ce2080_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_ce2080_changeversion ON edfi.staffschoolassociation USING btree (changeversion); + + +-- +-- Name: ux_ce2080_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_ce2080_id ON edfi.staffschoolassociation USING btree (id); + + +-- +-- Name: ux_d5d0a3_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_d5d0a3_changeversion ON edfi.calendar USING btree (changeversion); + + +-- +-- Name: ux_d5d0a3_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_d5d0a3_id ON edfi.calendar USING btree (id); + + +-- +-- Name: ux_d92986_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_d92986_changeversion ON edfi.interventionstudy USING btree (changeversion); + + +-- +-- Name: ux_d92986_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_d92986_id ON edfi.interventionstudy USING btree (id); + + +-- +-- Name: ux_dc3dcf_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_dc3dcf_changeversion ON edfi.assessmentitem USING btree (changeversion); + + +-- +-- Name: ux_dc3dcf_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_dc3dcf_id ON edfi.assessmentitem USING btree (id); + + +-- +-- Name: ux_debd4f_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_debd4f_changeversion ON edfi.staffleave USING btree (changeversion); + + +-- +-- Name: ux_debd4f_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_debd4f_id ON edfi.staffleave USING btree (id); + + +-- +-- Name: ux_dfca5d_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_dfca5d_changeversion ON edfi.section USING btree (changeversion); + + +-- +-- Name: ux_dfca5d_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_dfca5d_id ON edfi.section USING btree (id); + + +-- +-- Name: ux_e3e5a4_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_e3e5a4_changeversion ON edfi.surveyprogramassociation USING btree (changeversion); + + +-- +-- Name: ux_e3e5a4_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_e3e5a4_id ON edfi.surveyprogramassociation USING btree (id); + + +-- +-- Name: ux_e45c0b_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_e45c0b_changeversion ON edfi.disciplineincident USING btree (changeversion); + + +-- +-- Name: ux_e45c0b_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_e45c0b_id ON edfi.disciplineincident USING btree (id); + + +-- +-- Name: ux_e5572a_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_e5572a_changeversion ON edfi.surveysection USING btree (changeversion); + + +-- +-- Name: ux_e5572a_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_e5572a_id ON edfi.surveysection USING btree (id); + + +-- +-- Name: ux_e670ae_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_e670ae_changeversion ON edfi.educationorganizationinterventionprescriptionassociation USING btree (changeversion); + + +-- +-- Name: ux_e670ae_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_e670ae_id ON edfi.educationorganizationinterventionprescriptionassociation USING btree (id); + + +-- +-- Name: ux_e93bc3_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_e93bc3_changeversion ON edfi.interventionprescription USING btree (changeversion); + + +-- +-- Name: ux_e93bc3_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_e93bc3_id ON edfi.interventionprescription USING btree (id); + + +-- +-- Name: ux_ec1992_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_ec1992_changeversion ON edfi.reportcard USING btree (changeversion); + + +-- +-- Name: ux_ec1992_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_ec1992_id ON edfi.reportcard USING btree (id); + + +-- +-- Name: ux_eddd02_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_eddd02_changeversion ON edfi.surveyquestionresponse USING btree (changeversion); + + +-- +-- Name: ux_eddd02_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_eddd02_id ON edfi.surveyquestionresponse USING btree (id); + + +-- +-- Name: ux_ee3b2a_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_ee3b2a_changeversion ON edfi.studentassessment USING btree (changeversion); + + +-- +-- Name: ux_ee3b2a_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_ee3b2a_id ON edfi.studentassessment USING btree (id); + + +-- +-- Name: ux_eec7b6_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_eec7b6_changeversion ON edfi.disciplineaction USING btree (changeversion); + + +-- +-- Name: ux_eec7b6_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_eec7b6_id ON edfi.disciplineaction USING btree (id); + + +-- +-- Name: ux_f092ff_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_f092ff_changeversion ON edfi.communityproviderlicense USING btree (changeversion); + + +-- +-- Name: ux_f092ff_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_f092ff_id ON edfi.communityproviderlicense USING btree (id); + + +-- +-- Name: ux_f4934f_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_f4934f_changeversion ON edfi.studentdisciplineincidentbehaviorassociation USING btree (changeversion); + + +-- +-- Name: ux_f4934f_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_f4934f_id ON edfi.studentdisciplineincidentbehaviorassociation USING btree (id); + + +-- +-- Name: ux_f9457e_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_f9457e_changeversion ON edfi.surveyresponsestafftargetassociation USING btree (changeversion); + + +-- +-- Name: ux_f9457e_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_f9457e_id ON edfi.surveyresponsestafftargetassociation USING btree (id); + + +-- +-- Name: ux_fb1ef3_changeversion; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE INDEX ux_fb1ef3_changeversion ON edfi.accountcode USING btree (changeversion); + + +-- +-- Name: ux_fb1ef3_id; Type: INDEX; Schema: edfi; Owner: postgres +-- + +CREATE UNIQUE INDEX ux_fb1ef3_id ON edfi.accountcode USING btree (id); + + +-- +-- Name: communityorganization deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.communityorganization FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_communityorganization_tr_delete(); + + +-- +-- Name: communityprovider deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.communityprovider FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_communityprovider_tr_delete(); + + +-- +-- Name: educationorganizationnetwork deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.educationorganizationnetwork FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_educationorganizationnetwork_tr_delete(); + + +-- +-- Name: educationservicecenter deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.educationservicecenter FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_educationservicecenter_tr_delete(); + + +-- +-- Name: localeducationagency deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.localeducationagency FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_localeducationagency_tr_delete(); + + +-- +-- Name: organizationdepartment deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.organizationdepartment FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_organizationdepartment_tr_delete(); + + +-- +-- Name: postsecondaryinstitution deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.postsecondaryinstitution FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_postsecondaryinstitution_tr_delete(); + + +-- +-- Name: school deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.school FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_school_tr_delete(); + + +-- +-- Name: stateeducationagency deleteauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER deleteauthtuples AFTER DELETE ON edfi.stateeducationagency FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_stateeducationagency_tr_delete(); + + +-- +-- Name: communityorganization insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.communityorganization FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_communityorganization_tr_insert(); + + +-- +-- Name: communityprovider insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.communityprovider FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_communityprovider_tr_insert(); + + +-- +-- Name: educationorganizationnetwork insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.educationorganizationnetwork FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_educationorganizationnetwork_tr_insert(); + + +-- +-- Name: educationservicecenter insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.educationservicecenter FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_educationservicecenter_tr_insert(); + + +-- +-- Name: localeducationagency insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.localeducationagency FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_localeducationagency_tr_insert(); + + +-- +-- Name: organizationdepartment insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.organizationdepartment FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_organizationdepartment_tr_insert(); + + +-- +-- Name: postsecondaryinstitution insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.postsecondaryinstitution FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_postsecondaryinstitution_tr_insert(); + + +-- +-- Name: school insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.school FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_school_tr_insert(); + + +-- +-- Name: stateeducationagency insertauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER insertauthtuples AFTER INSERT ON edfi.stateeducationagency FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_stateeducationagency_tr_insert(); + + +-- +-- Name: absenceeventcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.absenceeventcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.absenceeventcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: academichonorcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.academichonorcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.academichonorcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: academicsubjectdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.academicsubjectdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.academicsubjectdescriptor_tr_deltrkg(); + + +-- +-- Name: academicweek trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.academicweek FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.academicweek_tr_deltrkg(); + + +-- +-- Name: accommodationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.accommodationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.accommodationdescriptor_tr_deltrkg(); + + +-- +-- Name: account trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.account FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.account_tr_deltrkg(); + + +-- +-- Name: accountabilityrating trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.accountabilityrating FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.accountabilityrating_tr_deltrkg(); + + +-- +-- Name: accountclassificationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.accountclassificationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.accountclassificationdescriptor_tr_deltrkg(); + + +-- +-- Name: accountcode trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.accountcode FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.accountcode_tr_deltrkg(); + + +-- +-- Name: achievementcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.achievementcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.achievementcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: actual trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.actual FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.actual_tr_deltrkg(); + + +-- +-- Name: additionalcredittypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.additionalcredittypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.additionalcredittypedescriptor_tr_deltrkg(); + + +-- +-- Name: addresstypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.addresstypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.addresstypedescriptor_tr_deltrkg(); + + +-- +-- Name: administrationenvironmentdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.administrationenvironmentdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.administrationenvironmentdescriptor_tr_deltrkg(); + + +-- +-- Name: administrativefundingcontroldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.administrativefundingcontroldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.administrativefundingcontroldescriptor_tr_deltrkg(); + + +-- +-- Name: ancestryethnicorigindescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.ancestryethnicorigindescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.ancestryethnicorigindescriptor_tr_deltrkg(); + + +-- +-- Name: assessment trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessment FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessment_tr_deltrkg(); + + +-- +-- Name: assessmentcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: assessmentidentificationsystemdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentidentificationsystemdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentidentificationsystemdescriptor_tr_deltrkg(); + + +-- +-- Name: assessmentitem trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentitem FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentitem_tr_deltrkg(); + + +-- +-- Name: assessmentitemcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentitemcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentitemcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: assessmentitemresultdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentitemresultdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentitemresultdescriptor_tr_deltrkg(); + + +-- +-- Name: assessmentperioddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentperioddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentperioddescriptor_tr_deltrkg(); + + +-- +-- Name: assessmentreportingmethoddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentreportingmethoddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentreportingmethoddescriptor_tr_deltrkg(); + + +-- +-- Name: assessmentscorerangelearningstandard trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.assessmentscorerangelearningstandard FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.assessmentscorerangelearningstandard_tr_deltrkg(); + + +-- +-- Name: attemptstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.attemptstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.attemptstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: attendanceeventcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.attendanceeventcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.attendanceeventcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: barriertointernetaccessinresidencedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.barriertointernetaccessinresidencedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.barriertointernetaccessinresidencedescriptor_tr_deltrkg(); + + +-- +-- Name: behaviordescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.behaviordescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.behaviordescriptor_tr_deltrkg(); + + +-- +-- Name: bellschedule trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.bellschedule FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.bellschedule_tr_deltrkg(); + + +-- +-- Name: budget trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.budget FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.budget_tr_deltrkg(); + + +-- +-- Name: calendar trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.calendar FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.calendar_tr_deltrkg(); + + +-- +-- Name: calendardate trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.calendardate FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.calendardate_tr_deltrkg(); + + +-- +-- Name: calendareventdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.calendareventdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.calendareventdescriptor_tr_deltrkg(); + + +-- +-- Name: calendartypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.calendartypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.calendartypedescriptor_tr_deltrkg(); + + +-- +-- Name: careerpathwaydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.careerpathwaydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.careerpathwaydescriptor_tr_deltrkg(); + + +-- +-- Name: charterapprovalagencytypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.charterapprovalagencytypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.charterapprovalagencytypedescriptor_tr_deltrkg(); + + +-- +-- Name: charterstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.charterstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.charterstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: citizenshipstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.citizenshipstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.citizenshipstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: classperiod trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.classperiod FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.classperiod_tr_deltrkg(); + + +-- +-- Name: classroompositiondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.classroompositiondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.classroompositiondescriptor_tr_deltrkg(); + + +-- +-- Name: cohort trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.cohort FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.cohort_tr_deltrkg(); + + +-- +-- Name: cohortscopedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.cohortscopedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.cohortscopedescriptor_tr_deltrkg(); + + +-- +-- Name: cohorttypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.cohorttypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.cohorttypedescriptor_tr_deltrkg(); + + +-- +-- Name: cohortyeartypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.cohortyeartypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.cohortyeartypedescriptor_tr_deltrkg(); + + +-- +-- Name: communityorganization trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.communityorganization FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.communityorganization_tr_deltrkg(); + + +-- +-- Name: communityprovider trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.communityprovider FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.communityprovider_tr_deltrkg(); + + +-- +-- Name: communityproviderlicense trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.communityproviderlicense FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.communityproviderlicense_tr_deltrkg(); + + +-- +-- Name: competencyleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.competencyleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.competencyleveldescriptor_tr_deltrkg(); + + +-- +-- Name: competencyobjective trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.competencyobjective FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.competencyobjective_tr_deltrkg(); + + +-- +-- Name: contacttypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.contacttypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.contacttypedescriptor_tr_deltrkg(); + + +-- +-- Name: contentclassdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.contentclassdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.contentclassdescriptor_tr_deltrkg(); + + +-- +-- Name: continuationofservicesreasondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.continuationofservicesreasondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.continuationofservicesreasondescriptor_tr_deltrkg(); + + +-- +-- Name: contractedstaff trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.contractedstaff FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.contractedstaff_tr_deltrkg(); + + +-- +-- Name: costratedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.costratedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.costratedescriptor_tr_deltrkg(); + + +-- +-- Name: countrydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.countrydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.countrydescriptor_tr_deltrkg(); + + +-- +-- Name: course trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.course FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.course_tr_deltrkg(); + + +-- +-- Name: courseattemptresultdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.courseattemptresultdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.courseattemptresultdescriptor_tr_deltrkg(); + + +-- +-- Name: coursedefinedbydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.coursedefinedbydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.coursedefinedbydescriptor_tr_deltrkg(); + + +-- +-- Name: coursegpaapplicabilitydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.coursegpaapplicabilitydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.coursegpaapplicabilitydescriptor_tr_deltrkg(); + + +-- +-- Name: courseidentificationsystemdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.courseidentificationsystemdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.courseidentificationsystemdescriptor_tr_deltrkg(); + + +-- +-- Name: courselevelcharacteristicdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.courselevelcharacteristicdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.courselevelcharacteristicdescriptor_tr_deltrkg(); + + +-- +-- Name: courseoffering trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.courseoffering FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.courseoffering_tr_deltrkg(); + + +-- +-- Name: courserepeatcodedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.courserepeatcodedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.courserepeatcodedescriptor_tr_deltrkg(); + + +-- +-- Name: coursetranscript trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.coursetranscript FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.coursetranscript_tr_deltrkg(); + + +-- +-- Name: credential trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.credential FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.credential_tr_deltrkg(); + + +-- +-- Name: credentialfielddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.credentialfielddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.credentialfielddescriptor_tr_deltrkg(); + + +-- +-- Name: credentialtypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.credentialtypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.credentialtypedescriptor_tr_deltrkg(); + + +-- +-- Name: creditcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.creditcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.creditcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: credittypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.credittypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.credittypedescriptor_tr_deltrkg(); + + +-- +-- Name: cteprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.cteprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.cteprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: curriculumuseddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.curriculumuseddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.curriculumuseddescriptor_tr_deltrkg(); + + +-- +-- Name: deliverymethoddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.deliverymethoddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.deliverymethoddescriptor_tr_deltrkg(); + + +-- +-- Name: descriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.descriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.descriptor_tr_deltrkg(); + + +-- +-- Name: diagnosisdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.diagnosisdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.diagnosisdescriptor_tr_deltrkg(); + + +-- +-- Name: diplomaleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.diplomaleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.diplomaleveldescriptor_tr_deltrkg(); + + +-- +-- Name: diplomatypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.diplomatypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.diplomatypedescriptor_tr_deltrkg(); + + +-- +-- Name: disabilitydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disabilitydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disabilitydescriptor_tr_deltrkg(); + + +-- +-- Name: disabilitydesignationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disabilitydesignationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disabilitydesignationdescriptor_tr_deltrkg(); + + +-- +-- Name: disabilitydeterminationsourcetypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disabilitydeterminationsourcetypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disabilitydeterminationsourcetypedescriptor_tr_deltrkg(); + + +-- +-- Name: disciplineaction trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disciplineaction FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disciplineaction_tr_deltrkg(); + + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disciplineactionlengthdifferencereasondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disciplineactionlengthdifferencereasondescriptor_tr_deltrkg(); + + +-- +-- Name: disciplinedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disciplinedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disciplinedescriptor_tr_deltrkg(); + + +-- +-- Name: disciplineincident trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disciplineincident FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disciplineincident_tr_deltrkg(); + + +-- +-- Name: disciplineincidentparticipationcodedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.disciplineincidentparticipationcodedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.disciplineincidentparticipationcodedescriptor_tr_deltrkg(); + + +-- +-- Name: educationalenvironmentdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationalenvironmentdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationalenvironmentdescriptor_tr_deltrkg(); + + +-- +-- Name: educationcontent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationcontent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationcontent_tr_deltrkg(); + + +-- +-- Name: educationorganization trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganization FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganization_tr_deltrkg(); + + +-- +-- Name: educationorganizationcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganizationcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganizationcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: educationorganizationidentificationsystemdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganizationidentificationsystemdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganizationidentificationsystemdescriptor_tr_deltrkg(); + + +-- +-- Name: educationorganizationinterventionprescriptionassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganizationinterventionprescriptionassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganizationinterventionprescription_e670ae_tr_deltrkg(); + + +-- +-- Name: educationorganizationnetwork trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganizationnetwork FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganizationnetwork_tr_deltrkg(); + + +-- +-- Name: educationorganizationnetworkassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganizationnetworkassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganizationnetworkassociation_tr_deltrkg(); + + +-- +-- Name: educationorganizationpeerassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationorganizationpeerassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationorganizationpeerassociation_tr_deltrkg(); + + +-- +-- Name: educationplandescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationplandescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationplandescriptor_tr_deltrkg(); + + +-- +-- Name: educationservicecenter trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.educationservicecenter FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.educationservicecenter_tr_deltrkg(); + + +-- +-- Name: electronicmailtypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.electronicmailtypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.electronicmailtypedescriptor_tr_deltrkg(); + + +-- +-- Name: employmentstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.employmentstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.employmentstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: entrygradelevelreasondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.entrygradelevelreasondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.entrygradelevelreasondescriptor_tr_deltrkg(); + + +-- +-- Name: entrytypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.entrytypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.entrytypedescriptor_tr_deltrkg(); + + +-- +-- Name: eventcircumstancedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.eventcircumstancedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.eventcircumstancedescriptor_tr_deltrkg(); + + +-- +-- Name: exitwithdrawtypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.exitwithdrawtypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.exitwithdrawtypedescriptor_tr_deltrkg(); + + +-- +-- Name: feederschoolassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.feederschoolassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.feederschoolassociation_tr_deltrkg(); + + +-- +-- Name: generalstudentprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.generalstudentprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.generalstudentprogramassociation_tr_deltrkg(); + + +-- +-- Name: grade trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.grade FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.grade_tr_deltrkg(); + + +-- +-- Name: gradebookentry trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradebookentry FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradebookentry_tr_deltrkg(); + + +-- +-- Name: gradebookentrytypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradebookentrytypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradebookentrytypedescriptor_tr_deltrkg(); + + +-- +-- Name: gradeleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradeleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradeleveldescriptor_tr_deltrkg(); + + +-- +-- Name: gradepointaveragetypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradepointaveragetypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradepointaveragetypedescriptor_tr_deltrkg(); + + +-- +-- Name: gradetypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradetypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradetypedescriptor_tr_deltrkg(); + + +-- +-- Name: gradingperiod trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradingperiod FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradingperiod_tr_deltrkg(); + + +-- +-- Name: gradingperioddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gradingperioddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gradingperioddescriptor_tr_deltrkg(); + + +-- +-- Name: graduationplan trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.graduationplan FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.graduationplan_tr_deltrkg(); + + +-- +-- Name: graduationplantypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.graduationplantypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.graduationplantypedescriptor_tr_deltrkg(); + + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.gunfreeschoolsactreportingstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.gunfreeschoolsactreportingstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: homelessprimarynighttimeresidencedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.homelessprimarynighttimeresidencedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.homelessprimarynighttimeresidencedescriptor_tr_deltrkg(); + + +-- +-- Name: homelessprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.homelessprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.homelessprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: identificationdocumentusedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.identificationdocumentusedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.identificationdocumentusedescriptor_tr_deltrkg(); + + +-- +-- Name: incidentlocationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.incidentlocationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.incidentlocationdescriptor_tr_deltrkg(); + + +-- +-- Name: indicatordescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.indicatordescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.indicatordescriptor_tr_deltrkg(); + + +-- +-- Name: indicatorgroupdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.indicatorgroupdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.indicatorgroupdescriptor_tr_deltrkg(); + + +-- +-- Name: indicatorleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.indicatorleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.indicatorleveldescriptor_tr_deltrkg(); + + +-- +-- Name: institutiontelephonenumbertypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.institutiontelephonenumbertypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.institutiontelephonenumbertypedescriptor_tr_deltrkg(); + + +-- +-- Name: interactivitystyledescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.interactivitystyledescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.interactivitystyledescriptor_tr_deltrkg(); + + +-- +-- Name: internetaccessdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.internetaccessdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.internetaccessdescriptor_tr_deltrkg(); + + +-- +-- Name: internetaccesstypeinresidencedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.internetaccesstypeinresidencedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.internetaccesstypeinresidencedescriptor_tr_deltrkg(); + + +-- +-- Name: internetperformanceinresidencedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.internetperformanceinresidencedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.internetperformanceinresidencedescriptor_tr_deltrkg(); + + +-- +-- Name: intervention trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.intervention FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.intervention_tr_deltrkg(); + + +-- +-- Name: interventionclassdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.interventionclassdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.interventionclassdescriptor_tr_deltrkg(); + + +-- +-- Name: interventioneffectivenessratingdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.interventioneffectivenessratingdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.interventioneffectivenessratingdescriptor_tr_deltrkg(); + + +-- +-- Name: interventionprescription trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.interventionprescription FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.interventionprescription_tr_deltrkg(); + + +-- +-- Name: interventionstudy trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.interventionstudy FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.interventionstudy_tr_deltrkg(); + + +-- +-- Name: languagedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.languagedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.languagedescriptor_tr_deltrkg(); + + +-- +-- Name: languageinstructionprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.languageinstructionprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.languageinstructionprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: languageusedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.languageusedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.languageusedescriptor_tr_deltrkg(); + + +-- +-- Name: learningobjective trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.learningobjective FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.learningobjective_tr_deltrkg(); + + +-- +-- Name: learningstandard trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.learningstandard FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.learningstandard_tr_deltrkg(); + + +-- +-- Name: learningstandardcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.learningstandardcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.learningstandardcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: learningstandardequivalenceassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.learningstandardequivalenceassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.learningstandardequivalenceassociation_tr_deltrkg(); + + +-- +-- Name: learningstandardequivalencestrengthdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.learningstandardequivalencestrengthdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.learningstandardequivalencestrengthdescriptor_tr_deltrkg(); + + +-- +-- Name: learningstandardscopedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.learningstandardscopedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.learningstandardscopedescriptor_tr_deltrkg(); + + +-- +-- Name: levelofeducationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.levelofeducationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.levelofeducationdescriptor_tr_deltrkg(); + + +-- +-- Name: licensestatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.licensestatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.licensestatusdescriptor_tr_deltrkg(); + + +-- +-- Name: licensetypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.licensetypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.licensetypedescriptor_tr_deltrkg(); + + +-- +-- Name: limitedenglishproficiencydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.limitedenglishproficiencydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.limitedenglishproficiencydescriptor_tr_deltrkg(); + + +-- +-- Name: localedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.localedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.localedescriptor_tr_deltrkg(); + + +-- +-- Name: localeducationagency trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.localeducationagency FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.localeducationagency_tr_deltrkg(); + + +-- +-- Name: localeducationagencycategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.localeducationagencycategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.localeducationagencycategorydescriptor_tr_deltrkg(); + + +-- +-- Name: location trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.location FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.location_tr_deltrkg(); + + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.magnetspecialprogramemphasisschooldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.magnetspecialprogramemphasisschooldescriptor_tr_deltrkg(); + + +-- +-- Name: mediumofinstructiondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.mediumofinstructiondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.mediumofinstructiondescriptor_tr_deltrkg(); + + +-- +-- Name: methodcreditearneddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.methodcreditearneddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.methodcreditearneddescriptor_tr_deltrkg(); + + +-- +-- Name: migranteducationprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.migranteducationprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.migranteducationprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: monitoreddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.monitoreddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.monitoreddescriptor_tr_deltrkg(); + + +-- +-- Name: neglectedordelinquentprogramdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.neglectedordelinquentprogramdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.neglectedordelinquentprogramdescriptor_tr_deltrkg(); + + +-- +-- Name: neglectedordelinquentprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.neglectedordelinquentprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.neglectedordelinquentprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: networkpurposedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.networkpurposedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.networkpurposedescriptor_tr_deltrkg(); + + +-- +-- Name: objectiveassessment trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.objectiveassessment FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.objectiveassessment_tr_deltrkg(); + + +-- +-- Name: oldethnicitydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.oldethnicitydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.oldethnicitydescriptor_tr_deltrkg(); + + +-- +-- Name: openstaffposition trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.openstaffposition FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.openstaffposition_tr_deltrkg(); + + +-- +-- Name: operationalstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.operationalstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.operationalstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: organizationdepartment trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.organizationdepartment FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.organizationdepartment_tr_deltrkg(); + + +-- +-- Name: othernametypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.othernametypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.othernametypedescriptor_tr_deltrkg(); + + +-- +-- Name: parent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.parent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.parent_tr_deltrkg(); + + +-- +-- Name: participationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.participationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.participationdescriptor_tr_deltrkg(); + + +-- +-- Name: participationstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.participationstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.participationstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: payroll trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.payroll FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.payroll_tr_deltrkg(); + + +-- +-- Name: performancebaseconversiondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.performancebaseconversiondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.performancebaseconversiondescriptor_tr_deltrkg(); + + +-- +-- Name: performanceleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.performanceleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.performanceleveldescriptor_tr_deltrkg(); + + +-- +-- Name: person trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.person FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.person_tr_deltrkg(); + + +-- +-- Name: personalinformationverificationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.personalinformationverificationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.personalinformationverificationdescriptor_tr_deltrkg(); + + +-- +-- Name: platformtypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.platformtypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.platformtypedescriptor_tr_deltrkg(); + + +-- +-- Name: populationserveddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.populationserveddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.populationserveddescriptor_tr_deltrkg(); + + +-- +-- Name: postingresultdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.postingresultdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.postingresultdescriptor_tr_deltrkg(); + + +-- +-- Name: postsecondaryevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.postsecondaryevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.postsecondaryevent_tr_deltrkg(); + + +-- +-- Name: postsecondaryeventcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.postsecondaryeventcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.postsecondaryeventcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: postsecondaryinstitution trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.postsecondaryinstitution FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.postsecondaryinstitution_tr_deltrkg(); + + +-- +-- Name: postsecondaryinstitutionleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.postsecondaryinstitutionleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.postsecondaryinstitutionleveldescriptor_tr_deltrkg(); + + +-- +-- Name: primarylearningdeviceaccessdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.primarylearningdeviceaccessdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.primarylearningdeviceaccessdescriptor_tr_deltrkg(); + + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.primarylearningdeviceawayfromschooldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.primarylearningdeviceawayfromschooldescriptor_tr_deltrkg(); + + +-- +-- Name: primarylearningdeviceproviderdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.primarylearningdeviceproviderdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.primarylearningdeviceproviderdescriptor_tr_deltrkg(); + + +-- +-- Name: proficiencydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.proficiencydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.proficiencydescriptor_tr_deltrkg(); + + +-- +-- Name: program trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.program FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.program_tr_deltrkg(); + + +-- +-- Name: programassignmentdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.programassignmentdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.programassignmentdescriptor_tr_deltrkg(); + + +-- +-- Name: programcharacteristicdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.programcharacteristicdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.programcharacteristicdescriptor_tr_deltrkg(); + + +-- +-- Name: programsponsordescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.programsponsordescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.programsponsordescriptor_tr_deltrkg(); + + +-- +-- Name: programtypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.programtypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.programtypedescriptor_tr_deltrkg(); + + +-- +-- Name: progressdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.progressdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.progressdescriptor_tr_deltrkg(); + + +-- +-- Name: progressleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.progressleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.progressleveldescriptor_tr_deltrkg(); + + +-- +-- Name: providercategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.providercategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.providercategorydescriptor_tr_deltrkg(); + + +-- +-- Name: providerprofitabilitydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.providerprofitabilitydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.providerprofitabilitydescriptor_tr_deltrkg(); + + +-- +-- Name: providerstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.providerstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.providerstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: publicationstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.publicationstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.publicationstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: questionformdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.questionformdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.questionformdescriptor_tr_deltrkg(); + + +-- +-- Name: racedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.racedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.racedescriptor_tr_deltrkg(); + + +-- +-- Name: reasonexiteddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.reasonexiteddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.reasonexiteddescriptor_tr_deltrkg(); + + +-- +-- Name: reasonnottesteddescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.reasonnottesteddescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.reasonnottesteddescriptor_tr_deltrkg(); + + +-- +-- Name: recognitiontypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.recognitiontypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.recognitiontypedescriptor_tr_deltrkg(); + + +-- +-- Name: relationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.relationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.relationdescriptor_tr_deltrkg(); + + +-- +-- Name: repeatidentifierdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.repeatidentifierdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.repeatidentifierdescriptor_tr_deltrkg(); + + +-- +-- Name: reportcard trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.reportcard FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.reportcard_tr_deltrkg(); + + +-- +-- Name: reporterdescriptiondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.reporterdescriptiondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.reporterdescriptiondescriptor_tr_deltrkg(); + + +-- +-- Name: residencystatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.residencystatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.residencystatusdescriptor_tr_deltrkg(); + + +-- +-- Name: responseindicatordescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.responseindicatordescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.responseindicatordescriptor_tr_deltrkg(); + + +-- +-- Name: responsibilitydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.responsibilitydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.responsibilitydescriptor_tr_deltrkg(); + + +-- +-- Name: restraintevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.restraintevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.restraintevent_tr_deltrkg(); + + +-- +-- Name: restrainteventreasondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.restrainteventreasondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.restrainteventreasondescriptor_tr_deltrkg(); + + +-- +-- Name: resultdatatypetypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.resultdatatypetypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.resultdatatypetypedescriptor_tr_deltrkg(); + + +-- +-- Name: retestindicatordescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.retestindicatordescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.retestindicatordescriptor_tr_deltrkg(); + + +-- +-- Name: school trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.school FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.school_tr_deltrkg(); + + +-- +-- Name: schoolcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.schoolcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.schoolcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: schoolchoiceimplementstatusdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.schoolchoiceimplementstatusdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.schoolchoiceimplementstatusdescriptor_tr_deltrkg(); + + +-- +-- Name: schoolfoodserviceprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.schoolfoodserviceprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.schoolfoodserviceprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: schooltypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.schooltypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.schooltypedescriptor_tr_deltrkg(); + + +-- +-- Name: section trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.section FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.section_tr_deltrkg(); + + +-- +-- Name: sectionattendancetakenevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.sectionattendancetakenevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.sectionattendancetakenevent_tr_deltrkg(); + + +-- +-- Name: sectioncharacteristicdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.sectioncharacteristicdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.sectioncharacteristicdescriptor_tr_deltrkg(); + + +-- +-- Name: separationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.separationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.separationdescriptor_tr_deltrkg(); + + +-- +-- Name: separationreasondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.separationreasondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.separationreasondescriptor_tr_deltrkg(); + + +-- +-- Name: servicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.servicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.servicedescriptor_tr_deltrkg(); + + +-- +-- Name: session trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.session FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.session_tr_deltrkg(); + + +-- +-- Name: sexdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.sexdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.sexdescriptor_tr_deltrkg(); + + +-- +-- Name: sourcesystemdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.sourcesystemdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.sourcesystemdescriptor_tr_deltrkg(); + + +-- +-- Name: specialeducationprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.specialeducationprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.specialeducationprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: specialeducationsettingdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.specialeducationsettingdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.specialeducationsettingdescriptor_tr_deltrkg(); + + +-- +-- Name: staff trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staff FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staff_tr_deltrkg(); + + +-- +-- Name: staffabsenceevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffabsenceevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffabsenceevent_tr_deltrkg(); + + +-- +-- Name: staffclassificationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffclassificationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffclassificationdescriptor_tr_deltrkg(); + + +-- +-- Name: staffcohortassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffcohortassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffcohortassociation_tr_deltrkg(); + + +-- +-- Name: staffdisciplineincidentassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffdisciplineincidentassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffdisciplineincidentassociation_tr_deltrkg(); + + +-- +-- Name: staffeducationorganizationassignmentassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffeducationorganizationassignmentassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffeducationorganizationassignmentassociation_tr_deltrkg(); + + +-- +-- Name: staffeducationorganizationcontactassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffeducationorganizationcontactassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffeducationorganizationcontactassociation_tr_deltrkg(); + + +-- +-- Name: staffeducationorganizationemploymentassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffeducationorganizationemploymentassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffeducationorganizationemploymentassociation_tr_deltrkg(); + + +-- +-- Name: staffidentificationsystemdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffidentificationsystemdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffidentificationsystemdescriptor_tr_deltrkg(); + + +-- +-- Name: staffleave trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffleave FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffleave_tr_deltrkg(); + + +-- +-- Name: staffleaveeventcategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffleaveeventcategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffleaveeventcategorydescriptor_tr_deltrkg(); + + +-- +-- Name: staffprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffprogramassociation_tr_deltrkg(); + + +-- +-- Name: staffschoolassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffschoolassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffschoolassociation_tr_deltrkg(); + + +-- +-- Name: staffsectionassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.staffsectionassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.staffsectionassociation_tr_deltrkg(); + + +-- +-- Name: stateabbreviationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.stateabbreviationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.stateabbreviationdescriptor_tr_deltrkg(); + + +-- +-- Name: stateeducationagency trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.stateeducationagency FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.stateeducationagency_tr_deltrkg(); + + +-- +-- Name: student trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.student FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.student_tr_deltrkg(); + + +-- +-- Name: studentacademicrecord trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentacademicrecord FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentacademicrecord_tr_deltrkg(); + + +-- +-- Name: studentassessment trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentassessment FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentassessment_tr_deltrkg(); + + +-- +-- Name: studentcharacteristicdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentcharacteristicdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentcharacteristicdescriptor_tr_deltrkg(); + + +-- +-- Name: studentcohortassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentcohortassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentcohortassociation_tr_deltrkg(); + + +-- +-- Name: studentcompetencyobjective trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentcompetencyobjective FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentcompetencyobjective_tr_deltrkg(); + + +-- +-- Name: studentcteprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentcteprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentcteprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentdisciplineincidentassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentdisciplineincidentassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentdisciplineincidentassociation_tr_deltrkg(); + + +-- +-- Name: studentdisciplineincidentbehaviorassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentdisciplineincidentbehaviorassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentdisciplineincidentbehaviorassociation_tr_deltrkg(); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentdisciplineincidentnonoffenderassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentdisciplineincidentnonoffenderassociation_tr_deltrkg(); + + +-- +-- Name: studenteducationorganizationassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studenteducationorganizationassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studenteducationorganizationassociation_tr_deltrkg(); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studenteducationorganizationresponsibilityassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studenteducationorganizationresponsibilityass_42aa64_tr_deltrkg(); + + +-- +-- Name: studentgradebookentry trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentgradebookentry FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentgradebookentry_tr_deltrkg(); + + +-- +-- Name: studenthomelessprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studenthomelessprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studenthomelessprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentidentificationsystemdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentidentificationsystemdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentidentificationsystemdescriptor_tr_deltrkg(); + + +-- +-- Name: studentinterventionassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentinterventionassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentinterventionassociation_tr_deltrkg(); + + +-- +-- Name: studentinterventionattendanceevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentinterventionattendanceevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentinterventionattendanceevent_tr_deltrkg(); + + +-- +-- Name: studentlanguageinstructionprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentlanguageinstructionprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentlanguageinstructionprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentlearningobjective trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentlearningobjective FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentlearningobjective_tr_deltrkg(); + + +-- +-- Name: studentmigranteducationprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentmigranteducationprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentmigranteducationprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentneglectedordelinquentprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentneglectedordelinquentprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentneglectedordelinquentprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentparentassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentparentassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentparentassociation_tr_deltrkg(); + + +-- +-- Name: studentparticipationcodedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentparticipationcodedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentparticipationcodedescriptor_tr_deltrkg(); + + +-- +-- Name: studentprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentprogramattendanceevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentprogramattendanceevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentprogramattendanceevent_tr_deltrkg(); + + +-- +-- Name: studentschoolassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentschoolassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentschoolassociation_tr_deltrkg(); + + +-- +-- Name: studentschoolattendanceevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentschoolattendanceevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentschoolattendanceevent_tr_deltrkg(); + + +-- +-- Name: studentschoolfoodserviceprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentschoolfoodserviceprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentschoolfoodserviceprogramassociation_tr_deltrkg(); + + +-- +-- Name: studentsectionassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentsectionassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentsectionassociation_tr_deltrkg(); + + +-- +-- Name: studentsectionattendanceevent trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentsectionattendanceevent FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentsectionattendanceevent_tr_deltrkg(); + + +-- +-- Name: studentspecialeducationprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studentspecialeducationprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studentspecialeducationprogramassociation_tr_deltrkg(); + + +-- +-- Name: studenttitleipartaprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.studenttitleipartaprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.studenttitleipartaprogramassociation_tr_deltrkg(); + + +-- +-- Name: survey trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.survey FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.survey_tr_deltrkg(); + + +-- +-- Name: surveycategorydescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveycategorydescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveycategorydescriptor_tr_deltrkg(); + + +-- +-- Name: surveycourseassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveycourseassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveycourseassociation_tr_deltrkg(); + + +-- +-- Name: surveyleveldescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyleveldescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyleveldescriptor_tr_deltrkg(); + + +-- +-- Name: surveyprogramassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyprogramassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyprogramassociation_tr_deltrkg(); + + +-- +-- Name: surveyquestion trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyquestion FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyquestion_tr_deltrkg(); + + +-- +-- Name: surveyquestionresponse trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyquestionresponse FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyquestionresponse_tr_deltrkg(); + + +-- +-- Name: surveyresponse trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyresponse FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyresponse_tr_deltrkg(); + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyresponseeducationorganizationtargetassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyresponseeducationorganizationtargetassociation_tr_deltrkg(); + + +-- +-- Name: surveyresponsestafftargetassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveyresponsestafftargetassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveyresponsestafftargetassociation_tr_deltrkg(); + + +-- +-- Name: surveysection trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveysection FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveysection_tr_deltrkg(); + + +-- +-- Name: surveysectionassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveysectionassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveysectionassociation_tr_deltrkg(); + + +-- +-- Name: surveysectionresponse trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveysectionresponse FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveysectionresponse_tr_deltrkg(); + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveysectionresponseeducationorganizationtargetassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveysectionresponseeducationorganizationtar_730be1_tr_deltrkg(); + + +-- +-- Name: surveysectionresponsestafftargetassociation trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.surveysectionresponsestafftargetassociation FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.surveysectionresponsestafftargetassociation_tr_deltrkg(); + + +-- +-- Name: teachingcredentialbasisdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.teachingcredentialbasisdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.teachingcredentialbasisdescriptor_tr_deltrkg(); + + +-- +-- Name: teachingcredentialdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.teachingcredentialdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.teachingcredentialdescriptor_tr_deltrkg(); + + +-- +-- Name: technicalskillsassessmentdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.technicalskillsassessmentdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.technicalskillsassessmentdescriptor_tr_deltrkg(); + + +-- +-- Name: telephonenumbertypedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.telephonenumbertypedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.telephonenumbertypedescriptor_tr_deltrkg(); + + +-- +-- Name: termdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.termdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.termdescriptor_tr_deltrkg(); + + +-- +-- Name: titleipartaparticipantdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.titleipartaparticipantdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.titleipartaparticipantdescriptor_tr_deltrkg(); + + +-- +-- Name: titleipartaprogramservicedescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.titleipartaprogramservicedescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.titleipartaprogramservicedescriptor_tr_deltrkg(); + + +-- +-- Name: titleipartaschooldesignationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.titleipartaschooldesignationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.titleipartaschooldesignationdescriptor_tr_deltrkg(); + + +-- +-- Name: tribalaffiliationdescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.tribalaffiliationdescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.tribalaffiliationdescriptor_tr_deltrkg(); + + +-- +-- Name: visadescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.visadescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.visadescriptor_tr_deltrkg(); + + +-- +-- Name: weapondescriptor trackdeletes; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER trackdeletes AFTER DELETE ON edfi.weapondescriptor FOR EACH ROW EXECUTE PROCEDURE tracked_deletes_edfi.weapondescriptor_tr_deltrkg(); + + +-- +-- Name: communityprovider updateauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updateauthtuples AFTER UPDATE ON edfi.communityprovider FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_communityprovider_tr_update(); + + +-- +-- Name: educationservicecenter updateauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updateauthtuples AFTER UPDATE ON edfi.educationservicecenter FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_educationservicecenter_tr_update(); + + +-- +-- Name: localeducationagency updateauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updateauthtuples AFTER UPDATE ON edfi.localeducationagency FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_localeducationagency_tr_update(); + + +-- +-- Name: organizationdepartment updateauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updateauthtuples AFTER UPDATE ON edfi.organizationdepartment FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_organizationdepartment_tr_update(); + + +-- +-- Name: school updateauthtuples; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updateauthtuples AFTER UPDATE ON edfi.school FOR EACH ROW EXECUTE PROCEDURE edfi.edfi_school_tr_update(); + + +-- +-- Name: academicweek updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.academicweek FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: account updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.account FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: accountabilityrating updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.accountabilityrating FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: accountcode updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.accountcode FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: actual updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.actual FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: assessment updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.assessment FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: assessmentitem updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.assessmentitem FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: assessmentscorerangelearningstandard updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.assessmentscorerangelearningstandard FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: bellschedule updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.bellschedule FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: budget updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.budget FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: calendar updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.calendar FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: calendardate updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.calendardate FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: classperiod updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.classperiod FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: cohort updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.cohort FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: communityproviderlicense updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.communityproviderlicense FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: competencyobjective updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.competencyobjective FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: contractedstaff updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.contractedstaff FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: course updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.course FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: courseoffering updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.courseoffering FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: coursetranscript updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.coursetranscript FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: credential updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.credential FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: descriptor updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.descriptor FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: disciplineaction updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.disciplineaction FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: disciplineincident updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.disciplineincident FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: educationcontent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.educationcontent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: educationorganization updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.educationorganization FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: educationorganizationinterventionprescriptionassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.educationorganizationinterventionprescriptionassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: educationorganizationnetworkassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.educationorganizationnetworkassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: educationorganizationpeerassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.educationorganizationpeerassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: feederschoolassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.feederschoolassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: generalstudentprogramassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.generalstudentprogramassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: grade updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.grade FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: gradebookentry updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.gradebookentry FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: gradingperiod updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.gradingperiod FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: graduationplan updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.graduationplan FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: intervention updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.intervention FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: interventionprescription updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.interventionprescription FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: interventionstudy updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.interventionstudy FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: learningobjective updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.learningobjective FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: learningstandard updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.learningstandard FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: learningstandardequivalenceassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.learningstandardequivalenceassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: location updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.location FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: objectiveassessment updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.objectiveassessment FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: openstaffposition updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.openstaffposition FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: parent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.parent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: payroll updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.payroll FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: person updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.person FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: postsecondaryevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.postsecondaryevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: program updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.program FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: reportcard updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.reportcard FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: restraintevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.restraintevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: schoolyeartype updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.schoolyeartype FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: section updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.section FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: sectionattendancetakenevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.sectionattendancetakenevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: session updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.session FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staff updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staff FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffabsenceevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffabsenceevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffcohortassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffcohortassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffdisciplineincidentassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffdisciplineincidentassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffeducationorganizationassignmentassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffeducationorganizationassignmentassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffeducationorganizationcontactassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffeducationorganizationcontactassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffeducationorganizationemploymentassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffeducationorganizationemploymentassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffleave updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffleave FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffprogramassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffprogramassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffschoolassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffschoolassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: staffsectionassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.staffsectionassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: student updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.student FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentacademicrecord updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentacademicrecord FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentassessment updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentassessment FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentcohortassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentcohortassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentcompetencyobjective updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentcompetencyobjective FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentdisciplineincidentassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentdisciplineincidentassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentdisciplineincidentbehaviorassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentdisciplineincidentbehaviorassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentdisciplineincidentnonoffenderassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studenteducationorganizationassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studenteducationorganizationassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studenteducationorganizationresponsibilityassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentgradebookentry updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentgradebookentry FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentinterventionassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentinterventionassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentinterventionattendanceevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentinterventionattendanceevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentlearningobjective updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentlearningobjective FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentparentassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentparentassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentprogramattendanceevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentprogramattendanceevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentschoolassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentschoolassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentschoolattendanceevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentschoolattendanceevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentsectionassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentsectionassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: studentsectionattendanceevent updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.studentsectionattendanceevent FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: survey updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.survey FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveycourseassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveycourseassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveyprogramassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveyprogramassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveyquestion updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveyquestion FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveyquestionresponse updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveyquestionresponse FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveyresponse updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveyresponse FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveyresponseeducationorganizationtargetassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveyresponsestafftargetassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveyresponsestafftargetassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveysection updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveysection FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveysectionassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveysectionassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveysectionresponse updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveysectionresponse FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveysectionresponseeducationorganizationtargetassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: surveysectionresponsestafftargetassociation updatechangeversion; Type: TRIGGER; Schema: edfi; Owner: postgres +-- + +CREATE TRIGGER updatechangeversion BEFORE UPDATE ON edfi.surveysectionresponsestafftargetassociation FOR EACH ROW EXECUTE PROCEDURE changes.updatechangeversion(); + + +-- +-- Name: courselevelcharacteristicdescriptor fk_000820_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselevelcharacteristicdescriptor + ADD CONSTRAINT fk_000820_descriptor FOREIGN KEY (courselevelcharacteristicdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentcteprogramassociation fk_000ac5_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociation + ADD CONSTRAINT fk_000ac5_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentcteprogramassociation fk_000ac5_technicalskillsassessmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociation + ADD CONSTRAINT fk_000ac5_technicalskillsassessmentdescriptor FOREIGN KEY (technicalskillsassessmentdescriptorid) REFERENCES edfi.technicalskillsassessmentdescriptor(technicalskillsassessmentdescriptorid); + + +-- +-- Name: studentcompetencyobjectivegeneralstudentprogramassociation fk_005337_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjectivegeneralstudentprogramassociation + ADD CONSTRAINT fk_005337_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentcompetencyobjectivegeneralstudentprogramassociation fk_005337_studentcompetencyobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjectivegeneralstudentprogramassociation + ADD CONSTRAINT fk_005337_studentcompetencyobjective FOREIGN KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi) REFERENCES edfi.studentcompetencyobjective(gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: specialeducationsettingdescriptor fk_010235_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.specialeducationsettingdescriptor + ADD CONSTRAINT fk_010235_descriptor FOREIGN KEY (specialeducationsettingdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionstudyeducationcontent fk_014e05_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyeducationcontent + ADD CONSTRAINT fk_014e05_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier); + + +-- +-- Name: interventionstudyeducationcontent fk_014e05_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyeducationcontent + ADD CONSTRAINT fk_014e05_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: classperiod fk_01fe80_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.classperiod + ADD CONSTRAINT fk_01fe80_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: courseoffering fk_0325c5_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseoffering + ADD CONSTRAINT fk_0325c5_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid); + + +-- +-- Name: courseoffering fk_0325c5_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseoffering + ADD CONSTRAINT fk_0325c5_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: courseoffering fk_0325c5_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseoffering + ADD CONSTRAINT fk_0325c5_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: surveyresponsesurveylevel fk_03f044_surveyleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponsesurveylevel + ADD CONSTRAINT fk_03f044_surveyleveldescriptor FOREIGN KEY (surveyleveldescriptorid) REFERENCES edfi.surveyleveldescriptor(surveyleveldescriptorid); + + +-- +-- Name: surveyresponsesurveylevel fk_03f044_surveyresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponsesurveylevel + ADD CONSTRAINT fk_03f044_surveyresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyresponse(namespace, surveyidentifier, surveyresponseidentifier) ON DELETE CASCADE; + + +-- +-- Name: educationcontentderivativesourceuri fk_047c7a_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourceuri + ADD CONSTRAINT fk_047c7a_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: surveyquestionresponsesurveyquestionmatrixelementresponse fk_048797_surveyquestionresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponsesurveyquestionmatrixelementresponse + ADD CONSTRAINT fk_048797_surveyquestionresponse FOREIGN KEY (namespace, questioncode, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyquestionresponse(namespace, questioncode, surveyidentifier, surveyresponseidentifier) ON DELETE CASCADE; + + +-- +-- Name: generalstudentprogramassociation fk_0516f9_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociation + ADD CONSTRAINT fk_0516f9_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: generalstudentprogramassociation fk_0516f9_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociation + ADD CONSTRAINT fk_0516f9_program FOREIGN KEY (programeducationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: generalstudentprogramassociation fk_0516f9_reasonexiteddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociation + ADD CONSTRAINT fk_0516f9_reasonexiteddescriptor FOREIGN KEY (reasonexiteddescriptorid) REFERENCES edfi.reasonexiteddescriptor(reasonexiteddescriptorid); + + +-- +-- Name: generalstudentprogramassociation fk_0516f9_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociation + ADD CONSTRAINT fk_0516f9_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: indicatorleveldescriptor fk_05d3f9_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.indicatorleveldescriptor + ADD CONSTRAINT fk_05d3f9_descriptor FOREIGN KEY (indicatorleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationtribalaffiliation fk_0628e0_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationtribalaffiliation + ADD CONSTRAINT fk_0628e0_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationtribalaffiliation fk_0628e0_tribalaffiliationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationtribalaffiliation + ADD CONSTRAINT fk_0628e0_tribalaffiliationdescriptor FOREIGN KEY (tribalaffiliationdescriptorid) REFERENCES edfi.tribalaffiliationdescriptor(tribalaffiliationdescriptorid); + + +-- +-- Name: calendargradelevel fk_07722c_calendar; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendargradelevel + ADD CONSTRAINT fk_07722c_calendar FOREIGN KEY (calendarcode, schoolid, schoolyear) REFERENCES edfi.calendar(calendarcode, schoolid, schoolyear) ON DELETE CASCADE; + + +-- +-- Name: calendargradelevel fk_07722c_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendargradelevel + ADD CONSTRAINT fk_07722c_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: calendardatecalendarevent fk_0789bb_calendardate; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendardatecalendarevent + ADD CONSTRAINT fk_0789bb_calendardate FOREIGN KEY (calendarcode, date, schoolid, schoolyear) REFERENCES edfi.calendardate(calendarcode, date, schoolid, schoolyear) ON DELETE CASCADE; + + +-- +-- Name: calendardatecalendarevent fk_0789bb_calendareventdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendardatecalendarevent + ADD CONSTRAINT fk_0789bb_calendareventdescriptor FOREIGN KEY (calendareventdescriptorid) REFERENCES edfi.calendareventdescriptor(calendareventdescriptorid); + + +-- +-- Name: generalstudentprogramassociationprogramparticipationstatus fk_0855d2_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociationprogramparticipationstatus + ADD CONSTRAINT fk_0855d2_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: generalstudentprogramassociationprogramparticipationstatus fk_0855d2_participationstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociationprogramparticipationstatus + ADD CONSTRAINT fk_0855d2_participationstatusdescriptor FOREIGN KEY (participationstatusdescriptorid) REFERENCES edfi.participationstatusdescriptor(participationstatusdescriptorid); + + +-- +-- Name: gunfreeschoolsactreportingstatusdescriptor fk_086864_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gunfreeschoolsactreportingstatusdescriptor + ADD CONSTRAINT fk_086864_descriptor FOREIGN KEY (gunfreeschoolsactreportingstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: stateeducationagencyaccountability fk_09668f_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagencyaccountability + ADD CONSTRAINT fk_09668f_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: stateeducationagencyaccountability fk_09668f_stateeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagencyaccountability + ADD CONSTRAINT fk_09668f_stateeducationagency FOREIGN KEY (stateeducationagencyid) REFERENCES edfi.stateeducationagency(stateeducationagencyid) ON DELETE CASCADE; + + +-- +-- Name: educationcontentappropriategradelevel fk_0a2145_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentappropriategradelevel + ADD CONSTRAINT fk_0a2145_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: educationcontentappropriategradelevel fk_0a2145_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentappropriategradelevel + ADD CONSTRAINT fk_0a2145_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: responsibilitydescriptor fk_0b056e_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.responsibilitydescriptor + ADD CONSTRAINT fk_0b056e_descriptor FOREIGN KEY (responsibilitydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: neglectedordelinquentprogramdescriptor fk_0b3390_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.neglectedordelinquentprogramdescriptor + ADD CONSTRAINT fk_0b3390_descriptor FOREIGN KEY (neglectedordelinquentprogramdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: neglectedordelinquentprogramservicedescriptor fk_0bfc01_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.neglectedordelinquentprogramservicedescriptor + ADD CONSTRAINT fk_0bfc01_descriptor FOREIGN KEY (neglectedordelinquentprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentassessmentstudentobjectiveassessmentscoreresult fk_0c9651_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentscoreresult + ADD CONSTRAINT fk_0c9651_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: studentassessmentstudentobjectiveassessmentscoreresult fk_0c9651_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentscoreresult + ADD CONSTRAINT fk_0c9651_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: studentassessmentstudentobjectiveassessmentscoreresult fk_0c9651_studentassessmentstudentobjectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentscoreresult + ADD CONSTRAINT fk_0c9651_studentassessmentstudentobjectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessmentstudentobjectiveassessment(assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineincidentexternalparticipant fk_0d16f7_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentexternalparticipant + ADD CONSTRAINT fk_0d16f7_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid) ON DELETE CASCADE; + + +-- +-- Name: disciplineincidentexternalparticipant fk_0d16f7_disciplineincidentparticipationcodedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentexternalparticipant + ADD CONSTRAINT fk_0d16f7_disciplineincidentparticipationcodedescriptor FOREIGN KEY (disciplineincidentparticipationcodedescriptorid) REFERENCES edfi.disciplineincidentparticipationcodedescriptor(disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: parentothername fk_0e0a11_othernametypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentothername + ADD CONSTRAINT fk_0e0a11_othernametypedescriptor FOREIGN KEY (othernametypedescriptorid) REFERENCES edfi.othernametypedescriptor(othernametypedescriptorid); + + +-- +-- Name: parentothername fk_0e0a11_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentothername + ADD CONSTRAINT fk_0e0a11_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: exitwithdrawtypedescriptor fk_0e8b13_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.exitwithdrawtypedescriptor + ADD CONSTRAINT fk_0e8b13_descriptor FOREIGN KEY (exitwithdrawtypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationinternationaladdress fk_0ee746_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinternationaladdress + ADD CONSTRAINT fk_0ee746_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: educationorganizationinternationaladdress fk_0ee746_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinternationaladdress + ADD CONSTRAINT fk_0ee746_countrydescriptor FOREIGN KEY (countrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: educationorganizationinternationaladdress fk_0ee746_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinternationaladdress + ADD CONSTRAINT fk_0ee746_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: interactivitystyledescriptor fk_0f0ab7_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interactivitystyledescriptor + ADD CONSTRAINT fk_0f0ab7_descriptor FOREIGN KEY (interactivitystyledescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationalenvironmentdescriptor fk_0f941f_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationalenvironmentdescriptor + ADD CONSTRAINT fk_0f941f_descriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: intervention fk_0fae05_deliverymethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.intervention + ADD CONSTRAINT fk_0fae05_deliverymethoddescriptor FOREIGN KEY (deliverymethoddescriptorid) REFERENCES edfi.deliverymethoddescriptor(deliverymethoddescriptorid); + + +-- +-- Name: intervention fk_0fae05_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.intervention + ADD CONSTRAINT fk_0fae05_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: intervention fk_0fae05_interventionclassdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.intervention + ADD CONSTRAINT fk_0fae05_interventionclassdescriptor FOREIGN KEY (interventionclassdescriptorid) REFERENCES edfi.interventionclassdescriptor(interventionclassdescriptorid); + + +-- +-- Name: studentassessmentscoreresult fk_0fceba_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentscoreresult + ADD CONSTRAINT fk_0fceba_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: studentassessmentscoreresult fk_0fceba_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentscoreresult + ADD CONSTRAINT fk_0fceba_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: studentassessmentscoreresult fk_0fceba_studentassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentscoreresult + ADD CONSTRAINT fk_0fceba_studentassessment FOREIGN KEY (assessmentidentifier, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessment(assessmentidentifier, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentacademicrecord fk_0ff8d6_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_credittypedescriptor FOREIGN KEY (cumulativeearnedcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_credittypedescriptor1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_credittypedescriptor1 FOREIGN KEY (cumulativeattemptedcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_credittypedescriptor2; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_credittypedescriptor2 FOREIGN KEY (sessionearnedcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_credittypedescriptor3; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_credittypedescriptor3 FOREIGN KEY (sessionattemptedcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: studentacademicrecord fk_0ff8d6_termdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecord + ADD CONSTRAINT fk_0ff8d6_termdescriptor FOREIGN KEY (termdescriptorid) REFERENCES edfi.termdescriptor(termdescriptorid); + + +-- +-- Name: continuationofservicesreasondescriptor fk_10230d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.continuationofservicesreasondescriptor + ADD CONSTRAINT fk_10230d_descriptor FOREIGN KEY (continuationofservicesreasondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: postingresultdescriptor fk_105b75_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postingresultdescriptor + ADD CONSTRAINT fk_105b75_descriptor FOREIGN KEY (postingresultdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: credentialacademicsubject fk_1141c9_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialacademicsubject + ADD CONSTRAINT fk_1141c9_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: credentialacademicsubject fk_1141c9_credential; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialacademicsubject + ADD CONSTRAINT fk_1141c9_credential FOREIGN KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid) REFERENCES edfi.credential(credentialidentifier, stateofissuestateabbreviationdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentperformancelevel fk_11bd42_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperformancelevel + ADD CONSTRAINT fk_11bd42_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentperformancelevel fk_11bd42_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperformancelevel + ADD CONSTRAINT fk_11bd42_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: assessmentperformancelevel fk_11bd42_performanceleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperformancelevel + ADD CONSTRAINT fk_11bd42_performanceleveldescriptor FOREIGN KEY (performanceleveldescriptorid) REFERENCES edfi.performanceleveldescriptor(performanceleveldescriptorid); + + +-- +-- Name: assessmentperformancelevel fk_11bd42_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperformancelevel + ADD CONSTRAINT fk_11bd42_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: teachingcredentialbasisdescriptor fk_11e850_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.teachingcredentialbasisdescriptor + ADD CONSTRAINT fk_11e850_descriptor FOREIGN KEY (teachingcredentialbasisdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: feederschoolassociation fk_11f7b6_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.feederschoolassociation + ADD CONSTRAINT fk_11f7b6_school FOREIGN KEY (feederschoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: feederschoolassociation fk_11f7b6_school1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.feederschoolassociation + ADD CONSTRAINT fk_11f7b6_school1 FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: parentaddressperiod fk_123e27_parentaddress; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddressperiod + ADD CONSTRAINT fk_123e27_parentaddress FOREIGN KEY (addresstypedescriptorid, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername) REFERENCES edfi.parentaddress(addresstypedescriptorid, city, parentusi, postalcode, stateabbreviationdescriptorid, streetnumbername) ON DELETE CASCADE; + + +-- +-- Name: organizationdepartment fk_13b924_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.organizationdepartment + ADD CONSTRAINT fk_13b924_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: organizationdepartment fk_13b924_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.organizationdepartment + ADD CONSTRAINT fk_13b924_educationorganization FOREIGN KEY (organizationdepartmentid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: organizationdepartment fk_13b924_educationorganization1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.organizationdepartment + ADD CONSTRAINT fk_13b924_educationorganization1 FOREIGN KEY (parenteducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: contentclassdescriptor fk_14a617_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contentclassdescriptor + ADD CONSTRAINT fk_14a617_descriptor FOREIGN KEY (contentclassdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: proficiencydescriptor fk_14d0fd_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.proficiencydescriptor + ADD CONSTRAINT fk_14d0fd_descriptor FOREIGN KEY (proficiencydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentitemlearningstandard fk_151580_assessmentitem; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemlearningstandard + ADD CONSTRAINT fk_151580_assessmentitem FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.assessmentitem(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentitemlearningstandard fk_151580_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemlearningstandard + ADD CONSTRAINT fk_151580_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: sectioncharacteristic fk_1587d8_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncharacteristic + ADD CONSTRAINT fk_1587d8_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: sectioncharacteristic fk_1587d8_sectioncharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncharacteristic + ADD CONSTRAINT fk_1587d8_sectioncharacteristicdescriptor FOREIGN KEY (sectioncharacteristicdescriptorid) REFERENCES edfi.sectioncharacteristicdescriptor(sectioncharacteristicdescriptorid); + + +-- +-- Name: licensetypedescriptor fk_159a96_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.licensetypedescriptor + ADD CONSTRAINT fk_159a96_descriptor FOREIGN KEY (licensetypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: location fk_15b619_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.location + ADD CONSTRAINT fk_15b619_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: electronicmailtypedescriptor fk_15fde6_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.electronicmailtypedescriptor + ADD CONSTRAINT fk_15fde6_descriptor FOREIGN KEY (electronicmailtypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningstandardequivalencestrengthdescriptor fk_166f6a_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardequivalencestrengthdescriptor + ADD CONSTRAINT fk_166f6a_descriptor FOREIGN KEY (learningstandardequivalencestrengthdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: programcharacteristic fk_16896e_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programcharacteristic + ADD CONSTRAINT fk_16896e_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid) ON DELETE CASCADE; + + +-- +-- Name: programcharacteristic fk_16896e_programcharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programcharacteristic + ADD CONSTRAINT fk_16896e_programcharacteristicdescriptor FOREIGN KEY (programcharacteristicdescriptorid) REFERENCES edfi.programcharacteristicdescriptor(programcharacteristicdescriptorid); + + +-- +-- Name: programtypedescriptor fk_16eb9d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programtypedescriptor + ADD CONSTRAINT fk_16eb9d_descriptor FOREIGN KEY (programtypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffcohortassociation fk_170747_cohort; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffcohortassociation + ADD CONSTRAINT fk_170747_cohort FOREIGN KEY (cohortidentifier, educationorganizationid) REFERENCES edfi.cohort(cohortidentifier, educationorganizationid); + + +-- +-- Name: staffcohortassociation fk_170747_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffcohortassociation + ADD CONSTRAINT fk_170747_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: courseofferedgradelevel fk_175995_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferedgradelevel + ADD CONSTRAINT fk_175995_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: courseofferedgradelevel fk_175995_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferedgradelevel + ADD CONSTRAINT fk_175995_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: learningstandardequivalenceassociation fk_17c02a_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardequivalenceassociation + ADD CONSTRAINT fk_17c02a_learningstandard FOREIGN KEY (sourcelearningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: learningstandardequivalenceassociation fk_17c02a_learningstandard1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardequivalenceassociation + ADD CONSTRAINT fk_17c02a_learningstandard1 FOREIGN KEY (targetlearningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: learningstandardequivalenceassociation fk_17c02a_learningstandardequivalencestrengthdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardequivalenceassociation + ADD CONSTRAINT fk_17c02a_learningstandardequivalencestrengthdescriptor FOREIGN KEY (learningstandardequivalencestrengthdescriptorid) REFERENCES edfi.learningstandardequivalencestrengthdescriptor(learningstandardequivalencestrengthdescriptorid); + + +-- +-- Name: interventionclassdescriptor fk_183bc5_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionclassdescriptor + ADD CONSTRAINT fk_183bc5_descriptor FOREIGN KEY (interventionclassdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courseidentificationcode fk_18889f_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseidentificationcode + ADD CONSTRAINT fk_18889f_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: courseidentificationcode fk_18889f_courseidentificationsystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseidentificationcode + ADD CONSTRAINT fk_18889f_courseidentificationsystemdescriptor FOREIGN KEY (courseidentificationsystemdescriptorid) REFERENCES edfi.courseidentificationsystemdescriptor(courseidentificationsystemdescriptorid); + + +-- +-- Name: attendanceeventcategorydescriptor fk_19349d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.attendanceeventcategorydescriptor + ADD CONSTRAINT fk_19349d_descriptor FOREIGN KEY (attendanceeventcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: monitoreddescriptor fk_19374b_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.monitoreddescriptor + ADD CONSTRAINT fk_19374b_descriptor FOREIGN KEY (monitoreddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: cohort fk_19c6d6_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohort + ADD CONSTRAINT fk_19c6d6_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: cohort fk_19c6d6_cohortscopedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohort + ADD CONSTRAINT fk_19c6d6_cohortscopedescriptor FOREIGN KEY (cohortscopedescriptorid) REFERENCES edfi.cohortscopedescriptor(cohortscopedescriptorid); + + +-- +-- Name: cohort fk_19c6d6_cohorttypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohort + ADD CONSTRAINT fk_19c6d6_cohorttypedescriptor FOREIGN KEY (cohorttypedescriptorid) REFERENCES edfi.cohorttypedescriptor(cohorttypedescriptorid); + + +-- +-- Name: cohort fk_19c6d6_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohort + ADD CONSTRAINT fk_19c6d6_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: graduationplanrequiredassessment fk_1a4369_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessment + ADD CONSTRAINT fk_1a4369_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace); + + +-- +-- Name: graduationplanrequiredassessment fk_1a4369_graduationplan; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessment + ADD CONSTRAINT fk_1a4369_graduationplan FOREIGN KEY (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) REFERENCES edfi.graduationplan(educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) ON DELETE CASCADE; + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 fk_1ac620_monitoreddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT fk_1ac620_monitoreddescriptor FOREIGN KEY (monitoreddescriptorid) REFERENCES edfi.monitoreddescriptor(monitoreddescriptorid); + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 fk_1ac620_participationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT fk_1ac620_participationdescriptor FOREIGN KEY (participationdescriptorid) REFERENCES edfi.participationdescriptor(participationdescriptorid); + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 fk_1ac620_proficiencydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT fk_1ac620_proficiencydescriptor FOREIGN KEY (proficiencydescriptorid) REFERENCES edfi.proficiencydescriptor(proficiencydescriptorid); + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 fk_1ac620_progressdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT fk_1ac620_progressdescriptor FOREIGN KEY (progressdescriptorid) REFERENCES edfi.progressdescriptor(progressdescriptorid); + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 fk_1ac620_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT fk_1ac620_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentlanguageinstructionprogramassociationenglishlangu_1ac620 fk_1ac620_studentlanguageinstructionprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationenglishlangu_1ac620 + ADD CONSTRAINT fk_1ac620_studentlanguageinstructionprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentlanguageinstructionprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessmentperformancelevel fk_1b7007_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentperformancelevel + ADD CONSTRAINT fk_1b7007_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: objectiveassessmentperformancelevel fk_1b7007_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentperformancelevel + ADD CONSTRAINT fk_1b7007_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessmentperformancelevel fk_1b7007_performanceleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentperformancelevel + ADD CONSTRAINT fk_1b7007_performanceleveldescriptor FOREIGN KEY (performanceleveldescriptorid) REFERENCES edfi.performanceleveldescriptor(performanceleveldescriptorid); + + +-- +-- Name: objectiveassessmentperformancelevel fk_1b7007_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentperformancelevel + ADD CONSTRAINT fk_1b7007_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: localeducationagencyaccountability fk_1ba71e_gunfreeschoolsactreportingstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyaccountability + ADD CONSTRAINT fk_1ba71e_gunfreeschoolsactreportingstatusdescriptor FOREIGN KEY (gunfreeschoolsactreportingstatusdescriptorid) REFERENCES edfi.gunfreeschoolsactreportingstatusdescriptor(gunfreeschoolsactreportingstatusdescriptorid); + + +-- +-- Name: localeducationagencyaccountability fk_1ba71e_localeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyaccountability + ADD CONSTRAINT fk_1ba71e_localeducationagency FOREIGN KEY (localeducationagencyid) REFERENCES edfi.localeducationagency(localeducationagencyid) ON DELETE CASCADE; + + +-- +-- Name: localeducationagencyaccountability fk_1ba71e_schoolchoiceimplementstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyaccountability + ADD CONSTRAINT fk_1ba71e_schoolchoiceimplementstatusdescriptor FOREIGN KEY (schoolchoiceimplementstatusdescriptorid) REFERENCES edfi.schoolchoiceimplementstatusdescriptor(schoolchoiceimplementstatusdescriptorid); + + +-- +-- Name: localeducationagencyaccountability fk_1ba71e_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyaccountability + ADD CONSTRAINT fk_1ba71e_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentcteprogramassociationcteprogramservice fk_1bab8a_cteprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationcteprogramservice + ADD CONSTRAINT fk_1bab8a_cteprogramservicedescriptor FOREIGN KEY (cteprogramservicedescriptorid) REFERENCES edfi.cteprogramservicedescriptor(cteprogramservicedescriptorid); + + +-- +-- Name: studentcteprogramassociationcteprogramservice fk_1bab8a_studentcteprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationcteprogramservice + ADD CONSTRAINT fk_1bab8a_studentcteprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentcteprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: surveyquestion fk_1bb88c_questionformdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestion + ADD CONSTRAINT fk_1bb88c_questionformdescriptor FOREIGN KEY (questionformdescriptorid) REFERENCES edfi.questionformdescriptor(questionformdescriptorid); + + +-- +-- Name: surveyquestion fk_1bb88c_survey; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestion + ADD CONSTRAINT fk_1bb88c_survey FOREIGN KEY (namespace, surveyidentifier) REFERENCES edfi.survey(namespace, surveyidentifier); + + +-- +-- Name: surveyquestion fk_1bb88c_surveysection; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestion + ADD CONSTRAINT fk_1bb88c_surveysection FOREIGN KEY (namespace, surveyidentifier, surveysectiontitle) REFERENCES edfi.surveysection(namespace, surveyidentifier, surveysectiontitle); + + +-- +-- Name: studentlearningobjectivegeneralstudentprogramassociation fk_1c30e0_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjectivegeneralstudentprogramassociation + ADD CONSTRAINT fk_1c30e0_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi); + + +-- +-- Name: studentlearningobjectivegeneralstudentprogramassociation fk_1c30e0_studentlearningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjectivegeneralstudentprogramassociation + ADD CONSTRAINT fk_1c30e0_studentlearningobjective FOREIGN KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi) REFERENCES edfi.studentlearningobjective(gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi) ON DELETE CASCADE; + + +-- +-- Name: budget fk_1c6225_account; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.budget + ADD CONSTRAINT fk_1c6225_account FOREIGN KEY (accountidentifier, educationorganizationid, fiscalyear) REFERENCES edfi.account(accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: surveyquestionresponsechoice fk_1c624b_surveyquestion; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponsechoice + ADD CONSTRAINT fk_1c624b_surveyquestion FOREIGN KEY (namespace, questioncode, surveyidentifier) REFERENCES edfi.surveyquestion(namespace, questioncode, surveyidentifier) ON DELETE CASCADE; + + +-- +-- Name: stafflanguage fk_1c8d3f_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafflanguage + ADD CONSTRAINT fk_1c8d3f_languagedescriptor FOREIGN KEY (languagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: stafflanguage fk_1c8d3f_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafflanguage + ADD CONSTRAINT fk_1c8d3f_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: tribalaffiliationdescriptor fk_1cb85d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.tribalaffiliationdescriptor + ADD CONSTRAINT fk_1cb85d_descriptor FOREIGN KEY (tribalaffiliationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: titleipartaparticipantdescriptor fk_1d0172_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.titleipartaparticipantdescriptor + ADD CONSTRAINT fk_1d0172_descriptor FOREIGN KEY (titleipartaparticipantdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: cohortyeartypedescriptor fk_1d837f_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortyeartypedescriptor + ADD CONSTRAINT fk_1d837f_descriptor FOREIGN KEY (cohortyeartypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionstudylearningresourcemetadatauri fk_1dcb14_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudylearningresourcemetadatauri + ADD CONSTRAINT fk_1dcb14_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: addresstypedescriptor fk_1edaa3_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.addresstypedescriptor + ADD CONSTRAINT fk_1edaa3_descriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessmentlearningstandard fk_1ee70e_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentlearningstandard + ADD CONSTRAINT fk_1ee70e_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: objectiveassessmentlearningstandard fk_1ee70e_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentlearningstandard + ADD CONSTRAINT fk_1ee70e_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: gradingperioddescriptor fk_1f0f64_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradingperioddescriptor + ADD CONSTRAINT fk_1f0f64_descriptor FOREIGN KEY (gradingperioddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: course fk_2096ce_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: course fk_2096ce_careerpathwaydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_careerpathwaydescriptor FOREIGN KEY (careerpathwaydescriptorid) REFERENCES edfi.careerpathwaydescriptor(careerpathwaydescriptorid); + + +-- +-- Name: course fk_2096ce_coursedefinedbydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_coursedefinedbydescriptor FOREIGN KEY (coursedefinedbydescriptorid) REFERENCES edfi.coursedefinedbydescriptor(coursedefinedbydescriptorid); + + +-- +-- Name: course fk_2096ce_coursegpaapplicabilitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_coursegpaapplicabilitydescriptor FOREIGN KEY (coursegpaapplicabilitydescriptorid) REFERENCES edfi.coursegpaapplicabilitydescriptor(coursegpaapplicabilitydescriptorid); + + +-- +-- Name: course fk_2096ce_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_credittypedescriptor FOREIGN KEY (minimumavailablecredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: course fk_2096ce_credittypedescriptor1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_credittypedescriptor1 FOREIGN KEY (maximumavailablecredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: course fk_2096ce_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.course + ADD CONSTRAINT fk_2096ce_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: assessmentcategorydescriptor fk_20e875_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcategorydescriptor + ADD CONSTRAINT fk_20e875_descriptor FOREIGN KEY (assessmentcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: behaviordescriptor fk_20feca_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.behaviordescriptor + ADD CONSTRAINT fk_20feca_descriptor FOREIGN KEY (behaviordescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courseofferingcourselevelcharacteristic fk_210b6b_courselevelcharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcourselevelcharacteristic + ADD CONSTRAINT fk_210b6b_courselevelcharacteristicdescriptor FOREIGN KEY (courselevelcharacteristicdescriptorid) REFERENCES edfi.courselevelcharacteristicdescriptor(courselevelcharacteristicdescriptorid); + + +-- +-- Name: courseofferingcourselevelcharacteristic fk_210b6b_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcourselevelcharacteristic + ADD CONSTRAINT fk_210b6b_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: survey fk_211bb3_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.survey + ADD CONSTRAINT fk_211bb3_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: survey fk_211bb3_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.survey + ADD CONSTRAINT fk_211bb3_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: survey fk_211bb3_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.survey + ADD CONSTRAINT fk_211bb3_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: survey fk_211bb3_surveycategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.survey + ADD CONSTRAINT fk_211bb3_surveycategorydescriptor FOREIGN KEY (surveycategorydescriptorid) REFERENCES edfi.surveycategorydescriptor(surveycategorydescriptorid); + + +-- +-- Name: surveysectionresponse fk_2189c3_surveyresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponse + ADD CONSTRAINT fk_2189c3_surveyresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyresponse(namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: surveysectionresponse fk_2189c3_surveysection; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponse + ADD CONSTRAINT fk_2189c3_surveysection FOREIGN KEY (namespace, surveyidentifier, surveysectiontitle) REFERENCES edfi.surveysection(namespace, surveyidentifier, surveysectiontitle); + + +-- +-- Name: assessmentcontentstandardauthor fk_21acd5_assessmentcontentstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcontentstandardauthor + ADD CONSTRAINT fk_21acd5_assessmentcontentstandard FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessmentcontentstandard(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: bellschedulegradelevel fk_226b3d_bellschedule; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellschedulegradelevel + ADD CONSTRAINT fk_226b3d_bellschedule FOREIGN KEY (bellschedulename, schoolid) REFERENCES edfi.bellschedule(bellschedulename, schoolid) ON DELETE CASCADE; + + +-- +-- Name: bellschedulegradelevel fk_226b3d_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellschedulegradelevel + ADD CONSTRAINT fk_226b3d_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: assessmentsection fk_22ceba_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentsection + ADD CONSTRAINT fk_22ceba_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentsection fk_22ceba_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentsection + ADD CONSTRAINT fk_22ceba_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: learningobjectiveacademicsubject fk_23fa0f_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectiveacademicsubject + ADD CONSTRAINT fk_23fa0f_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: learningobjectiveacademicsubject fk_23fa0f_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectiveacademicsubject + ADD CONSTRAINT fk_23fa0f_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace) ON DELETE CASCADE; + + +-- +-- Name: communityprovider fk_247572_communityorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityprovider + ADD CONSTRAINT fk_247572_communityorganization FOREIGN KEY (communityorganizationid) REFERENCES edfi.communityorganization(communityorganizationid); + + +-- +-- Name: communityprovider fk_247572_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityprovider + ADD CONSTRAINT fk_247572_educationorganization FOREIGN KEY (communityproviderid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: communityprovider fk_247572_providercategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityprovider + ADD CONSTRAINT fk_247572_providercategorydescriptor FOREIGN KEY (providercategorydescriptorid) REFERENCES edfi.providercategorydescriptor(providercategorydescriptorid); + + +-- +-- Name: communityprovider fk_247572_providerprofitabilitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityprovider + ADD CONSTRAINT fk_247572_providerprofitabilitydescriptor FOREIGN KEY (providerprofitabilitydescriptorid) REFERENCES edfi.providerprofitabilitydescriptor(providerprofitabilitydescriptorid); + + +-- +-- Name: communityprovider fk_247572_providerstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityprovider + ADD CONSTRAINT fk_247572_providerstatusdescriptor FOREIGN KEY (providerstatusdescriptorid) REFERENCES edfi.providerstatusdescriptor(providerstatusdescriptorid); + + +-- +-- Name: educationorganizationnetworkassociation fk_252151_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationnetworkassociation + ADD CONSTRAINT fk_252151_educationorganization FOREIGN KEY (membereducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: educationorganizationnetworkassociation fk_252151_educationorganizationnetwork; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationnetworkassociation + ADD CONSTRAINT fk_252151_educationorganizationnetwork FOREIGN KEY (educationorganizationnetworkid) REFERENCES edfi.educationorganizationnetwork(educationorganizationnetworkid); + + +-- +-- Name: internetperformanceinresidencedescriptor fk_256049_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.internetperformanceinresidencedescriptor + ADD CONSTRAINT fk_256049_descriptor FOREIGN KEY (internetperformanceinresidencedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: localeducationagency fk_25c08c_charterstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT fk_25c08c_charterstatusdescriptor FOREIGN KEY (charterstatusdescriptorid) REFERENCES edfi.charterstatusdescriptor(charterstatusdescriptorid); + + +-- +-- Name: localeducationagency fk_25c08c_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT fk_25c08c_educationorganization FOREIGN KEY (localeducationagencyid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: localeducationagency fk_25c08c_educationservicecenter; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT fk_25c08c_educationservicecenter FOREIGN KEY (educationservicecenterid) REFERENCES edfi.educationservicecenter(educationservicecenterid); + + +-- +-- Name: localeducationagency fk_25c08c_localeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT fk_25c08c_localeducationagency FOREIGN KEY (parentlocaleducationagencyid) REFERENCES edfi.localeducationagency(localeducationagencyid); + + +-- +-- Name: localeducationagency fk_25c08c_localeducationagencycategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT fk_25c08c_localeducationagencycategorydescriptor FOREIGN KEY (localeducationagencycategorydescriptorid) REFERENCES edfi.localeducationagencycategorydescriptor(localeducationagencycategorydescriptorid); + + +-- +-- Name: localeducationagency fk_25c08c_stateeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagency + ADD CONSTRAINT fk_25c08c_stateeducationagency FOREIGN KEY (stateeducationagencyid) REFERENCES edfi.stateeducationagency(stateeducationagencyid); + + +-- +-- Name: studentinterventionassociation fk_25cb9c_cohort; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociation + ADD CONSTRAINT fk_25cb9c_cohort FOREIGN KEY (cohortidentifier, cohorteducationorganizationid) REFERENCES edfi.cohort(cohortidentifier, educationorganizationid); + + +-- +-- Name: studentinterventionassociation fk_25cb9c_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociation + ADD CONSTRAINT fk_25cb9c_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode); + + +-- +-- Name: studentinterventionassociation fk_25cb9c_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociation + ADD CONSTRAINT fk_25cb9c_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: studentlanguageinstructionprogramassociationlanguageinst_268e07 fk_268e07_languageinstructionprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 + ADD CONSTRAINT fk_268e07_languageinstructionprogramservicedescriptor FOREIGN KEY (languageinstructionprogramservicedescriptorid) REFERENCES edfi.languageinstructionprogramservicedescriptor(languageinstructionprogramservicedescriptorid); + + +-- +-- Name: studentlanguageinstructionprogramassociationlanguageinst_268e07 fk_268e07_studentlanguageinstructionprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociationlanguageinst_268e07 + ADD CONSTRAINT fk_268e07_studentlanguageinstructionprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentlanguageinstructionprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessment fk_269e10_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessment + ADD CONSTRAINT fk_269e10_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: objectiveassessment fk_269e10_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessment + ADD CONSTRAINT fk_269e10_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace); + + +-- +-- Name: objectiveassessment fk_269e10_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessment + ADD CONSTRAINT fk_269e10_objectiveassessment FOREIGN KEY (assessmentidentifier, parentidentificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: studenttitleipartaprogramassociation fk_27d914_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociation + ADD CONSTRAINT fk_27d914_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenttitleipartaprogramassociation fk_27d914_titleipartaparticipantdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociation + ADD CONSTRAINT fk_27d914_titleipartaparticipantdescriptor FOREIGN KEY (titleipartaparticipantdescriptorid) REFERENCES edfi.titleipartaparticipantdescriptor(titleipartaparticipantdescriptorid); + + +-- +-- Name: openstaffpositionacademicsubject fk_285d36_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffpositionacademicsubject + ADD CONSTRAINT fk_285d36_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: openstaffpositionacademicsubject fk_285d36_openstaffposition; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffpositionacademicsubject + ADD CONSTRAINT fk_285d36_openstaffposition FOREIGN KEY (educationorganizationid, requisitionnumber) REFERENCES edfi.openstaffposition(educationorganizationid, requisitionnumber) ON DELETE CASCADE; + + +-- +-- Name: postsecondaryinstitution fk_2935bf_administrativefundingcontroldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitution + ADD CONSTRAINT fk_2935bf_administrativefundingcontroldescriptor FOREIGN KEY (administrativefundingcontroldescriptorid) REFERENCES edfi.administrativefundingcontroldescriptor(administrativefundingcontroldescriptorid); + + +-- +-- Name: postsecondaryinstitution fk_2935bf_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitution + ADD CONSTRAINT fk_2935bf_educationorganization FOREIGN KEY (postsecondaryinstitutionid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: postsecondaryinstitution fk_2935bf_postsecondaryinstitutionleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitution + ADD CONSTRAINT fk_2935bf_postsecondaryinstitutionleveldescriptor FOREIGN KEY (postsecondaryinstitutionleveldescriptorid) REFERENCES edfi.postsecondaryinstitutionleveldescriptor(postsecondaryinstitutionleveldescriptorid); + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness fk_29e870_diagnosisdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociationinterventioneffectiveness + ADD CONSTRAINT fk_29e870_diagnosisdescriptor FOREIGN KEY (diagnosisdescriptorid) REFERENCES edfi.diagnosisdescriptor(diagnosisdescriptorid); + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness fk_29e870_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociationinterventioneffectiveness + ADD CONSTRAINT fk_29e870_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness fk_29e870_interventioneffectivenessratingdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociationinterventioneffectiveness + ADD CONSTRAINT fk_29e870_interventioneffectivenessratingdescriptor FOREIGN KEY (interventioneffectivenessratingdescriptorid) REFERENCES edfi.interventioneffectivenessratingdescriptor(interventioneffectivenessratingdescriptorid); + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness fk_29e870_populationserveddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociationinterventioneffectiveness + ADD CONSTRAINT fk_29e870_populationserveddescriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.populationserveddescriptor(populationserveddescriptorid); + + +-- +-- Name: studentinterventionassociationinterventioneffectiveness fk_29e870_studentinterventionassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionassociationinterventioneffectiveness + ADD CONSTRAINT fk_29e870_studentinterventionassociation FOREIGN KEY (educationorganizationid, interventionidentificationcode, studentusi) REFERENCES edfi.studentinterventionassociation(educationorganizationid, interventionidentificationcode, studentusi) ON DELETE CASCADE; + + +-- +-- Name: student fk_2a164d_citizenshipstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student + ADD CONSTRAINT fk_2a164d_citizenshipstatusdescriptor FOREIGN KEY (citizenshipstatusdescriptorid) REFERENCES edfi.citizenshipstatusdescriptor(citizenshipstatusdescriptorid); + + +-- +-- Name: student fk_2a164d_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student + ADD CONSTRAINT fk_2a164d_countrydescriptor FOREIGN KEY (birthcountrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: student fk_2a164d_person; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student + ADD CONSTRAINT fk_2a164d_person FOREIGN KEY (personid, sourcesystemdescriptorid) REFERENCES edfi.person(personid, sourcesystemdescriptorid); + + +-- +-- Name: student fk_2a164d_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student + ADD CONSTRAINT fk_2a164d_sexdescriptor FOREIGN KEY (birthsexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: student fk_2a164d_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.student + ADD CONSTRAINT fk_2a164d_stateabbreviationdescriptor FOREIGN KEY (birthstateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationlanguage fk_2a4725_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationlanguage + ADD CONSTRAINT fk_2a4725_languagedescriptor FOREIGN KEY (languagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationlanguage fk_2a4725_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationlanguage + ADD CONSTRAINT fk_2a4725_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentacademicrecordacademichonor fk_2b286a_academichonorcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordacademichonor + ADD CONSTRAINT fk_2b286a_academichonorcategorydescriptor FOREIGN KEY (academichonorcategorydescriptorid) REFERENCES edfi.academichonorcategorydescriptor(academichonorcategorydescriptorid); + + +-- +-- Name: studentacademicrecordacademichonor fk_2b286a_achievementcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordacademichonor + ADD CONSTRAINT fk_2b286a_achievementcategorydescriptor FOREIGN KEY (achievementcategorydescriptorid) REFERENCES edfi.achievementcategorydescriptor(achievementcategorydescriptorid); + + +-- +-- Name: studentacademicrecordacademichonor fk_2b286a_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordacademichonor + ADD CONSTRAINT fk_2b286a_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: reasonnottesteddescriptor fk_2ba6d0_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reasonnottesteddescriptor + ADD CONSTRAINT fk_2ba6d0_descriptor FOREIGN KEY (reasonnottesteddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationancestryethnicorigin fk_2c2b13_ancestryethnicorigindescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationancestryethnicorigin + ADD CONSTRAINT fk_2c2b13_ancestryethnicorigindescriptor FOREIGN KEY (ancestryethnicorigindescriptorid) REFERENCES edfi.ancestryethnicorigindescriptor(ancestryethnicorigindescriptorid); + + +-- +-- Name: studenteducationorganizationassociationancestryethnicorigin fk_2c2b13_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationancestryethnicorigin + ADD CONSTRAINT fk_2c2b13_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineactionstudentdisciplineincidentbehaviorassociation fk_2c4cdb_disciplineaction; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstudentdisciplineincidentbehaviorassociation + ADD CONSTRAINT fk_2c4cdb_disciplineaction FOREIGN KEY (disciplineactionidentifier, disciplinedate, studentusi) REFERENCES edfi.disciplineaction(disciplineactionidentifier, disciplinedate, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineactionstudentdisciplineincidentbehaviorassociation fk_2c4cdb_studentdisciplineincidentbehaviorassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstudentdisciplineincidentbehaviorassociation + ADD CONSTRAINT fk_2c4cdb_studentdisciplineincidentbehaviorassociation FOREIGN KEY (behaviordescriptorid, incidentidentifier, schoolid, studentusi) REFERENCES edfi.studentdisciplineincidentbehaviorassociation(behaviordescriptorid, incidentidentifier, schoolid, studentusi); + + +-- +-- Name: objectiveassessmentscore fk_2c91e8_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentscore + ADD CONSTRAINT fk_2c91e8_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: objectiveassessmentscore fk_2c91e8_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentscore + ADD CONSTRAINT fk_2c91e8_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessmentscore fk_2c91e8_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentscore + ADD CONSTRAINT fk_2c91e8_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: accountabilityrating fk_2d3c0c_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountabilityrating + ADD CONSTRAINT fk_2d3c0c_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: accountabilityrating fk_2d3c0c_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountabilityrating + ADD CONSTRAINT fk_2d3c0c_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentidentificationdocument fk_2d57be_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationdocument + ADD CONSTRAINT fk_2d57be_countrydescriptor FOREIGN KEY (issuercountrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: studentidentificationdocument fk_2d57be_identificationdocumentusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationdocument + ADD CONSTRAINT fk_2d57be_identificationdocumentusedescriptor FOREIGN KEY (identificationdocumentusedescriptorid) REFERENCES edfi.identificationdocumentusedescriptor(identificationdocumentusedescriptorid); + + +-- +-- Name: studentidentificationdocument fk_2d57be_personalinformationverificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationdocument + ADD CONSTRAINT fk_2d57be_personalinformationverificationdescriptor FOREIGN KEY (personalinformationverificationdescriptorid) REFERENCES edfi.personalinformationverificationdescriptor(personalinformationverificationdescriptorid); + + +-- +-- Name: studentidentificationdocument fk_2d57be_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationdocument + ADD CONSTRAINT fk_2d57be_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi) ON DELETE CASCADE; + + +-- +-- Name: licensestatusdescriptor fk_2db9cf_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.licensestatusdescriptor + ADD CONSTRAINT fk_2db9cf_descriptor FOREIGN KEY (licensestatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationlanguageuse fk_2e333a_languageusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationlanguageuse + ADD CONSTRAINT fk_2e333a_languageusedescriptor FOREIGN KEY (languageusedescriptorid) REFERENCES edfi.languageusedescriptor(languageusedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationlanguageuse fk_2e333a_studenteducationorganizationassociationlanguage; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationlanguageuse + ADD CONSTRAINT fk_2e333a_studenteducationorganizationassociationlanguage FOREIGN KEY (educationorganizationid, languagedescriptorid, studentusi) REFERENCES edfi.studenteducationorganizationassociationlanguage(educationorganizationid, languagedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: creditcategorydescriptor fk_2e3556_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.creditcategorydescriptor + ADD CONSTRAINT fk_2e3556_descriptor FOREIGN KEY (creditcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: schoolcategorydescriptor fk_2e8c40_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolcategorydescriptor + ADD CONSTRAINT fk_2e8c40_descriptor FOREIGN KEY (schoolcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courseattemptresultdescriptor fk_306d96_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseattemptresultdescriptor + ADD CONSTRAINT fk_306d96_descriptor FOREIGN KEY (courseattemptresultdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: sectionprogram fk_309217_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionprogram + ADD CONSTRAINT fk_309217_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: sectionprogram fk_309217_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionprogram + ADD CONSTRAINT fk_309217_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: disciplineactionstaff fk_30e866_disciplineaction; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstaff + ADD CONSTRAINT fk_30e866_disciplineaction FOREIGN KEY (disciplineactionidentifier, disciplinedate, studentusi) REFERENCES edfi.disciplineaction(disciplineactionidentifier, disciplinedate, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineactionstaff fk_30e866_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstaff + ADD CONSTRAINT fk_30e866_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: staffidentificationdocument fk_31779a_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationdocument + ADD CONSTRAINT fk_31779a_countrydescriptor FOREIGN KEY (issuercountrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: staffidentificationdocument fk_31779a_identificationdocumentusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationdocument + ADD CONSTRAINT fk_31779a_identificationdocumentusedescriptor FOREIGN KEY (identificationdocumentusedescriptorid) REFERENCES edfi.identificationdocumentusedescriptor(identificationdocumentusedescriptorid); + + +-- +-- Name: staffidentificationdocument fk_31779a_personalinformationverificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationdocument + ADD CONSTRAINT fk_31779a_personalinformationverificationdescriptor FOREIGN KEY (personalinformationverificationdescriptorid) REFERENCES edfi.personalinformationverificationdescriptor(personalinformationverificationdescriptorid); + + +-- +-- Name: staffidentificationdocument fk_31779a_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationdocument + ADD CONSTRAINT fk_31779a_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: studentprogramattendanceevent fk_317aeb_attendanceeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramattendanceevent + ADD CONSTRAINT fk_317aeb_attendanceeventcategorydescriptor FOREIGN KEY (attendanceeventcategorydescriptorid) REFERENCES edfi.attendanceeventcategorydescriptor(attendanceeventcategorydescriptorid); + + +-- +-- Name: studentprogramattendanceevent fk_317aeb_educationalenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramattendanceevent + ADD CONSTRAINT fk_317aeb_educationalenvironmentdescriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.educationalenvironmentdescriptor(educationalenvironmentdescriptorid); + + +-- +-- Name: studentprogramattendanceevent fk_317aeb_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramattendanceevent + ADD CONSTRAINT fk_317aeb_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: studentprogramattendanceevent fk_317aeb_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramattendanceevent + ADD CONSTRAINT fk_317aeb_program FOREIGN KEY (programeducationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: studentprogramattendanceevent fk_317aeb_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramattendanceevent + ADD CONSTRAINT fk_317aeb_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: courseofferingcurriculumused fk_31bbf7_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcurriculumused + ADD CONSTRAINT fk_31bbf7_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: courseofferingcurriculumused fk_31bbf7_curriculumuseddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcurriculumused + ADD CONSTRAINT fk_31bbf7_curriculumuseddescriptor FOREIGN KEY (curriculumuseddescriptorid) REFERENCES edfi.curriculumuseddescriptor(curriculumuseddescriptorid); + + +-- +-- Name: administrationenvironmentdescriptor fk_328563_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.administrationenvironmentdescriptor + ADD CONSTRAINT fk_328563_descriptor FOREIGN KEY (administrationenvironmentdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentspecialeducationprogramassociationdisability fk_32920f_disabilitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisability + ADD CONSTRAINT fk_32920f_disabilitydescriptor FOREIGN KEY (disabilitydescriptorid) REFERENCES edfi.disabilitydescriptor(disabilitydescriptorid); + + +-- +-- Name: studentspecialeducationprogramassociationdisability fk_32920f_disabilitydeterminationsourcetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisability + ADD CONSTRAINT fk_32920f_disabilitydeterminationsourcetypedescriptor FOREIGN KEY (disabilitydeterminationsourcetypedescriptorid) REFERENCES edfi.disabilitydeterminationsourcetypedescriptor(disabilitydeterminationsourcetypedescriptorid); + + +-- +-- Name: studentspecialeducationprogramassociationdisability fk_32920f_studentspecialeducationprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisability + ADD CONSTRAINT fk_32920f_studentspecialeducationprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentspecialeducationprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: stateeducationagency fk_340d5d_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagency + ADD CONSTRAINT fk_340d5d_educationorganization FOREIGN KEY (stateeducationagencyid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: parentlanguage fk_34f9df_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentlanguage + ADD CONSTRAINT fk_34f9df_languagedescriptor FOREIGN KEY (languagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: parentlanguage fk_34f9df_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentlanguage + ADD CONSTRAINT fk_34f9df_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: coursetranscriptacademicsubject fk_354642_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptacademicsubject + ADD CONSTRAINT fk_354642_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: coursetranscriptacademicsubject fk_354642_coursetranscript; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptacademicsubject + ADD CONSTRAINT fk_354642_coursetranscript FOREIGN KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.coursetranscript(courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentcharacteristicdescriptor fk_359668_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcharacteristicdescriptor + ADD CONSTRAINT fk_359668_descriptor FOREIGN KEY (studentcharacteristicdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionuri fk_35afab_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionuri + ADD CONSTRAINT fk_35afab_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: studentcohortassociation fk_369ddc_cohort; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcohortassociation + ADD CONSTRAINT fk_369ddc_cohort FOREIGN KEY (cohortidentifier, educationorganizationid) REFERENCES edfi.cohort(cohortidentifier, educationorganizationid); + + +-- +-- Name: studentcohortassociation fk_369ddc_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcohortassociation + ADD CONSTRAINT fk_369ddc_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: cohortscopedescriptor fk_36f154_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortscopedescriptor + ADD CONSTRAINT fk_36f154_descriptor FOREIGN KEY (cohortscopedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentperiod fk_3734d1_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperiod + ADD CONSTRAINT fk_3734d1_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentperiod fk_3734d1_assessmentperioddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperiod + ADD CONSTRAINT fk_3734d1_assessmentperioddescriptor FOREIGN KEY (assessmentperioddescriptorid) REFERENCES edfi.assessmentperioddescriptor(assessmentperioddescriptorid); + + +-- +-- Name: restraintevent fk_3800be_educationalenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restraintevent + ADD CONSTRAINT fk_3800be_educationalenvironmentdescriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.educationalenvironmentdescriptor(educationalenvironmentdescriptorid); + + +-- +-- Name: restraintevent fk_3800be_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restraintevent + ADD CONSTRAINT fk_3800be_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: restraintevent fk_3800be_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restraintevent + ADD CONSTRAINT fk_3800be_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: learningstandardgradelevel fk_38677c_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardgradelevel + ADD CONSTRAINT fk_38677c_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: learningstandardgradelevel fk_38677c_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardgradelevel + ADD CONSTRAINT fk_38677c_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid) ON DELETE CASCADE; + + +-- +-- Name: surveysectionresponsestafftargetassociation fk_39073d_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponsestafftargetassociation + ADD CONSTRAINT fk_39073d_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: surveysectionresponsestafftargetassociation fk_39073d_surveysectionresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponsestafftargetassociation + ADD CONSTRAINT fk_39073d_surveysectionresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle) REFERENCES edfi.surveysectionresponse(namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: accommodationdescriptor fk_395139_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accommodationdescriptor + ADD CONSTRAINT fk_395139_descriptor FOREIGN KEY (accommodationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentcompetencyobjective fk_395c07_competencyleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjective + ADD CONSTRAINT fk_395c07_competencyleveldescriptor FOREIGN KEY (competencyleveldescriptorid) REFERENCES edfi.competencyleveldescriptor(competencyleveldescriptorid); + + +-- +-- Name: studentcompetencyobjective fk_395c07_competencyobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjective + ADD CONSTRAINT fk_395c07_competencyobjective FOREIGN KEY (objectiveeducationorganizationid, objective, objectivegradeleveldescriptorid) REFERENCES edfi.competencyobjective(educationorganizationid, objective, objectivegradeleveldescriptorid); + + +-- +-- Name: studentcompetencyobjective fk_395c07_gradingperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjective + ADD CONSTRAINT fk_395c07_gradingperiod FOREIGN KEY (gradingperioddescriptorid, gradingperiodsequence, gradingperiodschoolid, gradingperiodschoolyear) REFERENCES edfi.gradingperiod(gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: studentcompetencyobjective fk_395c07_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjective + ADD CONSTRAINT fk_395c07_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: studentsectionassociation fk_39aa3c_attemptstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionassociation + ADD CONSTRAINT fk_39aa3c_attemptstatusdescriptor FOREIGN KEY (attemptstatusdescriptorid) REFERENCES edfi.attemptstatusdescriptor(attemptstatusdescriptorid); + + +-- +-- Name: studentsectionassociation fk_39aa3c_repeatidentifierdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionassociation + ADD CONSTRAINT fk_39aa3c_repeatidentifierdescriptor FOREIGN KEY (repeatidentifierdescriptorid) REFERENCES edfi.repeatidentifierdescriptor(repeatidentifierdescriptorid); + + +-- +-- Name: studentsectionassociation fk_39aa3c_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionassociation + ADD CONSTRAINT fk_39aa3c_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: studentsectionassociation fk_39aa3c_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionassociation + ADD CONSTRAINT fk_39aa3c_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: administrativefundingcontroldescriptor fk_3a5d1f_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.administrativefundingcontroldescriptor + ADD CONSTRAINT fk_3a5d1f_descriptor FOREIGN KEY (administrativefundingcontroldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: eventcircumstancedescriptor fk_3a704d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.eventcircumstancedescriptor + ADD CONSTRAINT fk_3a704d_descriptor FOREIGN KEY (eventcircumstancedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionprescriptioneducationcontent fk_3ab5d4_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptioneducationcontent + ADD CONSTRAINT fk_3ab5d4_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier); + + +-- +-- Name: interventionprescriptioneducationcontent fk_3ab5d4_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptioneducationcontent + ADD CONSTRAINT fk_3ab5d4_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: assessmentidentificationcode fk_3af731_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentidentificationcode + ADD CONSTRAINT fk_3af731_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentidentificationcode fk_3af731_assessmentidentificationsystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentidentificationcode + ADD CONSTRAINT fk_3af731_assessmentidentificationsystemdescriptor FOREIGN KEY (assessmentidentificationsystemdescriptorid) REFERENCES edfi.assessmentidentificationsystemdescriptor(assessmentidentificationsystemdescriptorid); + + +-- +-- Name: graduationplancreditsbysubject fk_3b5b30_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbysubject + ADD CONSTRAINT fk_3b5b30_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: graduationplancreditsbysubject fk_3b5b30_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbysubject + ADD CONSTRAINT fk_3b5b30_credittypedescriptor FOREIGN KEY (credittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: graduationplancreditsbysubject fk_3b5b30_graduationplan; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbysubject + ADD CONSTRAINT fk_3b5b30_graduationplan FOREIGN KEY (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) REFERENCES edfi.graduationplan(educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) ON DELETE CASCADE; + + +-- +-- Name: stateeducationagencyfederalfunds fk_3c7e00_stateeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateeducationagencyfederalfunds + ADD CONSTRAINT fk_3c7e00_stateeducationagency FOREIGN KEY (stateeducationagencyid) REFERENCES edfi.stateeducationagency(stateeducationagencyid) ON DELETE CASCADE; + + +-- +-- Name: interventioneducationcontent fk_3c823d_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioneducationcontent + ADD CONSTRAINT fk_3c823d_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier); + + +-- +-- Name: interventioneducationcontent fk_3c823d_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioneducationcontent + ADD CONSTRAINT fk_3c823d_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: gradeleveldescriptor fk_3c9538_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradeleveldescriptor + ADD CONSTRAINT fk_3c9538_descriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: openstaffposition fk_3cc1d4_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffposition + ADD CONSTRAINT fk_3cc1d4_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: openstaffposition fk_3cc1d4_employmentstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffposition + ADD CONSTRAINT fk_3cc1d4_employmentstatusdescriptor FOREIGN KEY (employmentstatusdescriptorid) REFERENCES edfi.employmentstatusdescriptor(employmentstatusdescriptorid); + + +-- +-- Name: openstaffposition fk_3cc1d4_postingresultdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffposition + ADD CONSTRAINT fk_3cc1d4_postingresultdescriptor FOREIGN KEY (postingresultdescriptorid) REFERENCES edfi.postingresultdescriptor(postingresultdescriptorid); + + +-- +-- Name: openstaffposition fk_3cc1d4_programassignmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffposition + ADD CONSTRAINT fk_3cc1d4_programassignmentdescriptor FOREIGN KEY (programassignmentdescriptorid) REFERENCES edfi.programassignmentdescriptor(programassignmentdescriptorid); + + +-- +-- Name: openstaffposition fk_3cc1d4_staffclassificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffposition + ADD CONSTRAINT fk_3cc1d4_staffclassificationdescriptor FOREIGN KEY (staffclassificationdescriptorid) REFERENCES edfi.staffclassificationdescriptor(staffclassificationdescriptorid); + + +-- +-- Name: interventionappropriategradelevel fk_3d5433_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionappropriategradelevel + ADD CONSTRAINT fk_3d5433_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: interventionappropriategradelevel fk_3d5433_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionappropriategradelevel + ADD CONSTRAINT fk_3d5433_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: staffschoolassociationgradelevel fk_3db81b_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociationgradelevel + ADD CONSTRAINT fk_3db81b_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: staffschoolassociationgradelevel fk_3db81b_staffschoolassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociationgradelevel + ADD CONSTRAINT fk_3db81b_staffschoolassociation FOREIGN KEY (programassignmentdescriptorid, schoolid, staffusi) REFERENCES edfi.staffschoolassociation(programassignmentdescriptorid, schoolid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: postsecondaryinstitutionleveldescriptor fk_3dd32d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitutionleveldescriptor + ADD CONSTRAINT fk_3dd32d_descriptor FOREIGN KEY (postsecondaryinstitutionleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessmentlearningobjective fk_3e8699_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentlearningobjective + ADD CONSTRAINT fk_3e8699_learningobjective FOREIGN KEY (learningobjectiveid, learningobjectivenamespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace); + + +-- +-- Name: objectiveassessmentlearningobjective fk_3e8699_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentlearningobjective + ADD CONSTRAINT fk_3e8699_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentacademicsubject fk_400d06_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentacademicsubject + ADD CONSTRAINT fk_400d06_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: assessmentacademicsubject fk_400d06_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentacademicsubject + ADD CONSTRAINT fk_400d06_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: weapondescriptor fk_402831_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.weapondescriptor + ADD CONSTRAINT fk_402831_descriptor FOREIGN KEY (weapondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: homelessprimarynighttimeresidencedescriptor fk_41a2b1_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.homelessprimarynighttimeresidencedescriptor + ADD CONSTRAINT fk_41a2b1_descriptor FOREIGN KEY (homelessprimarynighttimeresidencedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationcontentderivativesourcelearningresourcemetadatauri fk_421bfa_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourcelearningresourcemetadatauri + ADD CONSTRAINT fk_421bfa_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationcategory fk_427110_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationcategory + ADD CONSTRAINT fk_427110_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationcategory fk_427110_educationorganizationcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationcategory + ADD CONSTRAINT fk_427110_educationorganizationcategorydescriptor FOREIGN KEY (educationorganizationcategorydescriptorid) REFERENCES edfi.educationorganizationcategorydescriptor(educationorganizationcategorydescriptorid); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation fk_42aa64_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationresponsibilityassociation + ADD CONSTRAINT fk_42aa64_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation fk_42aa64_responsibilitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationresponsibilityassociation + ADD CONSTRAINT fk_42aa64_responsibilitydescriptor FOREIGN KEY (responsibilitydescriptorid) REFERENCES edfi.responsibilitydescriptor(responsibilitydescriptorid); + + +-- +-- Name: studenteducationorganizationresponsibilityassociation fk_42aa64_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationresponsibilityassociation + ADD CONSTRAINT fk_42aa64_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: classperiodmeetingtime fk_435263_classperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.classperiodmeetingtime + ADD CONSTRAINT fk_435263_classperiod FOREIGN KEY (classperiodname, schoolid) REFERENCES edfi.classperiod(classperiodname, schoolid) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: questionformdescriptor fk_43a820_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.questionformdescriptor + ADD CONSTRAINT fk_43a820_descriptor FOREIGN KEY (questionformdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationservicecenter fk_43bbe1_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationservicecenter + ADD CONSTRAINT fk_43bbe1_educationorganization FOREIGN KEY (educationservicecenterid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationservicecenter fk_43bbe1_stateeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationservicecenter + ADD CONSTRAINT fk_43bbe1_stateeducationagency FOREIGN KEY (stateeducationagencyid) REFERENCES edfi.stateeducationagency(stateeducationagencyid); + + +-- +-- Name: languageusedescriptor fk_44c593_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.languageusedescriptor + ADD CONSTRAINT fk_44c593_descriptor FOREIGN KEY (languageusedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: graduationplancreditsbycourse fk_44e78d_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycourse + ADD CONSTRAINT fk_44e78d_credittypedescriptor FOREIGN KEY (credittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: graduationplancreditsbycourse fk_44e78d_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycourse + ADD CONSTRAINT fk_44e78d_gradeleveldescriptor FOREIGN KEY (whentakengradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: graduationplancreditsbycourse fk_44e78d_graduationplan; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycourse + ADD CONSTRAINT fk_44e78d_graduationplan FOREIGN KEY (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) REFERENCES edfi.graduationplan(educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) ON DELETE CASCADE; + + +-- +-- Name: programlearningstandard fk_44f909_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programlearningstandard + ADD CONSTRAINT fk_44f909_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: programlearningstandard fk_44f909_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programlearningstandard + ADD CONSTRAINT fk_44f909_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationorganization fk_4525e6_operationalstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganization + ADD CONSTRAINT fk_4525e6_operationalstatusdescriptor FOREIGN KEY (operationalstatusdescriptorid) REFERENCES edfi.operationalstatusdescriptor(operationalstatusdescriptorid); + + +-- +-- Name: parenttelephone fk_453ba8_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parenttelephone + ADD CONSTRAINT fk_453ba8_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: parenttelephone fk_453ba8_telephonenumbertypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parenttelephone + ADD CONSTRAINT fk_453ba8_telephonenumbertypedescriptor FOREIGN KEY (telephonenumbertypedescriptorid) REFERENCES edfi.telephonenumbertypedescriptor(telephonenumbertypedescriptorid); + + +-- +-- Name: gradebookentrytypedescriptor fk_45eb00_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrytypedescriptor + ADD CONSTRAINT fk_45eb00_descriptor FOREIGN KEY (gradebookentrytypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: sectionclassperiod fk_465c76_classperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionclassperiod + ADD CONSTRAINT fk_465c76_classperiod FOREIGN KEY (classperiodname, schoolid) REFERENCES edfi.classperiod(classperiodname, schoolid) ON UPDATE CASCADE; + + +-- +-- Name: sectionclassperiod fk_465c76_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionclassperiod + ADD CONSTRAINT fk_465c76_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: gradebookentry fk_466cfa_gradebookentrytypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentry + ADD CONSTRAINT fk_466cfa_gradebookentrytypedescriptor FOREIGN KEY (gradebookentrytypedescriptorid) REFERENCES edfi.gradebookentrytypedescriptor(gradebookentrytypedescriptorid); + + +-- +-- Name: gradebookentry fk_466cfa_gradingperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentry + ADD CONSTRAINT fk_466cfa_gradingperiod FOREIGN KEY (gradingperioddescriptorid, periodsequence, schoolid, schoolyear) REFERENCES edfi.gradingperiod(gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: gradebookentry fk_466cfa_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentry + ADD CONSTRAINT fk_466cfa_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: interventionprescriptionappropriategradelevel fk_4736c7_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionappropriategradelevel + ADD CONSTRAINT fk_4736c7_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: interventionprescriptionappropriategradelevel fk_4736c7_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionappropriategradelevel + ADD CONSTRAINT fk_4736c7_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: contacttypedescriptor fk_47719b_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contacttypedescriptor + ADD CONSTRAINT fk_47719b_descriptor FOREIGN KEY (contacttypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentitemresultdescriptor fk_47b16e_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemresultdescriptor + ADD CONSTRAINT fk_47b16e_descriptor FOREIGN KEY (assessmentitemresultdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: graduationplantypedescriptor fk_4874e0_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplantypedescriptor + ADD CONSTRAINT fk_4874e0_descriptor FOREIGN KEY (graduationplantypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationaddress fk_4925da_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddress + ADD CONSTRAINT fk_4925da_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: educationorganizationaddress fk_4925da_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddress + ADD CONSTRAINT fk_4925da_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationaddress fk_4925da_localedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddress + ADD CONSTRAINT fk_4925da_localedescriptor FOREIGN KEY (localedescriptorid) REFERENCES edfi.localedescriptor(localedescriptorid); + + +-- +-- Name: educationorganizationaddress fk_4925da_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddress + ADD CONSTRAINT fk_4925da_stateabbreviationdescriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: entrytypedescriptor fk_497112_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.entrytypedescriptor + ADD CONSTRAINT fk_497112_descriptor FOREIGN KEY (entrytypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionprescriptionappropriatesex fk_4a3f1c_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionappropriatesex + ADD CONSTRAINT fk_4a3f1c_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionprescriptionappropriatesex fk_4a3f1c_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionappropriatesex + ADD CONSTRAINT fk_4a3f1c_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: educationorganizationidentificationcode fk_4a715c_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationidentificationcode + ADD CONSTRAINT fk_4a715c_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationidentificationcode fk_4a715c_educationorganizationidentificationsystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationidentificationcode + ADD CONSTRAINT fk_4a715c_educationorganizationidentificationsystemdescriptor FOREIGN KEY (educationorganizationidentificationsystemdescriptorid) REFERENCES edfi.educationorganizationidentificationsystemdescriptor(educationorganizationidentificationsystemdescriptorid); + + +-- +-- Name: interventionprescriptionuri fk_4acf8e_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionuri + ADD CONSTRAINT fk_4acf8e_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation fk_4b43da_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentnonoffenderassociation + ADD CONSTRAINT fk_4b43da_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociation fk_4b43da_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentnonoffenderassociation + ADD CONSTRAINT fk_4b43da_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: visadescriptor fk_4b609a_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.visadescriptor + ADD CONSTRAINT fk_4b609a_descriptor FOREIGN KEY (visadescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: teachingcredentialdescriptor fk_4bb8c5_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.teachingcredentialdescriptor + ADD CONSTRAINT fk_4bb8c5_descriptor FOREIGN KEY (teachingcredentialdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: programsponsor fk_4c38bb_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programsponsor + ADD CONSTRAINT fk_4c38bb_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid) ON DELETE CASCADE; + + +-- +-- Name: programsponsor fk_4c38bb_programsponsordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programsponsor + ADD CONSTRAINT fk_4c38bb_programsponsordescriptor FOREIGN KEY (programsponsordescriptorid) REFERENCES edfi.programsponsordescriptor(programsponsordescriptorid); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociationdisciplin_4c979a fk_4c979a_disciplineincidentparticipationcodedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a + ADD CONSTRAINT fk_4c979a_disciplineincidentparticipationcodedescriptor FOREIGN KEY (disciplineincidentparticipationcodedescriptorid) REFERENCES edfi.disciplineincidentparticipationcodedescriptor(disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: studentdisciplineincidentnonoffenderassociationdisciplin_4c979a fk_4c979a_studentdisciplineincidentnonoffenderassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentnonoffenderassociationdisciplin_4c979a + ADD CONSTRAINT fk_4c979a_studentdisciplineincidentnonoffenderassociation FOREIGN KEY (incidentidentifier, schoolid, studentusi) REFERENCES edfi.studentdisciplineincidentnonoffenderassociation(incidentidentifier, schoolid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: citizenshipstatusdescriptor fk_4c97e8_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.citizenshipstatusdescriptor + ADD CONSTRAINT fk_4c97e8_descriptor FOREIGN KEY (citizenshipstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningstandardcontentstandardauthor fk_4c9e40_learningstandardcontentstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcontentstandardauthor + ADD CONSTRAINT fk_4c9e40_learningstandardcontentstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandardcontentstandard(learningstandardid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationdisability fk_4ca65b_disabilitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisability + ADD CONSTRAINT fk_4ca65b_disabilitydescriptor FOREIGN KEY (disabilitydescriptorid) REFERENCES edfi.disabilitydescriptor(disabilitydescriptorid); + + +-- +-- Name: studenteducationorganizationassociationdisability fk_4ca65b_disabilitydeterminationsourcetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisability + ADD CONSTRAINT fk_4ca65b_disabilitydeterminationsourcetypedescriptor FOREIGN KEY (disabilitydeterminationsourcetypedescriptorid) REFERENCES edfi.disabilitydeterminationsourcetypedescriptor(disabilitydeterminationsourcetypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationdisability fk_4ca65b_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisability + ADD CONSTRAINT fk_4ca65b_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: migranteducationprogramservicedescriptor fk_4cc191_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.migranteducationprogramservicedescriptor + ADD CONSTRAINT fk_4cc191_descriptor FOREIGN KEY (migranteducationprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: stafftelephone fk_4de15a_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafftelephone + ADD CONSTRAINT fk_4de15a_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: stafftelephone fk_4de15a_telephonenumbertypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafftelephone + ADD CONSTRAINT fk_4de15a_telephonenumbertypedescriptor FOREIGN KEY (telephonenumbertypedescriptorid) REFERENCES edfi.telephonenumbertypedescriptor(telephonenumbertypedescriptorid); + + +-- +-- Name: staffpersonalidentificationdocument fk_4e3afe_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffpersonalidentificationdocument + ADD CONSTRAINT fk_4e3afe_countrydescriptor FOREIGN KEY (issuercountrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: staffpersonalidentificationdocument fk_4e3afe_identificationdocumentusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffpersonalidentificationdocument + ADD CONSTRAINT fk_4e3afe_identificationdocumentusedescriptor FOREIGN KEY (identificationdocumentusedescriptorid) REFERENCES edfi.identificationdocumentusedescriptor(identificationdocumentusedescriptorid); + + +-- +-- Name: staffpersonalidentificationdocument fk_4e3afe_personalinformationverificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffpersonalidentificationdocument + ADD CONSTRAINT fk_4e3afe_personalinformationverificationdescriptor FOREIGN KEY (personalinformationverificationdescriptorid) REFERENCES edfi.personalinformationverificationdescriptor(personalinformationverificationdescriptorid); + + +-- +-- Name: staffpersonalidentificationdocument fk_4e3afe_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffpersonalidentificationdocument + ADD CONSTRAINT fk_4e3afe_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: surveycategorydescriptor fk_4e55bd_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveycategorydescriptor + ADD CONSTRAINT fk_4e55bd_descriptor FOREIGN KEY (surveycategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffeducationorganizationemploymentassociation fk_4e79b9_credential; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT fk_4e79b9_credential FOREIGN KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid) REFERENCES edfi.credential(credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: staffeducationorganizationemploymentassociation fk_4e79b9_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT fk_4e79b9_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: staffeducationorganizationemploymentassociation fk_4e79b9_employmentstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT fk_4e79b9_employmentstatusdescriptor FOREIGN KEY (employmentstatusdescriptorid) REFERENCES edfi.employmentstatusdescriptor(employmentstatusdescriptorid); + + +-- +-- Name: staffeducationorganizationemploymentassociation fk_4e79b9_separationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT fk_4e79b9_separationdescriptor FOREIGN KEY (separationdescriptorid) REFERENCES edfi.separationdescriptor(separationdescriptorid); + + +-- +-- Name: staffeducationorganizationemploymentassociation fk_4e79b9_separationreasondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT fk_4e79b9_separationreasondescriptor FOREIGN KEY (separationreasondescriptorid) REFERENCES edfi.separationreasondescriptor(separationreasondescriptorid); + + +-- +-- Name: staffeducationorganizationemploymentassociation fk_4e79b9_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationemploymentassociation + ADD CONSTRAINT fk_4e79b9_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: relationdescriptor fk_4e9305_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.relationdescriptor + ADD CONSTRAINT fk_4e9305_descriptor FOREIGN KEY (relationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: credentialfielddescriptor fk_4eab15_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialfielddescriptor + ADD CONSTRAINT fk_4eab15_descriptor FOREIGN KEY (credentialfielddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: performancebaseconversiondescriptor fk_4fc529_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.performancebaseconversiondescriptor + ADD CONSTRAINT fk_4fc529_descriptor FOREIGN KEY (performancebaseconversiondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffsectionassociation fk_515cb5_classroompositiondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffsectionassociation + ADD CONSTRAINT fk_515cb5_classroompositiondescriptor FOREIGN KEY (classroompositiondescriptorid) REFERENCES edfi.classroompositiondescriptor(classroompositiondescriptorid); + + +-- +-- Name: staffsectionassociation fk_515cb5_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffsectionassociation + ADD CONSTRAINT fk_515cb5_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: staffsectionassociation fk_515cb5_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffsectionassociation + ADD CONSTRAINT fk_515cb5_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: studentneglectedordelinquentprogramassociationneglectedo_520251 fk_520251_neglectedordelinquentprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 + ADD CONSTRAINT fk_520251_neglectedordelinquentprogramservicedescriptor FOREIGN KEY (neglectedordelinquentprogramservicedescriptorid) REFERENCES edfi.neglectedordelinquentprogramservicedescriptor(neglectedordelinquentprogramservicedescriptorid); + + +-- +-- Name: studentneglectedordelinquentprogramassociationneglectedo_520251 fk_520251_studentneglectedordelinquentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociationneglectedo_520251 + ADD CONSTRAINT fk_520251_studentneglectedordelinquentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentneglectedordelinquentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: payroll fk_53fe8d_account; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.payroll + ADD CONSTRAINT fk_53fe8d_account FOREIGN KEY (accountidentifier, educationorganizationid, fiscalyear) REFERENCES edfi.account(accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: payroll fk_53fe8d_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.payroll + ADD CONSTRAINT fk_53fe8d_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: platformtypedescriptor fk_56ac99_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.platformtypedescriptor + ADD CONSTRAINT fk_56ac99_descriptor FOREIGN KEY (platformtypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: homelessprogramservicedescriptor fk_56c464_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.homelessprogramservicedescriptor + ADD CONSTRAINT fk_56c464_descriptor FOREIGN KEY (homelessprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: contractedstaff fk_57ca0f_account; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contractedstaff + ADD CONSTRAINT fk_57ca0f_account FOREIGN KEY (accountidentifier, educationorganizationid, fiscalyear) REFERENCES edfi.account(accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: contractedstaff fk_57ca0f_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.contractedstaff + ADD CONSTRAINT fk_57ca0f_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: credentialendorsement fk_57f7d2_credential; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialendorsement + ADD CONSTRAINT fk_57f7d2_credential FOREIGN KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid) REFERENCES edfi.credential(credentialidentifier, stateofissuestateabbreviationdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentprogram fk_58013b_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentprogram + ADD CONSTRAINT fk_58013b_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentprogram fk_58013b_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentprogram + ADD CONSTRAINT fk_58013b_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: coursecompetencylevel fk_581f0f_competencyleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursecompetencylevel + ADD CONSTRAINT fk_581f0f_competencyleveldescriptor FOREIGN KEY (competencyleveldescriptorid) REFERENCES edfi.competencyleveldescriptor(competencyleveldescriptorid); + + +-- +-- Name: coursecompetencylevel fk_581f0f_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursecompetencylevel + ADD CONSTRAINT fk_581f0f_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationelectronicmail fk_582e49_electronicmailtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationelectronicmail + ADD CONSTRAINT fk_582e49_electronicmailtypedescriptor FOREIGN KEY (electronicmailtypedescriptorid) REFERENCES edfi.electronicmailtypedescriptor(electronicmailtypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationelectronicmail fk_582e49_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationelectronicmail + ADD CONSTRAINT fk_582e49_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: learningobjective fk_588d15_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjective + ADD CONSTRAINT fk_588d15_learningobjective FOREIGN KEY (parentlearningobjectiveid, parentnamespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace); + + +-- +-- Name: cohortprogram fk_59fcb5_cohort; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortprogram + ADD CONSTRAINT fk_59fcb5_cohort FOREIGN KEY (cohortidentifier, educationorganizationid) REFERENCES edfi.cohort(cohortidentifier, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: cohortprogram fk_59fcb5_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohortprogram + ADD CONSTRAINT fk_59fcb5_program FOREIGN KEY (programeducationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: gradingperiod fk_5a18f9_gradingperioddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradingperiod + ADD CONSTRAINT fk_5a18f9_gradingperioddescriptor FOREIGN KEY (gradingperioddescriptorid) REFERENCES edfi.gradingperioddescriptor(gradingperioddescriptorid); + + +-- +-- Name: gradingperiod fk_5a18f9_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradingperiod + ADD CONSTRAINT fk_5a18f9_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: gradingperiod fk_5a18f9_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradingperiod + ADD CONSTRAINT fk_5a18f9_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: localeducationagencyfederalfunds fk_5a8c0e_localeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencyfederalfunds + ADD CONSTRAINT fk_5a8c0e_localeducationagency FOREIGN KEY (localeducationagencyid) REFERENCES edfi.localeducationagency(localeducationagencyid) ON DELETE CASCADE; + + +-- +-- Name: credentialtypedescriptor fk_5a9f1d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialtypedescriptor + ADD CONSTRAINT fk_5a9f1d_descriptor FOREIGN KEY (credentialtypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationprogramparticipation fk_5c2c98_programtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationprogramparticipation + ADD CONSTRAINT fk_5c2c98_programtypedescriptor FOREIGN KEY (programtypedescriptorid) REFERENCES edfi.programtypedescriptor(programtypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationprogramparticipation fk_5c2c98_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationprogramparticipation + ADD CONSTRAINT fk_5c2c98_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: employmentstatusdescriptor fk_5ccb7e_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.employmentstatusdescriptor + ADD CONSTRAINT fk_5ccb7e_descriptor FOREIGN KEY (employmentstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: attemptstatusdescriptor fk_5d730c_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.attemptstatusdescriptor + ADD CONSTRAINT fk_5d730c_descriptor FOREIGN KEY (attemptstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentacademicrecordrecognition fk_5e049e_achievementcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordrecognition + ADD CONSTRAINT fk_5e049e_achievementcategorydescriptor FOREIGN KEY (achievementcategorydescriptorid) REFERENCES edfi.achievementcategorydescriptor(achievementcategorydescriptorid); + + +-- +-- Name: studentacademicrecordrecognition fk_5e049e_recognitiontypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordrecognition + ADD CONSTRAINT fk_5e049e_recognitiontypedescriptor FOREIGN KEY (recognitiontypedescriptorid) REFERENCES edfi.recognitiontypedescriptor(recognitiontypedescriptorid); + + +-- +-- Name: studentacademicrecordrecognition fk_5e049e_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordrecognition + ADD CONSTRAINT fk_5e049e_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: competencyobjective fk_5e9932_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.competencyobjective + ADD CONSTRAINT fk_5e9932_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: competencyobjective fk_5e9932_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.competencyobjective + ADD CONSTRAINT fk_5e9932_gradeleveldescriptor FOREIGN KEY (objectivegradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: primarylearningdeviceawayfromschooldescriptor fk_5ee08d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.primarylearningdeviceawayfromschooldescriptor + ADD CONSTRAINT fk_5ee08d_descriptor FOREIGN KEY (primarylearningdeviceawayfromschooldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationdisabilitydesignation fk_5ee8fd_disabilitydesignationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisabilitydesignation + ADD CONSTRAINT fk_5ee8fd_disabilitydesignationdescriptor FOREIGN KEY (disabilitydesignationdescriptorid) REFERENCES edfi.disabilitydesignationdescriptor(disabilitydesignationdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationdisabilitydesignation fk_5ee8fd_studenteducationorganizationassociationdisability; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationdisabilitydesignation + ADD CONSTRAINT fk_5ee8fd_studenteducationorganizationassociationdisability FOREIGN KEY (disabilitydescriptorid, educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociationdisability(disabilitydescriptorid, educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: participationstatusdescriptor fk_5f0467_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.participationstatusdescriptor + ADD CONSTRAINT fk_5f0467_descriptor FOREIGN KEY (participationstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: parent fk_5f7953_levelofeducationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parent + ADD CONSTRAINT fk_5f7953_levelofeducationdescriptor FOREIGN KEY (highestcompletedlevelofeducationdescriptorid) REFERENCES edfi.levelofeducationdescriptor(levelofeducationdescriptorid); + + +-- +-- Name: parent fk_5f7953_person; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parent + ADD CONSTRAINT fk_5f7953_person FOREIGN KEY (personid, sourcesystemdescriptorid) REFERENCES edfi.person(personid, sourcesystemdescriptorid); + + +-- +-- Name: parent fk_5f7953_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parent + ADD CONSTRAINT fk_5f7953_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: person fk_6007db_sourcesystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.person + ADD CONSTRAINT fk_6007db_sourcesystemdescriptor FOREIGN KEY (sourcesystemdescriptorid) REFERENCES edfi.sourcesystemdescriptor(sourcesystemdescriptorid); + + +-- +-- Name: studentsectionattendanceevent fk_61b087_attendanceeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceevent + ADD CONSTRAINT fk_61b087_attendanceeventcategorydescriptor FOREIGN KEY (attendanceeventcategorydescriptorid) REFERENCES edfi.attendanceeventcategorydescriptor(attendanceeventcategorydescriptorid); + + +-- +-- Name: studentsectionattendanceevent fk_61b087_educationalenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceevent + ADD CONSTRAINT fk_61b087_educationalenvironmentdescriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.educationalenvironmentdescriptor(educationalenvironmentdescriptorid); + + +-- +-- Name: studentsectionattendanceevent fk_61b087_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceevent + ADD CONSTRAINT fk_61b087_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: studentsectionattendanceevent fk_61b087_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceevent + ADD CONSTRAINT fk_61b087_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: reporterdescriptiondescriptor fk_62c0d2_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reporterdescriptiondescriptor + ADD CONSTRAINT fk_62c0d2_descriptor FOREIGN KEY (reporterdescriptiondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentinterventionattendanceevent fk_631023_attendanceeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionattendanceevent + ADD CONSTRAINT fk_631023_attendanceeventcategorydescriptor FOREIGN KEY (attendanceeventcategorydescriptorid) REFERENCES edfi.attendanceeventcategorydescriptor(attendanceeventcategorydescriptorid); + + +-- +-- Name: studentinterventionattendanceevent fk_631023_educationalenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionattendanceevent + ADD CONSTRAINT fk_631023_educationalenvironmentdescriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.educationalenvironmentdescriptor(educationalenvironmentdescriptorid); + + +-- +-- Name: studentinterventionattendanceevent fk_631023_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionattendanceevent + ADD CONSTRAINT fk_631023_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode); + + +-- +-- Name: studentinterventionattendanceevent fk_631023_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentinterventionattendanceevent + ADD CONSTRAINT fk_631023_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: providerstatusdescriptor fk_6328c9_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.providerstatusdescriptor + ADD CONSTRAINT fk_6328c9_descriptor FOREIGN KEY (providerstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: communityorganization fk_636fcf_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityorganization + ADD CONSTRAINT fk_636fcf_educationorganization FOREIGN KEY (communityorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: courselearningstandard fk_644654_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselearningstandard + ADD CONSTRAINT fk_644654_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: courselearningstandard fk_644654_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselearningstandard + ADD CONSTRAINT fk_644654_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: surveyquestionmatrix fk_64d76d_surveyquestion; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionmatrix + ADD CONSTRAINT fk_64d76d_surveyquestion FOREIGN KEY (namespace, questioncode, surveyidentifier) REFERENCES edfi.surveyquestion(namespace, questioncode, surveyidentifier) ON DELETE CASCADE; + + +-- +-- Name: schoolgradelevel fk_64d8a6_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolgradelevel + ADD CONSTRAINT fk_64d8a6_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: schoolgradelevel fk_64d8a6_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolgradelevel + ADD CONSTRAINT fk_64d8a6_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid) ON DELETE CASCADE; + + +-- +-- Name: coursetranscriptalternativecourseidentificationcode fk_6621ee_courseidentificationsystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptalternativecourseidentificationcode + ADD CONSTRAINT fk_6621ee_courseidentificationsystemdescriptor FOREIGN KEY (courseidentificationsystemdescriptorid) REFERENCES edfi.courseidentificationsystemdescriptor(courseidentificationsystemdescriptorid); + + +-- +-- Name: coursetranscriptalternativecourseidentificationcode fk_6621ee_coursetranscript; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptalternativecourseidentificationcode + ADD CONSTRAINT fk_6621ee_coursetranscript FOREIGN KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.coursetranscript(courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: populationserveddescriptor fk_66f4dc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.populationserveddescriptor + ADD CONSTRAINT fk_66f4dc_descriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: disciplinedescriptor fk_673b0a_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplinedescriptor + ADD CONSTRAINT fk_673b0a_descriptor FOREIGN KEY (disciplinedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentneglectedordelinquentprogramassociation fk_678d65_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociation + ADD CONSTRAINT fk_678d65_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentneglectedordelinquentprogramassociation fk_678d65_neglectedordelinquentprogramdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociation + ADD CONSTRAINT fk_678d65_neglectedordelinquentprogramdescriptor FOREIGN KEY (neglectedordelinquentprogramdescriptorid) REFERENCES edfi.neglectedordelinquentprogramdescriptor(neglectedordelinquentprogramdescriptorid); + + +-- +-- Name: studentneglectedordelinquentprogramassociation fk_678d65_progressleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociation + ADD CONSTRAINT fk_678d65_progressleveldescriptor FOREIGN KEY (elaprogressleveldescriptorid) REFERENCES edfi.progressleveldescriptor(progressleveldescriptorid); + + +-- +-- Name: studentneglectedordelinquentprogramassociation fk_678d65_progressleveldescriptor1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentneglectedordelinquentprogramassociation + ADD CONSTRAINT fk_678d65_progressleveldescriptor1 FOREIGN KEY (mathematicsprogressleveldescriptorid) REFERENCES edfi.progressleveldescriptor(progressleveldescriptorid); + + +-- +-- Name: studentdisciplineincidentassociation fk_679174_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociation + ADD CONSTRAINT fk_679174_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid); + + +-- +-- Name: studentdisciplineincidentassociation fk_679174_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociation + ADD CONSTRAINT fk_679174_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: studentdisciplineincidentassociation fk_679174_studentparticipationcodedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociation + ADD CONSTRAINT fk_679174_studentparticipationcodedescriptor FOREIGN KEY (studentparticipationcodedescriptorid) REFERENCES edfi.studentparticipationcodedescriptor(studentparticipationcodedescriptorid); + + +-- +-- Name: staff fk_681927_citizenshipstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff + ADD CONSTRAINT fk_681927_citizenshipstatusdescriptor FOREIGN KEY (citizenshipstatusdescriptorid) REFERENCES edfi.citizenshipstatusdescriptor(citizenshipstatusdescriptorid); + + +-- +-- Name: staff fk_681927_levelofeducationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff + ADD CONSTRAINT fk_681927_levelofeducationdescriptor FOREIGN KEY (highestcompletedlevelofeducationdescriptorid) REFERENCES edfi.levelofeducationdescriptor(levelofeducationdescriptorid); + + +-- +-- Name: staff fk_681927_oldethnicitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff + ADD CONSTRAINT fk_681927_oldethnicitydescriptor FOREIGN KEY (oldethnicitydescriptorid) REFERENCES edfi.oldethnicitydescriptor(oldethnicitydescriptorid); + + +-- +-- Name: staff fk_681927_person; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff + ADD CONSTRAINT fk_681927_person FOREIGN KEY (personid, sourcesystemdescriptorid) REFERENCES edfi.person(personid, sourcesystemdescriptorid); + + +-- +-- Name: staff fk_681927_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staff + ADD CONSTRAINT fk_681927_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: postsecondaryeventcategorydescriptor fk_6829e4_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryeventcategorydescriptor + ADD CONSTRAINT fk_6829e4_descriptor FOREIGN KEY (postsecondaryeventcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: programsponsordescriptor fk_68566b_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programsponsordescriptor + ADD CONSTRAINT fk_68566b_descriptor FOREIGN KEY (programsponsordescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: gradebookentrylearningobjective fk_68857c_gradebookentry; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrylearningobjective + ADD CONSTRAINT fk_68857c_gradebookentry FOREIGN KEY (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.gradebookentry(dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: gradebookentrylearningobjective fk_68857c_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrylearningobjective + ADD CONSTRAINT fk_68857c_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace); + + +-- +-- Name: session fk_6959b4_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.session + ADD CONSTRAINT fk_6959b4_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: session fk_6959b4_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.session + ADD CONSTRAINT fk_6959b4_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: session fk_6959b4_termdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.session + ADD CONSTRAINT fk_6959b4_termdescriptor FOREIGN KEY (termdescriptorid) REFERENCES edfi.termdescriptor(termdescriptorid); + + +-- +-- Name: staffrace fk_696d9a_racedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrace + ADD CONSTRAINT fk_696d9a_racedescriptor FOREIGN KEY (racedescriptorid) REFERENCES edfi.racedescriptor(racedescriptorid); + + +-- +-- Name: staffrace fk_696d9a_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrace + ADD CONSTRAINT fk_696d9a_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: assessmentitempossibleresponse fk_699b02_assessmentitem; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitempossibleresponse + ADD CONSTRAINT fk_699b02_assessmentitem FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.assessmentitem(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: studentprogramassociationservice fk_69cd6f_servicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramassociationservice + ADD CONSTRAINT fk_69cd6f_servicedescriptor FOREIGN KEY (servicedescriptorid) REFERENCES edfi.servicedescriptor(servicedescriptorid); + + +-- +-- Name: studentprogramassociationservice fk_69cd6f_studentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramassociationservice + ADD CONSTRAINT fk_69cd6f_studentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationcohortyear fk_69dd58_cohortyeartypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationcohortyear + ADD CONSTRAINT fk_69dd58_cohortyeartypedescriptor FOREIGN KEY (cohortyeartypedescriptorid) REFERENCES edfi.cohortyeartypedescriptor(cohortyeartypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationcohortyear fk_69dd58_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationcohortyear + ADD CONSTRAINT fk_69dd58_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studenteducationorganizationassociationcohortyear fk_69dd58_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationcohortyear + ADD CONSTRAINT fk_69dd58_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationcohortyear fk_69dd58_termdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationcohortyear + ADD CONSTRAINT fk_69dd58_termdescriptor FOREIGN KEY (termdescriptorid) REFERENCES edfi.termdescriptor(termdescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_course FOREIGN KEY (coursecode, courseeducationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid); + + +-- +-- Name: coursetranscript fk_6acf2b_courseattemptresultdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_courseattemptresultdescriptor FOREIGN KEY (courseattemptresultdescriptorid) REFERENCES edfi.courseattemptresultdescriptor(courseattemptresultdescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_courserepeatcodedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_courserepeatcodedescriptor FOREIGN KEY (courserepeatcodedescriptorid) REFERENCES edfi.courserepeatcodedescriptor(courserepeatcodedescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_credittypedescriptor FOREIGN KEY (attemptedcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_credittypedescriptor1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_credittypedescriptor1 FOREIGN KEY (earnedcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_educationorganization FOREIGN KEY (externaleducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: coursetranscript fk_6acf2b_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_gradeleveldescriptor FOREIGN KEY (whentakengradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_methodcreditearneddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_methodcreditearneddescriptor FOREIGN KEY (methodcreditearneddescriptorid) REFERENCES edfi.methodcreditearneddescriptor(methodcreditearneddescriptorid); + + +-- +-- Name: coursetranscript fk_6acf2b_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscript + ADD CONSTRAINT fk_6acf2b_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid); + + +-- +-- Name: staffclassificationdescriptor fk_6ca180_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffclassificationdescriptor + ADD CONSTRAINT fk_6ca180_descriptor FOREIGN KEY (staffclassificationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffinternationaladdress fk_6cd27e_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffinternationaladdress + ADD CONSTRAINT fk_6cd27e_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: staffinternationaladdress fk_6cd27e_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffinternationaladdress + ADD CONSTRAINT fk_6cd27e_countrydescriptor FOREIGN KEY (countrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: staffinternationaladdress fk_6cd27e_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffinternationaladdress + ADD CONSTRAINT fk_6cd27e_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: school fk_6cd2e3_administrativefundingcontroldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_administrativefundingcontroldescriptor FOREIGN KEY (administrativefundingcontroldescriptorid) REFERENCES edfi.administrativefundingcontroldescriptor(administrativefundingcontroldescriptorid); + + +-- +-- Name: school fk_6cd2e3_charterapprovalagencytypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_charterapprovalagencytypedescriptor FOREIGN KEY (charterapprovalagencytypedescriptorid) REFERENCES edfi.charterapprovalagencytypedescriptor(charterapprovalagencytypedescriptorid); + + +-- +-- Name: school fk_6cd2e3_charterstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_charterstatusdescriptor FOREIGN KEY (charterstatusdescriptorid) REFERENCES edfi.charterstatusdescriptor(charterstatusdescriptorid); + + +-- +-- Name: school fk_6cd2e3_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_educationorganization FOREIGN KEY (schoolid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: school fk_6cd2e3_internetaccessdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_internetaccessdescriptor FOREIGN KEY (internetaccessdescriptorid) REFERENCES edfi.internetaccessdescriptor(internetaccessdescriptorid); + + +-- +-- Name: school fk_6cd2e3_localeducationagency; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_localeducationagency FOREIGN KEY (localeducationagencyid) REFERENCES edfi.localeducationagency(localeducationagencyid); + + +-- +-- Name: school fk_6cd2e3_magnetspecialprogramemphasisschooldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_magnetspecialprogramemphasisschooldescriptor FOREIGN KEY (magnetspecialprogramemphasisschooldescriptorid) REFERENCES edfi.magnetspecialprogramemphasisschooldescriptor(magnetspecialprogramemphasisschooldescriptorid); + + +-- +-- Name: school fk_6cd2e3_schooltypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_schooltypedescriptor FOREIGN KEY (schooltypedescriptorid) REFERENCES edfi.schooltypedescriptor(schooltypedescriptorid); + + +-- +-- Name: school fk_6cd2e3_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_schoolyeartype FOREIGN KEY (charterapprovalschoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: school fk_6cd2e3_titleipartaschooldesignationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.school + ADD CONSTRAINT fk_6cd2e3_titleipartaschooldesignationdescriptor FOREIGN KEY (titleipartaschooldesignationdescriptorid) REFERENCES edfi.titleipartaschooldesignationdescriptor(titleipartaschooldesignationdescriptorid); + + +-- +-- Name: bellscheduledate fk_6e1291_bellschedule; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellscheduledate + ADD CONSTRAINT fk_6e1291_bellschedule FOREIGN KEY (bellschedulename, schoolid) REFERENCES edfi.bellschedule(bellschedulename, schoolid) ON DELETE CASCADE; + + +-- +-- Name: countrydescriptor fk_6e4222_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.countrydescriptor + ADD CONSTRAINT fk_6e4222_descriptor FOREIGN KEY (countrydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: stateabbreviationdescriptor fk_6ee971_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stateabbreviationdescriptor + ADD CONSTRAINT fk_6ee971_descriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionstaff fk_6fa51c_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstaff + ADD CONSTRAINT fk_6fa51c_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionstaff fk_6fa51c_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstaff + ADD CONSTRAINT fk_6fa51c_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: studentschoolassociationalternativegraduationplan fk_70e978_graduationplan; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociationalternativegraduationplan + ADD CONSTRAINT fk_70e978_graduationplan FOREIGN KEY (alternativeeducationorganizationid, alternativegraduationplantypedescriptorid, alternativegraduationschoolyear) REFERENCES edfi.graduationplan(educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: studentschoolassociationalternativegraduationplan fk_70e978_studentschoolassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociationalternativegraduationplan + ADD CONSTRAINT fk_70e978_studentschoolassociation FOREIGN KEY (entrydate, schoolid, studentusi) REFERENCES edfi.studentschoolassociation(entrydate, schoolid, studentusi) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: learningstandardcontentstandard fk_70f675_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcontentstandard + ADD CONSTRAINT fk_70f675_educationorganization FOREIGN KEY (mandatingeducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: learningstandardcontentstandard fk_70f675_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcontentstandard + ADD CONSTRAINT fk_70f675_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid) ON DELETE CASCADE; + + +-- +-- Name: learningstandardcontentstandard fk_70f675_publicationstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcontentstandard + ADD CONSTRAINT fk_70f675_publicationstatusdescriptor FOREIGN KEY (publicationstatusdescriptorid) REFERENCES edfi.publicationstatusdescriptor(publicationstatusdescriptorid); + + +-- +-- Name: studentprogramassociation fk_729018_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentprogramassociation + ADD CONSTRAINT fk_729018_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: sessionacademicweek fk_72eb60_academicweek; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessionacademicweek + ADD CONSTRAINT fk_72eb60_academicweek FOREIGN KEY (schoolid, weekidentifier) REFERENCES edfi.academicweek(schoolid, weekidentifier); + + +-- +-- Name: sessionacademicweek fk_72eb60_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessionacademicweek + ADD CONSTRAINT fk_72eb60_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation fk_730be1_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponseeducationorganizationtargetassociation + ADD CONSTRAINT fk_730be1_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: surveysectionresponseeducationorganizationtargetassociation fk_730be1_surveysectionresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionresponseeducationorganizationtargetassociation + ADD CONSTRAINT fk_730be1_surveysectionresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle) REFERENCES edfi.surveysectionresponse(namespace, surveyidentifier, surveyresponseidentifier, surveysectiontitle); + + +-- +-- Name: staffeducationorganizationcontactassociation fk_735dd8_contacttypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociation + ADD CONSTRAINT fk_735dd8_contacttypedescriptor FOREIGN KEY (contacttypedescriptorid) REFERENCES edfi.contacttypedescriptor(contacttypedescriptorid); + + +-- +-- Name: staffeducationorganizationcontactassociation fk_735dd8_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociation + ADD CONSTRAINT fk_735dd8_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: staffeducationorganizationcontactassociation fk_735dd8_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociation + ADD CONSTRAINT fk_735dd8_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: disciplineactiondiscipline fk_73601f_disciplineaction; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactiondiscipline + ADD CONSTRAINT fk_73601f_disciplineaction FOREIGN KEY (disciplineactionidentifier, disciplinedate, studentusi) REFERENCES edfi.disciplineaction(disciplineactionidentifier, disciplinedate, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineactiondiscipline fk_73601f_disciplinedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactiondiscipline + ADD CONSTRAINT fk_73601f_disciplinedescriptor FOREIGN KEY (disciplinedescriptorid) REFERENCES edfi.disciplinedescriptor(disciplinedescriptorid); + + +-- +-- Name: entrygradelevelreasondescriptor fk_737b8e_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.entrygradelevelreasondescriptor + ADD CONSTRAINT fk_737b8e_descriptor FOREIGN KEY (entrygradelevelreasondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffeducationorganizationcontactassociationtelephone fk_742dd2_staffeducationorganizationcontactassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationtelephone + ADD CONSTRAINT fk_742dd2_staffeducationorganizationcontactassociation FOREIGN KEY (contacttitle, educationorganizationid, staffusi) REFERENCES edfi.staffeducationorganizationcontactassociation(contacttitle, educationorganizationid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: staffeducationorganizationcontactassociationtelephone fk_742dd2_telephonenumbertypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationtelephone + ADD CONSTRAINT fk_742dd2_telephonenumbertypedescriptor FOREIGN KEY (telephonenumbertypedescriptorid) REFERENCES edfi.telephonenumbertypedescriptor(telephonenumbertypedescriptorid); + + +-- +-- Name: staffidentificationcode fk_7483c6_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationcode + ADD CONSTRAINT fk_7483c6_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: staffidentificationcode fk_7483c6_staffidentificationsystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationcode + ADD CONSTRAINT fk_7483c6_staffidentificationsystemdescriptor FOREIGN KEY (staffidentificationsystemdescriptorid) REFERENCES edfi.staffidentificationsystemdescriptor(staffidentificationsystemdescriptorid); + + +-- +-- Name: educationorganizationpeerassociation fk_74e4e5_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationpeerassociation + ADD CONSTRAINT fk_74e4e5_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: educationorganizationpeerassociation fk_74e4e5_educationorganization1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationpeerassociation + ADD CONSTRAINT fk_74e4e5_educationorganization1 FOREIGN KEY (peereducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: careerpathwaydescriptor fk_768c51_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.careerpathwaydescriptor + ADD CONSTRAINT fk_768c51_descriptor FOREIGN KEY (careerpathwaydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationcategorydescriptor fk_7791ef_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationcategorydescriptor + ADD CONSTRAINT fk_7791ef_descriptor FOREIGN KEY (educationorganizationcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessment fk_7808ee_assessmentcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessment + ADD CONSTRAINT fk_7808ee_assessmentcategorydescriptor FOREIGN KEY (assessmentcategorydescriptorid) REFERENCES edfi.assessmentcategorydescriptor(assessmentcategorydescriptorid); + + +-- +-- Name: assessment fk_7808ee_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessment + ADD CONSTRAINT fk_7808ee_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: schoolcategory fk_789691_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolcategory + ADD CONSTRAINT fk_789691_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid) ON DELETE CASCADE; + + +-- +-- Name: schoolcategory fk_789691_schoolcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolcategory + ADD CONSTRAINT fk_789691_schoolcategorydescriptor FOREIGN KEY (schoolcategorydescriptorid) REFERENCES edfi.schoolcategorydescriptor(schoolcategorydescriptorid); + + +-- +-- Name: studentschoolattendanceevent fk_78fd7f_attendanceeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT fk_78fd7f_attendanceeventcategorydescriptor FOREIGN KEY (attendanceeventcategorydescriptorid) REFERENCES edfi.attendanceeventcategorydescriptor(attendanceeventcategorydescriptorid); + + +-- +-- Name: studentschoolattendanceevent fk_78fd7f_educationalenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT fk_78fd7f_educationalenvironmentdescriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.educationalenvironmentdescriptor(educationalenvironmentdescriptorid); + + +-- +-- Name: studentschoolattendanceevent fk_78fd7f_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT fk_78fd7f_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: studentschoolattendanceevent fk_78fd7f_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT fk_78fd7f_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: studentschoolattendanceevent fk_78fd7f_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT fk_78fd7f_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: reasonexiteddescriptor fk_790724_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reasonexiteddescriptor + ADD CONSTRAINT fk_790724_descriptor FOREIGN KEY (reasonexiteddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationinstitutiontelephone fk_79895a_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinstitutiontelephone + ADD CONSTRAINT fk_79895a_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationinstitutiontelephone fk_79895a_institutiontelephonenumbertypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinstitutiontelephone + ADD CONSTRAINT fk_79895a_institutiontelephonenumbertypedescriptor FOREIGN KEY (institutiontelephonenumbertypedescriptorid) REFERENCES edfi.institutiontelephonenumbertypedescriptor(institutiontelephonenumbertypedescriptorid); + + +-- +-- Name: mediumofinstructiondescriptor fk_7a8947_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.mediumofinstructiondescriptor + ADD CONSTRAINT fk_7a8947_descriptor FOREIGN KEY (mediumofinstructiondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: sectionattendancetakenevent fk_7bbbe7_calendardate; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionattendancetakenevent + ADD CONSTRAINT fk_7bbbe7_calendardate FOREIGN KEY (calendarcode, date, schoolid, schoolyear) REFERENCES edfi.calendardate(calendarcode, date, schoolid, schoolyear); + + +-- +-- Name: sectionattendancetakenevent fk_7bbbe7_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionattendancetakenevent + ADD CONSTRAINT fk_7bbbe7_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: sectionattendancetakenevent fk_7bbbe7_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionattendancetakenevent + ADD CONSTRAINT fk_7bbbe7_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: progressleveldescriptor fk_7bf630_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.progressleveldescriptor + ADD CONSTRAINT fk_7bf630_descriptor FOREIGN KEY (progressleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: providerprofitabilitydescriptor fk_7c3adc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.providerprofitabilitydescriptor + ADD CONSTRAINT fk_7c3adc_descriptor FOREIGN KEY (providerprofitabilitydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: charterstatusdescriptor fk_7c48cd_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.charterstatusdescriptor + ADD CONSTRAINT fk_7c48cd_descriptor FOREIGN KEY (charterstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenttitleipartaprogramassociationservice fk_7d2fb4_servicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociationservice + ADD CONSTRAINT fk_7d2fb4_servicedescriptor FOREIGN KEY (servicedescriptorid) REFERENCES edfi.servicedescriptor(servicedescriptorid); + + +-- +-- Name: studenttitleipartaprogramassociationservice fk_7d2fb4_studenttitleipartaprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociationservice + ADD CONSTRAINT fk_7d2fb4_studenttitleipartaprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studenttitleipartaprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: assessmentperioddescriptor fk_7e11fe_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentperioddescriptor + ADD CONSTRAINT fk_7e11fe_descriptor FOREIGN KEY (assessmentperioddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: account fk_7e1b0d_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.account + ADD CONSTRAINT fk_7e1b0d_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: accountclassificationdescriptor fk_7efddd_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountclassificationdescriptor + ADD CONSTRAINT fk_7efddd_descriptor FOREIGN KEY (accountclassificationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentassessmentitem fk_7f600a_assessmentitem; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentitem + ADD CONSTRAINT fk_7f600a_assessmentitem FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.assessmentitem(assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: studentassessmentitem fk_7f600a_assessmentitemresultdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentitem + ADD CONSTRAINT fk_7f600a_assessmentitemresultdescriptor FOREIGN KEY (assessmentitemresultdescriptorid) REFERENCES edfi.assessmentitemresultdescriptor(assessmentitemresultdescriptorid); + + +-- +-- Name: studentassessmentitem fk_7f600a_responseindicatordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentitem + ADD CONSTRAINT fk_7f600a_responseindicatordescriptor FOREIGN KEY (responseindicatordescriptorid) REFERENCES edfi.responseindicatordescriptor(responseindicatordescriptorid); + + +-- +-- Name: studentassessmentitem fk_7f600a_studentassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentitem + ADD CONSTRAINT fk_7f600a_studentassessment FOREIGN KEY (assessmentidentifier, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessment(assessmentidentifier, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: staffdisciplineincidentassociationdisciplineincidentpart_7fa4be fk_7fa4be_disciplineincidentparticipationcodedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be + ADD CONSTRAINT fk_7fa4be_disciplineincidentparticipationcodedescriptor FOREIGN KEY (disciplineincidentparticipationcodedescriptorid) REFERENCES edfi.disciplineincidentparticipationcodedescriptor(disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: staffdisciplineincidentassociationdisciplineincidentpart_7fa4be fk_7fa4be_staffdisciplineincidentassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffdisciplineincidentassociationdisciplineincidentpart_7fa4be + ADD CONSTRAINT fk_7fa4be_staffdisciplineincidentassociation FOREIGN KEY (incidentidentifier, schoolid, staffusi) REFERENCES edfi.staffdisciplineincidentassociation(incidentidentifier, schoolid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: internetaccesstypeinresidencedescriptor fk_8007d5_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.internetaccesstypeinresidencedescriptor + ADD CONSTRAINT fk_8007d5_descriptor FOREIGN KEY (internetaccesstypeinresidencedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentsectionattendanceeventclassperiod fk_80c6c1_classperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceeventclassperiod + ADD CONSTRAINT fk_80c6c1_classperiod FOREIGN KEY (classperiodname, schoolid) REFERENCES edfi.classperiod(classperiodname, schoolid) ON UPDATE CASCADE; + + +-- +-- Name: studentsectionattendanceeventclassperiod fk_80c6c1_studentsectionattendanceevent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentsectionattendanceeventclassperiod + ADD CONSTRAINT fk_80c6c1_studentsectionattendanceevent FOREIGN KEY (attendanceeventcategorydescriptorid, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.studentsectionattendanceevent(attendanceeventcategorydescriptorid, eventdate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationprogramparticipat_810575 fk_810575_programcharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationprogramparticipat_810575 + ADD CONSTRAINT fk_810575_programcharacteristicdescriptor FOREIGN KEY (programcharacteristicdescriptorid) REFERENCES edfi.programcharacteristicdescriptor(programcharacteristicdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationprogramparticipat_810575 fk_810575_studenteducationorganizationassociationprogrampartici; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationprogramparticipat_810575 + ADD CONSTRAINT fk_810575_studenteducationorganizationassociationprogrampartici FOREIGN KEY (educationorganizationid, programtypedescriptorid, studentusi) REFERENCES edfi.studenteducationorganizationassociationprogramparticipation(educationorganizationid, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: learningstandardcategorydescriptor fk_814fc1_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardcategorydescriptor + ADD CONSTRAINT fk_814fc1_descriptor FOREIGN KEY (learningstandardcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningstandardprerequisitelearningstandard fk_81b800_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardprerequisitelearningstandard + ADD CONSTRAINT fk_81b800_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid) ON DELETE CASCADE; + + +-- +-- Name: learningstandardprerequisitelearningstandard fk_81b800_learningstandard1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardprerequisitelearningstandard + ADD CONSTRAINT fk_81b800_learningstandard1 FOREIGN KEY (prerequisitelearningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: oldethnicitydescriptor fk_821652_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.oldethnicitydescriptor + ADD CONSTRAINT fk_821652_descriptor FOREIGN KEY (oldethnicitydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentacademicrecordclassranking fk_8299aa_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordclassranking + ADD CONSTRAINT fk_8299aa_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentschoolfoodserviceprogramassociation fk_82e1e5_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolfoodserviceprogramassociation + ADD CONSTRAINT fk_82e1e5_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: grade fk_839e20_gradetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.grade + ADD CONSTRAINT fk_839e20_gradetypedescriptor FOREIGN KEY (gradetypedescriptorid) REFERENCES edfi.gradetypedescriptor(gradetypedescriptorid); + + +-- +-- Name: grade fk_839e20_gradingperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.grade + ADD CONSTRAINT fk_839e20_gradingperiod FOREIGN KEY (gradingperioddescriptorid, gradingperiodsequence, schoolid, gradingperiodschoolyear) REFERENCES edfi.gradingperiod(gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: grade fk_839e20_performancebaseconversiondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.grade + ADD CONSTRAINT fk_839e20_performancebaseconversiondescriptor FOREIGN KEY (performancebaseconversiondescriptorid) REFERENCES edfi.performancebaseconversiondescriptor(performancebaseconversiondescriptorid); + + +-- +-- Name: grade fk_839e20_studentsectionassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.grade + ADD CONSTRAINT fk_839e20_studentsectionassociation FOREIGN KEY (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.studentsectionassociation(begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) ON UPDATE CASCADE; + + +-- +-- Name: diagnosisdescriptor fk_843d48_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.diagnosisdescriptor + ADD CONSTRAINT fk_843d48_descriptor FOREIGN KEY (diagnosisdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationindicatorperiod fk_8486ae_educationorganizationindicator; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicatorperiod + ADD CONSTRAINT fk_8486ae_educationorganizationindicator FOREIGN KEY (educationorganizationid, indicatordescriptorid) REFERENCES edfi.educationorganizationindicator(educationorganizationid, indicatordescriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentacademicrecordreportcard fk_84e5e0_reportcard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordreportcard + ADD CONSTRAINT fk_84e5e0_reportcard FOREIGN KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) REFERENCES edfi.reportcard(educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi); + + +-- +-- Name: studentacademicrecordreportcard fk_84e5e0_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordreportcard + ADD CONSTRAINT fk_84e5e0_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: reportcardgradepointaverage fk_8574ad_gradepointaveragetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardgradepointaverage + ADD CONSTRAINT fk_8574ad_gradepointaveragetypedescriptor FOREIGN KEY (gradepointaveragetypedescriptorid) REFERENCES edfi.gradepointaveragetypedescriptor(gradepointaveragetypedescriptorid); + + +-- +-- Name: reportcardgradepointaverage fk_8574ad_reportcard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardgradepointaverage + ADD CONSTRAINT fk_8574ad_reportcard FOREIGN KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) REFERENCES edfi.reportcard(educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) ON DELETE CASCADE; + + +-- +-- Name: parentelectronicmail fk_85798e_electronicmailtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentelectronicmail + ADD CONSTRAINT fk_85798e_electronicmailtypedescriptor FOREIGN KEY (electronicmailtypedescriptorid) REFERENCES edfi.electronicmailtypedescriptor(electronicmailtypedescriptorid); + + +-- +-- Name: parentelectronicmail fk_85798e_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentelectronicmail + ADD CONSTRAINT fk_85798e_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: studentschoolassociation fk_857b52_calendar; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_calendar FOREIGN KEY (calendarcode, schoolid, schoolyear) REFERENCES edfi.calendar(calendarcode, schoolid, schoolyear); + + +-- +-- Name: studentschoolassociation fk_857b52_entrygradelevelreasondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_entrygradelevelreasondescriptor FOREIGN KEY (entrygradelevelreasondescriptorid) REFERENCES edfi.entrygradelevelreasondescriptor(entrygradelevelreasondescriptorid); + + +-- +-- Name: studentschoolassociation fk_857b52_entrytypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_entrytypedescriptor FOREIGN KEY (entrytypedescriptorid) REFERENCES edfi.entrytypedescriptor(entrytypedescriptorid); + + +-- +-- Name: studentschoolassociation fk_857b52_exitwithdrawtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_exitwithdrawtypedescriptor FOREIGN KEY (exitwithdrawtypedescriptorid) REFERENCES edfi.exitwithdrawtypedescriptor(exitwithdrawtypedescriptorid); + + +-- +-- Name: studentschoolassociation fk_857b52_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_gradeleveldescriptor FOREIGN KEY (entrygradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: studentschoolassociation fk_857b52_graduationplan; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_graduationplan FOREIGN KEY (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) REFERENCES edfi.graduationplan(educationorganizationid, graduationplantypedescriptorid, graduationschoolyear); + + +-- +-- Name: studentschoolassociation fk_857b52_residencystatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_residencystatusdescriptor FOREIGN KEY (residencystatusdescriptorid) REFERENCES edfi.residencystatusdescriptor(residencystatusdescriptorid); + + +-- +-- Name: studentschoolassociation fk_857b52_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: studentschoolassociation fk_857b52_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentschoolassociation fk_857b52_schoolyeartype1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_schoolyeartype1 FOREIGN KEY (classofschoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentschoolassociation fk_857b52_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociation + ADD CONSTRAINT fk_857b52_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb fk_85a0eb_schoolfoodserviceprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + ADD CONSTRAINT fk_85a0eb_schoolfoodserviceprogramservicedescriptor FOREIGN KEY (schoolfoodserviceprogramservicedescriptorid) REFERENCES edfi.schoolfoodserviceprogramservicedescriptor(schoolfoodserviceprogramservicedescriptorid); + + +-- +-- Name: studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb fk_85a0eb_studentschoolfoodserviceprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + ADD CONSTRAINT fk_85a0eb_studentschoolfoodserviceprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentschoolfoodserviceprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: deliverymethoddescriptor fk_85b4c1_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.deliverymethoddescriptor + ADD CONSTRAINT fk_85b4c1_descriptor FOREIGN KEY (deliverymethoddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentmigranteducationprogramassociation fk_85e741_continuationofservicesreasondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentmigranteducationprogramassociation + ADD CONSTRAINT fk_85e741_continuationofservicesreasondescriptor FOREIGN KEY (continuationofservicesreasondescriptorid) REFERENCES edfi.continuationofservicesreasondescriptor(continuationofservicesreasondescriptorid); + + +-- +-- Name: studentmigranteducationprogramassociation fk_85e741_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentmigranteducationprogramassociation + ADD CONSTRAINT fk_85e741_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: languagedescriptor fk_8625fa_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.languagedescriptor + ADD CONSTRAINT fk_8625fa_descriptor FOREIGN KEY (languagedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: graduationplanrequiredassessmentperformancelevel fk_876ba3_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentperformancelevel + ADD CONSTRAINT fk_876ba3_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: graduationplanrequiredassessmentperformancelevel fk_876ba3_graduationplanrequiredassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentperformancelevel + ADD CONSTRAINT fk_876ba3_graduationplanrequiredassessment FOREIGN KEY (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace) REFERENCES edfi.graduationplanrequiredassessment(assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace) ON DELETE CASCADE; + + +-- +-- Name: graduationplanrequiredassessmentperformancelevel fk_876ba3_performanceleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentperformancelevel + ADD CONSTRAINT fk_876ba3_performanceleveldescriptor FOREIGN KEY (performanceleveldescriptorid) REFERENCES edfi.performanceleveldescriptor(performanceleveldescriptorid); + + +-- +-- Name: graduationplanrequiredassessmentperformancelevel fk_876ba3_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentperformancelevel + ADD CONSTRAINT fk_876ba3_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: interventionstudyappropriategradelevel fk_87d32b_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyappropriategradelevel + ADD CONSTRAINT fk_87d32b_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: interventionstudyappropriategradelevel fk_87d32b_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyappropriategradelevel + ADD CONSTRAINT fk_87d32b_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: staffeducationorganizationcontactassociationaddress fk_893629_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddress + ADD CONSTRAINT fk_893629_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: staffeducationorganizationcontactassociationaddress fk_893629_localedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddress + ADD CONSTRAINT fk_893629_localedescriptor FOREIGN KEY (localedescriptorid) REFERENCES edfi.localedescriptor(localedescriptorid); + + +-- +-- Name: staffeducationorganizationcontactassociationaddress fk_893629_staffeducationorganizationcontactassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddress + ADD CONSTRAINT fk_893629_staffeducationorganizationcontactassociation FOREIGN KEY (contacttitle, educationorganizationid, staffusi) REFERENCES edfi.staffeducationorganizationcontactassociation(contacttitle, educationorganizationid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: staffeducationorganizationcontactassociationaddress fk_893629_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddress + ADD CONSTRAINT fk_893629_stateabbreviationdescriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: calendardate fk_8a9a67_calendar; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendardate + ADD CONSTRAINT fk_8a9a67_calendar FOREIGN KEY (calendarcode, schoolid, schoolyear) REFERENCES edfi.calendar(calendarcode, schoolid, schoolyear); + + +-- +-- Name: studenttitleipartaprogramassociationtitleipartaprogramservice fk_8adb29_studenttitleipartaprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociationtitleipartaprogramservice + ADD CONSTRAINT fk_8adb29_studenttitleipartaprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studenttitleipartaprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenttitleipartaprogramassociationtitleipartaprogramservice fk_8adb29_titleipartaprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenttitleipartaprogramassociationtitleipartaprogramservice + ADD CONSTRAINT fk_8adb29_titleipartaprogramservicedescriptor FOREIGN KEY (titleipartaprogramservicedescriptorid) REFERENCES edfi.titleipartaprogramservicedescriptor(titleipartaprogramservicedescriptorid); + + +-- +-- Name: disabilitydesignationdescriptor fk_8b9171_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disabilitydesignationdescriptor + ADD CONSTRAINT fk_8b9171_descriptor FOREIGN KEY (disabilitydesignationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningstandard fk_8ceb4c_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandard + ADD CONSTRAINT fk_8ceb4c_learningstandard FOREIGN KEY (parentlearningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: learningstandard fk_8ceb4c_learningstandardcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandard + ADD CONSTRAINT fk_8ceb4c_learningstandardcategorydescriptor FOREIGN KEY (learningstandardcategorydescriptorid) REFERENCES edfi.learningstandardcategorydescriptor(learningstandardcategorydescriptorid); + + +-- +-- Name: learningstandard fk_8ceb4c_learningstandardscopedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandard + ADD CONSTRAINT fk_8ceb4c_learningstandardscopedescriptor FOREIGN KEY (learningstandardscopedescriptorid) REFERENCES edfi.learningstandardscopedescriptor(learningstandardscopedescriptorid); + + +-- +-- Name: sectionofferedgradelevel fk_8d3fd8_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionofferedgradelevel + ADD CONSTRAINT fk_8d3fd8_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: sectionofferedgradelevel fk_8d3fd8_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectionofferedgradelevel + ADD CONSTRAINT fk_8d3fd8_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: surveyresponse fk_8d6383_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponse + ADD CONSTRAINT fk_8d6383_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi); + + +-- +-- Name: surveyresponse fk_8d6383_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponse + ADD CONSTRAINT fk_8d6383_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: surveyresponse fk_8d6383_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponse + ADD CONSTRAINT fk_8d6383_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: surveyresponse fk_8d6383_survey; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponse + ADD CONSTRAINT fk_8d6383_survey FOREIGN KEY (namespace, surveyidentifier) REFERENCES edfi.survey(namespace, surveyidentifier); + + +-- +-- Name: parentinternationaladdress fk_8d650e_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentinternationaladdress + ADD CONSTRAINT fk_8d650e_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: parentinternationaladdress fk_8d650e_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentinternationaladdress + ADD CONSTRAINT fk_8d650e_countrydescriptor FOREIGN KEY (countrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: parentinternationaladdress fk_8d650e_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentinternationaladdress + ADD CONSTRAINT fk_8d650e_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: localeducationagencycategorydescriptor fk_8db9a2_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localeducationagencycategorydescriptor + ADD CONSTRAINT fk_8db9a2_descriptor FOREIGN KEY (localeducationagencycategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_barriertointernetaccessinresidencedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_barriertointernetaccessinresidencedescriptor FOREIGN KEY (barriertointernetaccessinresidencedescriptorid) REFERENCES edfi.barriertointernetaccessinresidencedescriptor(barriertointernetaccessinresidencedescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_internetaccesstypeinresidencedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_internetaccesstypeinresidencedescriptor FOREIGN KEY (internetaccesstypeinresidencedescriptorid) REFERENCES edfi.internetaccesstypeinresidencedescriptor(internetaccesstypeinresidencedescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_internetperformanceinresidencedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_internetperformanceinresidencedescriptor FOREIGN KEY (internetperformanceinresidencedescriptorid) REFERENCES edfi.internetperformanceinresidencedescriptor(internetperformanceinresidencedescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_limitedenglishproficiencydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_limitedenglishproficiencydescriptor FOREIGN KEY (limitedenglishproficiencydescriptorid) REFERENCES edfi.limitedenglishproficiencydescriptor(limitedenglishproficiencydescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_oldethnicitydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_oldethnicitydescriptor FOREIGN KEY (oldethnicitydescriptorid) REFERENCES edfi.oldethnicitydescriptor(oldethnicitydescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_primarylearningdeviceaccessdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_primarylearningdeviceaccessdescriptor FOREIGN KEY (primarylearningdeviceaccessdescriptorid) REFERENCES edfi.primarylearningdeviceaccessdescriptor(primarylearningdeviceaccessdescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_primarylearningdeviceawayfromschooldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_primarylearningdeviceawayfromschooldescriptor FOREIGN KEY (primarylearningdeviceawayfromschooldescriptorid) REFERENCES edfi.primarylearningdeviceawayfromschooldescriptor(primarylearningdeviceawayfromschooldescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_primarylearningdeviceproviderdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_primarylearningdeviceproviderdescriptor FOREIGN KEY (primarylearningdeviceproviderdescriptorid) REFERENCES edfi.primarylearningdeviceproviderdescriptor(primarylearningdeviceproviderdescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: studenteducationorganizationassociation fk_8e1257_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociation + ADD CONSTRAINT fk_8e1257_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: interventionstudystateabbreviation fk_8e9d64_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudystateabbreviation + ADD CONSTRAINT fk_8e9d64_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionstudystateabbreviation fk_8e9d64_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudystateabbreviation + ADD CONSTRAINT fk_8e9d64_stateabbreviationdescriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: schoolchoiceimplementstatusdescriptor fk_8f4ff8_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolchoiceimplementstatusdescriptor + ADD CONSTRAINT fk_8f4ff8_descriptor FOREIGN KEY (schoolchoiceimplementstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: programassignmentdescriptor fk_8f5a42_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programassignmentdescriptor + ADD CONSTRAINT fk_8f5a42_descriptor FOREIGN KEY (programassignmentdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionstudyuri fk_9046e7_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyuri + ADD CONSTRAINT fk_9046e7_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: program fk_90920d_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.program + ADD CONSTRAINT fk_90920d_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: program fk_90920d_programtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.program + ADD CONSTRAINT fk_90920d_programtypedescriptor FOREIGN KEY (programtypedescriptorid) REFERENCES edfi.programtypedescriptor(programtypedescriptorid); + + +-- +-- Name: learningstandardidentificationcode fk_92327a_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardidentificationcode + ADD CONSTRAINT fk_92327a_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid) ON DELETE CASCADE; + + +-- +-- Name: disciplineincidentparticipationcodedescriptor fk_923786_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentparticipationcodedescriptor + ADD CONSTRAINT fk_923786_descriptor FOREIGN KEY (disciplineincidentparticipationcodedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentlanguageinstructionprogramassociation fk_92de5d_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlanguageinstructionprogramassociation + ADD CONSTRAINT fk_92de5d_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: technicalskillsassessmentdescriptor fk_92e2f1_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.technicalskillsassessmentdescriptor + ADD CONSTRAINT fk_92e2f1_descriptor FOREIGN KEY (technicalskillsassessmentdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: gradelearningstandardgrade fk_92f7f8_grade; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradelearningstandardgrade + ADD CONSTRAINT fk_92f7f8_grade FOREIGN KEY (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.grade(begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: gradelearningstandardgrade fk_92f7f8_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradelearningstandardgrade + ADD CONSTRAINT fk_92f7f8_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: gradelearningstandardgrade fk_92f7f8_performancebaseconversiondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradelearningstandardgrade + ADD CONSTRAINT fk_92f7f8_performancebaseconversiondescriptor FOREIGN KEY (performancebaseconversiondescriptorid) REFERENCES edfi.performancebaseconversiondescriptor(performancebaseconversiondescriptorid); + + +-- +-- Name: titleipartaschooldesignationdescriptor fk_935362_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.titleipartaschooldesignationdescriptor + ADD CONSTRAINT fk_935362_descriptor FOREIGN KEY (titleipartaschooldesignationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: gradepointaveragetypedescriptor fk_95d02c_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradepointaveragetypedescriptor + ADD CONSTRAINT fk_95d02c_descriptor FOREIGN KEY (gradepointaveragetypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffleaveeventcategorydescriptor fk_963eb5_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffleaveeventcategorydescriptor + ADD CONSTRAINT fk_963eb5_descriptor FOREIGN KEY (staffleaveeventcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationaddressperiod fk_9739a2_studenteducationorganizationassociationaddress; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddressperiod + ADD CONSTRAINT fk_9739a2_studenteducationorganizationassociationaddress FOREIGN KEY (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi) REFERENCES edfi.studenteducationorganizationassociationaddress(addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername, studentusi) ON DELETE CASCADE; + + +-- +-- Name: resultdatatypetypedescriptor fk_9809bc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.resultdatatypetypedescriptor + ADD CONSTRAINT fk_9809bc_descriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationcontentderivativesourceeducationcontent fk_98cd8a_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourceeducationcontent + ADD CONSTRAINT fk_98cd8a_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: educationcontentderivativesourceeducationcontent fk_98cd8a_educationcontent1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentderivativesourceeducationcontent + ADD CONSTRAINT fk_98cd8a_educationcontent1 FOREIGN KEY (derivativesourcecontentidentifier) REFERENCES edfi.educationcontent(contentidentifier); + + +-- +-- Name: assessmentscorerangelearningstandardlearningstandard fk_9960a9_assessmentscorerangelearningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandardlearningstandard + ADD CONSTRAINT fk_9960a9_assessmentscorerangelearningstandard FOREIGN KEY (assessmentidentifier, namespace, scorerangeid) REFERENCES edfi.assessmentscorerangelearningstandard(assessmentidentifier, namespace, scorerangeid) ON DELETE CASCADE; + + +-- +-- Name: assessmentscorerangelearningstandardlearningstandard fk_9960a9_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandardlearningstandard + ADD CONSTRAINT fk_9960a9_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: educationcontent fk_9965a5_contentclassdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontent + ADD CONSTRAINT fk_9965a5_contentclassdescriptor FOREIGN KEY (contentclassdescriptorid) REFERENCES edfi.contentclassdescriptor(contentclassdescriptorid); + + +-- +-- Name: educationcontent fk_9965a5_costratedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontent + ADD CONSTRAINT fk_9965a5_costratedescriptor FOREIGN KEY (costratedescriptorid) REFERENCES edfi.costratedescriptor(costratedescriptorid); + + +-- +-- Name: educationcontent fk_9965a5_interactivitystyledescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontent + ADD CONSTRAINT fk_9965a5_interactivitystyledescriptor FOREIGN KEY (interactivitystyledescriptorid) REFERENCES edfi.interactivitystyledescriptor(interactivitystyledescriptorid); + + +-- +-- Name: educationcontent fk_9965a5_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontent + ADD CONSTRAINT fk_9965a5_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: sectioncharacteristicdescriptor fk_9aae24_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncharacteristicdescriptor + ADD CONSTRAINT fk_9aae24_descriptor FOREIGN KEY (sectioncharacteristicdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: charterapprovalagencytypedescriptor fk_9af5be_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.charterapprovalagencytypedescriptor + ADD CONSTRAINT fk_9af5be_descriptor FOREIGN KEY (charterapprovalagencytypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationcontentappropriatesex fk_9b6ed1_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentappropriatesex + ADD CONSTRAINT fk_9b6ed1_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: educationcontentappropriatesex fk_9b6ed1_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentappropriatesex + ADD CONSTRAINT fk_9b6ed1_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: academichonorcategorydescriptor fk_9b946b_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.academichonorcategorydescriptor + ADD CONSTRAINT fk_9b946b_descriptor FOREIGN KEY (academichonorcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: bellschedule fk_9bbaf5_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellschedule + ADD CONSTRAINT fk_9bbaf5_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: postsecondaryinstitutionmediumofinstruction fk_9bd9d6_mediumofinstructiondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitutionmediumofinstruction + ADD CONSTRAINT fk_9bd9d6_mediumofinstructiondescriptor FOREIGN KEY (mediumofinstructiondescriptorid) REFERENCES edfi.mediumofinstructiondescriptor(mediumofinstructiondescriptorid); + + +-- +-- Name: postsecondaryinstitutionmediumofinstruction fk_9bd9d6_postsecondaryinstitution; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryinstitutionmediumofinstruction + ADD CONSTRAINT fk_9bd9d6_postsecondaryinstitution FOREIGN KEY (postsecondaryinstitutionid) REFERENCES edfi.postsecondaryinstitution(postsecondaryinstitutionid) ON DELETE CASCADE; + + +-- +-- Name: bellscheduleclassperiod fk_9e377d_bellschedule; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellscheduleclassperiod + ADD CONSTRAINT fk_9e377d_bellschedule FOREIGN KEY (bellschedulename, schoolid) REFERENCES edfi.bellschedule(bellschedulename, schoolid) ON DELETE CASCADE; + + +-- +-- Name: bellscheduleclassperiod fk_9e377d_classperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.bellscheduleclassperiod + ADD CONSTRAINT fk_9e377d_classperiod FOREIGN KEY (classperiodname, schoolid) REFERENCES edfi.classperiod(classperiodname, schoolid) ON UPDATE CASCADE; + + +-- +-- Name: interventionprescriptiondiagnosis fk_9e6edd_diagnosisdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptiondiagnosis + ADD CONSTRAINT fk_9e6edd_diagnosisdescriptor FOREIGN KEY (diagnosisdescriptorid) REFERENCES edfi.diagnosisdescriptor(diagnosisdescriptorid); + + +-- +-- Name: interventionprescriptiondiagnosis fk_9e6edd_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptiondiagnosis + ADD CONSTRAINT fk_9e6edd_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: publicationstatusdescriptor fk_9e73cb_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.publicationstatusdescriptor + ADD CONSTRAINT fk_9e73cb_descriptor FOREIGN KEY (publicationstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: surveycourseassociation fk_9f1246_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveycourseassociation + ADD CONSTRAINT fk_9f1246_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid); + + +-- +-- Name: surveycourseassociation fk_9f1246_survey; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveycourseassociation + ADD CONSTRAINT fk_9f1246_survey FOREIGN KEY (namespace, surveyidentifier) REFERENCES edfi.survey(namespace, surveyidentifier); + + +-- +-- Name: disabilitydeterminationsourcetypedescriptor fk_a07cb4_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disabilitydeterminationsourcetypedescriptor + ADD CONSTRAINT fk_a07cb4_descriptor FOREIGN KEY (disabilitydeterminationsourcetypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningobjectivecontentstandardauthor fk_a165fa_learningobjectivecontentstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivecontentstandardauthor + ADD CONSTRAINT fk_a165fa_learningobjectivecontentstandard FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjectivecontentstandard(learningobjectiveid, namespace) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteri_a18fcf fk_a18fcf_studenteducationorganizationassociationstudentcharact; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf + ADD CONSTRAINT fk_a18fcf_studenteducationorganizationassociationstudentcharact FOREIGN KEY (educationorganizationid, studentcharacteristicdescriptorid, studentusi) REFERENCES edfi.studenteducationorganizationassociationstudentcharacteristic(educationorganizationid, studentcharacteristicdescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: primarylearningdeviceproviderdescriptor fk_a1f277_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.primarylearningdeviceproviderdescriptor + ADD CONSTRAINT fk_a1f277_descriptor FOREIGN KEY (primarylearningdeviceproviderdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentscorerangelearningstandard fk_a20588_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandard + ADD CONSTRAINT fk_a20588_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace); + + +-- +-- Name: assessmentscorerangelearningstandard fk_a20588_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandard + ADD CONSTRAINT fk_a20588_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: assessmentscorerangelearningstandard fk_a20588_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscorerangelearningstandard + ADD CONSTRAINT fk_a20588_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: ancestryethnicorigindescriptor fk_a21217_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.ancestryethnicorigindescriptor + ADD CONSTRAINT fk_a21217_descriptor FOREIGN KEY (ancestryethnicorigindescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentidentificationsystemdescriptor fk_a28cb4_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentidentificationsystemdescriptor + ADD CONSTRAINT fk_a28cb4_descriptor FOREIGN KEY (studentidentificationsystemdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationtelephone fk_a2d4a8_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationtelephone + ADD CONSTRAINT fk_a2d4a8_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationtelephone fk_a2d4a8_telephonenumbertypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationtelephone + ADD CONSTRAINT fk_a2d4a8_telephonenumbertypedescriptor FOREIGN KEY (telephonenumbertypedescriptorid) REFERENCES edfi.telephonenumbertypedescriptor(telephonenumbertypedescriptorid); + + +-- +-- Name: studentspecialeducationprogramassociationdisabilitydesignation fk_a2fd20_disabilitydesignationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisabilitydesignation + ADD CONSTRAINT fk_a2fd20_disabilitydesignationdescriptor FOREIGN KEY (disabilitydesignationdescriptorid) REFERENCES edfi.disabilitydesignationdescriptor(disabilitydesignationdescriptorid); + + +-- +-- Name: studentspecialeducationprogramassociationdisabilitydesignation fk_a2fd20_studentspecialeducationprogramassociationdisability; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationdisabilitydesignation + ADD CONSTRAINT fk_a2fd20_studentspecialeducationprogramassociationdisability FOREIGN KEY (begindate, disabilitydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentspecialeducationprogramassociationdisability(begindate, disabilitydescriptorid, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: assessmentplatformtype fk_a3387e_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentplatformtype + ADD CONSTRAINT fk_a3387e_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentplatformtype fk_a3387e_platformtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentplatformtype + ADD CONSTRAINT fk_a3387e_platformtypedescriptor FOREIGN KEY (platformtypedescriptorid) REFERENCES edfi.platformtypedescriptor(platformtypedescriptorid); + + +-- +-- Name: studentacademicrecorddiploma fk_a3f725_achievementcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecorddiploma + ADD CONSTRAINT fk_a3f725_achievementcategorydescriptor FOREIGN KEY (achievementcategorydescriptorid) REFERENCES edfi.achievementcategorydescriptor(achievementcategorydescriptorid); + + +-- +-- Name: studentacademicrecorddiploma fk_a3f725_diplomaleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecorddiploma + ADD CONSTRAINT fk_a3f725_diplomaleveldescriptor FOREIGN KEY (diplomaleveldescriptorid) REFERENCES edfi.diplomaleveldescriptor(diplomaleveldescriptorid); + + +-- +-- Name: studentacademicrecorddiploma fk_a3f725_diplomatypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecorddiploma + ADD CONSTRAINT fk_a3f725_diplomatypedescriptor FOREIGN KEY (diplomatypedescriptorid) REFERENCES edfi.diplomatypedescriptor(diplomatypedescriptorid); + + +-- +-- Name: studentacademicrecorddiploma fk_a3f725_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecorddiploma + ADD CONSTRAINT fk_a3f725_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentidentificationsystemdescriptor fk_a47976_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentidentificationsystemdescriptor + ADD CONSTRAINT fk_a47976_descriptor FOREIGN KEY (assessmentidentificationsystemdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffancestryethnicorigin fk_a4a6ae_ancestryethnicorigindescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffancestryethnicorigin + ADD CONSTRAINT fk_a4a6ae_ancestryethnicorigindescriptor FOREIGN KEY (ancestryethnicorigindescriptorid) REFERENCES edfi.ancestryethnicorigindescriptor(ancestryethnicorigindescriptorid); + + +-- +-- Name: staffancestryethnicorigin fk_a4a6ae_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffancestryethnicorigin + ADD CONSTRAINT fk_a4a6ae_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: studenthomelessprogramassociation fk_a50f80_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenthomelessprogramassociation + ADD CONSTRAINT fk_a50f80_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenthomelessprogramassociation fk_a50f80_homelessprimarynighttimeresidencedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenthomelessprogramassociation + ADD CONSTRAINT fk_a50f80_homelessprimarynighttimeresidencedescriptor FOREIGN KEY (homelessprimarynighttimeresidencedescriptorid) REFERENCES edfi.homelessprimarynighttimeresidencedescriptor(homelessprimarynighttimeresidencedescriptorid); + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_a51ff9 fk_a51ff9_specialeducationprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 + ADD CONSTRAINT fk_a51ff9_specialeducationprogramservicedescriptor FOREIGN KEY (specialeducationprogramservicedescriptorid) REFERENCES edfi.specialeducationprogramservicedescriptor(specialeducationprogramservicedescriptorid); + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_a51ff9 fk_a51ff9_studentspecialeducationprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9 + ADD CONSTRAINT fk_a51ff9_studentspecialeducationprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentspecialeducationprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineincidentweapon fk_a545e5_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentweapon + ADD CONSTRAINT fk_a545e5_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid) ON DELETE CASCADE; + + +-- +-- Name: disciplineincidentweapon fk_a545e5_weapondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentweapon + ADD CONSTRAINT fk_a545e5_weapondescriptor FOREIGN KEY (weapondescriptorid) REFERENCES edfi.weapondescriptor(weapondescriptorid); + + +-- +-- Name: performanceleveldescriptor fk_a54ec7_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.performanceleveldescriptor + ADD CONSTRAINT fk_a54ec7_descriptor FOREIGN KEY (performanceleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentitemcategorydescriptor fk_a5f1ee_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitemcategorydescriptor + ADD CONSTRAINT fk_a5f1ee_descriptor FOREIGN KEY (assessmentitemcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationstudentindicatorperiod fk_a61b72_studenteducationorganizationassociationstudentindicat; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentindicatorperiod + ADD CONSTRAINT fk_a61b72_studenteducationorganizationassociationstudentindicat FOREIGN KEY (educationorganizationid, indicatorname, studentusi) REFERENCES edfi.studenteducationorganizationassociationstudentindicator(educationorganizationid, indicatorname, studentusi) ON DELETE CASCADE; + + +-- +-- Name: titleipartaprogramservicedescriptor fk_a62aa8_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.titleipartaprogramservicedescriptor + ADD CONSTRAINT fk_a62aa8_descriptor FOREIGN KEY (titleipartaprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: cteprogramservicedescriptor fk_a631b1_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cteprogramservicedescriptor + ADD CONSTRAINT fk_a631b1_descriptor FOREIGN KEY (cteprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionmeetingtime fk_a64540_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionmeetingtime + ADD CONSTRAINT fk_a64540_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationrace fk_a6a1f0_racedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationrace + ADD CONSTRAINT fk_a6a1f0_racedescriptor FOREIGN KEY (racedescriptorid) REFERENCES edfi.racedescriptor(racedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationrace fk_a6a1f0_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationrace + ADD CONSTRAINT fk_a6a1f0_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentpersonalidentificationdocument fk_a741a8_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentpersonalidentificationdocument + ADD CONSTRAINT fk_a741a8_countrydescriptor FOREIGN KEY (issuercountrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: studentpersonalidentificationdocument fk_a741a8_identificationdocumentusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentpersonalidentificationdocument + ADD CONSTRAINT fk_a741a8_identificationdocumentusedescriptor FOREIGN KEY (identificationdocumentusedescriptorid) REFERENCES edfi.identificationdocumentusedescriptor(identificationdocumentusedescriptorid); + + +-- +-- Name: studentpersonalidentificationdocument fk_a741a8_personalinformationverificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentpersonalidentificationdocument + ADD CONSTRAINT fk_a741a8_personalinformationverificationdescriptor FOREIGN KEY (personalinformationverificationdescriptorid) REFERENCES edfi.personalinformationverificationdescriptor(personalinformationverificationdescriptorid); + + +-- +-- Name: studentpersonalidentificationdocument fk_a741a8_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentpersonalidentificationdocument + ADD CONSTRAINT fk_a741a8_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi) ON DELETE CASCADE; + + +-- +-- Name: coursedefinedbydescriptor fk_a75b16_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursedefinedbydescriptor + ADD CONSTRAINT fk_a75b16_descriptor FOREIGN KEY (coursedefinedbydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationinternationaladdress fk_a82b93_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationinternationaladdress + ADD CONSTRAINT fk_a82b93_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationinternationaladdress fk_a82b93_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationinternationaladdress + ADD CONSTRAINT fk_a82b93_countrydescriptor FOREIGN KEY (countrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: studenteducationorganizationassociationinternationaladdress fk_a82b93_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationinternationaladdress + ADD CONSTRAINT fk_a82b93_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: interventionappropriatesex fk_a8bc47_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionappropriatesex + ADD CONSTRAINT fk_a8bc47_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionappropriatesex fk_a8bc47_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionappropriatesex + ADD CONSTRAINT fk_a8bc47_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: racedescriptor fk_a902cb_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.racedescriptor + ADD CONSTRAINT fk_a902cb_descriptor FOREIGN KEY (racedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningobjectivegradelevel fk_a92ef0_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivegradelevel + ADD CONSTRAINT fk_a92ef0_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: learningobjectivegradelevel fk_a92ef0_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivegradelevel + ADD CONSTRAINT fk_a92ef0_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace) ON DELETE CASCADE; + + +-- +-- Name: academicweek fk_a97956_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.academicweek + ADD CONSTRAINT fk_a97956_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: interventionprescriptionpopulationserved fk_a984df_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionpopulationserved + ADD CONSTRAINT fk_a984df_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionprescriptionpopulationserved fk_a984df_populationserveddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionpopulationserved + ADD CONSTRAINT fk_a984df_populationserveddescriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.populationserveddescriptor(populationserveddescriptorid); + + +-- +-- Name: staffprogramassociation fk_a9c0d9_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffprogramassociation + ADD CONSTRAINT fk_a9c0d9_program FOREIGN KEY (programeducationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: staffprogramassociation fk_a9c0d9_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffprogramassociation + ADD CONSTRAINT fk_a9c0d9_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: studentparticipationcodedescriptor fk_aa25ae_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentparticipationcodedescriptor + ADD CONSTRAINT fk_aa25ae_descriptor FOREIGN KEY (studentparticipationcodedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentvisa fk_aa5751_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentvisa + ADD CONSTRAINT fk_aa5751_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentvisa fk_aa5751_visadescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentvisa + ADD CONSTRAINT fk_aa5751_visadescriptor FOREIGN KEY (visadescriptorid) REFERENCES edfi.visadescriptor(visadescriptorid); + + +-- +-- Name: courseofferingofferedgradelevel fk_aaa07e_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingofferedgradelevel + ADD CONSTRAINT fk_aaa07e_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: courseofferingofferedgradelevel fk_aaa07e_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingofferedgradelevel + ADD CONSTRAINT fk_aaa07e_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: learningstandardacademicsubject fk_aaade9_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardacademicsubject + ADD CONSTRAINT fk_aaade9_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: learningstandardacademicsubject fk_aaade9_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardacademicsubject + ADD CONSTRAINT fk_aaade9_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid) ON DELETE CASCADE; + + +-- +-- Name: coursetranscriptcreditcategory fk_ab7096_coursetranscript; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptcreditcategory + ADD CONSTRAINT fk_ab7096_coursetranscript FOREIGN KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.coursetranscript(courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: coursetranscriptcreditcategory fk_ab7096_creditcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptcreditcategory + ADD CONSTRAINT fk_ab7096_creditcategorydescriptor FOREIGN KEY (creditcategorydescriptorid) REFERENCES edfi.creditcategorydescriptor(creditcategorydescriptorid); + + +-- +-- Name: separationreasondescriptor fk_ac0f04_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.separationreasondescriptor + ADD CONSTRAINT fk_ac0f04_descriptor FOREIGN KEY (separationreasondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: providercategorydescriptor fk_add5c4_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.providercategorydescriptor + ADD CONSTRAINT fk_add5c4_descriptor FOREIGN KEY (providercategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentothername fk_ae53d1_othernametypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentothername + ADD CONSTRAINT fk_ae53d1_othernametypedescriptor FOREIGN KEY (othernametypedescriptorid) REFERENCES edfi.othernametypedescriptor(othernametypedescriptorid); + + +-- +-- Name: studentothername fk_ae53d1_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentothername + ADD CONSTRAINT fk_ae53d1_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 fk_ae6a21_disciplineincidentparticipationcodedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 + ADD CONSTRAINT fk_ae6a21_disciplineincidentparticipationcodedescriptor FOREIGN KEY (disciplineincidentparticipationcodedescriptorid) REFERENCES edfi.disciplineincidentparticipationcodedescriptor(disciplineincidentparticipationcodedescriptorid); + + +-- +-- Name: studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 fk_ae6a21_studentdisciplineincidentbehaviorassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociationdisciplinein_ae6a21 + ADD CONSTRAINT fk_ae6a21_studentdisciplineincidentbehaviorassociation FOREIGN KEY (behaviordescriptorid, incidentidentifier, schoolid, studentusi) REFERENCES edfi.studentdisciplineincidentbehaviorassociation(behaviordescriptorid, incidentidentifier, schoolid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: calendartypedescriptor fk_aed500_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendartypedescriptor + ADD CONSTRAINT fk_aed500_descriptor FOREIGN KEY (calendartypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: cohorttypedescriptor fk_af0263_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.cohorttypedescriptor + ADD CONSTRAINT fk_af0263_descriptor FOREIGN KEY (cohorttypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: retestindicatordescriptor fk_af156c_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.retestindicatordescriptor + ADD CONSTRAINT fk_af156c_descriptor FOREIGN KEY (retestindicatordescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningstandardscopedescriptor fk_af50dc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningstandardscopedescriptor + ADD CONSTRAINT fk_af50dc_descriptor FOREIGN KEY (learningstandardscopedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentacademicrecordgradepointaverage fk_af7be7_gradepointaveragetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordgradepointaverage + ADD CONSTRAINT fk_af7be7_gradepointaveragetypedescriptor FOREIGN KEY (gradepointaveragetypedescriptorid) REFERENCES edfi.gradepointaveragetypedescriptor(gradepointaveragetypedescriptorid); + + +-- +-- Name: studentacademicrecordgradepointaverage fk_af7be7_studentacademicrecord; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentacademicrecordgradepointaverage + ADD CONSTRAINT fk_af7be7_studentacademicrecord FOREIGN KEY (educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.studentacademicrecord(educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffdisciplineincidentassociation fk_af86db_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffdisciplineincidentassociation + ADD CONSTRAINT fk_af86db_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid); + + +-- +-- Name: staffdisciplineincidentassociation fk_af86db_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffdisciplineincidentassociation + ADD CONSTRAINT fk_af86db_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: staffeducationorganizationcontactassociationaddressperiod fk_afd39a_staffeducationorganizationcontactassociationaddress; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationcontactassociationaddressperiod + ADD CONSTRAINT fk_afd39a_staffeducationorganizationcontactassociationaddress FOREIGN KEY (contacttitle, educationorganizationid, staffusi) REFERENCES edfi.staffeducationorganizationcontactassociationaddress(contacttitle, educationorganizationid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: servicedescriptor fk_aff2dc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.servicedescriptor + ADD CONSTRAINT fk_aff2dc_descriptor FOREIGN KEY (servicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffothername fk_b0cb9e_othernametypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffothername + ADD CONSTRAINT fk_b0cb9e_othernametypedescriptor FOREIGN KEY (othernametypedescriptorid) REFERENCES edfi.othernametypedescriptor(othernametypedescriptorid); + + +-- +-- Name: staffothername fk_b0cb9e_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffothername + ADD CONSTRAINT fk_b0cb9e_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: costratedescriptor fk_b1268b_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.costratedescriptor + ADD CONSTRAINT fk_b1268b_descriptor FOREIGN KEY (costratedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffabsenceevent fk_b13bbd_absenceeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffabsenceevent + ADD CONSTRAINT fk_b13bbd_absenceeventcategorydescriptor FOREIGN KEY (absenceeventcategorydescriptorid) REFERENCES edfi.absenceeventcategorydescriptor(absenceeventcategorydescriptorid); + + +-- +-- Name: staffabsenceevent fk_b13bbd_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffabsenceevent + ADD CONSTRAINT fk_b13bbd_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: credential fk_b1c42b_credentialfielddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credential + ADD CONSTRAINT fk_b1c42b_credentialfielddescriptor FOREIGN KEY (credentialfielddescriptorid) REFERENCES edfi.credentialfielddescriptor(credentialfielddescriptorid); + + +-- +-- Name: credential fk_b1c42b_credentialtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credential + ADD CONSTRAINT fk_b1c42b_credentialtypedescriptor FOREIGN KEY (credentialtypedescriptorid) REFERENCES edfi.credentialtypedescriptor(credentialtypedescriptorid); + + +-- +-- Name: credential fk_b1c42b_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credential + ADD CONSTRAINT fk_b1c42b_stateabbreviationdescriptor FOREIGN KEY (stateofissuestateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: credential fk_b1c42b_teachingcredentialbasisdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credential + ADD CONSTRAINT fk_b1c42b_teachingcredentialbasisdescriptor FOREIGN KEY (teachingcredentialbasisdescriptorid) REFERENCES edfi.teachingcredentialbasisdescriptor(teachingcredentialbasisdescriptorid); + + +-- +-- Name: credential fk_b1c42b_teachingcredentialdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credential + ADD CONSTRAINT fk_b1c42b_teachingcredentialdescriptor FOREIGN KEY (teachingcredentialdescriptorid) REFERENCES edfi.teachingcredentialdescriptor(teachingcredentialdescriptorid); + + +-- +-- Name: studentassessmentstudentobjectiveassessment fk_b1c52f_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessment + ADD CONSTRAINT fk_b1c52f_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: studentassessmentstudentobjectiveassessment fk_b1c52f_studentassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessment + ADD CONSTRAINT fk_b1c52f_studentassessment FOREIGN KEY (assessmentidentifier, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessment(assessmentidentifier, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation fk_b2bd0a_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponseeducationorganizationtargetassociation + ADD CONSTRAINT fk_b2bd0a_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: surveyresponseeducationorganizationtargetassociation fk_b2bd0a_surveyresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponseeducationorganizationtargetassociation + ADD CONSTRAINT fk_b2bd0a_surveyresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyresponse(namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: interventiondiagnosis fk_b2e25d_diagnosisdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventiondiagnosis + ADD CONSTRAINT fk_b2e25d_diagnosisdescriptor FOREIGN KEY (diagnosisdescriptorid) REFERENCES edfi.diagnosisdescriptor(diagnosisdescriptorid); + + +-- +-- Name: interventiondiagnosis fk_b2e25d_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventiondiagnosis + ADD CONSTRAINT fk_b2e25d_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: studenthomelessprogramassociationhomelessprogramservice fk_b31a96_homelessprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenthomelessprogramassociationhomelessprogramservice + ADD CONSTRAINT fk_b31a96_homelessprogramservicedescriptor FOREIGN KEY (homelessprogramservicedescriptorid) REFERENCES edfi.homelessprogramservicedescriptor(homelessprogramservicedescriptorid); + + +-- +-- Name: studenthomelessprogramassociationhomelessprogramservice fk_b31a96_studenthomelessprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenthomelessprogramassociationhomelessprogramservice + ADD CONSTRAINT fk_b31a96_studenthomelessprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studenthomelessprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: generalstudentprogramassociationparticipationstatus fk_b3fd05_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociationparticipationstatus + ADD CONSTRAINT fk_b3fd05_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: generalstudentprogramassociationparticipationstatus fk_b3fd05_participationstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.generalstudentprogramassociationparticipationstatus + ADD CONSTRAINT fk_b3fd05_participationstatusdescriptor FOREIGN KEY (participationstatusdescriptorid) REFERENCES edfi.participationstatusdescriptor(participationstatusdescriptorid); + + +-- +-- Name: studentdisciplineincidentassociationbehavior fk_b43eed_behaviordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociationbehavior + ADD CONSTRAINT fk_b43eed_behaviordescriptor FOREIGN KEY (behaviordescriptorid) REFERENCES edfi.behaviordescriptor(behaviordescriptorid); + + +-- +-- Name: studentdisciplineincidentassociationbehavior fk_b43eed_studentdisciplineincidentassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentassociationbehavior + ADD CONSTRAINT fk_b43eed_studentdisciplineincidentassociation FOREIGN KEY (incidentidentifier, schoolid, studentusi) REFERENCES edfi.studentdisciplineincidentassociation(incidentidentifier, schoolid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: telephonenumbertypedescriptor fk_b46168_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.telephonenumbertypedescriptor + ADD CONSTRAINT fk_b46168_descriptor FOREIGN KEY (telephonenumbertypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: coursetranscriptearnedadditionalcredits fk_b50e36_additionalcredittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptearnedadditionalcredits + ADD CONSTRAINT fk_b50e36_additionalcredittypedescriptor FOREIGN KEY (additionalcredittypedescriptorid) REFERENCES edfi.additionalcredittypedescriptor(additionalcredittypedescriptorid); + + +-- +-- Name: coursetranscriptearnedadditionalcredits fk_b50e36_coursetranscript; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptearnedadditionalcredits + ADD CONSTRAINT fk_b50e36_coursetranscript FOREIGN KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.coursetranscript(courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: stafflanguageuse fk_b527e7_languageusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafflanguageuse + ADD CONSTRAINT fk_b527e7_languageusedescriptor FOREIGN KEY (languageusedescriptorid) REFERENCES edfi.languageusedescriptor(languageusedescriptorid); + + +-- +-- Name: stafflanguageuse fk_b527e7_stafflanguage; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafflanguageuse + ADD CONSTRAINT fk_b527e7_stafflanguage FOREIGN KEY (languagedescriptorid, staffusi) REFERENCES edfi.stafflanguage(languagedescriptorid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: recognitiontypedescriptor fk_b549ed_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.recognitiontypedescriptor + ADD CONSTRAINT fk_b549ed_descriptor FOREIGN KEY (recognitiontypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: parentpersonalidentificationdocument fk_b772b6_countrydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentpersonalidentificationdocument + ADD CONSTRAINT fk_b772b6_countrydescriptor FOREIGN KEY (issuercountrydescriptorid) REFERENCES edfi.countrydescriptor(countrydescriptorid); + + +-- +-- Name: parentpersonalidentificationdocument fk_b772b6_identificationdocumentusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentpersonalidentificationdocument + ADD CONSTRAINT fk_b772b6_identificationdocumentusedescriptor FOREIGN KEY (identificationdocumentusedescriptorid) REFERENCES edfi.identificationdocumentusedescriptor(identificationdocumentusedescriptorid); + + +-- +-- Name: parentpersonalidentificationdocument fk_b772b6_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentpersonalidentificationdocument + ADD CONSTRAINT fk_b772b6_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: parentpersonalidentificationdocument fk_b772b6_personalinformationverificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentpersonalidentificationdocument + ADD CONSTRAINT fk_b772b6_personalinformationverificationdescriptor FOREIGN KEY (personalinformationverificationdescriptorid) REFERENCES edfi.personalinformationverificationdescriptor(personalinformationverificationdescriptorid); + + +-- +-- Name: staffaddressperiod fk_b7f969_staffaddress; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddressperiod + ADD CONSTRAINT fk_b7f969_staffaddress FOREIGN KEY (addresstypedescriptorid, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername) REFERENCES edfi.staffaddress(addresstypedescriptorid, city, postalcode, staffusi, stateabbreviationdescriptorid, streetnumbername) ON DELETE CASCADE; + + +-- +-- Name: competencyleveldescriptor fk_b82261_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.competencyleveldescriptor + ADD CONSTRAINT fk_b82261_descriptor FOREIGN KEY (competencyleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteristic fk_b865d7_studentcharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentcharacteristic + ADD CONSTRAINT fk_b865d7_studentcharacteristicdescriptor FOREIGN KEY (studentcharacteristicdescriptorid) REFERENCES edfi.studentcharacteristicdescriptor(studentcharacteristicdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationstudentcharacteristic fk_b865d7_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentcharacteristic + ADD CONSTRAINT fk_b865d7_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: postsecondaryevent fk_b8b6d7_postsecondaryeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryevent + ADD CONSTRAINT fk_b8b6d7_postsecondaryeventcategorydescriptor FOREIGN KEY (postsecondaryeventcategorydescriptorid) REFERENCES edfi.postsecondaryeventcategorydescriptor(postsecondaryeventcategorydescriptorid); + + +-- +-- Name: postsecondaryevent fk_b8b6d7_postsecondaryinstitution; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryevent + ADD CONSTRAINT fk_b8b6d7_postsecondaryinstitution FOREIGN KEY (postsecondaryinstitutionid) REFERENCES edfi.postsecondaryinstitution(postsecondaryinstitutionid); + + +-- +-- Name: postsecondaryevent fk_b8b6d7_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.postsecondaryevent + ADD CONSTRAINT fk_b8b6d7_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: staffeducationorganizationassignmentassociation fk_b9be24_credential; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT fk_b9be24_credential FOREIGN KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid) REFERENCES edfi.credential(credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: staffeducationorganizationassignmentassociation fk_b9be24_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT fk_b9be24_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: staffeducationorganizationassignmentassociation fk_b9be24_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT fk_b9be24_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: staffeducationorganizationassignmentassociation fk_b9be24_staffclassificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT fk_b9be24_staffclassificationdescriptor FOREIGN KEY (staffclassificationdescriptorid) REFERENCES edfi.staffclassificationdescriptor(staffclassificationdescriptorid); + + +-- +-- Name: staffeducationorganizationassignmentassociation fk_b9be24_staffeducationorganizationemploymentassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffeducationorganizationassignmentassociation + ADD CONSTRAINT fk_b9be24_staffeducationorganizationemploymentassociation FOREIGN KEY (employmenteducationorganizationid, employmentstatusdescriptorid, employmenthiredate, staffusi) REFERENCES edfi.staffeducationorganizationemploymentassociation(educationorganizationid, employmentstatusdescriptorid, hiredate, staffusi); + + +-- +-- Name: methodcreditearneddescriptor fk_ba36b2_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.methodcreditearneddescriptor + ADD CONSTRAINT fk_ba36b2_descriptor FOREIGN KEY (methodcreditearneddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: programcharacteristicdescriptor fk_ba9204_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programcharacteristicdescriptor + ADD CONSTRAINT fk_ba9204_descriptor FOREIGN KEY (programcharacteristicdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentlearningobjective fk_baaa9d_competencyleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjective + ADD CONSTRAINT fk_baaa9d_competencyleveldescriptor FOREIGN KEY (competencyleveldescriptorid) REFERENCES edfi.competencyleveldescriptor(competencyleveldescriptorid); + + +-- +-- Name: studentlearningobjective fk_baaa9d_gradingperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjective + ADD CONSTRAINT fk_baaa9d_gradingperiod FOREIGN KEY (gradingperioddescriptorid, gradingperiodsequence, gradingperiodschoolid, gradingperiodschoolyear) REFERENCES edfi.gradingperiod(gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: studentlearningobjective fk_baaa9d_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjective + ADD CONSTRAINT fk_baaa9d_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace); + + +-- +-- Name: studentlearningobjective fk_baaa9d_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjective + ADD CONSTRAINT fk_baaa9d_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: educationplandescriptor fk_bb10e3_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationplandescriptor + ADD CONSTRAINT fk_bb10e3_descriptor FOREIGN KEY (educationplandescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courserepeatcodedescriptor fk_bc4d3c_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courserepeatcodedescriptor + ADD CONSTRAINT fk_bc4d3c_descriptor FOREIGN KEY (courserepeatcodedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_bcba5c fk_bcba5c_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c + ADD CONSTRAINT fk_bcba5c_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: studentspecialeducationprogramassociationspecialeducatio_bcba5c fk_bcba5c_studentspecialeducationprogramassociationspecialeduca; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationspecialeducatio_bcba5c + ADD CONSTRAINT fk_bcba5c_studentspecialeducationprogramassociationspecialeduca FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, studentusi) REFERENCES edfi.studentspecialeducationprogramassociationspecialeducatio_a51ff9(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, specialeducationprogramservicedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: surveyleveldescriptor fk_bce725_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyleveldescriptor + ADD CONSTRAINT fk_bce725_descriptor FOREIGN KEY (surveyleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentcontentstandard fk_bd89c0_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcontentstandard + ADD CONSTRAINT fk_bd89c0_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentcontentstandard fk_bd89c0_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcontentstandard + ADD CONSTRAINT fk_bd89c0_educationorganization FOREIGN KEY (mandatingeducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: assessmentcontentstandard fk_bd89c0_publicationstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentcontentstandard + ADD CONSTRAINT fk_bd89c0_publicationstatusdescriptor FOREIGN KEY (publicationstatusdescriptorid) REFERENCES edfi.publicationstatusdescriptor(publicationstatusdescriptorid); + + +-- +-- Name: graduationplan fk_be1ea4_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplan + ADD CONSTRAINT fk_be1ea4_credittypedescriptor FOREIGN KEY (totalrequiredcredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: graduationplan fk_be1ea4_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplan + ADD CONSTRAINT fk_be1ea4_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: graduationplan fk_be1ea4_graduationplantypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplan + ADD CONSTRAINT fk_be1ea4_graduationplantypedescriptor FOREIGN KEY (graduationplantypedescriptorid) REFERENCES edfi.graduationplantypedescriptor(graduationplantypedescriptorid); + + +-- +-- Name: graduationplan fk_be1ea4_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplan + ADD CONSTRAINT fk_be1ea4_schoolyeartype FOREIGN KEY (graduationschoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: responseindicatordescriptor fk_be38ef_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.responseindicatordescriptor + ADD CONSTRAINT fk_be38ef_descriptor FOREIGN KEY (responseindicatordescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: localedescriptor fk_be5f41_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.localedescriptor + ADD CONSTRAINT fk_be5f41_descriptor FOREIGN KEY (localedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentparentassociation fk_bf9d92_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentparentassociation + ADD CONSTRAINT fk_bf9d92_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi); + + +-- +-- Name: studentparentassociation fk_bf9d92_relationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentparentassociation + ADD CONSTRAINT fk_bf9d92_relationdescriptor FOREIGN KEY (relationdescriptorid) REFERENCES edfi.relationdescriptor(relationdescriptorid); + + +-- +-- Name: studentparentassociation fk_bf9d92_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentparentassociation + ADD CONSTRAINT fk_bf9d92_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: identificationdocumentusedescriptor fk_c023c0_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.identificationdocumentusedescriptor + ADD CONSTRAINT fk_c023c0_descriptor FOREIGN KEY (identificationdocumentusedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: reportcardstudentlearningobjective fk_c098ce_reportcard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardstudentlearningobjective + ADD CONSTRAINT fk_c098ce_reportcard FOREIGN KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) REFERENCES edfi.reportcard(educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) ON DELETE CASCADE; + + +-- +-- Name: reportcardstudentlearningobjective fk_c098ce_studentlearningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardstudentlearningobjective + ADD CONSTRAINT fk_c098ce_studentlearningobjective FOREIGN KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi) REFERENCES edfi.studentlearningobjective(gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi); + + +-- +-- Name: interventioneffectivenessratingdescriptor fk_c0c58a_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioneffectivenessratingdescriptor + ADD CONSTRAINT fk_c0c58a_descriptor FOREIGN KEY (interventioneffectivenessratingdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courselearningobjective fk_c0da6b_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselearningobjective + ADD CONSTRAINT fk_c0da6b_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: courselearningobjective fk_c0da6b_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselearningobjective + ADD CONSTRAINT fk_c0da6b_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace); + + +-- +-- Name: staffaddress fk_c0e4a3_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddress + ADD CONSTRAINT fk_c0e4a3_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: staffaddress fk_c0e4a3_localedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddress + ADD CONSTRAINT fk_c0e4a3_localedescriptor FOREIGN KEY (localedescriptorid) REFERENCES edfi.localedescriptor(localedescriptorid); + + +-- +-- Name: staffaddress fk_c0e4a3_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddress + ADD CONSTRAINT fk_c0e4a3_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: staffaddress fk_c0e4a3_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffaddress + ADD CONSTRAINT fk_c0e4a3_stateabbreviationdescriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationstudentidentifica_c15030 fk_c15030_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentidentifica_c15030 + ADD CONSTRAINT fk_c15030_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationstudentidentifica_c15030 fk_c15030_studentidentificationsystemdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentidentifica_c15030 + ADD CONSTRAINT fk_c15030_studentidentificationsystemdescriptor FOREIGN KEY (studentidentificationsystemdescriptorid) REFERENCES edfi.studentidentificationsystemdescriptor(studentidentificationsystemdescriptorid); + + +-- +-- Name: surveysectionassociation fk_c16804_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionassociation + ADD CONSTRAINT fk_c16804_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: surveysectionassociation fk_c16804_survey; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysectionassociation + ADD CONSTRAINT fk_c16804_survey FOREIGN KEY (namespace, surveyidentifier) REFERENCES edfi.survey(namespace, surveyidentifier); + + +-- +-- Name: reportcardstudentcompetencyobjective fk_c16d6c_reportcard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardstudentcompetencyobjective + ADD CONSTRAINT fk_c16d6c_reportcard FOREIGN KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) REFERENCES edfi.reportcard(educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) ON DELETE CASCADE; + + +-- +-- Name: reportcardstudentcompetencyobjective fk_c16d6c_studentcompetencyobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardstudentcompetencyobjective + ADD CONSTRAINT fk_c16d6c_studentcompetencyobjective FOREIGN KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi) REFERENCES edfi.studentcompetencyobjective(gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi); + + +-- +-- Name: specialeducationprogramservicedescriptor fk_c2348e_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.specialeducationprogramservicedescriptor + ADD CONSTRAINT fk_c2348e_descriptor FOREIGN KEY (specialeducationprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentassessmentperformancelevel fk_c2bd3c_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentperformancelevel + ADD CONSTRAINT fk_c2bd3c_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: studentassessmentperformancelevel fk_c2bd3c_performanceleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentperformancelevel + ADD CONSTRAINT fk_c2bd3c_performanceleveldescriptor FOREIGN KEY (performanceleveldescriptorid) REFERENCES edfi.performanceleveldescriptor(performanceleveldescriptorid); + + +-- +-- Name: studentassessmentperformancelevel fk_c2bd3c_studentassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentperformancelevel + ADD CONSTRAINT fk_c2bd3c_studentassessment FOREIGN KEY (assessmentidentifier, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessment(assessmentidentifier, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: classroompositiondescriptor fk_c2dd12_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.classroompositiondescriptor + ADD CONSTRAINT fk_c2dd12_descriptor FOREIGN KEY (classroompositiondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentgradebookentry fk_c2efaa_competencyleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentgradebookentry + ADD CONSTRAINT fk_c2efaa_competencyleveldescriptor FOREIGN KEY (competencyleveldescriptorid) REFERENCES edfi.competencyleveldescriptor(competencyleveldescriptorid); + + +-- +-- Name: studentgradebookentry fk_c2efaa_gradebookentry; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentgradebookentry + ADD CONSTRAINT fk_c2efaa_gradebookentry FOREIGN KEY (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.gradebookentry(dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: studentgradebookentry fk_c2efaa_studentsectionassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentgradebookentry + ADD CONSTRAINT fk_c2efaa_studentsectionassociation FOREIGN KEY (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.studentsectionassociation(begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi); + + +-- +-- Name: actual fk_c40642_account; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.actual + ADD CONSTRAINT fk_c40642_account FOREIGN KEY (accountidentifier, educationorganizationid, fiscalyear) REFERENCES edfi.account(accountidentifier, educationorganizationid, fiscalyear); + + +-- +-- Name: interventionstudypopulationserved fk_c45364_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudypopulationserved + ADD CONSTRAINT fk_c45364_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionstudypopulationserved fk_c45364_populationserveddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudypopulationserved + ADD CONSTRAINT fk_c45364_populationserveddescriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.populationserveddescriptor(populationserveddescriptorid); + + +-- +-- Name: sessiongradingperiod fk_c4b3e0_gradingperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessiongradingperiod + ADD CONSTRAINT fk_c4b3e0_gradingperiod FOREIGN KEY (gradingperioddescriptorid, periodsequence, schoolid, schoolyear) REFERENCES edfi.gradingperiod(gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: sessiongradingperiod fk_c4b3e0_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessiongradingperiod + ADD CONSTRAINT fk_c4b3e0_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: coursegpaapplicabilitydescriptor fk_c55ecc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursegpaapplicabilitydescriptor + ADD CONSTRAINT fk_c55ecc_descriptor FOREIGN KEY (coursegpaapplicabilitydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffrecognition fk_c60190_achievementcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrecognition + ADD CONSTRAINT fk_c60190_achievementcategorydescriptor FOREIGN KEY (achievementcategorydescriptorid) REFERENCES edfi.achievementcategorydescriptor(achievementcategorydescriptorid); + + +-- +-- Name: staffrecognition fk_c60190_recognitiontypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrecognition + ADD CONSTRAINT fk_c60190_recognitiontypedescriptor FOREIGN KEY (recognitiontypedescriptorid) REFERENCES edfi.recognitiontypedescriptor(recognitiontypedescriptorid); + + +-- +-- Name: staffrecognition fk_c60190_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffrecognition + ADD CONSTRAINT fk_c60190_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: residencystatusdescriptor fk_c62170_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.residencystatusdescriptor + ADD CONSTRAINT fk_c62170_descriptor FOREIGN KEY (residencystatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: achievementcategorydescriptor fk_c71291_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.achievementcategorydescriptor + ADD CONSTRAINT fk_c71291_descriptor FOREIGN KEY (achievementcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: gradebookentrylearningstandard fk_c7b5a8_gradebookentry; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrylearningstandard + ADD CONSTRAINT fk_c7b5a8_gradebookentry FOREIGN KEY (dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.gradebookentry(dateassigned, gradebookentrytitle, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: gradebookentrylearningstandard fk_c7b5a8_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradebookentrylearningstandard + ADD CONSTRAINT fk_c7b5a8_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: interventionlearningresourcemetadatauri fk_c7db20_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionlearningresourcemetadatauri + ADD CONSTRAINT fk_c7db20_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: courselevelcharacteristic fk_c7e725_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselevelcharacteristic + ADD CONSTRAINT fk_c7e725_course FOREIGN KEY (coursecode, educationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: courselevelcharacteristic fk_c7e725_courselevelcharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courselevelcharacteristic + ADD CONSTRAINT fk_c7e725_courselevelcharacteristicdescriptor FOREIGN KEY (courselevelcharacteristicdescriptorid) REFERENCES edfi.courselevelcharacteristicdescriptor(courselevelcharacteristicdescriptorid); + + +-- +-- Name: gradetypedescriptor fk_c8a182_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.gradetypedescriptor + ADD CONSTRAINT fk_c8a182_descriptor FOREIGN KEY (gradetypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: limitedenglishproficiencydescriptor fk_c8bcfe_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.limitedenglishproficiencydescriptor + ADD CONSTRAINT fk_c8bcfe_descriptor FOREIGN KEY (limitedenglishproficiencydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: learningobjectivelearningstandard fk_c99b99_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivelearningstandard + ADD CONSTRAINT fk_c99b99_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace) ON DELETE CASCADE; + + +-- +-- Name: learningobjectivelearningstandard fk_c99b99_learningstandard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivelearningstandard + ADD CONSTRAINT fk_c99b99_learningstandard FOREIGN KEY (learningstandardid) REFERENCES edfi.learningstandard(learningstandardid); + + +-- +-- Name: internetaccessdescriptor fk_ca0f71_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.internetaccessdescriptor + ADD CONSTRAINT fk_ca0f71_descriptor FOREIGN KEY (internetaccessdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studenteducationorganizationassociationstudentindicator fk_ca697a_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationstudentindicator + ADD CONSTRAINT fk_ca697a_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineincidentbehavior fk_cabdcb_behaviordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentbehavior + ADD CONSTRAINT fk_cabdcb_behaviordescriptor FOREIGN KEY (behaviordescriptorid) REFERENCES edfi.behaviordescriptor(behaviordescriptorid); + + +-- +-- Name: disciplineincidentbehavior fk_cabdcb_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincidentbehavior + ADD CONSTRAINT fk_cabdcb_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid) ON DELETE CASCADE; + + +-- +-- Name: staffidentificationsystemdescriptor fk_cb401c_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffidentificationsystemdescriptor + ADD CONSTRAINT fk_cb401c_descriptor FOREIGN KEY (staffidentificationsystemdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionpopulationserved fk_cbeb99_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionpopulationserved + ADD CONSTRAINT fk_cbeb99_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionpopulationserved fk_cbeb99_populationserveddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionpopulationserved + ADD CONSTRAINT fk_cbeb99_populationserveddescriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.populationserveddescriptor(populationserveddescriptorid); + + +-- +-- Name: educationorganizationidentificationsystemdescriptor fk_cbfd5d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationidentificationsystemdescriptor + ADD CONSTRAINT fk_cbfd5d_descriptor FOREIGN KEY (educationorganizationidentificationsystemdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: primarylearningdeviceaccessdescriptor fk_cbfe5d_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.primarylearningdeviceaccessdescriptor + ADD CONSTRAINT fk_cbfe5d_descriptor FOREIGN KEY (primarylearningdeviceaccessdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: parentaddress fk_cc3333_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddress + ADD CONSTRAINT fk_cc3333_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: parentaddress fk_cc3333_localedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddress + ADD CONSTRAINT fk_cc3333_localedescriptor FOREIGN KEY (localedescriptorid) REFERENCES edfi.localedescriptor(localedescriptorid); + + +-- +-- Name: parentaddress fk_cc3333_parent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddress + ADD CONSTRAINT fk_cc3333_parent FOREIGN KEY (parentusi) REFERENCES edfi.parent(parentusi) ON DELETE CASCADE; + + +-- +-- Name: parentaddress fk_cc3333_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentaddress + ADD CONSTRAINT fk_cc3333_stateabbreviationdescriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: barriertointernetaccessinresidencedescriptor fk_cce75a_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.barriertointernetaccessinresidencedescriptor + ADD CONSTRAINT fk_cce75a_descriptor FOREIGN KEY (barriertointernetaccessinresidencedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: separationdescriptor fk_cd3406_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.separationdescriptor + ADD CONSTRAINT fk_cd3406_descriptor FOREIGN KEY (separationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffschoolassociation fk_ce2080_calendar; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociation + ADD CONSTRAINT fk_ce2080_calendar FOREIGN KEY (calendarcode, schoolid, schoolyear) REFERENCES edfi.calendar(calendarcode, schoolid, schoolyear); + + +-- +-- Name: staffschoolassociation fk_ce2080_programassignmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociation + ADD CONSTRAINT fk_ce2080_programassignmentdescriptor FOREIGN KEY (programassignmentdescriptorid) REFERENCES edfi.programassignmentdescriptor(programassignmentdescriptorid); + + +-- +-- Name: staffschoolassociation fk_ce2080_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociation + ADD CONSTRAINT fk_ce2080_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: staffschoolassociation fk_ce2080_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociation + ADD CONSTRAINT fk_ce2080_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: staffschoolassociation fk_ce2080_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociation + ADD CONSTRAINT fk_ce2080_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: operationalstatusdescriptor fk_ce3682_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.operationalstatusdescriptor + ADD CONSTRAINT fk_ce3682_descriptor FOREIGN KEY (operationalstatusdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: curriculumuseddescriptor fk_cec9f6_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.curriculumuseddescriptor + ADD CONSTRAINT fk_cec9f6_descriptor FOREIGN KEY (curriculumuseddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: networkpurposedescriptor fk_cf38e3_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.networkpurposedescriptor + ADD CONSTRAINT fk_cf38e3_descriptor FOREIGN KEY (networkpurposedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courseoffering fk_courseoffering_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseoffering + ADD CONSTRAINT fk_courseoffering_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: courseofferingcourselevelcharacteristic fk_courseofferingcourselevelcharacteristic_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcourselevelcharacteristic + ADD CONSTRAINT fk_courseofferingcourselevelcharacteristic_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: courseofferingcurriculumused fk_courseofferingcurriculumused_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingcurriculumused + ADD CONSTRAINT fk_courseofferingcurriculumused_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: courseofferingofferedgradelevel fk_courseofferingofferedgradelevel_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseofferingofferedgradelevel + ADD CONSTRAINT fk_courseofferingofferedgradelevel_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: surveyquestionresponsevalue fk_d047f5_surveyquestionresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponsevalue + ADD CONSTRAINT fk_d047f5_surveyquestionresponse FOREIGN KEY (namespace, questioncode, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyquestionresponse(namespace, questioncode, surveyidentifier, surveyresponseidentifier) ON DELETE CASCADE; + + +-- +-- Name: progressdescriptor fk_d0b3fc_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.progressdescriptor + ADD CONSTRAINT fk_d0b3fc_descriptor FOREIGN KEY (progressdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentcohortassociationsection fk_d2362d_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcohortassociationsection + ADD CONSTRAINT fk_d2362d_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: studentcohortassociationsection fk_d2362d_studentcohortassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcohortassociationsection + ADD CONSTRAINT fk_d2362d_studentcohortassociation FOREIGN KEY (begindate, cohortidentifier, educationorganizationid, studentusi) REFERENCES edfi.studentcohortassociation(begindate, cohortidentifier, educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: accountaccountcode fk_d24efe_account; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountaccountcode + ADD CONSTRAINT fk_d24efe_account FOREIGN KEY (accountidentifier, educationorganizationid, fiscalyear) REFERENCES edfi.account(accountidentifier, educationorganizationid, fiscalyear) ON DELETE CASCADE; + + +-- +-- Name: accountaccountcode fk_d24efe_accountcode; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountaccountcode + ADD CONSTRAINT fk_d24efe_accountcode FOREIGN KEY (accountclassificationdescriptorid, accountcodenumber, educationorganizationid, fiscalyear) REFERENCES edfi.accountcode(accountclassificationdescriptorid, accountcodenumber, educationorganizationid, fiscalyear); + + +-- +-- Name: incidentlocationdescriptor fk_d24f76_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.incidentlocationdescriptor + ADD CONSTRAINT fk_d24f76_descriptor FOREIGN KEY (incidentlocationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentlearningobjectivestudentsectionassociation fk_d2c8a9_studentlearningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjectivestudentsectionassociation + ADD CONSTRAINT fk_d2c8a9_studentlearningobjective FOREIGN KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi) REFERENCES edfi.studentlearningobjective(gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, learningobjectiveid, namespace, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentlearningobjectivestudentsectionassociation fk_d2c8a9_studentsectionassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentlearningobjectivestudentsectionassociation + ADD CONSTRAINT fk_d2c8a9_studentsectionassociation FOREIGN KEY (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.studentsectionassociation(begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) ON UPDATE CASCADE; + + +-- +-- Name: institutiontelephonenumbertypedescriptor fk_d35038_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.institutiontelephonenumbertypedescriptor + ADD CONSTRAINT fk_d35038_descriptor FOREIGN KEY (institutiontelephonenumbertypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: restrainteventprogram fk_d3d793_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventprogram + ADD CONSTRAINT fk_d3d793_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: restrainteventprogram fk_d3d793_restraintevent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventprogram + ADD CONSTRAINT fk_d3d793_restraintevent FOREIGN KEY (restrainteventidentifier, schoolid, studentusi) REFERENCES edfi.restraintevent(restrainteventidentifier, schoolid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationaddressperiod fk_d44be7_educationorganizationaddress; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationaddressperiod + ADD CONSTRAINT fk_d44be7_educationorganizationaddress FOREIGN KEY (addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername) REFERENCES edfi.educationorganizationaddress(addresstypedescriptorid, city, educationorganizationid, postalcode, stateabbreviationdescriptorid, streetnumbername) ON DELETE CASCADE; + + +-- +-- Name: interventionstudyappropriatesex fk_d53ee9_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyappropriatesex + ADD CONSTRAINT fk_d53ee9_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionstudyappropriatesex fk_d53ee9_sexdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyappropriatesex + ADD CONSTRAINT fk_d53ee9_sexdescriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.sexdescriptor(sexdescriptorid); + + +-- +-- Name: diplomaleveldescriptor fk_d5a798_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.diplomaleveldescriptor + ADD CONSTRAINT fk_d5a798_descriptor FOREIGN KEY (diplomaleveldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: calendar fk_d5d0a3_calendartypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendar + ADD CONSTRAINT fk_d5d0a3_calendartypedescriptor FOREIGN KEY (calendartypedescriptorid) REFERENCES edfi.calendartypedescriptor(calendartypedescriptorid); + + +-- +-- Name: calendar fk_d5d0a3_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendar + ADD CONSTRAINT fk_d5d0a3_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: calendar fk_d5d0a3_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendar + ADD CONSTRAINT fk_d5d0a3_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: restrainteventreasondescriptor fk_d6141f_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventreasondescriptor + ADD CONSTRAINT fk_d6141f_descriptor FOREIGN KEY (restrainteventreasondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: educationcontentlanguage fk_d678fa_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentlanguage + ADD CONSTRAINT fk_d678fa_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: educationcontentlanguage fk_d678fa_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentlanguage + ADD CONSTRAINT fk_d678fa_languagedescriptor FOREIGN KEY (languagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: magnetspecialprogramemphasisschooldescriptor fk_d738d4_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.magnetspecialprogramemphasisschooldescriptor + ADD CONSTRAINT fk_d738d4_descriptor FOREIGN KEY (magnetspecialprogramemphasisschooldescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: repeatidentifierdescriptor fk_d881e7_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.repeatidentifierdescriptor + ADD CONSTRAINT fk_d881e7_descriptor FOREIGN KEY (repeatidentifierdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffschoolassociationacademicsubject fk_d891fb_academicsubjectdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociationacademicsubject + ADD CONSTRAINT fk_d891fb_academicsubjectdescriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.academicsubjectdescriptor(academicsubjectdescriptorid); + + +-- +-- Name: staffschoolassociationacademicsubject fk_d891fb_staffschoolassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffschoolassociationacademicsubject + ADD CONSTRAINT fk_d891fb_staffschoolassociation FOREIGN KEY (programassignmentdescriptorid, schoolid, staffusi) REFERENCES edfi.staffschoolassociation(programassignmentdescriptorid, schoolid, staffusi) ON DELETE CASCADE; + + +-- +-- Name: assessmentlanguage fk_d90abb_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentlanguage + ADD CONSTRAINT fk_d90abb_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentlanguage fk_d90abb_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentlanguage + ADD CONSTRAINT fk_d90abb_languagedescriptor FOREIGN KEY (languagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: interventionstudy fk_d92986_deliverymethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudy + ADD CONSTRAINT fk_d92986_deliverymethoddescriptor FOREIGN KEY (deliverymethoddescriptorid) REFERENCES edfi.deliverymethoddescriptor(deliverymethoddescriptorid); + + +-- +-- Name: interventionstudy fk_d92986_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudy + ADD CONSTRAINT fk_d92986_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: interventionstudy fk_d92986_interventionclassdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudy + ADD CONSTRAINT fk_d92986_interventionclassdescriptor FOREIGN KEY (interventionclassdescriptorid) REFERENCES edfi.interventionclassdescriptor(interventionclassdescriptorid); + + +-- +-- Name: interventionstudy fk_d92986_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudy + ADD CONSTRAINT fk_d92986_interventionprescription FOREIGN KEY (interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: staffelectronicmail fk_d93663_electronicmailtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffelectronicmail + ADD CONSTRAINT fk_d93663_electronicmailtypedescriptor FOREIGN KEY (electronicmailtypedescriptorid) REFERENCES edfi.electronicmailtypedescriptor(electronicmailtypedescriptorid); + + +-- +-- Name: staffelectronicmail fk_d93663_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffelectronicmail + ADD CONSTRAINT fk_d93663_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: objectiveassessmentassessmentitem fk_d98560_assessmentitem; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentassessmentitem + ADD CONSTRAINT fk_d98560_assessmentitem FOREIGN KEY (assessmentidentifier, assessmentitemidentificationcode, namespace) REFERENCES edfi.assessmentitem(assessmentidentifier, identificationcode, namespace); + + +-- +-- Name: objectiveassessmentassessmentitem fk_d98560_objectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.objectiveassessmentassessmentitem + ADD CONSTRAINT fk_d98560_objectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace) REFERENCES edfi.objectiveassessment(assessmentidentifier, identificationcode, namespace) ON DELETE CASCADE; + + +-- +-- Name: studentmigranteducationprogramassociationmigranteducatio_d9dcd7 fk_d9dcd7_migranteducationprogramservicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 + ADD CONSTRAINT fk_d9dcd7_migranteducationprogramservicedescriptor FOREIGN KEY (migranteducationprogramservicedescriptorid) REFERENCES edfi.migranteducationprogramservicedescriptor(migranteducationprogramservicedescriptorid); + + +-- +-- Name: studentmigranteducationprogramassociationmigranteducatio_d9dcd7 fk_d9dcd7_studentmigranteducationprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentmigranteducationprogramassociationmigranteducatio_d9dcd7 + ADD CONSTRAINT fk_d9dcd7_studentmigranteducationprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentmigranteducationprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: schoolfoodserviceprogramservicedescriptor fk_da19fa_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schoolfoodserviceprogramservicedescriptor + ADD CONSTRAINT fk_da19fa_descriptor FOREIGN KEY (schoolfoodserviceprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: graduationplancreditsbycoursecourse fk_dafcc7_course; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycoursecourse + ADD CONSTRAINT fk_dafcc7_course FOREIGN KEY (coursecode, courseeducationorganizationid) REFERENCES edfi.course(coursecode, educationorganizationid); + + +-- +-- Name: graduationplancreditsbycoursecourse fk_dafcc7_graduationplancreditsbycourse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycoursecourse + ADD CONSTRAINT fk_dafcc7_graduationplancreditsbycourse FOREIGN KEY (coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) REFERENCES edfi.graduationplancreditsbycourse(coursesetname, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) ON DELETE CASCADE; + + +-- +-- Name: graduationplanrequiredassessmentscore fk_db9e7c_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentscore + ADD CONSTRAINT fk_db9e7c_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: graduationplanrequiredassessmentscore fk_db9e7c_graduationplanrequiredassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentscore + ADD CONSTRAINT fk_db9e7c_graduationplanrequiredassessment FOREIGN KEY (assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace) REFERENCES edfi.graduationplanrequiredassessment(assessmentidentifier, educationorganizationid, graduationplantypedescriptorid, graduationschoolyear, namespace) ON DELETE CASCADE; + + +-- +-- Name: graduationplanrequiredassessmentscore fk_db9e7c_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplanrequiredassessmentscore + ADD CONSTRAINT fk_db9e7c_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: assessmentreportingmethoddescriptor fk_dbee26_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentreportingmethoddescriptor + ADD CONSTRAINT fk_dbee26_descriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: assessmentitem fk_dc3dcf_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitem + ADD CONSTRAINT fk_dc3dcf_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace); + + +-- +-- Name: assessmentitem fk_dc3dcf_assessmentitemcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentitem + ADD CONSTRAINT fk_dc3dcf_assessmentitemcategorydescriptor FOREIGN KEY (assessmentitemcategorydescriptorid) REFERENCES edfi.assessmentitemcategorydescriptor(assessmentitemcategorydescriptorid); + + +-- +-- Name: educationorganizationindicator fk_dde098_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicator + ADD CONSTRAINT fk_dde098_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationindicator fk_dde098_indicatordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicator + ADD CONSTRAINT fk_dde098_indicatordescriptor FOREIGN KEY (indicatordescriptorid) REFERENCES edfi.indicatordescriptor(indicatordescriptorid); + + +-- +-- Name: educationorganizationindicator fk_dde098_indicatorgroupdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicator + ADD CONSTRAINT fk_dde098_indicatorgroupdescriptor FOREIGN KEY (indicatorgroupdescriptorid) REFERENCES edfi.indicatorgroupdescriptor(indicatorgroupdescriptorid); + + +-- +-- Name: educationorganizationindicator fk_dde098_indicatorleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationindicator + ADD CONSTRAINT fk_dde098_indicatorleveldescriptor FOREIGN KEY (indicatorleveldescriptorid) REFERENCES edfi.indicatorleveldescriptor(indicatorleveldescriptorid); + + +-- +-- Name: graduationplancreditsbycreditcategory fk_ddfc9b_creditcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycreditcategory + ADD CONSTRAINT fk_ddfc9b_creditcategorydescriptor FOREIGN KEY (creditcategorydescriptorid) REFERENCES edfi.creditcategorydescriptor(creditcategorydescriptorid); + + +-- +-- Name: graduationplancreditsbycreditcategory fk_ddfc9b_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycreditcategory + ADD CONSTRAINT fk_ddfc9b_credittypedescriptor FOREIGN KEY (credittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: graduationplancreditsbycreditcategory fk_ddfc9b_graduationplan; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.graduationplancreditsbycreditcategory + ADD CONSTRAINT fk_ddfc9b_graduationplan FOREIGN KEY (educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) REFERENCES edfi.graduationplan(educationorganizationid, graduationplantypedescriptorid, graduationschoolyear) ON DELETE CASCADE; + + +-- +-- Name: studentassessmentaccommodation fk_de959d_accommodationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentaccommodation + ADD CONSTRAINT fk_de959d_accommodationdescriptor FOREIGN KEY (accommodationdescriptorid) REFERENCES edfi.accommodationdescriptor(accommodationdescriptorid); + + +-- +-- Name: studentassessmentaccommodation fk_de959d_studentassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentaccommodation + ADD CONSTRAINT fk_de959d_studentassessment FOREIGN KEY (assessmentidentifier, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessment(assessmentidentifier, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: staffleave fk_debd4f_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffleave + ADD CONSTRAINT fk_debd4f_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: staffleave fk_debd4f_staffleaveeventcategorydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffleave + ADD CONSTRAINT fk_debd4f_staffleaveeventcategorydescriptor FOREIGN KEY (staffleaveeventcategorydescriptorid) REFERENCES edfi.staffleaveeventcategorydescriptor(staffleaveeventcategorydescriptorid); + + +-- +-- Name: assessmentscore fk_df7331_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscore + ADD CONSTRAINT fk_df7331_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentscore fk_df7331_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscore + ADD CONSTRAINT fk_df7331_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: assessmentscore fk_df7331_resultdatatypetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentscore + ADD CONSTRAINT fk_df7331_resultdatatypetypedescriptor FOREIGN KEY (resultdatatypetypedescriptorid) REFERENCES edfi.resultdatatypetypedescriptor(resultdatatypetypedescriptorid); + + +-- +-- Name: section fk_dfca5d_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: section fk_dfca5d_credittypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_credittypedescriptor FOREIGN KEY (availablecredittypedescriptorid) REFERENCES edfi.credittypedescriptor(credittypedescriptorid); + + +-- +-- Name: section fk_dfca5d_educationalenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_educationalenvironmentdescriptor FOREIGN KEY (educationalenvironmentdescriptorid) REFERENCES edfi.educationalenvironmentdescriptor(educationalenvironmentdescriptorid); + + +-- +-- Name: section fk_dfca5d_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_languagedescriptor FOREIGN KEY (instructionlanguagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: section fk_dfca5d_location; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_location FOREIGN KEY (locationclassroomidentificationcode, locationschoolid) REFERENCES edfi.location(classroomidentificationcode, schoolid) ON UPDATE CASCADE; + + +-- +-- Name: section fk_dfca5d_mediumofinstructiondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_mediumofinstructiondescriptor FOREIGN KEY (mediumofinstructiondescriptorid) REFERENCES edfi.mediumofinstructiondescriptor(mediumofinstructiondescriptorid); + + +-- +-- Name: section fk_dfca5d_populationserveddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_populationserveddescriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.populationserveddescriptor(populationserveddescriptorid); + + +-- +-- Name: section fk_dfca5d_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_dfca5d_school FOREIGN KEY (locationschoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: additionalcredittypedescriptor fk_e069dd_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.additionalcredittypedescriptor + ADD CONSTRAINT fk_e069dd_descriptor FOREIGN KEY (additionalcredittypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: indicatorgroupdescriptor fk_e0f6fe_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.indicatorgroupdescriptor + ADD CONSTRAINT fk_e0f6fe_descriptor FOREIGN KEY (indicatorgroupdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: interventionprescriptionlearningresourcemetadatauri fk_e12298_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescriptionlearningresourcemetadatauri + ADD CONSTRAINT fk_e12298_interventionprescription FOREIGN KEY (educationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: openstaffpositioninstructionalgradelevel fk_e19c72_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffpositioninstructionalgradelevel + ADD CONSTRAINT fk_e19c72_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: openstaffpositioninstructionalgradelevel fk_e19c72_openstaffposition; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.openstaffpositioninstructionalgradelevel + ADD CONSTRAINT fk_e19c72_openstaffposition FOREIGN KEY (educationorganizationid, requisitionnumber) REFERENCES edfi.openstaffposition(educationorganizationid, requisitionnumber) ON DELETE CASCADE; + + +-- +-- Name: disciplineactionlengthdifferencereasondescriptor fk_e1a229_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionlengthdifferencereasondescriptor + ADD CONSTRAINT fk_e1a229_descriptor FOREIGN KEY (disciplineactionlengthdifferencereasondescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: restrainteventreason fk_e232ae_restraintevent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventreason + ADD CONSTRAINT fk_e232ae_restraintevent FOREIGN KEY (restrainteventidentifier, schoolid, studentusi) REFERENCES edfi.restraintevent(restrainteventidentifier, schoolid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: restrainteventreason fk_e232ae_restrainteventreasondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.restrainteventreason + ADD CONSTRAINT fk_e232ae_restrainteventreasondescriptor FOREIGN KEY (restrainteventreasondescriptorid) REFERENCES edfi.restrainteventreasondescriptor(restrainteventreasondescriptorid); + + +-- +-- Name: staffvisa fk_e27213_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffvisa + ADD CONSTRAINT fk_e27213_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: staffvisa fk_e27213_visadescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffvisa + ADD CONSTRAINT fk_e27213_visadescriptor FOREIGN KEY (visadescriptorid) REFERENCES edfi.visadescriptor(visadescriptorid); + + +-- +-- Name: credittypedescriptor fk_e31da0_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credittypedescriptor + ADD CONSTRAINT fk_e31da0_descriptor FOREIGN KEY (credittypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: personalinformationverificationdescriptor fk_e35818_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.personalinformationverificationdescriptor + ADD CONSTRAINT fk_e35818_descriptor FOREIGN KEY (personalinformationverificationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: levelofeducationdescriptor fk_e37e5f_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.levelofeducationdescriptor + ADD CONSTRAINT fk_e37e5f_descriptor FOREIGN KEY (levelofeducationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: languageinstructionprogramservicedescriptor fk_e3a7b7_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.languageinstructionprogramservicedescriptor + ADD CONSTRAINT fk_e3a7b7_descriptor FOREIGN KEY (languageinstructionprogramservicedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: surveyprogramassociation fk_e3e5a4_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyprogramassociation + ADD CONSTRAINT fk_e3e5a4_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid); + + +-- +-- Name: surveyprogramassociation fk_e3e5a4_survey; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyprogramassociation + ADD CONSTRAINT fk_e3e5a4_survey FOREIGN KEY (namespace, surveyidentifier) REFERENCES edfi.survey(namespace, surveyidentifier); + + +-- +-- Name: disciplineincident fk_e45c0b_incidentlocationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincident + ADD CONSTRAINT fk_e45c0b_incidentlocationdescriptor FOREIGN KEY (incidentlocationdescriptorid) REFERENCES edfi.incidentlocationdescriptor(incidentlocationdescriptorid); + + +-- +-- Name: disciplineincident fk_e45c0b_reporterdescriptiondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincident + ADD CONSTRAINT fk_e45c0b_reporterdescriptiondescriptor FOREIGN KEY (reporterdescriptiondescriptorid) REFERENCES edfi.reporterdescriptiondescriptor(reporterdescriptiondescriptorid); + + +-- +-- Name: disciplineincident fk_e45c0b_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincident + ADD CONSTRAINT fk_e45c0b_school FOREIGN KEY (schoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: disciplineincident fk_e45c0b_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineincident + ADD CONSTRAINT fk_e45c0b_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: academicsubjectdescriptor fk_e4b042_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.academicsubjectdescriptor + ADD CONSTRAINT fk_e4b042_descriptor FOREIGN KEY (academicsubjectdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: courseidentificationsystemdescriptor fk_e4ce6a_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.courseidentificationsystemdescriptor + ADD CONSTRAINT fk_e4ce6a_descriptor FOREIGN KEY (courseidentificationsystemdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: surveysection fk_e5572a_survey; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveysection + ADD CONSTRAINT fk_e5572a_survey FOREIGN KEY (namespace, surveyidentifier) REFERENCES edfi.survey(namespace, surveyidentifier); + + +-- +-- Name: educationorganizationinterventionprescriptionassociation fk_e670ae_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinterventionprescriptionassociation + ADD CONSTRAINT fk_e670ae_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: educationorganizationinterventionprescriptionassociation fk_e670ae_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationinterventionprescriptionassociation + ADD CONSTRAINT fk_e670ae_interventionprescription FOREIGN KEY (interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: stafftribalaffiliation fk_e77b10_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafftribalaffiliation + ADD CONSTRAINT fk_e77b10_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: stafftribalaffiliation fk_e77b10_tribalaffiliationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.stafftribalaffiliation + ADD CONSTRAINT fk_e77b10_tribalaffiliationdescriptor FOREIGN KEY (tribalaffiliationdescriptorid) REFERENCES edfi.tribalaffiliationdescriptor(tribalaffiliationdescriptorid); + + +-- +-- Name: interventioninterventionprescription fk_e79fe2_intervention; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioninterventionprescription + ADD CONSTRAINT fk_e79fe2_intervention FOREIGN KEY (educationorganizationid, interventionidentificationcode) REFERENCES edfi.intervention(educationorganizationid, interventionidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventioninterventionprescription fk_e79fe2_interventionprescription; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventioninterventionprescription + ADD CONSTRAINT fk_e79fe2_interventionprescription FOREIGN KEY (interventionprescriptioneducationorganizationid, interventionprescriptionidentificationcode) REFERENCES edfi.interventionprescription(educationorganizationid, interventionprescriptionidentificationcode); + + +-- +-- Name: coursetranscriptpartialcoursetranscriptawards fk_e811ad_coursetranscript; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptpartialcoursetranscriptawards + ADD CONSTRAINT fk_e811ad_coursetranscript FOREIGN KEY (courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) REFERENCES edfi.coursetranscript(courseattemptresultdescriptorid, coursecode, courseeducationorganizationid, educationorganizationid, schoolyear, studentusi, termdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: coursetranscriptpartialcoursetranscriptawards fk_e811ad_methodcreditearneddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.coursetranscriptpartialcoursetranscriptawards + ADD CONSTRAINT fk_e811ad_methodcreditearneddescriptor FOREIGN KEY (methodcreditearneddescriptorid) REFERENCES edfi.methodcreditearneddescriptor(methodcreditearneddescriptorid); + + +-- +-- Name: assessmentassessedgradelevel fk_e83625_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentassessedgradelevel + ADD CONSTRAINT fk_e83625_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace) ON DELETE CASCADE; + + +-- +-- Name: assessmentassessedgradelevel fk_e83625_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.assessmentassessedgradelevel + ADD CONSTRAINT fk_e83625_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: educationorganizationnetwork fk_e88dea_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationnetwork + ADD CONSTRAINT fk_e88dea_educationorganization FOREIGN KEY (educationorganizationnetworkid) REFERENCES edfi.educationorganization(educationorganizationid) ON DELETE CASCADE; + + +-- +-- Name: educationorganizationnetwork fk_e88dea_networkpurposedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationorganizationnetwork + ADD CONSTRAINT fk_e88dea_networkpurposedescriptor FOREIGN KEY (networkpurposedescriptorid) REFERENCES edfi.networkpurposedescriptor(networkpurposedescriptorid); + + +-- +-- Name: interventionprescription fk_e93bc3_deliverymethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescription + ADD CONSTRAINT fk_e93bc3_deliverymethoddescriptor FOREIGN KEY (deliverymethoddescriptorid) REFERENCES edfi.deliverymethoddescriptor(deliverymethoddescriptorid); + + +-- +-- Name: interventionprescription fk_e93bc3_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescription + ADD CONSTRAINT fk_e93bc3_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: interventionprescription fk_e93bc3_interventionclassdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionprescription + ADD CONSTRAINT fk_e93bc3_interventionclassdescriptor FOREIGN KEY (interventionclassdescriptorid) REFERENCES edfi.interventionclassdescriptor(interventionclassdescriptorid); + + +-- +-- Name: programservice fk_e943d3_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programservice + ADD CONSTRAINT fk_e943d3_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid) ON DELETE CASCADE; + + +-- +-- Name: programservice fk_e943d3_servicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programservice + ADD CONSTRAINT fk_e943d3_servicedescriptor FOREIGN KEY (servicedescriptorid) REFERENCES edfi.servicedescriptor(servicedescriptorid); + + +-- +-- Name: participationdescriptor fk_e94f88_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.participationdescriptor + ADD CONSTRAINT fk_e94f88_descriptor FOREIGN KEY (participationdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: diplomatypedescriptor fk_e9ffa4_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.diplomatypedescriptor + ADD CONSTRAINT fk_e9ffa4_descriptor FOREIGN KEY (diplomatypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentcteprogramassociationservice fk_eb5c90_servicedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationservice + ADD CONSTRAINT fk_eb5c90_servicedescriptor FOREIGN KEY (servicedescriptorid) REFERENCES edfi.servicedescriptor(servicedescriptorid); + + +-- +-- Name: studentcteprogramassociationservice fk_eb5c90_studentcteprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationservice + ADD CONSTRAINT fk_eb5c90_studentcteprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentcteprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: sexdescriptor fk_eb9b06_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sexdescriptor + ADD CONSTRAINT fk_eb9b06_descriptor FOREIGN KEY (sexdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: absenceeventcategorydescriptor fk_ec167f_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.absenceeventcategorydescriptor + ADD CONSTRAINT fk_ec167f_descriptor FOREIGN KEY (absenceeventcategorydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: reportcard fk_ec1992_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcard + ADD CONSTRAINT fk_ec1992_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: reportcard fk_ec1992_gradingperiod; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcard + ADD CONSTRAINT fk_ec1992_gradingperiod FOREIGN KEY (gradingperioddescriptorid, gradingperiodsequence, gradingperiodschoolid, gradingperiodschoolyear) REFERENCES edfi.gradingperiod(gradingperioddescriptorid, periodsequence, schoolid, schoolyear); + + +-- +-- Name: reportcard fk_ec1992_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcard + ADD CONSTRAINT fk_ec1992_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: surveyquestionresponse fk_eddd02_surveyquestion; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponse + ADD CONSTRAINT fk_eddd02_surveyquestion FOREIGN KEY (namespace, questioncode, surveyidentifier) REFERENCES edfi.surveyquestion(namespace, questioncode, surveyidentifier); + + +-- +-- Name: surveyquestionresponse fk_eddd02_surveyresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyquestionresponse + ADD CONSTRAINT fk_eddd02_surveyresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyresponse(namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: indicatordescriptor fk_ee0bbf_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.indicatordescriptor + ADD CONSTRAINT fk_ee0bbf_descriptor FOREIGN KEY (indicatordescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentassessment fk_ee3b2a_administrationenvironmentdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_administrationenvironmentdescriptor FOREIGN KEY (administrationenvironmentdescriptorid) REFERENCES edfi.administrationenvironmentdescriptor(administrationenvironmentdescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_assessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_assessment FOREIGN KEY (assessmentidentifier, namespace) REFERENCES edfi.assessment(assessmentidentifier, namespace); + + +-- +-- Name: studentassessment fk_ee3b2a_eventcircumstancedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_eventcircumstancedescriptor FOREIGN KEY (eventcircumstancedescriptorid) REFERENCES edfi.eventcircumstancedescriptor(eventcircumstancedescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_gradeleveldescriptor FOREIGN KEY (whenassessedgradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_languagedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_languagedescriptor FOREIGN KEY (administrationlanguagedescriptorid) REFERENCES edfi.languagedescriptor(languagedescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_platformtypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_platformtypedescriptor FOREIGN KEY (platformtypedescriptorid) REFERENCES edfi.platformtypedescriptor(platformtypedescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_reasonnottesteddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_reasonnottesteddescriptor FOREIGN KEY (reasonnottesteddescriptorid) REFERENCES edfi.reasonnottesteddescriptor(reasonnottesteddescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_retestindicatordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_retestindicatordescriptor FOREIGN KEY (retestindicatordescriptorid) REFERENCES edfi.retestindicatordescriptor(retestindicatordescriptorid); + + +-- +-- Name: studentassessment fk_ee3b2a_schoolyeartype; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_schoolyeartype FOREIGN KEY (schoolyear) REFERENCES edfi.schoolyeartype(schoolyear); + + +-- +-- Name: studentassessment fk_ee3b2a_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessment + ADD CONSTRAINT fk_ee3b2a_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: studentcteprogramassociationcteprogram fk_ee50f2_careerpathwaydescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationcteprogram + ADD CONSTRAINT fk_ee50f2_careerpathwaydescriptor FOREIGN KEY (careerpathwaydescriptorid) REFERENCES edfi.careerpathwaydescriptor(careerpathwaydescriptorid); + + +-- +-- Name: studentcteprogramassociationcteprogram fk_ee50f2_studentcteprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcteprogramassociationcteprogram + ADD CONSTRAINT fk_ee50f2_studentcteprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentcteprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentcompetencyobjectivestudentsectionassociation fk_ee68ed_studentcompetencyobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjectivestudentsectionassociation + ADD CONSTRAINT fk_ee68ed_studentcompetencyobjective FOREIGN KEY (gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi) REFERENCES edfi.studentcompetencyobjective(gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, objective, objectiveeducationorganizationid, objectivegradeleveldescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentcompetencyobjectivestudentsectionassociation fk_ee68ed_studentsectionassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentcompetencyobjectivestudentsectionassociation + ADD CONSTRAINT fk_ee68ed_studentsectionassociation FOREIGN KEY (begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.studentsectionassociation(begindate, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) ON UPDATE CASCADE; + + +-- +-- Name: disciplineaction fk_eec7b6_disciplineactionlengthdifferencereasondescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineaction + ADD CONSTRAINT fk_eec7b6_disciplineactionlengthdifferencereasondescriptor FOREIGN KEY (disciplineactionlengthdifferencereasondescriptorid) REFERENCES edfi.disciplineactionlengthdifferencereasondescriptor(disciplineactionlengthdifferencereasondescriptorid); + + +-- +-- Name: disciplineaction fk_eec7b6_school; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineaction + ADD CONSTRAINT fk_eec7b6_school FOREIGN KEY (responsibilityschoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: disciplineaction fk_eec7b6_school1; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineaction + ADD CONSTRAINT fk_eec7b6_school1 FOREIGN KEY (assignmentschoolid) REFERENCES edfi.school(schoolid); + + +-- +-- Name: disciplineaction fk_eec7b6_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineaction + ADD CONSTRAINT fk_eec7b6_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: schooltypedescriptor fk_ef0964_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.schooltypedescriptor + ADD CONSTRAINT fk_ef0964_descriptor FOREIGN KEY (schooltypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: disciplineactionstudentdisciplineincidentassociation fk_ef0ece_disciplineaction; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstudentdisciplineincidentassociation + ADD CONSTRAINT fk_ef0ece_disciplineaction FOREIGN KEY (disciplineactionidentifier, disciplinedate, studentusi) REFERENCES edfi.disciplineaction(disciplineactionidentifier, disciplinedate, studentusi) ON DELETE CASCADE; + + +-- +-- Name: disciplineactionstudentdisciplineincidentassociation fk_ef0ece_studentdisciplineincidentassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disciplineactionstudentdisciplineincidentassociation + ADD CONSTRAINT fk_ef0ece_studentdisciplineincidentassociation FOREIGN KEY (incidentidentifier, schoolid, studentusi) REFERENCES edfi.studentdisciplineincidentassociation(incidentidentifier, schoolid, studentusi); + + +-- +-- Name: interventionstudyinterventioneffectiveness fk_ef90b6_diagnosisdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyinterventioneffectiveness + ADD CONSTRAINT fk_ef90b6_diagnosisdescriptor FOREIGN KEY (diagnosisdescriptorid) REFERENCES edfi.diagnosisdescriptor(diagnosisdescriptorid); + + +-- +-- Name: interventionstudyinterventioneffectiveness fk_ef90b6_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyinterventioneffectiveness + ADD CONSTRAINT fk_ef90b6_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: interventionstudyinterventioneffectiveness fk_ef90b6_interventioneffectivenessratingdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyinterventioneffectiveness + ADD CONSTRAINT fk_ef90b6_interventioneffectivenessratingdescriptor FOREIGN KEY (interventioneffectivenessratingdescriptorid) REFERENCES edfi.interventioneffectivenessratingdescriptor(interventioneffectivenessratingdescriptorid); + + +-- +-- Name: interventionstudyinterventioneffectiveness fk_ef90b6_interventionstudy; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyinterventioneffectiveness + ADD CONSTRAINT fk_ef90b6_interventionstudy FOREIGN KEY (educationorganizationid, interventionstudyidentificationcode) REFERENCES edfi.interventionstudy(educationorganizationid, interventionstudyidentificationcode) ON DELETE CASCADE; + + +-- +-- Name: interventionstudyinterventioneffectiveness fk_ef90b6_populationserveddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.interventionstudyinterventioneffectiveness + ADD CONSTRAINT fk_ef90b6_populationserveddescriptor FOREIGN KEY (populationserveddescriptorid) REFERENCES edfi.populationserveddescriptor(populationserveddescriptorid); + + +-- +-- Name: othernametypedescriptor fk_f020d2_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.othernametypedescriptor + ADD CONSTRAINT fk_f020d2_descriptor FOREIGN KEY (othernametypedescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: credentialgradelevel fk_f05a16_credential; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialgradelevel + ADD CONSTRAINT fk_f05a16_credential FOREIGN KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid) REFERENCES edfi.credential(credentialidentifier, stateofissuestateabbreviationdescriptorid) ON DELETE CASCADE; + + +-- +-- Name: credentialgradelevel fk_f05a16_gradeleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.credentialgradelevel + ADD CONSTRAINT fk_f05a16_gradeleveldescriptor FOREIGN KEY (gradeleveldescriptorid) REFERENCES edfi.gradeleveldescriptor(gradeleveldescriptorid); + + +-- +-- Name: communityproviderlicense fk_f092ff_communityprovider; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityproviderlicense + ADD CONSTRAINT fk_f092ff_communityprovider FOREIGN KEY (communityproviderid) REFERENCES edfi.communityprovider(communityproviderid); + + +-- +-- Name: communityproviderlicense fk_f092ff_licensestatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityproviderlicense + ADD CONSTRAINT fk_f092ff_licensestatusdescriptor FOREIGN KEY (licensestatusdescriptorid) REFERENCES edfi.licensestatusdescriptor(licensestatusdescriptorid); + + +-- +-- Name: communityproviderlicense fk_f092ff_licensetypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.communityproviderlicense + ADD CONSTRAINT fk_f092ff_licensetypedescriptor FOREIGN KEY (licensetypedescriptorid) REFERENCES edfi.licensetypedescriptor(licensetypedescriptorid); + + +-- +-- Name: reportcardgrade fk_f203d3_grade; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardgrade + ADD CONSTRAINT fk_f203d3_grade FOREIGN KEY (begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) REFERENCES edfi.grade(begindate, gradetypedescriptorid, gradingperioddescriptorid, gradingperiodschoolyear, gradingperiodsequence, localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname, studentusi) ON UPDATE CASCADE; + + +-- +-- Name: reportcardgrade fk_f203d3_reportcard; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.reportcardgrade + ADD CONSTRAINT fk_f203d3_reportcard FOREIGN KEY (educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) REFERENCES edfi.reportcard(educationorganizationid, gradingperioddescriptorid, gradingperiodschoolid, gradingperiodschoolyear, gradingperiodsequence, studentusi) ON DELETE CASCADE; + + +-- +-- Name: sectioncourselevelcharacteristic fk_f221cc_courselevelcharacteristicdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncourselevelcharacteristic + ADD CONSTRAINT fk_f221cc_courselevelcharacteristicdescriptor FOREIGN KEY (courselevelcharacteristicdescriptorid) REFERENCES edfi.courselevelcharacteristicdescriptor(courselevelcharacteristicdescriptorid); + + +-- +-- Name: sectioncourselevelcharacteristic fk_f221cc_section; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sectioncourselevelcharacteristic + ADD CONSTRAINT fk_f221cc_section FOREIGN KEY (localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) REFERENCES edfi.section(localcoursecode, schoolid, schoolyear, sectionidentifier, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: studentassessmentstudentobjectiveassessmentperformancelevel fk_f32347_assessmentreportingmethoddescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentperformancelevel + ADD CONSTRAINT fk_f32347_assessmentreportingmethoddescriptor FOREIGN KEY (assessmentreportingmethoddescriptorid) REFERENCES edfi.assessmentreportingmethoddescriptor(assessmentreportingmethoddescriptorid); + + +-- +-- Name: studentassessmentstudentobjectiveassessmentperformancelevel fk_f32347_performanceleveldescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentperformancelevel + ADD CONSTRAINT fk_f32347_performanceleveldescriptor FOREIGN KEY (performanceleveldescriptorid) REFERENCES edfi.performanceleveldescriptor(performanceleveldescriptorid); + + +-- +-- Name: studentassessmentstudentobjectiveassessmentperformancelevel fk_f32347_studentassessmentstudentobjectiveassessment; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentassessmentstudentobjectiveassessmentperformancelevel + ADD CONSTRAINT fk_f32347_studentassessmentstudentobjectiveassessment FOREIGN KEY (assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi) REFERENCES edfi.studentassessmentstudentobjectiveassessment(assessmentidentifier, identificationcode, namespace, studentassessmentidentifier, studentusi) ON DELETE CASCADE; + + +-- +-- Name: termdescriptor fk_f36b04_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.termdescriptor + ADD CONSTRAINT fk_f36b04_descriptor FOREIGN KEY (termdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: staffcredential fk_f3917b_credential; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffcredential + ADD CONSTRAINT fk_f3917b_credential FOREIGN KEY (credentialidentifier, stateofissuestateabbreviationdescriptorid) REFERENCES edfi.credential(credentialidentifier, stateofissuestateabbreviationdescriptorid); + + +-- +-- Name: staffcredential fk_f3917b_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.staffcredential + ADD CONSTRAINT fk_f3917b_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi) ON DELETE CASCADE; + + +-- +-- Name: studentdisciplineincidentbehaviorassociation fk_f4934f_behaviordescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociation + ADD CONSTRAINT fk_f4934f_behaviordescriptor FOREIGN KEY (behaviordescriptorid) REFERENCES edfi.behaviordescriptor(behaviordescriptorid); + + +-- +-- Name: studentdisciplineincidentbehaviorassociation fk_f4934f_disciplineincident; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociation + ADD CONSTRAINT fk_f4934f_disciplineincident FOREIGN KEY (incidentidentifier, schoolid) REFERENCES edfi.disciplineincident(incidentidentifier, schoolid); + + +-- +-- Name: studentdisciplineincidentbehaviorassociation fk_f4934f_student; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentdisciplineincidentbehaviorassociation + ADD CONSTRAINT fk_f4934f_student FOREIGN KEY (studentusi) REFERENCES edfi.student(studentusi); + + +-- +-- Name: programlearningobjective fk_f5911f_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programlearningobjective + ADD CONSTRAINT fk_f5911f_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace); + + +-- +-- Name: programlearningobjective fk_f5911f_program; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.programlearningobjective + ADD CONSTRAINT fk_f5911f_program FOREIGN KEY (educationorganizationid, programname, programtypedescriptorid) REFERENCES edfi.program(educationorganizationid, programname, programtypedescriptorid) ON DELETE CASCADE; + + +-- +-- Name: calendareventdescriptor fk_f598e5_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.calendareventdescriptor + ADD CONSTRAINT fk_f598e5_descriptor FOREIGN KEY (calendareventdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentschoolassociationeducationplan fk_f5b9f6_educationplandescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociationeducationplan + ADD CONSTRAINT fk_f5b9f6_educationplandescriptor FOREIGN KEY (educationplandescriptorid) REFERENCES edfi.educationplandescriptor(educationplandescriptorid); + + +-- +-- Name: studentschoolassociationeducationplan fk_f5b9f6_studentschoolassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolassociationeducationplan + ADD CONSTRAINT fk_f5b9f6_studentschoolassociation FOREIGN KEY (entrydate, schoolid, studentusi) REFERENCES edfi.studentschoolassociation(entrydate, schoolid, studentusi) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: educationcontentauthor fk_f605af_educationcontent; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.educationcontentauthor + ADD CONSTRAINT fk_f605af_educationcontent FOREIGN KEY (contentidentifier) REFERENCES edfi.educationcontent(contentidentifier) ON DELETE CASCADE; + + +-- +-- Name: parentlanguageuse fk_f67c61_languageusedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentlanguageuse + ADD CONSTRAINT fk_f67c61_languageusedescriptor FOREIGN KEY (languageusedescriptorid) REFERENCES edfi.languageusedescriptor(languageusedescriptorid); + + +-- +-- Name: parentlanguageuse fk_f67c61_parentlanguage; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.parentlanguageuse + ADD CONSTRAINT fk_f67c61_parentlanguage FOREIGN KEY (languagedescriptorid, parentusi) REFERENCES edfi.parentlanguage(languagedescriptorid, parentusi) ON DELETE CASCADE; + + +-- +-- Name: sourcesystemdescriptor fk_f71783_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sourcesystemdescriptor + ADD CONSTRAINT fk_f71783_descriptor FOREIGN KEY (sourcesystemdescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: disabilitydescriptor fk_f7280b_descriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.disabilitydescriptor + ADD CONSTRAINT fk_f7280b_descriptor FOREIGN KEY (disabilitydescriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: studentspecialeducationprogramassociation fk_f86fd9_generalstudentprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociation + ADD CONSTRAINT fk_f86fd9_generalstudentprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.generalstudentprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: studentspecialeducationprogramassociation fk_f86fd9_specialeducationsettingdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociation + ADD CONSTRAINT fk_f86fd9_specialeducationsettingdescriptor FOREIGN KEY (specialeducationsettingdescriptorid) REFERENCES edfi.specialeducationsettingdescriptor(specialeducationsettingdescriptorid); + + +-- +-- Name: surveyresponsestafftargetassociation fk_f9457e_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponsestafftargetassociation + ADD CONSTRAINT fk_f9457e_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: surveyresponsestafftargetassociation fk_f9457e_surveyresponse; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.surveyresponsestafftargetassociation + ADD CONSTRAINT fk_f9457e_surveyresponse FOREIGN KEY (namespace, surveyidentifier, surveyresponseidentifier) REFERENCES edfi.surveyresponse(namespace, surveyidentifier, surveyresponseidentifier); + + +-- +-- Name: learningobjectivecontentstandard fk_f99184_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivecontentstandard + ADD CONSTRAINT fk_f99184_educationorganization FOREIGN KEY (mandatingeducationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: learningobjectivecontentstandard fk_f99184_learningobjective; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivecontentstandard + ADD CONSTRAINT fk_f99184_learningobjective FOREIGN KEY (learningobjectiveid, namespace) REFERENCES edfi.learningobjective(learningobjectiveid, namespace) ON DELETE CASCADE; + + +-- +-- Name: learningobjectivecontentstandard fk_f99184_publicationstatusdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.learningobjectivecontentstandard + ADD CONSTRAINT fk_f99184_publicationstatusdescriptor FOREIGN KEY (publicationstatusdescriptorid) REFERENCES edfi.publicationstatusdescriptor(publicationstatusdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationaddress fk_f9e163_addresstypedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddress + ADD CONSTRAINT fk_f9e163_addresstypedescriptor FOREIGN KEY (addresstypedescriptorid) REFERENCES edfi.addresstypedescriptor(addresstypedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationaddress fk_f9e163_localedescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddress + ADD CONSTRAINT fk_f9e163_localedescriptor FOREIGN KEY (localedescriptorid) REFERENCES edfi.localedescriptor(localedescriptorid); + + +-- +-- Name: studenteducationorganizationassociationaddress fk_f9e163_stateabbreviationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddress + ADD CONSTRAINT fk_f9e163_stateabbreviationdescriptor FOREIGN KEY (stateabbreviationdescriptorid) REFERENCES edfi.stateabbreviationdescriptor(stateabbreviationdescriptorid); + + +-- +-- Name: studenteducationorganizationassociationaddress fk_f9e163_studenteducationorganizationassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studenteducationorganizationassociationaddress + ADD CONSTRAINT fk_f9e163_studenteducationorganizationassociation FOREIGN KEY (educationorganizationid, studentusi) REFERENCES edfi.studenteducationorganizationassociation(educationorganizationid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: accountcode fk_fb1ef3_accountclassificationdescriptor; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountcode + ADD CONSTRAINT fk_fb1ef3_accountclassificationdescriptor FOREIGN KEY (accountclassificationdescriptorid) REFERENCES edfi.accountclassificationdescriptor(accountclassificationdescriptorid); + + +-- +-- Name: accountcode fk_fb1ef3_educationorganization; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.accountcode + ADD CONSTRAINT fk_fb1ef3_educationorganization FOREIGN KEY (educationorganizationid) REFERENCES edfi.educationorganization(educationorganizationid); + + +-- +-- Name: studentspecialeducationprogramassociationserviceprovider fk_fece89_staff; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationserviceprovider + ADD CONSTRAINT fk_fece89_staff FOREIGN KEY (staffusi) REFERENCES edfi.staff(staffusi); + + +-- +-- Name: studentspecialeducationprogramassociationserviceprovider fk_fece89_studentspecialeducationprogramassociation; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentspecialeducationprogramassociationserviceprovider + ADD CONSTRAINT fk_fece89_studentspecialeducationprogramassociation FOREIGN KEY (begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) REFERENCES edfi.studentspecialeducationprogramassociation(begindate, educationorganizationid, programeducationorganizationid, programname, programtypedescriptorid, studentusi) ON DELETE CASCADE; + + +-- +-- Name: section fk_section_courseoffering; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.section + ADD CONSTRAINT fk_section_courseoffering FOREIGN KEY (localcoursecode, schoolid, schoolyear, sessionname) REFERENCES edfi.courseoffering(localcoursecode, schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: sessionacademicweek fk_sessionacademicweek_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessionacademicweek + ADD CONSTRAINT fk_sessionacademicweek_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: sessiongradingperiod fk_sessiongradingperiod_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.sessiongradingperiod + ADD CONSTRAINT fk_sessiongradingperiod_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE ON DELETE CASCADE; + + +-- +-- Name: studentschoolattendanceevent fk_studentschoolattendanceevent_session; Type: FK CONSTRAINT; Schema: edfi; Owner: postgres +-- + +ALTER TABLE ONLY edfi.studentschoolattendanceevent + ADD CONSTRAINT fk_studentschoolattendanceevent_session FOREIGN KEY (schoolid, schoolyear, sessionname) REFERENCES edfi.session(schoolid, schoolyear, sessionname) ON UPDATE CASCADE; + + +-- +-- Name: descriptorequivalencegroupassignment fk_descequivgroupassign_descriptor; Type: FK CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroupassignment + ADD CONSTRAINT fk_descequivgroupassign_descriptor FOREIGN KEY (descriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: descriptorequivalencegroupassignment fk_descequivgroupassign_descriptorequivalencegroup; Type: FK CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroupassignment + ADD CONSTRAINT fk_descequivgroupassign_descriptorequivalencegroup FOREIGN KEY (descriptorequivalencegroupid) REFERENCES interop.descriptorequivalencegroup(descriptorequivalencegroupid); + + +-- +-- Name: descriptorequivalencegroupgeneralization fk_descequivgroupgeneral_descriptorequivalencegroup; Type: FK CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroupgeneralization + ADD CONSTRAINT fk_descequivgroupgeneral_descriptorequivalencegroup FOREIGN KEY (descriptorequivalencegroupid) REFERENCES interop.descriptorequivalencegroup(descriptorequivalencegroupid); + + +-- +-- Name: descriptorequivalencegroupgeneralization fk_descequivgroupgeneral_descriptorequivalencegroupgeneral; Type: FK CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.descriptorequivalencegroupgeneralization + ADD CONSTRAINT fk_descequivgroupgeneral_descriptorequivalencegroupgeneral FOREIGN KEY (generalizationdescriptorequivalencegroupid) REFERENCES interop.descriptorequivalencegroup(descriptorequivalencegroupid); + + +-- +-- Name: operationalcontextdescriptorusage fk_operationalcontextdescriptorusage_descriptor; Type: FK CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.operationalcontextdescriptorusage + ADD CONSTRAINT fk_operationalcontextdescriptorusage_descriptor FOREIGN KEY (descriptorid) REFERENCES edfi.descriptor(descriptorid) ON DELETE CASCADE; + + +-- +-- Name: operationalcontextdescriptorusage fk_operationalcontextdescriptorusage_operationalcontext; Type: FK CONSTRAINT; Schema: interop; Owner: postgres +-- + +ALTER TABLE ONLY interop.operationalcontextdescriptorusage + ADD CONSTRAINT fk_operationalcontextdescriptorusage_operationalcontext FOREIGN KEY (operationalcontexturi) REFERENCES interop.operationalcontext(operationalcontexturi); + + +-- +-- PostgreSQL database dump complete +-- + diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/EdFi_Ods_3.3.dacpac b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi_Ods_3.3.dacpac new file mode 100644 index 00000000..b59cc50f Binary files /dev/null and b/src/EdFi.AnalyticsMiddleTier.Tests/EdFi_Ods_3.3.dacpac differ diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/ITestHarnessBase.cs b/src/EdFi.AnalyticsMiddleTier.Tests/ITestHarnessBase.cs index b756b78e..33a2e037 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/ITestHarnessBase.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/ITestHarnessBase.cs @@ -4,35 +4,34 @@ // See the LICENSE and NOTICES files in the project root for more information. using EdFi.AnalyticsMiddleTier.Common; -using System; using System.Data; namespace EdFi.AnalyticsMiddleTier.Tests { public interface ITestHarnessBase { - string CurrentDataStandardFolderName { get; } - string DataStandardFolderName { get; } - DataStandard DataStandardVersion { get; set; } - Func InstallDelegate { get; set; } - IOrm Orm { get; set; } - - void ExecuteQuery(string sqlCommand); - T ExecuteScalarQuery(string sqlCommand); + Engine DataStandardEngine { get; } + IOrm Orm { get; } + DataStandard DataStandardVersion { get; } + string DataStandardBaseVersionFolderName { get; } + string TestDataFolderName { get; } + (bool success, string errorMessage) Install(int timeoutSeconds = 30, params Component[] components); + (bool success, string errorMessage) Uninstall(); + (bool success, string errorMessage) Uninstall(bool uninstallAll); + (bool success, string errorMessage) LoadTestCaseData(string testCaseFile); - string GetTestDataFolderName(bool useCurrentDataStandard); IDbConnection OpenConnection(); void PrepareDatabase(); (bool success, string errorMessage) RunTestCase(string testCaseFile); + + T ExecuteScalarQuery(string sqlCommand); + bool ViewExists(string viewName); + bool ViewExists(string viewName, string schema); + bool TableExists(string tableName); bool ScalarFunctionExists(string scalarFunctionName); bool ScalarFunctionExists(string scalarFunctionName, string schema); - bool TableExists(string tableName); bool TableExists(string schemaName, string tableName); - string ToString(); - (bool success, string errorMessage) Uninstall(); - (bool success, string errorMessage) Uninstall(bool uninstallAll); - bool ViewExists(string viewName); - bool ViewExists(string viewName, string schema); + void ExecuteQuery(string sqlCommand); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_Engage_option.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_Engage_option.cs index 62be4313..41baa692 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_Engage_option.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_Engage_option.cs @@ -58,7 +58,7 @@ public class Given_data_a_standard : When_installing_Engage_option [TestCase()] public void Then_result_success_should_be_true() { - if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32)) + if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32) || DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds33)) { Assert.Ignore("The baseline DS32 database does not have the extension tables that are required to install the 'Engage' collection. This install will fail."); } @@ -71,7 +71,7 @@ public void Then_result_success_should_be_true() [TestCase()] public void Then_error_message_should_be_null_or_empty() { - if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32)) { + if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32) || DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds33)) { Assert.Ignore("The baseline DS32 database does not have the extension tables that are required to install the 'Engage' collection. This install will fail."); } else { @@ -82,7 +82,7 @@ public void Then_error_message_should_be_null_or_empty() [Test] public void Then_should_not_be_installed() { - if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32)) + if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32) || DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds33)) { Assert.Ignore("The baseline DS32 database does not have the extension tables that are required to install the 'Engage' collection. This install will fail."); } @@ -99,7 +99,7 @@ public void Then_should_not_be_installed() // above, is in the LMS-Toolkit repository. [TestCase()] public void Then_result_success_should_be_false() { - if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32)) + if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32) || DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds33)) { Result.success.ShouldBe(false); } @@ -111,7 +111,7 @@ public void Then_result_success_should_be_false() { [TestCase()] public void Then_there_should_be_an_error_message() { - if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32)) + if (DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds32) || DataStandard.DataStandardVersion.Equals(CommonLib.DataStandard.Ds33)) { Result.errorMessage.ShouldNotBeNullOrEmpty(); } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_default_map.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_default_map.cs index c7fc03c3..e40c0f76 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_default_map.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Operation/When_installing_default_map.cs @@ -22,7 +22,7 @@ public abstract class When_installing_default_map : When_installing_a_Collection public void Act() { Result = DataStandard.LoadTestCaseData( - $"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.0000_descriptormap_case_Data_Load.xml"); + $"{TestCasesFolder}.{DataStandard.TestDataFolderName}.0000_descriptormap_case_Data_Load.xml"); Result.success.ShouldBeTrue($"Error while loading descriptor data: '{Result.errorMessage}'"); Result = DataStandard.Install(10); @@ -36,13 +36,13 @@ public Given_descriptor_map(TestHarnessBase dataStandard) : base(dataStandard) { [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.descriptormap_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.descriptormap_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_rows() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.descriptormap_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.descriptormap_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } @@ -53,13 +53,13 @@ public Given_type_map(TestHarnessBase dataStandard) : base(dataStandard) { } [Test] public void Then_view_should_match_column_dictionary() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.typemap_should_match_column_dictionary.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.typemap_should_match_column_dictionary.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } [Test] public void Then_should_have_rows() { - (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.DataStandardFolderName}.typemap_should_return_have_records.xml"); + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{DataStandard.TestDataFolderName}.typemap_should_return_have_records.xml"); testResult.success.ShouldBe(true, testResult.errorMessage); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/PostgresConnectionString.cs b/src/EdFi.AnalyticsMiddleTier.Tests/PostgresConnectionString.cs deleted file mode 100644 index 1e89090a..00000000 --- a/src/EdFi.AnalyticsMiddleTier.Tests/PostgresConnectionString.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; - -namespace EdFi.AnalyticsMiddleTier.Tests -{ - public class PostsgreConnectionStringDS32 : PostgresConnectionString - { - public override string ToString() - { - if (UseDefaultConnectionString) - return "User ID=postgres;Host=localhost;Port=5432;Database=edfi_ods_tests;Pooling=false"; - else - return $"User ID={User};Host={Host};Port={Port};Database={Database_ds32};Pooling={Pooling};password={Pass}"; - } - } - - public abstract class PostgresConnectionString : DatabaseConnectionString - { - protected PostgresConnectionString() : base() {} - - public bool UseDefaultConnectionString => UseEnvironmentConnectionString("USE_POSTGRES_DEFAULT_CONN_STRING"); - - protected string Host => GetEnvironmentVariable("POSTGRES_HOST"); - - protected string Database_ds32 => GetEnvironmentVariable("POSTGRES_DATABASE"); - - protected string Port => GetEnvironmentVariable("POSTGRES_PORT"); - - protected string Pooling => GetEnvironmentVariable("POSTGRES_POOLING"); - - protected string User => GetEnvironmentVariable("POSTGRES_USER"); - - protected string Pass => GetEnvironmentVariable("POSTGRES_PASS"); - } -} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/SQLServerConnectionString.cs b/src/EdFi.AnalyticsMiddleTier.Tests/SQLServerConnectionString.cs deleted file mode 100644 index e5826f3e..00000000 --- a/src/EdFi.AnalyticsMiddleTier.Tests/SQLServerConnectionString.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; - -namespace EdFi.AnalyticsMiddleTier.Tests -{ - public class SQLServerConnectionStringDS2 : SQLServerConnectionString - { - public override string ToString() - { - if (UseDefaultConnectionString) - return "server=localhost;database=AnalyticsMiddleTier_Testing_Ds2;integrated security=sspi"; - else - return $"server={Server};database={Database_ds2};integrated security={Integrated_security};User={User};Password={Pass}"; - } - - public string Database - { - get - { - if (UseDefaultConnectionString) - return "AnalyticsMiddleTier_Testing_Ds2"; - else - return Database_ds2; - } - } - } - - public class SQLServerConnectionStringDS31 : SQLServerConnectionString - { - public override string ToString() - { - if (UseDefaultConnectionString) - return "server=localhost;database=AnalyticsMiddleTier_Testing_Ds31;integrated security=sspi"; - else - return $"server={Server};database={Database_ds31};integrated security={Integrated_security};User={User};Password={Pass}"; - } - - public string Database - { - get - { - if (UseDefaultConnectionString) - return "AnalyticsMiddleTier_Testing_Ds31"; - else - return Database_ds31; - } - } - } - - public class SQLServerConnectionStringDS32 : SQLServerConnectionString - { - public override string ToString() - { - if (UseDefaultConnectionString) - return "server=localhost;database=AnalyticsMiddleTier_Testing_Ds32;integrated security=sspi"; - else - return $"server={Server};database={Database_ds32};integrated security={Integrated_security};User={User};Password={Pass}"; - } - - public string Database - { - get - { - if (UseDefaultConnectionString) - return "AnalyticsMiddleTier_Testing_Ds32"; - else - return Database_ds32; - } - } - } - - public abstract class SQLServerConnectionString : DatabaseConnectionString - { - protected SQLServerConnectionString() : base() { - } - - public bool UseDefaultConnectionString => UseEnvironmentConnectionString("USE_MSSQL_DEFAULT_CONN_STRING"); - - protected string Server => GetEnvironmentVariable("SQLSERVER_SERVER"); - - public string Database_ds2 => GetEnvironmentVariable("SQLSERVER_DATABASE_DS2"); - - public string Database_ds31 => GetEnvironmentVariable("SQLSERVER_DATABASE_DS31"); - - public string Database_ds32 => GetEnvironmentVariable("SQLSERVER_DATABASE_DS32"); - - protected string Integrated_security => GetEnvironmentVariable("SQLSERVER_INTEGRATED_SECURITY"); - - protected string User => GetEnvironmentVariable("SQLSERVER_USER"); - - protected string Pass => GetEnvironmentVariable("SQLSERVER_PASS"); - - protected string SQL_SA_Pass => GetEnvironmentVariable("SQLSERVER_SA_PASS"); - - public override string GetMainDatabaseConnectionString - { - get - { - if (!UseDefaultConnectionString) - { - string saPassword = SQL_SA_Pass; - return $"server=localhost;database=master;integrated security=false;User=sa;Password={SQL_SA_Pass}"; - } - else - { - return "server=localhost;database=master;integrated security=sspi"; - } - } - } - } -} diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCaseBase.cs b/src/EdFi.AnalyticsMiddleTier.Tests/TestCaseBase.cs index 69684629..cc6fd644 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCaseBase.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCaseBase.cs @@ -4,7 +4,7 @@ // See the LICENSE and NOTICES files in the project root for more information. using System.Diagnostics.CodeAnalysis; -using EdFi.AnalyticsMiddleTier.Tests.Common; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using NUnit.Framework; namespace EdFi.AnalyticsMiddleTier.Tests @@ -15,30 +15,19 @@ namespace EdFi.AnalyticsMiddleTier.Tests [Category("IntegrationTest")] public abstract class TestCaseBase { - protected TestHarnessBase DataStandard { get; set; } + protected ITestHarnessBase DataStandard { get; set; } protected IDataStandardTestFixtureBase fixtureList { get; set; } protected (bool success, string errorMessage) Result { get; set; } protected TestCaseBase() => fixtureList = new DataStandardTestFixture(); - protected void SetDataStandard(TestHarnessBase dataStandard) => this.DataStandard = dataStandard; - - protected ITestHarnessBase[] GetFixturesList() => fixtureList.GetFixturesList(); + protected void SetDataStandard(ITestHarnessBase dataStandard) => this.DataStandard = dataStandard; protected void PrepareTestDatabase() { foreach (var dataStandard in fixtureList.GetFixturesList()) { - ITestHarnessBase currentDataStandard; - if (dataStandard.GetType().ToString().Contains("TestHarnessSQLServer")) - { - currentDataStandard = ((TestHarnessSQLServer)dataStandard); - } - else - { - currentDataStandard = ((TestHarnessPostgres)dataStandard); - } - currentDataStandard.PrepareDatabase(); + dataStandard.PrepareDatabase(); } } diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/0000_AcademicTimePeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/0000_AcademicTimePeriodDim_Data_Load.xml new file mode 100644 index 00000000..33124215 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/0000_AcademicTimePeriodDim_Data_Load.xml @@ -0,0 +1,438 @@ + + + Any + + -- Default Records, with SchoolYearType being the first modified + -- record, followed by Session, and finally GradingPeriod has + -- the most recently modified record + INSERT INTO edfi.SchoolYearType ( + SchoolYear, + SchoolYearDescription, + CurrentSchoolYear, + LastModifiedDate + ) + VALUES ( + 2012, + '2012-2013', + 1, + '2001-01-01' + ); + + INSERT INTO edfi.EducationOrganization ( + EducationOrganizationId, + NameOfInstitution + ) + VALUES ( + 867530010, + 'Irrelevant' + ); + + INSERT INTO edfi.School ( + SchoolId + ) + VALUES ( + 867530010 + ); + + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'SpringSemester', + 'Spring Semester', + 'Spring-Semester', + 'uri://ed-fi.org/TermDescriptorId' + ); + + DECLARE @termDescriptorId as INT; + SELECT @termDescriptorId = @@IDENTITY; + + INSERT INTO edfi.TermDescriptor ( + TermDescriptorId + ) + VALUES ( + @termDescriptorId + ) + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + TermDescriptorId, + SessionName, + BeginDate, + EndDate, + TotalInstructionalDays, + LastModifiedDate + ) + VALUES ( + 867530010, + 2012, + @termDescriptorId, + 'Grading period is the last modified', + '1999-12-31', + '2012-12-31 23:59:59', + 180, + '2002-02-02' + ) + + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'First six weeks', + 'First six weeks', + 'First six weeks', + 'uri://ed-fi.org/GradingPeriodDescriptor' + ); + + DECLARE @gradingPeriodDescriptorId as INT; + SELECT @gradingPeriodDescriptorId = @@IDENTITY; + + INSERT INTO edfi.GradingPeriodDescriptor ( + GradingPeriodDescriptorId + ) + VALUES ( + @gradingPeriodDescriptorId + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 867530010, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2012, + '2003-03-03' + ); + + + INSERT INTO edfi.SessionGradingPeriod ( + SchoolYear, + PeriodSequence, + SchoolId, + GradingPeriodDescriptorId, + SessionName + ) + VALUES ( + 2012, + 42, + 867530010, + @gradingPeriodDescriptorId, + 'Grading period is the last modified' + ); + + + -- Scenario where the Session is the most recently modified record + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'SpringSemester2', + 'Spring Semester2', + 'Spring-Semester2', + 'uri://ed-fi.org/TermDescriptorId2' + ); + + SELECT @termDescriptorId = @@IDENTITY; + + INSERT INTO edfi.TermDescriptor ( + TermDescriptorId + ) + VALUES ( + @termDescriptorId + ); + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + TermDescriptorId, + SessionName, + BeginDate, + EndDate, + TotalInstructionalDays, + LastModifiedDate + ) + VALUES ( + 867530010, + 2012, + @termDescriptorId, + 'Session is the last modified', + '1999-12-31', + '2012-12-31 23:59:59', + 180, + '2004-04-04' + ); + + INSERT INTO edfi.SessionGradingPeriod ( + SchoolYear, + SchoolId, + GradingPeriodDescriptorId, + PeriodSequence, + SessionName + ) + VALUES ( + 2012, + 867530010, + @gradingPeriodDescriptorId, + 42, + 'Session is the last modified' + ); + + + + -- Scenario where the SchoolYear is the most recently modified record + INSERT INTO edfi.SchoolYearType ( + SchoolYear, + SchoolYearDescription, + CurrentSchoolYear, + LastModifiedDate + ) + VALUES ( + 2005, + '2005-2013', + 1, + '2005-05-05' + ); + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + TermDescriptorId, + SessionName, + BeginDate, + EndDate, + TotalInstructionalDays, + LastModifiedDate + ) + VALUES ( + 867530010, + 2005, + @termDescriptorId, + 'SchoolYear is the last modified', + '1999-12-31', + '2012-12-31 23:59:59', + 180, + '2004-04-04' + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 867530010, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2005, + '1234-12-12' + ); + + INSERT INTO edfi.SessionGradingPeriod ( + SchoolYear, + SchoolId, + GradingPeriodDescriptorId, + PeriodSequence, + SessionName + ) + VALUES ( + 2005, + 867530010, + @gradingPeriodDescriptorId, + 42, + 'SchoolYear is the last modified' + ); + + -- Extra data to help prove that all join conditions are required - comment one out, + -- and you'll get duplicate data or mismatches. + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + SessionName, + BeginDate, + EndDate, + TermDescriptorId, + TotalInstructionalDays + ) + VALUES ( + 867530010, + 2012, + 'SchoolYear is the last modified', + '1999-12-31', + '2012-12-31', + @termDescriptorId, + 21 + ); + + INSERT INTO edfi.SessionGradingPeriod ( + GradingPeriodDescriptorId, + PeriodSequence, + SchoolId, + SchoolYear, + SessionName + ) + VALUES ( + @gradingPeriodDescriptorId, + 42, + 867530010, + 2012, + 'SchoolYear is the last modified' + ); + + INSERT INTO edfi.EducationOrganization ( + EducationOrganizationId, + NameOfInstitution + ) + VALUES ( + 34, + '34' + ); + + INSERT INTO edfi.School ( + SchoolId + ) + VALUES ( + 34 + ); + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + SessionName, + BeginDate, + EndDate, + TermDescriptorId, + TotalInstructionalDays + ) + VALUES ( + 34, + 2012, + 'SchoolYear is the last modified', + '1999-12-31', + '2012-12-31', + 1, + 2 + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 34, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2012, + '2003-03-03' + ), ( + @gradingPeriodDescriptorId, + 34, + '1999-12-31', + 1, + '2000-01-01', + -- Different sequence number + 4, + 2012, + '2003-03-03' + ); + + INSERT INTO edfi.SessionGradingPeriod ( + GradingPeriodDescriptorId, + PeriodSequence, + SchoolId, + SchoolYear, + SessionName + ) + VALUES ( + @gradingPeriodDescriptorId, + -- Different sequence number + 4, + 34, + 2012, + 'SchoolYear is the last modified' + ); + + + + + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'Second six weeks', + 'Second six weeks', + 'Second six weeks', + 'uri://ed-fi.org/GradingPeriodDescriptor' + ); + + SELECT @gradingPeriodDescriptorId = @@IDENTITY; + + INSERT INTO edfi.GradingPeriodDescriptor ( + GradingPeriodDescriptorId + ) + VALUES ( + @gradingPeriodDescriptorId + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 867530010, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2012, + '2003-03-03' + ); + + diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/should_have_SessionKey.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/should_have_SessionKey.xml new file mode 100644 index 00000000..27951fa9 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/should_have_SessionKey.xml @@ -0,0 +1,16 @@ + + + Any + + + + SELECT SessionKey + FROM analytics.AcademicTimePeriodDim + WHERE SessionName = 'Grading period is the last modified'; + + + + 867530010-2012-Grading period is the last mod + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/should_match_column_dictionary.xml new file mode 100644 index 00000000..d18d3bb4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_2/should_match_column_dictionary.xml @@ -0,0 +1,58 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'AcademicTimePeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + AcademicTimePeriodKey + nvarchar + + + SchoolYear + varchar + + + SchoolYearName + nvarchar + + + IsCurrentSchoolYear + bit + + + SchoolKey + varchar + + + SessionKey + nvarchar + + + SessionName + nvarchar + + + TermName + nvarchar + + + GradingPeriodKey + nvarchar + + + GradingPeriodName + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/0000_AcademicTimePeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/0000_AcademicTimePeriodDim_Data_Load.xml new file mode 100644 index 00000000..33124215 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/0000_AcademicTimePeriodDim_Data_Load.xml @@ -0,0 +1,438 @@ + + + Any + + -- Default Records, with SchoolYearType being the first modified + -- record, followed by Session, and finally GradingPeriod has + -- the most recently modified record + INSERT INTO edfi.SchoolYearType ( + SchoolYear, + SchoolYearDescription, + CurrentSchoolYear, + LastModifiedDate + ) + VALUES ( + 2012, + '2012-2013', + 1, + '2001-01-01' + ); + + INSERT INTO edfi.EducationOrganization ( + EducationOrganizationId, + NameOfInstitution + ) + VALUES ( + 867530010, + 'Irrelevant' + ); + + INSERT INTO edfi.School ( + SchoolId + ) + VALUES ( + 867530010 + ); + + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'SpringSemester', + 'Spring Semester', + 'Spring-Semester', + 'uri://ed-fi.org/TermDescriptorId' + ); + + DECLARE @termDescriptorId as INT; + SELECT @termDescriptorId = @@IDENTITY; + + INSERT INTO edfi.TermDescriptor ( + TermDescriptorId + ) + VALUES ( + @termDescriptorId + ) + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + TermDescriptorId, + SessionName, + BeginDate, + EndDate, + TotalInstructionalDays, + LastModifiedDate + ) + VALUES ( + 867530010, + 2012, + @termDescriptorId, + 'Grading period is the last modified', + '1999-12-31', + '2012-12-31 23:59:59', + 180, + '2002-02-02' + ) + + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'First six weeks', + 'First six weeks', + 'First six weeks', + 'uri://ed-fi.org/GradingPeriodDescriptor' + ); + + DECLARE @gradingPeriodDescriptorId as INT; + SELECT @gradingPeriodDescriptorId = @@IDENTITY; + + INSERT INTO edfi.GradingPeriodDescriptor ( + GradingPeriodDescriptorId + ) + VALUES ( + @gradingPeriodDescriptorId + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 867530010, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2012, + '2003-03-03' + ); + + + INSERT INTO edfi.SessionGradingPeriod ( + SchoolYear, + PeriodSequence, + SchoolId, + GradingPeriodDescriptorId, + SessionName + ) + VALUES ( + 2012, + 42, + 867530010, + @gradingPeriodDescriptorId, + 'Grading period is the last modified' + ); + + + -- Scenario where the Session is the most recently modified record + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'SpringSemester2', + 'Spring Semester2', + 'Spring-Semester2', + 'uri://ed-fi.org/TermDescriptorId2' + ); + + SELECT @termDescriptorId = @@IDENTITY; + + INSERT INTO edfi.TermDescriptor ( + TermDescriptorId + ) + VALUES ( + @termDescriptorId + ); + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + TermDescriptorId, + SessionName, + BeginDate, + EndDate, + TotalInstructionalDays, + LastModifiedDate + ) + VALUES ( + 867530010, + 2012, + @termDescriptorId, + 'Session is the last modified', + '1999-12-31', + '2012-12-31 23:59:59', + 180, + '2004-04-04' + ); + + INSERT INTO edfi.SessionGradingPeriod ( + SchoolYear, + SchoolId, + GradingPeriodDescriptorId, + PeriodSequence, + SessionName + ) + VALUES ( + 2012, + 867530010, + @gradingPeriodDescriptorId, + 42, + 'Session is the last modified' + ); + + + + -- Scenario where the SchoolYear is the most recently modified record + INSERT INTO edfi.SchoolYearType ( + SchoolYear, + SchoolYearDescription, + CurrentSchoolYear, + LastModifiedDate + ) + VALUES ( + 2005, + '2005-2013', + 1, + '2005-05-05' + ); + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + TermDescriptorId, + SessionName, + BeginDate, + EndDate, + TotalInstructionalDays, + LastModifiedDate + ) + VALUES ( + 867530010, + 2005, + @termDescriptorId, + 'SchoolYear is the last modified', + '1999-12-31', + '2012-12-31 23:59:59', + 180, + '2004-04-04' + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 867530010, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2005, + '1234-12-12' + ); + + INSERT INTO edfi.SessionGradingPeriod ( + SchoolYear, + SchoolId, + GradingPeriodDescriptorId, + PeriodSequence, + SessionName + ) + VALUES ( + 2005, + 867530010, + @gradingPeriodDescriptorId, + 42, + 'SchoolYear is the last modified' + ); + + -- Extra data to help prove that all join conditions are required - comment one out, + -- and you'll get duplicate data or mismatches. + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + SessionName, + BeginDate, + EndDate, + TermDescriptorId, + TotalInstructionalDays + ) + VALUES ( + 867530010, + 2012, + 'SchoolYear is the last modified', + '1999-12-31', + '2012-12-31', + @termDescriptorId, + 21 + ); + + INSERT INTO edfi.SessionGradingPeriod ( + GradingPeriodDescriptorId, + PeriodSequence, + SchoolId, + SchoolYear, + SessionName + ) + VALUES ( + @gradingPeriodDescriptorId, + 42, + 867530010, + 2012, + 'SchoolYear is the last modified' + ); + + INSERT INTO edfi.EducationOrganization ( + EducationOrganizationId, + NameOfInstitution + ) + VALUES ( + 34, + '34' + ); + + INSERT INTO edfi.School ( + SchoolId + ) + VALUES ( + 34 + ); + + INSERT INTO edfi.Session ( + SchoolId, + SchoolYear, + SessionName, + BeginDate, + EndDate, + TermDescriptorId, + TotalInstructionalDays + ) + VALUES ( + 34, + 2012, + 'SchoolYear is the last modified', + '1999-12-31', + '2012-12-31', + 1, + 2 + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 34, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2012, + '2003-03-03' + ), ( + @gradingPeriodDescriptorId, + 34, + '1999-12-31', + 1, + '2000-01-01', + -- Different sequence number + 4, + 2012, + '2003-03-03' + ); + + INSERT INTO edfi.SessionGradingPeriod ( + GradingPeriodDescriptorId, + PeriodSequence, + SchoolId, + SchoolYear, + SessionName + ) + VALUES ( + @gradingPeriodDescriptorId, + -- Different sequence number + 4, + 34, + 2012, + 'SchoolYear is the last modified' + ); + + + + + INSERT INTO edfi.Descriptor ( + CodeValue, + Description, + ShortDescription, + Namespace + ) + VALUES ( + 'Second six weeks', + 'Second six weeks', + 'Second six weeks', + 'uri://ed-fi.org/GradingPeriodDescriptor' + ); + + SELECT @gradingPeriodDescriptorId = @@IDENTITY; + + INSERT INTO edfi.GradingPeriodDescriptor ( + GradingPeriodDescriptorId + ) + VALUES ( + @gradingPeriodDescriptorId + ); + + INSERT INTO edfi.GradingPeriod ( + GradingPeriodDescriptorId, + SchoolId, + BeginDate, + TotalInstructionalDays, + EndDate, + PeriodSequence, + SchoolYear, + LastModifiedDate + ) + VALUES ( + @gradingPeriodDescriptorId, + 867530010, + '1999-12-31', + 1, + '2000-01-01', + 42, + 2012, + '2003-03-03' + ); + + diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/should_have_SessionKey.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/should_have_SessionKey.xml new file mode 100644 index 00000000..27951fa9 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/should_have_SessionKey.xml @@ -0,0 +1,16 @@ + + + Any + + + + SELECT SessionKey + FROM analytics.AcademicTimePeriodDim + WHERE SessionName = 'Grading period is the last modified'; + + + + 867530010-2012-Grading period is the last mod + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/should_match_column_dictionary.xml new file mode 100644 index 00000000..d18d3bb4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/MSSQL/v_3_3/should_match_column_dictionary.xml @@ -0,0 +1,58 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'AcademicTimePeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + AcademicTimePeriodKey + nvarchar + + + SchoolYear + varchar + + + SchoolYearName + nvarchar + + + IsCurrentSchoolYear + bit + + + SchoolKey + varchar + + + SessionKey + nvarchar + + + SessionName + nvarchar + + + TermName + nvarchar + + + GradingPeriodKey + nvarchar + + + GradingPeriodName + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/0000_AcademicTimePeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/0000_AcademicTimePeriodDim_Data_Load.xml new file mode 100644 index 00000000..53bdaa62 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/0000_AcademicTimePeriodDim_Data_Load.xml @@ -0,0 +1,103 @@ + + + Any + + DO $$ + DECLARE v_termDescriptorId INT; + DECLARE v_gradingDescriptorId INT; + BEGIN + + INSERT INTO edfi.SchoolYearType (SchoolYear,SchoolYearDescription,CurrentSchoolYear,LastModifiedDate) + VALUES (2012,'2012-2013',TRUE,'2001-01-01'); + + INSERT INTO edfi.EducationOrganization (EducationOrganizationId,NameOfInstitution) + VALUES (867530010,'Irrelevant'); + + INSERT INTO edfi.School (SchoolId) + VALUES (867530010); + + INSERT INTO edfi.Descriptor (DescriptorId,CodeValue,Description,ShortDescription,Namespace) + VALUES (1,'SpringSemester','Spring Semester','Spring-Semester','uri://ed-fi.org/TermDescriptorId') + RETURNING descriptorid INTO v_termDescriptorId; + + INSERT INTO edfi.TermDescriptor (TermDescriptorId) + VALUES (v_termDescriptorId); + + INSERT INTO edfi.Session (SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,LastModifiedDate) + VALUES (867530010,2012,v_termDescriptorId,'Grading period is the last modified','1999-12-31','2012-12-31 23:59:59',180,'2002-02-02'); + + INSERT INTO edfi.Descriptor (descriptorid,CodeValue,Description,ShortDescription,Namespace) + VALUES (2,'First six weeks','First six weeks','First six weeks','uri://ed-fi.org/GradingPeriodDescriptor') + RETURNING descriptorid INTO v_gradingDescriptorId; + + INSERT INTO edfi.GradingPeriodDescriptor (GradingPeriodDescriptorId) + VALUES (v_gradingDescriptorId); + + INSERT INTO edfi.GradingPeriod (GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,LastModifiedDate) + VALUES (v_gradingDescriptorId,867530010,'1999-12-31',1,'2000-01-01',42,2012,'2003-03-03'); + + INSERT INTO edfi.SessionGradingPeriod (SchoolYear,PeriodSequence,SchoolId,GradingPeriodDescriptorId,SessionName) + VALUES (2012,42,867530010,v_gradingDescriptorId,'Grading period is the last modified'); + + INSERT INTO edfi.Descriptor (CodeValue,Description,ShortDescription,Namespace) + VALUES ('SpringSemester2','Spring Semester2','Spring-Semester2','uri://ed-fi.org/TermDescriptorId2') + RETURNING descriptorid INTO v_termDescriptorId; + + INSERT INTO edfi.TermDescriptor (TermDescriptorId) + VALUES (v_termDescriptorId); + + INSERT INTO edfi.Session (SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,LastModifiedDate) + VALUES (867530010,2012,v_termDescriptorId,'Session is the last modified','1999-12-31','2012-12-31 23:59:59',180,'2004-04-04'); + + INSERT INTO edfi.SessionGradingPeriod (SchoolYear,SchoolId,GradingPeriodDescriptorId,PeriodSequence,SessionName) + VALUES (2012,867530010,v_gradingDescriptorId,42,'Session is the last modified'); + + INSERT INTO edfi.SchoolYearType (SchoolYear,SchoolYearDescription,CurrentSchoolYear,LastModifiedDate) + VALUES (2005,'2005-2013',TRUE,'2005-05-05'); + + INSERT INTO edfi.Session (SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,LastModifiedDate) + VALUES (867530010,2005,v_termDescriptorId,'SchoolYear is the last modified','1999-12-31','2012-12-31 23:59:59',180,'2004-04-04'); + + INSERT INTO edfi.GradingPeriod (GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,LastModifiedDate) + VALUES (v_gradingDescriptorId,867530010,'1999-12-31',1,'2000-01-01',42,2005,'1234-12-12'); + + INSERT INTO edfi.SessionGradingPeriod (SchoolYear,SchoolId,GradingPeriodDescriptorId,PeriodSequence,SessionName) + VALUES (2005,867530010,v_gradingDescriptorId,42,'SchoolYear is the last modified'); + + INSERT INTO edfi.Session (SchoolId,SchoolYear,SessionName,BeginDate,EndDate,TermDescriptorId,TotalInstructionalDays) + VALUES (867530010,2012,'SchoolYear is the last modified','1999-12-31','2012-12-31',v_termDescriptorId,21); + + INSERT INTO edfi.SessionGradingPeriod (GradingPeriodDescriptorId,PeriodSequence,SchoolId,SchoolYear,SessionName) + VALUES (v_gradingDescriptorId,42,867530010,2012,'SchoolYear is the last modified'); + + INSERT INTO edfi.EducationOrganization (EducationOrganizationId,NameOfInstitution) + VALUES (34,'34'); + + INSERT INTO edfi.School (SchoolId) + VALUES (34); + + INSERT INTO edfi.Session (SchoolId,SchoolYear,SessionName,BeginDate,EndDate,TermDescriptorId,TotalInstructionalDays) + VALUES (34,2012,'SchoolYear is the last modified','1999-12-31','2012-12-31',v_termDescriptorId,2); + + INSERT INTO edfi.GradingPeriod (GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,LastModifiedDate) + VALUES (v_gradingDescriptorId,34,'1999-12-31',1,'2000-01-01',4,2012,'2003-03-03'); + + INSERT INTO edfi.SessionGradingPeriod (GradingPeriodDescriptorId,PeriodSequence,SchoolId,SchoolYear,SessionName) + VALUES (v_gradingDescriptorId,4,34,2012,'SchoolYear is the last modified'); + + INSERT INTO edfi.GradingPeriod (GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,LastModifiedDate) + VALUES (v_gradingDescriptorId,34,'1999-12-31',1,'2000-01-01',42,2012,'2003-03-03'); + + INSERT INTO edfi.Descriptor (CodeValue,Description,ShortDescription,Namespace) + VALUES ('Second six weeks','Second six weeks','Second six weeks','uri://ed-fi.org/GradingPeriodDescriptor') + RETURNING descriptorid INTO v_gradingDescriptorId; + + INSERT INTO edfi.GradingPeriodDescriptor (GradingPeriodDescriptorId) + VALUES (v_gradingDescriptorId); + + INSERT INTO edfi.GradingPeriod (GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,LastModifiedDate) + VALUES (v_gradingDescriptorId,867530010,'1999-12-31',1,'2000-01-01',42,2012,'2003-03-03'); + + END $$ + + diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/should_have_SessionKey.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/should_have_SessionKey.xml new file mode 100644 index 00000000..fa50c429 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/should_have_SessionKey.xml @@ -0,0 +1,16 @@ + + + Any + + + + SELECT SessionKey + FROM analytics.AcademicTimePeriodDim + WHERE SessionName = 'Grading period is the last modified'; + + + + 867530010-2012-Grading period is the last modified + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/should_match_column_dictionary.xml new file mode 100644 index 00000000..483bc807 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AcademicTimePeriodDim/PostgreSQL/v_3_3/should_match_column_dictionary.xml @@ -0,0 +1,58 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'academictimeperioddim' + ORDER BY ORDINAL_POSITION ASC; + + + academictimeperiodkey + text + + + schoolyear + character varying + + + schoolyearname + character varying + + + iscurrentschoolyear + boolean + + + schoolkey + character varying + + + sessionkey + text + + + sessionname + character varying + + + termname + character varying + + + gradingperiodkey + text + + + gradingperiodname + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/0001_AssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_1/0001_AssessmentFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/0001_AssessmentFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_1/0001_AssessmentFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_2/0001_AssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_2/0001_AssessmentFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..5ede897c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_2/0001_AssessmentFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'asmt_AssessmentFact' + ORDER BY ORDINAL_POSITION ASC; + + + AssessmentFactKey + nvarchar + + + AssessmentKey + nvarchar + + + AssessmentIdentifier + nvarchar + + + Namespace + nvarchar + + + Title + nvarchar + + + Version + int + + + Category + nvarchar + + + AssessedGradeLevel + nvarchar + + + AcademicSubject + nvarchar + + + ResultDataType + nvarchar + + + ReportingMethod + nvarchar + + + ObjectiveAssessmentKey + nvarchar + + + IdentificationCode + nvarchar + + + ParentObjectiveAssessmentKey + nvarchar + + + ObjectiveAssessmentDescription + nvarchar + + + PercentOfAssessment + decimal + + + MinScore + nvarchar + + + MaxScore + nvarchar + + + LearningStandard + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_3/0000_AssessmentFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_3/0000_AssessmentFact_Data_Load.xml new file mode 100644 index 00000000..688a8d08 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_3/0000_AssessmentFact_Data_Load.xml @@ -0,0 +1,103 @@ + + + Any + + SET IDENTITY_INSERT edfi.descriptor ON;INSERT INTO edfi.descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'612','uri://ed-fi.org/AssessmentCategoryDescriptor','Other','Other','Other',NULL,NULL,NULL,'5C2542C0-6398-4296-B11A-B7A2A4A57B2A','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid='612'));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'612','uri://ed-fi.org/AssessmentCategoryDescriptor','Other','Other','Other',NULL,NULL,NULL,'5C2542C0-6398-4296-B11A-B7A2A4A57B2A','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '612'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'612' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId='612')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'AP - English 4FAE','612',NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','F4976E96-24F6-4069-AACE-BAD4682B2792','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx2',NULL,NULL,'2017',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2s3ch0knpb4val7uqve6mn269bavkdx2' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'2s3ch0knpb4val7uqve6mn269bavkdx2','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx2' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1122','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Scale score','Scale score','Scale score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11505','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1122'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1122')); + + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'1997','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Integer','Integer','Integer',NULL,NULL,NULL,'2020-08-11 12:57:55.2895903','2020-08-11 12:57:55.2885451','24BD9174-836E-4E3C-B09B-7B76114F6C02' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1997'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT TOP 1'1997' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1997')); + -- + + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'0','25','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/Assessment.xml','1997','1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'AP - English AMT',NULL,NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','4C496FC2-0434-4001-8636-D5D339110771','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'3s4ch0knpb4va28uqve6mn269bavkdx2','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1NULL,NULL,'Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'AP - English AMT',NULL,NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/AssessmentTestCase.xml','919BB3DD-B671-4531-9AB9-D80CAD194E89','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'AP - English AMT',NULL,NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/AssessmentTestCase.xml','919BB3DD-B671-4531-9AB9-D80CAD194E89','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1NULL,NULL,'Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/AssessmentTestCase.xml',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml' AND AssessmentReportingMethodDescriptorId='1122')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6','uri://ed-fi.org/AcademicSubjectDescriptor','English','English','English',NULL,NULL,NULL,'BEEA87DA-8922-46C7-9245-14004791AEC6','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId='6'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'6' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '6')); + INSERT INTO edfi.AssessmentAcademicSubject(AcademicSubjectDescriptorId,AssessmentIdentifier,Namespace,CreateDate)(SELECT TOP 1'6','2s3ch0knpb4val7uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/Assessment.xml','2020-08-11 12:59:15.0836156' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAcademicSubject WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAcademicSubject(AcademicSubjectDescriptorId,AssessmentIdentifier,Namespace,CreateDate)(SELECT TOP 1'6','3s4ch0knpb4va28uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','2020-08-11 12:59:15.0836156' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAcademicSubject WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'212','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'2020-08-11 12:57:42.4083127','2020-08-11 12:57:42.4083127','56E9CEFF-C68A-4FEB-A859-EFAC14E165F8' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '212'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '212')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'39','uri://ed-fi.org/AcademicSubjectDescriptor','Mathematics','Mathematics','Mathematics',NULL,NULL,NULL,'2020-08-11 12:57:40.8082326','2020-08-11 12:57:40.8082326','5FF5558F-1B4E-4736-9EAF-114E6335CE4A' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '39'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'39' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '39')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'132','uri://ed-fi.org/AssessmentCategoryDescriptor','Benchmark test','Benchmark test','Benchmark test',NULL,NULL,NULL,'2020-08-11 12:57:41.4386992','2020-08-11 12:57:41.4386992','27528335-388B-4F8E-8304-6AA07F562756' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '132'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'132' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '132')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','04E3686E-D181-4A8D-94E4-65C2490F1A5A' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'0','25','Dec 14 2018 1:07PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/Assessment.xml','1.50000',NULL,NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','405F31A9-7F57-45C5-A3FC-941041D2C1D9' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-38' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math','Seventh grade Mathematics-38','39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','14707154-4B38-473B-8C74-14804BA75595' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'2010','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Decimal','Decimal','Decimal',NULL,NULL,NULL,'2020-08-11 12:57:55.2895903','2020-08-11 12:57:55.2885451','24BD9174-836E-4E3C-B09B-7B76114F6C01' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2010'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT TOP 1'2010' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '2010')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','212','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','0','1','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-39' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','212','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/Assessment.xml',NULL,NULL,'2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','1E3ACC7A-60BF-443D-8C3F-A30A7B3EAE08' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','1.50000',NULL,NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','E41E85F7-FCEF-4DCA-90C9-149E094CEC4C' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-38' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-Testcase','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','5C4B897D-E2EE-4734-9B26-73B522E2DFCB' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT TOP 1'MP-2013-Mathematics-Seventh grade','212','Seventh grade Mathematics-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','0','1','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12C' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'MP-2012-Mathematics-Seventh grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'0','25','Dec 14 2018 1:07PM','MP-2012-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/Assessment.xml','1.50000',NULL,NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','444D3BC8-D281-4921-8CEF-B9DF90ADB448' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-38' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math','Seventh grade Mathematics-38','39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CC' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT TOP 1'MP-2012-Mathematics-Seventh grade','212','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','0','1','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier = 'MP-2012-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-39' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'AP - English 4FAE2','612',NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','F4976E96-24F6-4069-AACE-BAD4682B2793','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx3',NULL,NULL,'2017',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2s3ch0knpb4val7uqve6mn269bavkdx3' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'AP - English 4FAE3','612',NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment3.xml','F4976E96-24F6-4069-AACE-BAD4682B2795','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx3',NULL,NULL,'2017',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2s3ch0knpb4val7uqve6mn269bavkdx3' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment3.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'2s3ch0knpb4val7uqve6mn269bavkdx3','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx3' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'2s3ch0knpb4val7uqve6mn269bavkdx3','38','uri://ed-fi.org/Assessment/Assessment3.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx3' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment3.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'0','25','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx3','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx3' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12D' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'MP-2012-Mathematics-Eighth grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-Eighth grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'Dec 14 2018 1:07PM','MP-2012-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-Eighth grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-Eighth grade','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CD' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Eighth grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT TOP 1'MP-2012-Mathematics-Eighth grade','212','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','5','10','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier = 'MP-2012-Mathematics-Eighth grade' AND IdentificationCode = 'Seventh grade Mathematics-39' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + -- + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12A' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'MP-2012-Mathematics-nineth grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'Dec 14 2018 1:07PM','MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CA' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND IdentificationCode= 'nineth grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12B' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT TOP 1'MP-2012-Mathematics-nineth grade','38','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.AssessmentScore(CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'Dec 14 2018 1:07PM','MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/AssessmentTestCase.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CB' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND IdentificationCode= 'nineth grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + + --Learning Standard + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'1582','uri://ed-fi.org/LearningStandardScopeDescriptor','State','State','State',NULL,NULL,NULL,'2020-07-30 18:09:13.6702734','2020-07-30 18:09:13.6692345','89A374EB-81B6-4B79-BA36-B9BF05124818' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1582'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LearningStandardScopeDescriptor(LearningStandardScopeDescriptorId)(SELECT TOP 1'1582' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandardScopeDescriptor WHERE LearningStandardScopeDescriptorId= '1582')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.1','Reading/Beginning Reading Skills/Print Awareness. Students understand how English is written and printed.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','AE8C50D5-6432-461B-BFAA-5086B2165F8C' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.1')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.1.A','distinguish features of a sentence (e.g., capitalization of first word, ending punctuation, commas, quotation marks).',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','B979CE6C-AA3C-4EB8-925E-332205714268' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.1.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.10','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','6535E405-20A6-4F95-9768-70F782E9C5F9' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.10')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.10.A','distinguish between fiction and nonfiction.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','F40AF32C-4AF5-4856-A3D2-7159AF26D850' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.10.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.11','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4718906','2020-07-30 18:09:26.4718906','E3CBBDC5-63F4-421D-B330-CDF0F8AF1EA6' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.11')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.11.A','recognize that some words and phrases have literal and non-literal meanings (e.g., take steps).',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4718906','2020-07-30 18:09:26.4718906','CC107F74-E985-47BF-AD16-946F7F4BBACF' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.11.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.12','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4708299','2020-07-30 18:09:26.4708299','F2C4A60B-4C23-441C-9194-4064589F875B' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.12')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.12.A','read independently for a sustained period of time and paraphrase what the reading was about, maintaining meaning.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4656167','2020-07-30 18:09:26.4645647','693A4773-1BA1-4855-9289-B9B9B0C26213' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.12.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.13','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4771772','2020-07-30 18:09:26.4771772','0B3BDEE0-8CF7-40E9-A4AB-EC645D2C0B77' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.13')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.13.A','identify the topic and explain the author''s purpose in writing the text.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4782228','2020-07-30 18:09:26.4782228','F490A334-34C8-4110-9DCC-8DB9D90AE6DF' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.13.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT TOP 1'110.13.14','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4939921','2020-07-30 18:09:26.4939921','14AA9C6D-6B03-4ADC-917E-FE1D9FDDD68A' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.14')); + + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2012-Mathematics-Eighth grade','Seventh grade Mathematics-39','110.13.10.A','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-Eighth grade' AND IdentificationCode='Seventh grade Mathematics-39' AND LearningStandardId='110.13.10.A' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','110.13.11','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND IdentificationCode='nineth grade Mathematics-39' AND LearningStandardId='110.13.11' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','110.13.11.A','uri://ed-fi.org/Assessment/AssessmentTestCase.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND IdentificationCode='nineth grade Mathematics-39' AND LearningStandardId='110.13.11.A' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-38','110.13.12','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-38' AND LearningStandardId='110.13.12' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-39','110.13.12.A','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-39' AND LearningStandardId='110.13.12.A' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-38','110.13.13','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-38' AND LearningStandardId='110.13.13' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-39','110.13.13.A','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-39' AND LearningStandardId='110.13.13.A' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT TOP 1 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-Testcase','110.13.14','uri://ed-fi.org/Assessment/Assessment.xml', getdate() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-Testcase' AND LearningStandardId='110.13.14' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_3/0001_AssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_3/0001_AssessmentFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..5ede897c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/MSSQL/v_3_3/0001_AssessmentFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'asmt_AssessmentFact' + ORDER BY ORDINAL_POSITION ASC; + + + AssessmentFactKey + nvarchar + + + AssessmentKey + nvarchar + + + AssessmentIdentifier + nvarchar + + + Namespace + nvarchar + + + Title + nvarchar + + + Version + int + + + Category + nvarchar + + + AssessedGradeLevel + nvarchar + + + AcademicSubject + nvarchar + + + ResultDataType + nvarchar + + + ReportingMethod + nvarchar + + + ObjectiveAssessmentKey + nvarchar + + + IdentificationCode + nvarchar + + + ParentObjectiveAssessmentKey + nvarchar + + + ObjectiveAssessmentDescription + nvarchar + + + PercentOfAssessment + decimal + + + MinScore + nvarchar + + + MaxScore + nvarchar + + + LearningStandard + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/0001_AssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_2/0001_AssessmentFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/0001_AssessmentFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_2/0001_AssessmentFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_3/0000_AssessmentFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_3/0000_AssessmentFact_Data_Load.xml new file mode 100644 index 00000000..b866e4dc --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_3/0000_AssessmentFact_Data_Load.xml @@ -0,0 +1,103 @@ + + + Any + + INSERT INTO edfi.descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '612','uri://ed-fi.org/AssessmentCategoryDescriptor','Other','Other','Other',NULL,NULL,NULL,'5C2542C0-6398-4296-B11A-B7A2A4A57B2A','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid='612')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '612','uri://ed-fi.org/AssessmentCategoryDescriptor','Other','Other','Other',NULL,NULL,NULL,'5C2542C0-6398-4296-B11A-B7A2A4A57B2A','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '612')); + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT '612' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId='612')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'AP - English 4FAE','612',NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','F4976E96-24F6-4069-AACE-BAD4682B2792','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx2',NULL,NULL,'2017',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2s3ch0knpb4val7uqve6mn269bavkdx2' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT '2s3ch0knpb4val7uqve6mn269bavkdx2','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx2' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1122','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Scale score','Scale score','Scale score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11505','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1122')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1122')); + + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT '1997','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Integer','Integer','Integer',NULL,NULL,NULL,'2020-08-11 12:57:55.2895903','2020-08-11 12:57:55.2885451','24BD9174-836E-4E3C-B09B-7B76114F6C02' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1997')); + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT '1997' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1997')); + -- + + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '0','25','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/Assessment.xml','1997','1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'AP - English AMT',NULL,NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','4C496FC2-0434-4001-8636-D5D339110771','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT '3s4ch0knpb4va28uqve6mn269bavkdx2','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT NULL,NULL,'Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'AP - English AMT',NULL,NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/AssessmentTestCase.xml','919BB3DD-B671-4531-9AB9-D80CAD194E89','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'AP - English AMT',NULL,NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/AssessmentTestCase.xml','919BB3DD-B671-4531-9AB9-D80CAD194E89','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT NULL,NULL,'Dec 14 2018 1:07PM','3s4ch0knpb4va28uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/AssessmentTestCase.xml',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '6','uri://ed-fi.org/AcademicSubjectDescriptor','English','English','English',NULL,NULL,NULL,'BEEA87DA-8922-46C7-9245-14004791AEC6','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId='6')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '6' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '6')); + INSERT INTO edfi.AssessmentAcademicSubject(AcademicSubjectDescriptorId,AssessmentIdentifier,Namespace,CreateDate)(SELECT '6','2s3ch0knpb4val7uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/Assessment.xml','2020-08-11 12:59:15.0836156' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAcademicSubject WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAcademicSubject(AcademicSubjectDescriptorId,AssessmentIdentifier,Namespace,CreateDate)(SELECT '6','3s4ch0knpb4va28uqve6mn269bavkdx2','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','2020-08-11 12:59:15.0836156' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAcademicSubject WHERE AssessmentIdentifier='3s4ch0knpb4va28uqve6mn269bavkdx2' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT '212','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'2020-08-11 12:57:42.4083127','2020-08-11 12:57:42.4083127','56E9CEFF-C68A-4FEB-A859-EFAC14E165F8' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '212')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '212')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT '39','uri://ed-fi.org/AcademicSubjectDescriptor','Mathematics','Mathematics','Mathematics',NULL,NULL,NULL,'2020-08-11 12:57:40.8082326','2020-08-11 12:57:40.8082326','5FF5558F-1B4E-4736-9EAF-114E6335CE4A' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '39')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '39' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '39')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT '132','uri://ed-fi.org/AssessmentCategoryDescriptor','Benchmark test','Benchmark test','Benchmark test',NULL,NULL,NULL,'2020-08-11 12:57:41.4386992','2020-08-11 12:57:41.4386992','27528335-388B-4F8E-8304-6AA07F562756' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '132')); + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT '132' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '132')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','04E3686E-D181-4A8D-94E4-65C2490F1A5A' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '0','25','Dec 14 2018 1:07PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/Assessment.xml','1.50000',NULL,NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','405F31A9-7F57-45C5-A3FC-941041D2C1D9' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-38' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math','Seventh grade Mathematics-38','39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','14707154-4B38-473B-8C74-14804BA75595' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT '2010','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Decimal','Decimal','Decimal',NULL,NULL,NULL,'2020-08-11 12:57:55.2895903','2020-08-11 12:57:55.2885451','24BD9174-836E-4E3C-B09B-7B76114F6C01' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2010')); + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT '2010' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '2010')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','212','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','0','1','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-39' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','212','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/Assessment.xml',NULL,NULL,'2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','1E3ACC7A-60BF-443D-8C3F-A30A7B3EAE08' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','1.50000',NULL,NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','E41E85F7-FCEF-4DCA-90C9-149E094CEC4C' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-38' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','5C4B897D-E2EE-4734-9B26-73B522E2DFCB' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','212','Seventh grade Mathematics-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','0','1','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12C' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-Seventh grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '0','25','Dec 14 2018 1:07PM','MP-2012-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-38','uri://ed-fi.org/Assessment/Assessment.xml','1.50000',NULL,NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','444D3BC8-D281-4921-8CEF-B9DF90ADB448' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-38' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math','Seventh grade Mathematics-38','39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CC' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT 'MP-2012-Mathematics-Seventh grade','212','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','0','1','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier = 'MP-2012-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-39' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'AP - English 4FAE2','612',NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','F4976E96-24F6-4069-AACE-BAD4682B2793','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx3',NULL,NULL,'2017',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2s3ch0knpb4val7uqve6mn269bavkdx3' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'AP - English 4FAE3','612',NULL,NULL,'25',NULL,'uri://ed-fi.org/Assessment/Assessment3.xml','F4976E96-24F6-4069-AACE-BAD4682B2795','Dec 14 2018 1:07PM','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx3',NULL,NULL,'2017',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2s3ch0knpb4val7uqve6mn269bavkdx3' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment3.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT '2s3ch0knpb4val7uqve6mn269bavkdx3','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx3' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT '2s3ch0knpb4val7uqve6mn269bavkdx3','38','uri://ed-fi.org/Assessment/Assessment3.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx3' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment3.xml')); + INSERT INTO edfi.AssessmentScore(MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '0','25','Dec 14 2018 1:07PM','2s3ch0knpb4val7uqve6mn269bavkdx3','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='2s3ch0knpb4val7uqve6mn269bavkdx3' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='1122')); + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12D' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-Eighth grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-Eighth grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT 'Dec 14 2018 1:07PM','MP-2012-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-Eighth grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-Eighth grade','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CD' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-Eighth grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentScore(AssessmentIdentifier,AssessmentReportingMethodDescriptorId,IdentificationCode,Namespace,MinimumScore,MaximumScore,ResultDatatypeTypeDescriptorId,CreateDate)(SELECT 'MP-2012-Mathematics-Eighth grade','212','Seventh grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','5','10','2010','2020-08-11 12:59:18.6884823' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessmentScore WHERE AssessmentIdentifier = 'MP-2012-Mathematics-Eighth grade' AND IdentificationCode = 'Seventh grade Mathematics-39' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + -- + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/Assessment.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12A' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-nineth grade','38','uri://ed-fi.org/Assessment/Assessment.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.AssessmentScore(CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT 'Dec 14 2018 1:07PM','MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/Assessment.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','uri://ed-fi.org/Assessment/Assessment.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CA' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + + INSERT INTO edfi.Assessment(AssessmentIdentifier,Namespace,AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,AssessmentVersion,RevisionDate,MaxRawScore,Nomenclature,AssessmentFamily,EducationOrganizationId,AdaptiveAssessment,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','7th Grade Math Placement','132',NULL,'2010','2010-07-15','25.50000',NULL,NULL,NULL,NULL,'NULL','2020-08-11 12:59:15.0931613','2020-08-11 12:59:15.0910434','8A179AB3-98B8-4893-A895-F54D21E5F12B' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.AssessmentAssessedGradeLevel(AssessmentIdentifier,GradeLevelDescriptorId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-nineth grade','38','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','Dec 14 2018 1:07PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentAssessedGradeLevel WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND GradeLevelDescriptorId='38' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.AssessmentScore(CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT 'Dec 14 2018 1:07PM','MP-2012-Mathematics-nineth grade','uri://ed-fi.org/Assessment/AssessmentTestCase.xml',NULL,'212' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentScore WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml' AND AssessmentReportingMethodDescriptorId='212')); + INSERT INTO edfi.ObjectiveAssessment(AssessmentIdentifier,IdentificationCode,Namespace,MaxRawScore,PercentOfAssessment,Nomenclature,Description,ParentIdentificationCode,AcademicSubjectDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT 'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','uri://ed-fi.org/Assessment/AssessmentTestCase.xml','1.00000','0.0392',NULL,'Math',NULL,'39','NULL','2020-08-11 12:59:18.6852959','2020-08-11 12:59:18.6779206','C793689F-593D-4B92-85C9-B563A53B87CB' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2012-Mathematics-nineth grade' AND IdentificationCode= 'Seventh grade Mathematics-39' AND Namespace= 'uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + + --Learning Standard + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,CreateDate,LastModifiedDate,Id)(SELECT '1582','uri://ed-fi.org/LearningStandardScopeDescriptor','State','State','State',NULL,NULL,NULL,'2020-07-30 18:09:13.6702734','2020-07-30 18:09:13.6692345','89A374EB-81B6-4B79-BA36-B9BF05124818' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1582')); + INSERT INTO edfi.LearningStandardScopeDescriptor(LearningStandardScopeDescriptorId)(SELECT '1582' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandardScopeDescriptor WHERE LearningStandardScopeDescriptorId= '1582')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.1','Reading/Beginning Reading Skills/Print Awareness. Students understand how English is written and printed.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','AE8C50D5-6432-461B-BFAA-5086B2165F8C' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.1')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.1.A','distinguish features of a sentence (e.g., capitalization of first word, ending punctuation, commas, quotation marks).',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','B979CE6C-AA3C-4EB8-925E-332205714268' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.1.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.10','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','6535E405-20A6-4F95-9768-70F782E9C5F9' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.10')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.10.A','distinguish between fiction and nonfiction.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4390514','2020-07-30 18:09:26.4296252','F40AF32C-4AF5-4856-A3D2-7159AF26D850' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.10.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.11','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4718906','2020-07-30 18:09:26.4718906','E3CBBDC5-63F4-421D-B330-CDF0F8AF1EA6' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.11')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.11.A','recognize that some words and phrases have literal and non-literal meanings (e.g., take steps).',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4718906','2020-07-30 18:09:26.4718906','CC107F74-E985-47BF-AD16-946F7F4BBACF' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.11.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.12','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4708299','2020-07-30 18:09:26.4708299','F2C4A60B-4C23-441C-9194-4064589F875B' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.12')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.12.A','read independently for a sustained period of time and paraphrase what the reading was about, maintaining meaning.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4656167','2020-07-30 18:09:26.4645647','693A4773-1BA1-4855-9289-B9B9B0C26213' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.12.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.13','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4771772','2020-07-30 18:09:26.4771772','0B3BDEE0-8CF7-40E9-A4AB-EC645D2C0B77' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.13')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.13.A','identify the topic and explain the author''s purpose in writing the text.',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4782228','2020-07-30 18:09:26.4782228','F490A334-34C8-4110-9DCC-8DB9D90AE6DF' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.13.A')); + INSERT INTO edfi.LearningStandard(LearningStandardId,Description,LearningStandardItemCode,URI,CourseTitle,SuccessCriteria,ParentLearningStandardId,Namespace,LearningStandardCategoryDescriptorId,LearningStandardScopeDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id)(SELECT '110.13.14','',NULL,NULL,'English Language Arts and Reading, Grade 2, 2009-2010',NULL,NULL,'uri://ed-fi.org/LearningStandard/LearningStandard.xml',NULL,'1582','NULL','2020-07-30 18:09:26.4939921','2020-07-30 18:09:26.4939921','14AA9C6D-6B03-4ADC-917E-FE1D9FDDD68A' WHERE NOT EXISTS(SELECT 1 FROM edfi.LearningStandard WHERE LearningStandardId='110.13.14')); + + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-Eighth grade','Seventh grade Mathematics-39','110.13.10.A','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-Eighth grade' AND IdentificationCode='Seventh grade Mathematics-39' AND LearningStandardId='110.13.10.A' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','110.13.11','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND IdentificationCode='nineth grade Mathematics-39' AND LearningStandardId='110.13.11' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-nineth grade','nineth grade Mathematics-39','110.13.11.A','uri://ed-fi.org/Assessment/AssessmentTestCase.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-nineth grade' AND IdentificationCode='nineth grade Mathematics-39' AND LearningStandardId='110.13.11.A' AND Namespace='uri://ed-fi.org/Assessment/AssessmentTestCase.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-38','110.13.12','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-38' AND LearningStandardId='110.13.12' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2012-Mathematics-Seventh grade','Seventh grade Mathematics-39','110.13.12.A','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2012-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-39' AND LearningStandardId='110.13.12.A' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-38','110.13.13','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-38' AND LearningStandardId='110.13.13' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-39','110.13.13.A','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-39' AND LearningStandardId='110.13.13.A' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessmentLearningStandard(AssessmentIdentifier,IdentificationCode,LearningStandardId,Namespace,CreateDate)(SELECT 'MP-2013-Mathematics-Seventh grade','Seventh grade Mathematics-TestCase','110.13.14','uri://ed-fi.org/Assessment/Assessment.xml', NOW() WHERE NOT EXISTS (SELECT 1 FROM edfi.ObjectiveAssessmentLearningStandard WHERE AssessmentIdentifier='MP-2013-Mathematics-Seventh grade' AND IdentificationCode='Seventh grade Mathematics-TestCase' AND LearningStandardId='110.13.14' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_3/0001_AssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_3/0001_AssessmentFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..856f4c12 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/AssessmentFact/PostgreSQL/v_3_3/0001_AssessmentFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'asmt_assessmentfact' + ORDER BY ORDINAL_POSITION ASC; + + + assessmentfactkey + text + + + assessmentkey + text + + + assessmentidentifier + character varying + + + namespace + character varying + + + title + character varying + + + version + integer + + + category + character varying + + + assessedgradelevel + character varying + + + academicsubject + character varying + + + resultdatatype + character varying + + + reportingmethod + character varying + + + objectiveassessmentkey + text + + + identificationcode + character varying + + + parentobjectiveassessmentkey + text + + + objectiveassessmentdescription + character varying + + + percentofassessment + numeric + + + minscore + character varying + + + maxscore + character varying + + + learningstandard + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_1/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_1/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..e5f4be7d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_1/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml @@ -0,0 +1,54 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'chrab_ChronicAbsenteeismAttendanceFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + DateKey + varchar + + + ReportedAsPresentAtSchool + int + + + ReportedAsAbsentFromSchool + int + + + ReportedAsPresentAtHomeRoom + int + + + ReportedAsAbsentFromHomeRoom + int + + + ReportedAsIsPresentInAllSections + int + + + ReportedAsAbsentFromAnySection + int + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_2/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_2/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml new file mode 100644 index 00000000..a9dbe905 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_2/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml @@ -0,0 +1,1391 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor as Target + USING (VALUES + (775,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','FullPrice'), + (686,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Instructional day'), + (687,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Make-up day'), + (545,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Excused Absence'), + (544,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence'), + (547,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Tardy'), + (546,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','In Attendance'), + (24,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Eleventh grade'), + (535,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester'), + (778,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free'), + (18,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other'), + (13,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies'), + (110,'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml','Limited'), + (138,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','State Offense'), + (780,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','Other'), + (140,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','School Code of Conduct'), + (729,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Withdrawn'), + (726,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Other'), + (38,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Twelfth grade'), + (683,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Holiday'), + (31,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Ninth grade'), + (35,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Tenth grade'), + (530,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester'), + (2,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics'), + (19,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Fifth grade'), + (10,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science'), + (1601,'uri://ed-fi.org/GradeTypeDescriptor','Grading Period'), + (1086,'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent'), + (1695,'uri://ed-fi.org/SchoolTypeDescriptor','Regular'), + (1148,'uri://ed-fi.org/CalendarTypeDescriptor','Student Specific'), + (950,'uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom'), + (1232,'uri://ed-fi.org/PopulationServedDescriptor','Regular Students'), + (1451,'uri://ed-fi.org/StateAbbreviationDescriptor','TX'), + (1225,'uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students'), + (1049,'uri://ed-fi.org/IncidentLocationDescriptor','On campus'), + (1460,'uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator'), + (1233,'uri://ed-fi.org/PopulationServedDescriptor','Special Education Students') + ) + AS Source(DescriptorId, Namespace, CodeValue) + ON Target.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN INSERT + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, Id, + EffectiveBeginDate, EffectiveEndDate, LastModifiedDate, CreateDate) + VALUES + (Source.DescriptorId, Source.Namespace, Source.CodeValue, Source.CodeValue, Source.CodeValue, null, newid(), + '2000-01-01','3000-01-01', getdate(), getdate()) + OUTPUT $action, inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530011','Cooper','A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530012','Jonner',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530012')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530011','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530012','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530012')); + + 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','Adrian','P','Selby','1994-08-25','Lubbock','193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2011','2011-02-21','24','2012-02-01','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND Schoolyear=2011 and entrydate='2011-02-21')); + + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + 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.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-02' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530012_2012','867530012','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530012_2012' AND SchoolId= '867530012' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530012','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D64','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530012_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530012_2012' AND Date= '2012-05-02' AND SchoolId= '867530012' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-02','686','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530012','2012-05-02','686','Sep 18 2015 11:34AM','867530012_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530012 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-16','C71B7B6F-ACB0-46BE-A2CC-C98C0CC3CD58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-16' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-16','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-16' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-15','E7242123-3085-419C-8C1D-DC5738FC6AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-15' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-15','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-15' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-10','BE8BB56E-505C-4011-872F-B559E19351A6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-10' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-10','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-10' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530174','King Elementary School',NULL,NULL,'A0309A7C-26BD-4602-9F7C-6C83F1223CA2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530174')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530174','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530174')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530174_2012','867530174','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D494D8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2012' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2012-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38C16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2012-05-02' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2012-05-02','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530022_2012','867530022','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0D2CA3E8-D8D8-46D5-B952-C4144E7CE4E8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530022_2012' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2012-05-02','EDC5E2E9-0431-41CC-95E5-635657D166AA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2012-05-02' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2012-05-02','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','LENR31','English Iii (1 Unit)','1','DE1F9933-2F1E-4C49-9F66-F664E9DAEA78','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'LENR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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-Spring Semester','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 SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'LENR31','867530011','2012','English Iii (1 Unit)','LENR31','867530011','24DA02E6-2081-4E2E-A399-BA382CAF82A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','206','2CC51551-0168-4199-B043-6C04C431D2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '206' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','LENR31','2012','1','1.000','EF5AA153-B644-4A98-9147-4C58A56D99D4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4508','867530011','206','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '4508' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100071861',NULL,'Torrie','P','Marshall',NULL,NULL,'1994-06-04',NULL,NULL,NULL,NULL,'200488','914E3B59-86B4-4EC0-A738-CEE7732CE3CD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071861')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','A9ACCD38-5CBA-4C74-988B-0668782E65B0' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='A9ACCD38-5CBA-4C74-988B-0668782E65B0')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'545' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '545')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530062','Alvarado Middle School',NULL,NULL,'EC112FBA-E671-412E-9BC8-55C35B33B062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530062')); + + 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 TOP 1'867530062','LENR07','English Language Arts And Reading, Gr 7','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6D904BBE-E6BA-4AE1-904D-9C18A80387D2','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= 'LENR07' AND EducationOrganizationId= '867530062')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530062','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530062')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','4A397178-40A3-4191-8213-B15B80A422D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530062' 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 TOP 1'LENR07','867530062','2012','English Language Arts, Grade 7',NULL,'LENR07','867530062','A7291000-B3D9-4766-9DC9-75D9BCD64DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','114',NULL,NULL,'5AE1D163-1817-4052-A4E3-0CCD694DC436','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530062')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530062','LENR07','2012','1',NULL,NULL,'0.000','4F584355-8FDD-44BA-97A4-62E333B17CD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4396','867530062','114','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SectionIdentifier= '4396' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075987',NULL,'Randall','K','Austin',NULL,NULL,'1998-06-12','Lubbock',NULL,NULL,NULL,'202218','F3E90F7F-90C3-41DE-B994-5C5A8810E123','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075987')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-02','LENR07','867530062','2012','4396','Traditional-Spring Semester','100075987','P-In school suspension',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F0972B54-4CCA-4587-9F06-2887D8CEAA8F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F0972B54-4CCA-4587-9F06-2887D8CEAA8F')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','YBIR11','Business Information Management','1','18','9D406716-D0E3-4500-BD8E-8CE6430F0979','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YBIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YBIR11','867530011','2012','Business Information Management','YBIR11','867530011','FFED20B1-3098-44D2-9D2D-6163DFAFD8D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','107A','A1EF9136-975E-4305-BE7E-5BBCA450CD9B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107A' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','YBIR11','2012','1','1.000','1E52A342-9C5F-452B-BA82-F76FAA5A242E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18267','867530011','107A','1225',NULL,'950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18267' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','YBIR11','867530011','2012','18267','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4FCC7D50-BAA7-4E84-8C81-27E476CE47D6' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='4FCC7D50-BAA7-4E84-8C81-27E476CE47D6')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13','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.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)','QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530011','115','C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QAGR40','2012','1','0.500','0AF2F009-3848-448C-8014-009FF62B826F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18938','867530011','115','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18938' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','QAGR40','867530011','2012','18938','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','YAIR11','Interior Design','1','18','C57FC015-E9B3-4CB4-802B-98BB0F357FC4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YAIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YAIR11','867530011','2012','Interior Design','YAIR11','867530011','C2A55CE4-A256-47A0-83FD-5184DB3C4422','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','113','6B10093E-5D61-4F94-9B3D-CD253FF9D9C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','YAIR11','2012','1','1.000','58801B52-B52E-4412-908A-A5CB06F5D01B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19515','867530011','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19515' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','YAIR11','867530011','2012','19515','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8C84','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530011','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530011','385B25B1-7A77-4978-AE9B-8CA5467E70D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C86B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19524','867530011','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19524' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','YPNR11','867530011','2012','19524','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','CA33C9D4-276E-475A-AC47-08588DDC6429' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='CA33C9D4-276E-475A-AC47-08588DDC6429')); + + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530011','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'E9894DFF-6207-4F56-AA72-5AAC5D349144','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','8496','32845E12-8DF5-44BB-9326-9704CA374BEC','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='32845E12-8DF5-44BB-9326-9704CA374BEC')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'2706','867530011','2011-11-14','12:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'7876B001-D923-445C-8FD1-B060753EF16B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '2706' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2706','9E6C9BCA-FDE6-4A59-8625-25880A8B96EA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='9E6C9BCA-FDE6-4A59-8625-25880A8B96EA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100057336',NULL,'Thanh','C','Vasquez',NULL,NULL,'1992-06-03','Lubbock',NULL,NULL,NULL,'194792','D294ADC9-C71F-4534-963E-43D6DA1CBCCF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100057336')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','8496','64CBFCDC-D065-4875-99EF-EF1DFFB84DA0','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='64CBFCDC-D065-4875-99EF-EF1DFFB84DA0')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','2706','CE4DAD6D-ED57-464D-8985-991C94270F5F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='CE4DAD6D-ED57-464D-8985-991C94270F5F')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530022','2011-12-05','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'5B747786-34BF-43E2-AF69-CB3E62BA515D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100014881',NULL,'Cecilia','D','Begay',NULL,NULL,'1989-06-05','Lubbock',NULL,NULL,NULL,'189889','989B461B-45DD-4947-B310-51229E2068FC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','1064','5B39FFB7-9441-4F0A-AA03-4C251295F4A3','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='5B39FFB7-9441-4F0A-AA03-4C251295F4A3')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'138' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '138')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530007 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=8496)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + SET IDENTITY_INSERT edfi.Student OFF; + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10100495',NULL,'David','K','Carey',NULL,NULL,'1984-09-04',NULL,NULL,NULL,NULL,'189855','1FBB3B53-A219-40FB-8FF9-676659EED949','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100495')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','8496','034543D8-1D92-4622-B636-8A542198E006','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'780' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '780')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1200','867530011','2011-10-11','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'A3A21A69-6C53-40AB-9B7E-0C97447BADE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1200' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1200','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=1200)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1615','867530007','2011-10-12','00:00:00.0000000',NULL,NULL,'Washburn, Steven',NULL,NULL,NULL,NULL,'94DE1068-D3F7-4DA5-B7A1-87A7E20225F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1615' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','1615','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=1615)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530011','2011-10-03','08:00:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'C4695F83-08A8-42F1-984D-BCD37111C2E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 1064)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530022 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530022')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 8496)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','8496','1B3C4FE4-8F1F-4921-A94A-70167E424862','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530022 AND IncidentIdentifier = 8496)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'7485','867530011','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90991DB0-460C-421F-AB15-3228610D5B92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '7485' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 7485)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','7485','9B398892-C4F6-446A-BE65-B0925B923A44','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530011 AND IncidentIdentifier = 7485)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'729' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100026948 AND SchoolId=867530023 AND EntryDate='2011-08-22')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-05-20','90C557E4-2D4F-4365-9E09-64FC3EED500C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-05-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'683' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '683')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-05-20','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2011-08-20','EDC7141A-C9C7-4CDF-BDD5-D2A83C89FE13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2011-08-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2011-08-20','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2011-08-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'726' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '726')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'600090441',NULL,'Jack','K','Harmine',NULL,NULL,'2001-04-03',NULL,NULL,NULL,NULL,'600090441','9B52A7B8-BE87-48D3-8B4D-EE5269029188','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '600090441')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'600090441','628530001',NULL,'2011-08-07','31',NULL,NULL,NULL,'2011-11-06','726',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8C391698-D64D-43AC-89DB-E4D56A365ED9','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=600090441 AND SchoolId=628530001 AND EntryDate='2011-08-07')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE04','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2012','2013-02-21','24','632','2012','B36B3E0D-E46A-449E-AE9B-DF629912EB8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2013-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2011','2011-02-21','24','2012-02-01','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2011-02-21')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'10100495','867530012','2011-09-20','35','632','2012','904243FF-1AA7-4891-A489-37521371955E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100495 AND SchoolId=867530012)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100014881 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530022','2012-02-21','24','2013-02-21','632','2012','A5BE92DB-EA7F-40CA-B61E-A31FB8835A92','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530022 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF480B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530011')); + + 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 TOP 1'867530012','QENR12','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480C','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= 'QENR12' AND EducationOrganizationId= '867530012')); + + 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 TOP 1'867530012','QENR13','English I (2 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480D','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= 'QENR13' AND EducationOrganizationId= '867530012')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'530' 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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530012','2012','530','Traditional','2011-08-22','2011-12-20','82','A7964013-62DF-424A-BC52-85CEBFE64062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)','QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR12','867530012','2012','English I (1 Unit)',NULL,'QENR12','867530012','39066D32-88AA-4A9F-8285-CD6344BE4050','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR12' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR13','867530012','2012','English I (2 Unit)',NULL,'QENR13','867530012','39066D32-88AA-4A9F-8285-CD6344BE405A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR13' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530011')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530012','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530012')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18131','867530011','111','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18131' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530012','QENR12','2012','1','1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18132','867530012','111','1232','950' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR12' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SectionIdentifier= '18132' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530012','QENR13','2012','1','1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18133','867530012','111','1232','950' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR13' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SectionIdentifier= '18132' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'5952EDA8-830B-42C4-B3ED-D52DB6931930','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18131','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931930')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'10100495','867530012','QENR12','2012','2011-09-15','2011-09-15','1','5952EDA8-830B-42C4-B3ED-D52DB6931931','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18132','Traditional' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931931')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'10100495','867530012','QENR13','2012','2011-09-15','2011-09-15','1','5952EDA8-830B-42C4-B3ED-D52DB6931932','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18133','Traditional' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931932')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','10100494','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'546' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '546')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'546','2012-05-02','QENR12','867530012','2012','18132','Traditional','10100495','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0257',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0257')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'546','2012-05-02','QENR13','867530012','2012','18133','Traditional','10100495','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0258',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0258')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F079','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-20' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-20','686','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2011-08-22','E962026B-6DE3-475B-8380-A3621AC45A06','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2011-08-22' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2011-08-22','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2011-08-22' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','T01','6ADE0EB1-1136-4DF4-8700-8B7DE99BA599','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName = 'T01' AND Schoolid = '867530022')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','105',NULL,NULL,'0572DE93-B143-4938-991D-34141DAAA4FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE SchoolId=867530022 and ClassroomIdentificationCode='105')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530022','QENR11','English I (1 Unit)','1','4292064B-6416-47CE-A6BF-A9E48C257085','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530022','2012','English I (1 Unit)',NULL,'QENR11','867530022','497496E4-0599-4451-9849-60FEB5C78DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1104',NULL,NULL,'AB49842C-6E32-4AEE-9A27-CEE1A9962BA4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1104' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','96B5B65C-85E0-46AF-824F-E08916B771AF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9622','867530022','1104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='96B5B65C-85E0-46AF-824F-E08916B771AF')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','B1554264-310C-4683-9D9D-60CBBEA60AEE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530022','QENR11','2012','2011-09-15','2011-09-15','1','6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738F83','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F83')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','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 SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530011','2011','English I (1 Unit)','QENR11','867530011','9C9371A3-5E01-4D30-BDFA-61E992148370','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QENR11','2011','1','1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530011','QENR11','2011','2011-09-15','2011-09-15','1','584B75F4-2A60-4B9A-B3FD-177049CF5086','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='584B75F4-2A60-4B9A-B3FD-177049CF5086')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100079802',NULL,'Luke','O','Johnston',NULL,NULL,'1996-07-18',NULL,NULL,NULL,NULL,'204030','5CE8E0EE-28FF-4ACB-836F-ABA7BE665A9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100079802')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011',NULL,'2012-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','39F3E4DB-CEDD-4662-B088-BDA6FEA350F7','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='39F3E4DB-CEDD-4662-B088-BDA6FEA350F7')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2012','2011-09-26','2011-11-28','1',NULL,'430E04C4-AC44-44EF-8ED2-A3CA0A05318B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='430E04C4-AC44-44EF-8ED2-A3CA0A05318B')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId = '867530011' AND SchoolYear = '2012' AND TermDescriptorId = '530')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='39066D32-88AA-4A9F-8285-CD6344BE405D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='95669A96-EFA6-4855-AF4B-E616288BF2A2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'8E3482C5-6FA7-4611-9E2E-E81E1EA290E2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8E3482C5-6FA7-4611-9E2E-E81E1EA290E2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'2C1F53CF-789F-4C50-B9BF-F46F3C785DDA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2C1F53CF-789F-4C50-B9BF-F46F3C785DDA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'1043A9EA-2AC5-467D-B557-48DF0C208417','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1043A9EA-2AC5-467D-B557-48DF0C208417')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530022','XSMP41','SEP MTH 4','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'80A9A802-64C3-410B-93FF-72ED72E19B8C','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= 'XSMP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','61E88EE1-69CE-451E-A7D6-37EC260A1710','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1405',NULL,NULL,'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1233' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1233')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','752D67A4-580D-43E2-B7F0-54DC4E2A6331','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','0946DADD-EAA1-40C4-B68A-A472165A4DCA',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='0946DADD-EAA1-40C4-B68A-A472165A4DCA')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9E86C992-EA0D-47BB-99F9-DC844BEDEE6E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9E86C992-EA0D-47BB-99F9-DC844BEDEE6E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','712E26B4-C6D8-4577-A4C2-04198D566307',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='712E26B4-C6D8-4577-A4C2-04198D566307')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5D3BEA60-F30E-4527-A3F7-C08F07594850' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5D3BEA60-F30E-4527-A3F7-C08F07594850')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-16','QENR11','867530011','2012','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EE7E75B4-F076-4C40-A124-35AD4830A0F8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EE7E75B4-F076-4C40-A124-35AD4830A0F8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E78E391A-6FFF-4217-804B-2F4761DF5F21' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E78E391A-6FFF-4217-804B-2F4761DF5F21')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7E819588-D81E-4D5F-B672-922A2D9F159A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='7E819588-D81E-4D5F-B672-922A2D9F159A')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','XLSK41','FUNCT COM SK 12','1','18','0A3B72C8-24F5-4254-830D-5B0FB91C3B40','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLSK41' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'XLSK41','867530011','2012','FUNCT COM SK 12','XLSK41','867530011','3342778F-F57A-425D-B0F3-4BE3D29327BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','XLSK41','2012','1','0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='FFE62040-17BF-499B-894B-4FAA55853BF9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530011','XLSK41','2012','2011-09-15','2011-09-15','1','F958E086-C827-4D75-B41E-53288CE6B69A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='F958E086-C827-4D75-B41E-53288CE6B69A')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100070882',NULL,'Matthew',NULL,'Barnes',NULL,NULL,'1999-08-07',NULL,NULL,NULL,NULL,'200099','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A06BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174',NULL,'2011-08-22','19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D4C9405E-7C08-43FE-BDE9-1102EA64FD0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FD0E')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2011-11-03','8BDAC34D-99EE-46F1-92A4-206F003FF4E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-03' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2011-11-03','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530167','Mt. Gleason Elementary School',NULL,NULL,'64ACB96B-7081-4E4B-9CB2-C33134D9F255','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530167')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530167','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530167')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530167_2012','867530167','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','98E7F1CB-4567-40D8-95BA-2751BBA4E062',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530167_2012' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530167','2011-11-03','6DA040F0-4854-402A-8147-15941A60436C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530167_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530167_2012' AND Date= '2011-11-03' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530167','2011-11-03','686','Sep 18 2015 11:34AM','867530167_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530167 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530163','James Lick Elementary School',NULL,NULL,'1E86182B-6478-413D-9106-5DD842298B97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530163')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530163','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530163')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530163_2012','867530163','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0FF0BBBD-738C-4249-AA09-E374E8E8EC3B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530163_2012' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530163','2011-11-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530163_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530163_2012' AND Date= '2011-11-03' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530163','2011-11-03','686','Sep 18 2015 11:34AM','867530163_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530163 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530174','2012','530','Traditional','2011-08-22','2011-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810A54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','544',NULL,'2735F816-C327-47FA-AFC2-A03218661968','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=544)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','545','A-Parent contact','C4E41C67-4D6E-4923-909D-4E0518B79982','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=545)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','546','Excused','DBCB3701-03BB-45FE-9A28-F19C2E2228DF','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='DBCB3701-03BB-45FE-9A28-F19C2E2228DF')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','547','Late','C07501E9-BC3C-4A5F-B8D6-20E23381D6F4','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C07501E9-BC3C-4A5F-B8D6-20E23381D6F4')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140270',NULL,'Melody','C','Reese',NULL,NULL,'2006-07-04','Lubbock',NULL,NULL,NULL,'235621','BFAD0CA4-9A97-4EF3-A505-D5AE651F215B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140270')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100140270','867530174','2012','2011-11-03','547',NULL,'020241AC-E9C4-473C-A6E4-97AD01A74140','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='020241AC-E9C4-473C-A6E4-97AD01A74140')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530022','2012','2012-05-20','544','Abs','246CD054-7DE4-4F38-AB4B-844B2DB52E27','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB52E27')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','2012','2012-05-20','544','Abs','EC1B7463-89B1-41A3-BF5F-1544F1B37A34','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC1B7463-89B1-41A3-BF5F-1544F1B37A34')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530011','2011','2012-05-20','544','Abs','C15388A3-297B-4721-8F08-3D71BEE71B68','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C15388A3-297B-4721-8F08-3D71BEE71B68')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530011','2012','2012-06-01','544','Abs','C6A8A994-C7B9-423F-9E59-C6F247712EBC','Jun 1 2012 12:00AM','Jun 1 2012 12:00AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C6A8A994-C7B9-423F-9E59-C6F247712EBC')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530167','2012','530','Traditional','2011-08-22','2011-12-20','82','087799AD-49F9-4C7D-AB36-3D7E5ADBB727','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530167' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100082146',NULL,'Bianca','B','Jessup',NULL,NULL,'2001-11-27',NULL,NULL,NULL,NULL,'204888','6384E2D4-EB0A-40FC-9E5C-1D36D5B36255','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082146')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100082146','867530167','2012','2011-11-03','547',NULL,'EC927F76-8441-4099-A95F-5E8D992BD9EA','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC927F76-8441-4099-A95F-5E8D992BD9EA')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530163','2012','530','Traditional','2011-08-22','2011-12-20','82','E0DFF2A5-0791-4176-B13D-FA4A64C1B523','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530163' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100091085',NULL,'Joe','M','Arribas',NULL,NULL,'2000-05-24','Lubbock',NULL,NULL,NULL,'209514','1F87B2A8-F667-4B84-AF8A-8223F4FF107D','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100091085')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100091085','867530163','2012','2011-11-03','545','A-Absent excused','54D85A58-E0EC-41E5-AD99-028C6FBCC07A','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='54D85A58-E0EC-41E5-AD99-028C6FBCC07A')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3976C','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3976C')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='B07D591A-1EAB-497E-8570-188EF07323BA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='5DE62337-788B-4F8A-9146-540E5FFC673F')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','B05','CD2D4337-E615-48EC-B873-D8D568668CDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='CD2D4337-E615-48EC-B873-D8D568668CDF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2011-12-05','8D4193FE-07C8-4CD3-8A7D-B306A53F7A02','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2011-12-05' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2011-12-05','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2011-12-05' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2011-11-03','2011-12-20','0',NULL,'9A91EAB2-7C14-486B-A87F-D402916864B6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9A91EAB2-7C14-486B-A87F-D402916864B6')); + + 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 TOP 1'867530022','XSTP41','VOC 4 SE','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'85D52DBF-B05B-447B-890C-16F06DA0864B','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= 'XSTP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSTP41','867530022','2012','BASIC VOC 12',NULL,'XSTP41','867530022','50921FB7-5DB0-41F5-8277-F1B0B35433A0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSTP41','2012','1',NULL,NULL,'1.000','5D20FD7D-4634-444B-AB77-4A57206BFC53','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14753','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14753' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSTP41','2012','2011-08-22','2011-12-20','1',NULL,'8559F681-F3A8-4AA5-A3BC-F2FB15565AE5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','14753','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8559F681-F3A8-4AA5-A3BC-F2FB15565AE5')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','B9DDDABF-3AEF-4505-A339-B3E4E7707895','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','A15ED7AA-EFD5-423D-B832-0D9FC1A92693','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230731','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230731')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022','XSMP41','2012','2011-11-03','2011-12-20','1',NULL,'9E2F52C5-0CB7-48EC-B4EC-380786F97E02','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9E2F52C5-0CB7-48EC-B4EC-380786F97E02')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79AF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79AF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','AC4A45FC-0773-46FD-BA29-DE3267B75932',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='AC4A45FC-0773-46FD-BA29-DE3267B75932')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530022','SCMR31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7F1862F0-1B69-4F08-BAB2-390A38A9CFD3','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= 'SCMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'SCMR31','867530022','2012','Chemistry (1 Unit)',NULL,'SCMR31','867530022','D05298E6-2A89-4EE3-A5CA-5C2581E53B90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1501',NULL,NULL,'5688B86B-0341-4C9C-9241-99E976764BC3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1501' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','SCMR31','2012','1',NULL,NULL,'1.000','18E750EC-BD6E-4F42-B3CC-0BAFE41F2B13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11579','867530022','1501','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '11579' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6F149507-917C-45CA-832D-ED407B37920A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6F149507-917C-45CA-832D-ED407B37920A')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D4462F87-3340-43FD-B81C-E19CE2AA432E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D4462F87-3340-43FD-B81C-E19CE2AA432E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E661DC4E-D254-4718-A8A5-48D8F23BF469',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E661DC4E-D254-4718-A8A5-48D8F23BF469')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 1064)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','1064','443DCCE2-134C-4491-A1AA-E8FA2D10D8E8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='443DCCE2-134C-4491-A1AA-E8FA2D10D8E8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EBC735CD-0794-4EFD-A448-A35E3F730678',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EBC735CD-0794-4EFD-A448-A35E3F730678')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9865382E-F8AE-4756-AB9A-0B2C0ADBABA7',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9865382E-F8AE-4756-AB9A-0B2C0ADBABA7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','71ECE7A9-7240-43F5-8D02-2DEF36F563C3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='71ECE7A9-7240-43F5-8D02-2DEF36F563C3')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','124784BA-5674-4DBD-999C-87B143463EFF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='124784BA-5674-4DBD-999C-87B143463EFF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011',CAST('2110-12-12' as DATE),'1AE131B4-559E-4695-AD14-C46D257B4994','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= CAST('2110-12-12' as DATE) AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011',CAST('2110-12-12' as DATE),'686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND CAST('2110-12-12' as DATE) = CalendarDateCalendarEvent.Date)); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544',CAST('2110-12-12' as DATE),'LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D7D517D3-546E-494E-B170-E11EBE67C9D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D7D517D3-546E-494E-B170-E11EBE67C9D6')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530013','Davids','A56A986C-976E-45A7-83B1-0F8D63FFECD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530013')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530014','Jorges','A56A986C-976E-45A7-83B1-0F8D63FFECD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530014')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530013','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530013')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530014','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530014')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055075','Jose','P','Leiva','1994-08-25','Lubbock','193965','5EED229F-2181-4221-9AC1-D977E6314F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055075')); + SET IDENTITY_INSERT edfi.Student OFF; + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055076','Pablo','P','Leiva','1994-08-25','Lubbock','193966','5EED229F-2181-4221-9AC1-D977E6314F99','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055076')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C834','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C837','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530014','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C835','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530014' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','2011','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C836','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8C85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530013')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530013','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530013','385B25B1-7A77-4978-AE9B-8CA5467E70D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','113','2CC51551-0168-4199-B043-6C04C431D2A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530013')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530014','113','2CC51551-0168-4199-B043-6C04C431D2A5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530014')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C86B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530013','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055075','867530013','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055075 AND SchoolId=867530013 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055075','867530014','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE06','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055075 AND SchoolId=867530014 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055076','867530013','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE07','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055076 AND SchoolId=867530013 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF480F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530013')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530014','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF4806','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530014')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530013','2012','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530013','2012','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530014','2012','English I (1 Unit)','QENR11','867530014','39066D32-88AA-4A9F-8285-CD6344BE405B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530014' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530013','2011','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530013')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE81','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530014','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE82','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530014' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2011','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530013_2012','867530013','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530013_2012' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530014_2012','867530014','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157D' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530014_2012' AND SchoolId= '867530014' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530013','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F080','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530013_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530013_2012' AND Date= '2012-05-20' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530014','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F082','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530014_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530014_2012' AND Date= '2012-05-20' AND SchoolId= '867530014' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530013','2012-05-20','686','Sep 18 2015 11:34AM','867530013_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530013 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530014','2012-05-20','686','Sep 18 2015 11:34AM','867530014_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530014 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055076','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F85')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F86')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530014','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F95','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F95')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2011','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F96','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F96')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738F84','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F84')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F87')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530013','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530014','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530013','2012','9561','Traditional','100055076','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9D9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9D9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-19','QENR11','867530013','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9BA' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9BA')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530015','Davids','A56A986C-976E-45A7-83B1-0F8D63FFECB6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530015')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530015','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530015')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055078','Carlos','P','Leiva','1994-08-25','Lubbock','193968','5EED229F-2181-4221-9AC1-D977E6314FA0','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055078')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055078','867530015','2012','2012-02-20','24','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE09','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055078 AND SchoolId=867530015 AND EntryDate='2012-02-20')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530015_2012','867530015','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157E' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530015_2012' AND SchoolId= '867530015' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530015','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F081','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530015_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530015_2012' AND Date= '2012-05-20' AND SchoolId= '867530015' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530015','2012-05-20','683','Sep 18 2015 11:34AM','867530015_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530015 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530033','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEDD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530033')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530034','Jorges','A56A986C-976E-45A7-83B1-0F8D63FFEDD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530034')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530033','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530033')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530034','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530034')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055085','Jose','P','Leiva','1994-08-25','Lubbock','193975','5EED229F-2181-4221-9AC1-D977E6314E98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055085')); + SET IDENTITY_INSERT edfi.Student OFF; + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055086','Cesar','P','Campos','1994-08-25','Lubbock','193976','5EED229F-2181-4221-9AC1-D977E6314E99','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055086')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C934','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C937','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530034','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C935','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530034' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','2011','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C936','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8D85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530033')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530033','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530033','385B25B1-7A77-4978-AE9B-8CA5467E71D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','113','2CC51551-0168-4199-B043-6C04C431D3A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530033')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530034','113','2CC51551-0168-4199-B043-6C04C431D3A5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530034')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C87B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055085','867530033','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055085 AND SchoolId=867530033 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055085','867530034','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF06','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055085 AND SchoolId=867530034 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055086','867530033','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF07','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055086 AND SchoolId=867530033 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF490F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530033')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530034','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF4906','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530034')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530033','2012','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530033','2012','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530034','2012','English I (1 Unit)','QENR11','867530034','39066D32-88AA-4A9F-8285-CD6344BE415B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530034' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530033','2011','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFEBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530033')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF81','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530034','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF82','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530034' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','QENR11','2011','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530033_2012','867530033','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107167C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530033_2012' AND SchoolId= '867530033' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530034_2012','867530034','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107167D' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530034_2012' AND SchoolId= '867530034' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530033','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F180','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530033_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530033_2012' AND Date= '2012-05-20' AND SchoolId= '867530033' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530034','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F182','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530034_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530034_2012' AND Date= '2012-05-20' AND SchoolId= '867530034' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530033','2012-05-20','686','Sep 18 2015 11:34AM','867530033_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530033 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530034','2012-05-20','686','Sep 18 2015 11:34AM','867530034_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530034 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055086','867530033','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738E85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E85')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530033','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738E86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E86')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530034','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E95','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E95')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530033','QENR11','2011','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E96','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E96')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530033','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E87')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530033','2012','9561','Traditional','100055085','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3B7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530034','2012','9561','Traditional','100055085','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3B8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530033','2012','9561','Traditional','100055086','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3D9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3D9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530043','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEED5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530043')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530043','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530043')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055095','Jose','P','Leiva','1994-08-25','Lubbock','193985','5EED229F-2181-4221-9AC1-D977E6314D98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055095')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530043','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9D034','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530043' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530043','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8E85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530043')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530043','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530043','385B25B1-7A77-4978-AE9B-8CA5467E72D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530043' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530043','113','2CC51551-0168-4199-B043-6C04C431D4A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530043')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530043','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C88B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530043','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530043' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055095','867530043','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CC05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055095 AND SchoolId=867530043 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530043_2012','867530043','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107177C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530043_2012' AND SchoolId= '867530043' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530043','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F280','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530043_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530043_2012' AND Date= '2012-05-20' AND SchoolId= '867530043' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530043','2012-05-20','686','Sep 18 2015 11:34AM','867530043_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530043 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055095','867530043','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738B85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738B85')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','YPNR11','867530043','2012','9561','Traditional','100055095','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC7B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC7B7')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530016','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEFD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530016')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530016','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530016')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055079','Jose','P','Leiva','1994-08-25','Lubbock','193969','5EED229F-2181-4221-9AC1-D977E6315F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055079')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530016','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9D834','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530016' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530016','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF9D85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530016')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530016','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530016','385B25B1-7A77-4978-AE9B-8CA5467E80D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530016' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530016','113','2CC51551-0168-4199-B043-6C04C431E2A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530016')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530016','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C96B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530016','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530016' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055079','867530016','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF24CE05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055079 AND SchoolId=867530016 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530016_2012','867530016','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107257C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530016_2012' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F480','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530016_2012' AND Date= '2012-05-20' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-05-20','686','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530016 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055079','867530016','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A739F85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A739F85')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-19','YPNR11','867530016','2012','9561','Traditional','100055079','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AE9B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AE9B8')); + + -- New Data + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-07-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F580','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530016_2012' AND Date= '2012-07-20' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId) + (SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '547')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-07-20','547','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530016 AND '2012-07-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530016','2012','2012-07-20','547','Abs','246CD054-7DE4-4F38-AB4B-844B2DB53027','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB53027')); + + --- 200099 867530174 20111103 + -- StudentUSI: 100070882 + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2014','2013-2014','0','1926BB96-BF8C-493A-93BD-A8E60DBC84E1','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2014')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530174_2014','867530174','2014','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D495D8',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2014' AND SchoolId= '867530174' AND SchoolYear= '2014')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530174','2014-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38D16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2014','2014',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2014' AND Date= '2014-05-02' AND SchoolId= '867530174' AND SchoolYear= '2014')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530174','2014-05-02','686','Sep 18 2015 11:34AM','867530174_2014','2014' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2014-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530174','2014','530','Traditional','2011-08-22','2014-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810B54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100070885','Davie','Barnes','1999-08-07','200011','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A07BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070885')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100070885','867530174',2014,'2013-08-22','19','D4C9405E-7C08-43FE-BDE9-1102EA64FE0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FE0E')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100070885','867530174','2014','2014-05-02','545','2735F816-C327-47FA-AFC2-A03218661668','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070885 AND SchoolId=867530174 AND EventDate='2014-05-02' AND AttendanceEventCategoryDescriptorId=545 and SchoolYear = 2014)); + + -- + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9DE85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9571','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9571' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A838F87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9571','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A838F87')); + -- + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530174','2011-11-04','CD1275BE-4758-48B7-90C4-55D2A50FB0C8','Oct 27 2021 11:34AM','Oct 27 2021 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-04' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530174','2011-11-04','686','Oct 27 2021 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-04' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent + (StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator) + (SELECT TOP 1'100070882','867530174','2012','2011-11-04','546',NULL,'2735F816-C327-47FA-AFC2-A03218661969','Oct 27 2021 11:53AM','Oct 27 2021 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-04' AND AttendanceEventCategoryDescriptorId=546)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530013','2012-05-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C9','Oct 27 2021 11:34AM','Oct 27 2021 11:34AM','867530013_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530013_2012' AND Date= '2012-05-03' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530013','2012-05-03','686','Oct 27 2021 11:34AM','867530013_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = '867530013' AND '2012-05-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator) + (SELECT TOP 1'10100495','867530013','QENR11','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230734','Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','9561','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230734')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'546','2012-05-03','QENR11','867530013','2012','9561','Traditional-Spring Semester','10100495','Tardy',NULL,NULL,'Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79B0',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79B0')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'10100495','867530013',2012,'2012-05-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3977D','Oct 27 2021 11:47AM','Oct 27 2021 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3977D')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'547','2012-05-02','QENR11','867530011','2012','18131','Traditional','10100494','Tardy',NULL,NULL,'Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79C1',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79C1')); + + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..e5f4be7d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml @@ -0,0 +1,54 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'chrab_ChronicAbsenteeismAttendanceFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + DateKey + varchar + + + ReportedAsPresentAtSchool + int + + + ReportedAsAbsentFromSchool + int + + + ReportedAsPresentAtHomeRoom + int + + + ReportedAsAbsentFromHomeRoom + int + + + ReportedAsIsPresentInAllSections + int + + + ReportedAsAbsentFromAnySection + int + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_3/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_3/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml new file mode 100644 index 00000000..a9dbe905 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_3/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml @@ -0,0 +1,1391 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor as Target + USING (VALUES + (775,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','FullPrice'), + (686,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Instructional day'), + (687,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Make-up day'), + (545,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Excused Absence'), + (544,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence'), + (547,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Tardy'), + (546,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','In Attendance'), + (24,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Eleventh grade'), + (535,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester'), + (778,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free'), + (18,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other'), + (13,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies'), + (110,'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml','Limited'), + (138,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','State Offense'), + (780,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','Other'), + (140,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','School Code of Conduct'), + (729,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Withdrawn'), + (726,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Other'), + (38,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Twelfth grade'), + (683,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Holiday'), + (31,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Ninth grade'), + (35,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Tenth grade'), + (530,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester'), + (2,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics'), + (19,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Fifth grade'), + (10,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science'), + (1601,'uri://ed-fi.org/GradeTypeDescriptor','Grading Period'), + (1086,'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent'), + (1695,'uri://ed-fi.org/SchoolTypeDescriptor','Regular'), + (1148,'uri://ed-fi.org/CalendarTypeDescriptor','Student Specific'), + (950,'uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom'), + (1232,'uri://ed-fi.org/PopulationServedDescriptor','Regular Students'), + (1451,'uri://ed-fi.org/StateAbbreviationDescriptor','TX'), + (1225,'uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students'), + (1049,'uri://ed-fi.org/IncidentLocationDescriptor','On campus'), + (1460,'uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator'), + (1233,'uri://ed-fi.org/PopulationServedDescriptor','Special Education Students') + ) + AS Source(DescriptorId, Namespace, CodeValue) + ON Target.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN INSERT + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, Id, + EffectiveBeginDate, EffectiveEndDate, LastModifiedDate, CreateDate) + VALUES + (Source.DescriptorId, Source.Namespace, Source.CodeValue, Source.CodeValue, Source.CodeValue, null, newid(), + '2000-01-01','3000-01-01', getdate(), getdate()) + OUTPUT $action, inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530011','Cooper','A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530012','Jonner',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530012')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530011','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530012','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530012')); + + 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','Adrian','P','Selby','1994-08-25','Lubbock','193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2011','2011-02-21','24','2012-02-01','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND Schoolyear=2011 and entrydate='2011-02-21')); + + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + 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.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-02' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530012_2012','867530012','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530012_2012' AND SchoolId= '867530012' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530012','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D64','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530012_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530012_2012' AND Date= '2012-05-02' AND SchoolId= '867530012' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-02','686','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530012','2012-05-02','686','Sep 18 2015 11:34AM','867530012_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530012 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-16','C71B7B6F-ACB0-46BE-A2CC-C98C0CC3CD58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-16' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-16','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-16' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-15','E7242123-3085-419C-8C1D-DC5738FC6AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-15' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-15','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-15' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-10','BE8BB56E-505C-4011-872F-B559E19351A6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-10' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-10','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-10' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530174','King Elementary School',NULL,NULL,'A0309A7C-26BD-4602-9F7C-6C83F1223CA2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530174')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530174','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530174')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530174_2012','867530174','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D494D8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2012' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2012-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38C16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2012-05-02' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2012-05-02','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530022_2012','867530022','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0D2CA3E8-D8D8-46D5-B952-C4144E7CE4E8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530022_2012' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2012-05-02','EDC5E2E9-0431-41CC-95E5-635657D166AA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2012-05-02' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2012-05-02','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','LENR31','English Iii (1 Unit)','1','DE1F9933-2F1E-4C49-9F66-F664E9DAEA78','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'LENR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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-Spring Semester','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 SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'LENR31','867530011','2012','English Iii (1 Unit)','LENR31','867530011','24DA02E6-2081-4E2E-A399-BA382CAF82A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','206','2CC51551-0168-4199-B043-6C04C431D2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '206' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','LENR31','2012','1','1.000','EF5AA153-B644-4A98-9147-4C58A56D99D4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4508','867530011','206','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '4508' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100071861',NULL,'Torrie','P','Marshall',NULL,NULL,'1994-06-04',NULL,NULL,NULL,NULL,'200488','914E3B59-86B4-4EC0-A738-CEE7732CE3CD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071861')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','A9ACCD38-5CBA-4C74-988B-0668782E65B0' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='A9ACCD38-5CBA-4C74-988B-0668782E65B0')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'545' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '545')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530062','Alvarado Middle School',NULL,NULL,'EC112FBA-E671-412E-9BC8-55C35B33B062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530062')); + + 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 TOP 1'867530062','LENR07','English Language Arts And Reading, Gr 7','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6D904BBE-E6BA-4AE1-904D-9C18A80387D2','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= 'LENR07' AND EducationOrganizationId= '867530062')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530062','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530062')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','4A397178-40A3-4191-8213-B15B80A422D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530062' 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 TOP 1'LENR07','867530062','2012','English Language Arts, Grade 7',NULL,'LENR07','867530062','A7291000-B3D9-4766-9DC9-75D9BCD64DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','114',NULL,NULL,'5AE1D163-1817-4052-A4E3-0CCD694DC436','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530062')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530062','LENR07','2012','1',NULL,NULL,'0.000','4F584355-8FDD-44BA-97A4-62E333B17CD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4396','867530062','114','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SectionIdentifier= '4396' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075987',NULL,'Randall','K','Austin',NULL,NULL,'1998-06-12','Lubbock',NULL,NULL,NULL,'202218','F3E90F7F-90C3-41DE-B994-5C5A8810E123','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075987')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-02','LENR07','867530062','2012','4396','Traditional-Spring Semester','100075987','P-In school suspension',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F0972B54-4CCA-4587-9F06-2887D8CEAA8F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F0972B54-4CCA-4587-9F06-2887D8CEAA8F')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','YBIR11','Business Information Management','1','18','9D406716-D0E3-4500-BD8E-8CE6430F0979','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YBIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YBIR11','867530011','2012','Business Information Management','YBIR11','867530011','FFED20B1-3098-44D2-9D2D-6163DFAFD8D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','107A','A1EF9136-975E-4305-BE7E-5BBCA450CD9B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107A' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','YBIR11','2012','1','1.000','1E52A342-9C5F-452B-BA82-F76FAA5A242E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18267','867530011','107A','1225',NULL,'950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18267' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','YBIR11','867530011','2012','18267','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4FCC7D50-BAA7-4E84-8C81-27E476CE47D6' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='4FCC7D50-BAA7-4E84-8C81-27E476CE47D6')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13','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.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)','QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530011','115','C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QAGR40','2012','1','0.500','0AF2F009-3848-448C-8014-009FF62B826F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18938','867530011','115','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18938' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','QAGR40','867530011','2012','18938','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','YAIR11','Interior Design','1','18','C57FC015-E9B3-4CB4-802B-98BB0F357FC4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YAIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YAIR11','867530011','2012','Interior Design','YAIR11','867530011','C2A55CE4-A256-47A0-83FD-5184DB3C4422','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','113','6B10093E-5D61-4F94-9B3D-CD253FF9D9C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','YAIR11','2012','1','1.000','58801B52-B52E-4412-908A-A5CB06F5D01B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19515','867530011','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19515' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','YAIR11','867530011','2012','19515','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8C84','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530011','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530011','385B25B1-7A77-4978-AE9B-8CA5467E70D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C86B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19524','867530011','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19524' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-02','YPNR11','867530011','2012','19524','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','CA33C9D4-276E-475A-AC47-08588DDC6429' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='CA33C9D4-276E-475A-AC47-08588DDC6429')); + + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530011','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'E9894DFF-6207-4F56-AA72-5AAC5D349144','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','8496','32845E12-8DF5-44BB-9326-9704CA374BEC','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='32845E12-8DF5-44BB-9326-9704CA374BEC')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'2706','867530011','2011-11-14','12:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'7876B001-D923-445C-8FD1-B060753EF16B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '2706' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2706','9E6C9BCA-FDE6-4A59-8625-25880A8B96EA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='9E6C9BCA-FDE6-4A59-8625-25880A8B96EA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100057336',NULL,'Thanh','C','Vasquez',NULL,NULL,'1992-06-03','Lubbock',NULL,NULL,NULL,'194792','D294ADC9-C71F-4534-963E-43D6DA1CBCCF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100057336')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','8496','64CBFCDC-D065-4875-99EF-EF1DFFB84DA0','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='64CBFCDC-D065-4875-99EF-EF1DFFB84DA0')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','2706','CE4DAD6D-ED57-464D-8985-991C94270F5F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='CE4DAD6D-ED57-464D-8985-991C94270F5F')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530022','2011-12-05','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'5B747786-34BF-43E2-AF69-CB3E62BA515D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100014881',NULL,'Cecilia','D','Begay',NULL,NULL,'1989-06-05','Lubbock',NULL,NULL,NULL,'189889','989B461B-45DD-4947-B310-51229E2068FC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','1064','5B39FFB7-9441-4F0A-AA03-4C251295F4A3','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='5B39FFB7-9441-4F0A-AA03-4C251295F4A3')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'138' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '138')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530007 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=8496)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + SET IDENTITY_INSERT edfi.Student OFF; + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10100495',NULL,'David','K','Carey',NULL,NULL,'1984-09-04',NULL,NULL,NULL,NULL,'189855','1FBB3B53-A219-40FB-8FF9-676659EED949','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100495')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','8496','034543D8-1D92-4622-B636-8A542198E006','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'780' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '780')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1200','867530011','2011-10-11','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'A3A21A69-6C53-40AB-9B7E-0C97447BADE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1200' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1200','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=1200)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1615','867530007','2011-10-12','00:00:00.0000000',NULL,NULL,'Washburn, Steven',NULL,NULL,NULL,NULL,'94DE1068-D3F7-4DA5-B7A1-87A7E20225F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1615' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','1615','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=1615)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530011','2011-10-03','08:00:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'C4695F83-08A8-42F1-984D-BCD37111C2E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 1064)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530022 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530022')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 8496)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','8496','1B3C4FE4-8F1F-4921-A94A-70167E424862','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530022 AND IncidentIdentifier = 8496)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'7485','867530011','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90991DB0-460C-421F-AB15-3228610D5B92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '7485' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 7485)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','7485','9B398892-C4F6-446A-BE65-B0925B923A44','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530011 AND IncidentIdentifier = 7485)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'729' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100026948 AND SchoolId=867530023 AND EntryDate='2011-08-22')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-05-20','90C557E4-2D4F-4365-9E09-64FC3EED500C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-05-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'683' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '683')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-05-20','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2011-08-20','EDC7141A-C9C7-4CDF-BDD5-D2A83C89FE13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2011-08-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2011-08-20','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2011-08-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'726' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '726')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'600090441',NULL,'Jack','K','Harmine',NULL,NULL,'2001-04-03',NULL,NULL,NULL,NULL,'600090441','9B52A7B8-BE87-48D3-8B4D-EE5269029188','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '600090441')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'600090441','628530001',NULL,'2011-08-07','31',NULL,NULL,NULL,'2011-11-06','726',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8C391698-D64D-43AC-89DB-E4D56A365ED9','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=600090441 AND SchoolId=628530001 AND EntryDate='2011-08-07')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE04','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2012','2013-02-21','24','632','2012','B36B3E0D-E46A-449E-AE9B-DF629912EB8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2013-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530011','2011','2011-02-21','24','2012-02-01','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2011-02-21')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'10100495','867530012','2011-09-20','35','632','2012','904243FF-1AA7-4891-A489-37521371955E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100495 AND SchoolId=867530012)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100014881 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055074','867530022','2012-02-21','24','2013-02-21','632','2012','A5BE92DB-EA7F-40CA-B61E-A31FB8835A92','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530022 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF480B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530011')); + + 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 TOP 1'867530012','QENR12','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480C','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= 'QENR12' AND EducationOrganizationId= '867530012')); + + 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 TOP 1'867530012','QENR13','English I (2 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480D','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= 'QENR13' AND EducationOrganizationId= '867530012')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'530' 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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530012','2012','530','Traditional','2011-08-22','2011-12-20','82','A7964013-62DF-424A-BC52-85CEBFE64062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)','QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR12','867530012','2012','English I (1 Unit)',NULL,'QENR12','867530012','39066D32-88AA-4A9F-8285-CD6344BE4050','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR12' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR13','867530012','2012','English I (2 Unit)',NULL,'QENR13','867530012','39066D32-88AA-4A9F-8285-CD6344BE405A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR13' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530011')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530012','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530012')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18131','867530011','111','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18131' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530012','QENR12','2012','1','1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18132','867530012','111','1232','950' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR12' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SectionIdentifier= '18132' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530012','QENR13','2012','1','1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18133','867530012','111','1232','950' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR13' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SectionIdentifier= '18132' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'5952EDA8-830B-42C4-B3ED-D52DB6931930','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18131','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931930')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'10100495','867530012','QENR12','2012','2011-09-15','2011-09-15','1','5952EDA8-830B-42C4-B3ED-D52DB6931931','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18132','Traditional' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931931')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'10100495','867530012','QENR13','2012','2011-09-15','2011-09-15','1','5952EDA8-830B-42C4-B3ED-D52DB6931932','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18133','Traditional' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931932')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','10100494','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'546' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '546')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'546','2012-05-02','QENR12','867530012','2012','18132','Traditional','10100495','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0257',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0257')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'546','2012-05-02','QENR13','867530012','2012','18133','Traditional','10100495','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0258',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0258')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F079','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-20' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530011','2012-05-20','686','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2011-08-22','E962026B-6DE3-475B-8380-A3621AC45A06','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2011-08-22' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2011-08-22','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2011-08-22' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','T01','6ADE0EB1-1136-4DF4-8700-8B7DE99BA599','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName = 'T01' AND Schoolid = '867530022')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','105',NULL,NULL,'0572DE93-B143-4938-991D-34141DAAA4FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE SchoolId=867530022 and ClassroomIdentificationCode='105')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530022','QENR11','English I (1 Unit)','1','4292064B-6416-47CE-A6BF-A9E48C257085','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530022','2012','English I (1 Unit)',NULL,'QENR11','867530022','497496E4-0599-4451-9849-60FEB5C78DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1104',NULL,NULL,'AB49842C-6E32-4AEE-9A27-CEE1A9962BA4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1104' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','96B5B65C-85E0-46AF-824F-E08916B771AF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9622','867530022','1104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='96B5B65C-85E0-46AF-824F-E08916B771AF')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','B1554264-310C-4683-9D9D-60CBBEA60AEE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530022','QENR11','2012','2011-09-15','2011-09-15','1','6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738F83','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F83')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','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 SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530011','2011','English I (1 Unit)','QENR11','867530011','9C9371A3-5E01-4D30-BDFA-61E992148370','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QENR11','2011','1','1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530011','QENR11','2011','2011-09-15','2011-09-15','1','584B75F4-2A60-4B9A-B3FD-177049CF5086','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='584B75F4-2A60-4B9A-B3FD-177049CF5086')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100079802',NULL,'Luke','O','Johnston',NULL,NULL,'1996-07-18',NULL,NULL,NULL,NULL,'204030','5CE8E0EE-28FF-4ACB-836F-ABA7BE665A9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100079802')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011',NULL,'2012-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','39F3E4DB-CEDD-4662-B088-BDA6FEA350F7','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='39F3E4DB-CEDD-4662-B088-BDA6FEA350F7')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2012','2011-09-26','2011-11-28','1',NULL,'430E04C4-AC44-44EF-8ED2-A3CA0A05318B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='430E04C4-AC44-44EF-8ED2-A3CA0A05318B')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId = '867530011' AND SchoolYear = '2012' AND TermDescriptorId = '530')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='39066D32-88AA-4A9F-8285-CD6344BE405D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='95669A96-EFA6-4855-AF4B-E616288BF2A2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'8E3482C5-6FA7-4611-9E2E-E81E1EA290E2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8E3482C5-6FA7-4611-9E2E-E81E1EA290E2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'2C1F53CF-789F-4C50-B9BF-F46F3C785DDA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2C1F53CF-789F-4C50-B9BF-F46F3C785DDA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'1043A9EA-2AC5-467D-B557-48DF0C208417','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1043A9EA-2AC5-467D-B557-48DF0C208417')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530022','XSMP41','SEP MTH 4','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'80A9A802-64C3-410B-93FF-72ED72E19B8C','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= 'XSMP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','61E88EE1-69CE-451E-A7D6-37EC260A1710','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1405',NULL,NULL,'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1233' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1233')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','752D67A4-580D-43E2-B7F0-54DC4E2A6331','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','0946DADD-EAA1-40C4-B68A-A472165A4DCA',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='0946DADD-EAA1-40C4-B68A-A472165A4DCA')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9E86C992-EA0D-47BB-99F9-DC844BEDEE6E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9E86C992-EA0D-47BB-99F9-DC844BEDEE6E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','712E26B4-C6D8-4577-A4C2-04198D566307',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='712E26B4-C6D8-4577-A4C2-04198D566307')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5D3BEA60-F30E-4527-A3F7-C08F07594850' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5D3BEA60-F30E-4527-A3F7-C08F07594850')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-16','QENR11','867530011','2012','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EE7E75B4-F076-4C40-A124-35AD4830A0F8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EE7E75B4-F076-4C40-A124-35AD4830A0F8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'544','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E78E391A-6FFF-4217-804B-2F4761DF5F21' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E78E391A-6FFF-4217-804B-2F4761DF5F21')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7E819588-D81E-4D5F-B672-922A2D9F159A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='7E819588-D81E-4D5F-B672-922A2D9F159A')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530011','XLSK41','FUNCT COM SK 12','1','18','0A3B72C8-24F5-4254-830D-5B0FB91C3B40','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLSK41' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'XLSK41','867530011','2012','FUNCT COM SK 12','XLSK41','867530011','3342778F-F57A-425D-B0F3-4BE3D29327BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530011','XLSK41','2012','1','0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='FFE62040-17BF-499B-894B-4FAA55853BF9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055074','867530011','XLSK41','2012','2011-09-15','2011-09-15','1','F958E086-C827-4D75-B41E-53288CE6B69A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='F958E086-C827-4D75-B41E-53288CE6B69A')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100070882',NULL,'Matthew',NULL,'Barnes',NULL,NULL,'1999-08-07',NULL,NULL,NULL,NULL,'200099','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A06BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174',NULL,'2011-08-22','19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D4C9405E-7C08-43FE-BDE9-1102EA64FD0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FD0E')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2011-11-03','8BDAC34D-99EE-46F1-92A4-206F003FF4E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-03' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2011-11-03','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530167','Mt. Gleason Elementary School',NULL,NULL,'64ACB96B-7081-4E4B-9CB2-C33134D9F255','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530167')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530167','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530167')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530167_2012','867530167','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','98E7F1CB-4567-40D8-95BA-2751BBA4E062',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530167_2012' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530167','2011-11-03','6DA040F0-4854-402A-8147-15941A60436C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530167_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530167_2012' AND Date= '2011-11-03' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530167','2011-11-03','686','Sep 18 2015 11:34AM','867530167_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530167 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530163','James Lick Elementary School',NULL,NULL,'1E86182B-6478-413D-9106-5DD842298B97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530163')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530163','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530163')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530163_2012','867530163','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0FF0BBBD-738C-4249-AA09-E374E8E8EC3B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530163_2012' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530163','2011-11-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530163_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530163_2012' AND Date= '2011-11-03' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530163','2011-11-03','686','Sep 18 2015 11:34AM','867530163_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530163 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530174','2012','530','Traditional','2011-08-22','2011-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810A54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','544',NULL,'2735F816-C327-47FA-AFC2-A03218661968','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=544)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','545','A-Parent contact','C4E41C67-4D6E-4923-909D-4E0518B79982','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=545)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','546','Excused','DBCB3701-03BB-45FE-9A28-F19C2E2228DF','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='DBCB3701-03BB-45FE-9A28-F19C2E2228DF')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','547','Late','C07501E9-BC3C-4A5F-B8D6-20E23381D6F4','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C07501E9-BC3C-4A5F-B8D6-20E23381D6F4')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140270',NULL,'Melody','C','Reese',NULL,NULL,'2006-07-04','Lubbock',NULL,NULL,NULL,'235621','BFAD0CA4-9A97-4EF3-A505-D5AE651F215B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140270')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100140270','867530174','2012','2011-11-03','547',NULL,'020241AC-E9C4-473C-A6E4-97AD01A74140','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='020241AC-E9C4-473C-A6E4-97AD01A74140')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530022','2012','2012-05-20','544','Abs','246CD054-7DE4-4F38-AB4B-844B2DB52E27','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB52E27')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','2012','2012-05-20','544','Abs','EC1B7463-89B1-41A3-BF5F-1544F1B37A34','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC1B7463-89B1-41A3-BF5F-1544F1B37A34')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530011','2011','2012-05-20','544','Abs','C15388A3-297B-4721-8F08-3D71BEE71B68','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C15388A3-297B-4721-8F08-3D71BEE71B68')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530011','2012','2012-06-01','544','Abs','C6A8A994-C7B9-423F-9E59-C6F247712EBC','Jun 1 2012 12:00AM','Jun 1 2012 12:00AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C6A8A994-C7B9-423F-9E59-C6F247712EBC')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530167','2012','530','Traditional','2011-08-22','2011-12-20','82','087799AD-49F9-4C7D-AB36-3D7E5ADBB727','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530167' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100082146',NULL,'Bianca','B','Jessup',NULL,NULL,'2001-11-27',NULL,NULL,NULL,NULL,'204888','6384E2D4-EB0A-40FC-9E5C-1D36D5B36255','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082146')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100082146','867530167','2012','2011-11-03','547',NULL,'EC927F76-8441-4099-A95F-5E8D992BD9EA','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC927F76-8441-4099-A95F-5E8D992BD9EA')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530163','2012','530','Traditional','2011-08-22','2011-12-20','82','E0DFF2A5-0791-4176-B13D-FA4A64C1B523','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530163' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100091085',NULL,'Joe','M','Arribas',NULL,NULL,'2000-05-24','Lubbock',NULL,NULL,NULL,'209514','1F87B2A8-F667-4B84-AF8A-8223F4FF107D','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100091085')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100091085','867530163','2012','2011-11-03','545','A-Absent excused','54D85A58-E0EC-41E5-AD99-028C6FBCC07A','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='54D85A58-E0EC-41E5-AD99-028C6FBCC07A')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3976C','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3976C')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='B07D591A-1EAB-497E-8570-188EF07323BA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='5DE62337-788B-4F8A-9146-540E5FFC673F')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','B05','CD2D4337-E615-48EC-B873-D8D568668CDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='CD2D4337-E615-48EC-B873-D8D568668CDF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2011-12-05','8D4193FE-07C8-4CD3-8A7D-B306A53F7A02','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2011-12-05' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2011-12-05','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2011-12-05' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2011-11-03','2011-12-20','0',NULL,'9A91EAB2-7C14-486B-A87F-D402916864B6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9A91EAB2-7C14-486B-A87F-D402916864B6')); + + 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 TOP 1'867530022','XSTP41','VOC 4 SE','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'85D52DBF-B05B-447B-890C-16F06DA0864B','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= 'XSTP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSTP41','867530022','2012','BASIC VOC 12',NULL,'XSTP41','867530022','50921FB7-5DB0-41F5-8277-F1B0B35433A0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSTP41','2012','1',NULL,NULL,'1.000','5D20FD7D-4634-444B-AB77-4A57206BFC53','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14753','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14753' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSTP41','2012','2011-08-22','2011-12-20','1',NULL,'8559F681-F3A8-4AA5-A3BC-F2FB15565AE5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','14753','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8559F681-F3A8-4AA5-A3BC-F2FB15565AE5')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','B9DDDABF-3AEF-4505-A339-B3E4E7707895','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','A15ED7AA-EFD5-423D-B832-0D9FC1A92693','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230731','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230731')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022','XSMP41','2012','2011-11-03','2011-12-20','1',NULL,'9E2F52C5-0CB7-48EC-B4EC-380786F97E02','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9E2F52C5-0CB7-48EC-B4EC-380786F97E02')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79AF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79AF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','AC4A45FC-0773-46FD-BA29-DE3267B75932',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='AC4A45FC-0773-46FD-BA29-DE3267B75932')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530022','SCMR31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7F1862F0-1B69-4F08-BAB2-390A38A9CFD3','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= 'SCMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'SCMR31','867530022','2012','Chemistry (1 Unit)',NULL,'SCMR31','867530022','D05298E6-2A89-4EE3-A5CA-5C2581E53B90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1501',NULL,NULL,'5688B86B-0341-4C9C-9241-99E976764BC3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1501' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','SCMR31','2012','1',NULL,NULL,'1.000','18E750EC-BD6E-4F42-B3CC-0BAFE41F2B13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11579','867530022','1501','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '11579' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6F149507-917C-45CA-832D-ED407B37920A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6F149507-917C-45CA-832D-ED407B37920A')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D4462F87-3340-43FD-B81C-E19CE2AA432E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D4462F87-3340-43FD-B81C-E19CE2AA432E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E661DC4E-D254-4718-A8A5-48D8F23BF469',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E661DC4E-D254-4718-A8A5-48D8F23BF469')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 1064)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','1064','443DCCE2-134C-4491-A1AA-E8FA2D10D8E8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='443DCCE2-134C-4491-A1AA-E8FA2D10D8E8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EBC735CD-0794-4EFD-A448-A35E3F730678',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EBC735CD-0794-4EFD-A448-A35E3F730678')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9865382E-F8AE-4756-AB9A-0B2C0ADBABA7',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9865382E-F8AE-4756-AB9A-0B2C0ADBABA7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','71ECE7A9-7240-43F5-8D02-2DEF36F563C3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='71ECE7A9-7240-43F5-8D02-2DEF36F563C3')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','124784BA-5674-4DBD-999C-87B143463EFF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='124784BA-5674-4DBD-999C-87B143463EFF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011',CAST('2110-12-12' as DATE),'1AE131B4-559E-4695-AD14-C46D257B4994','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= CAST('2110-12-12' as DATE) AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011',CAST('2110-12-12' as DATE),'686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND CAST('2110-12-12' as DATE) = CalendarDateCalendarEvent.Date)); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544',CAST('2110-12-12' as DATE),'LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D7D517D3-546E-494E-B170-E11EBE67C9D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D7D517D3-546E-494E-B170-E11EBE67C9D6')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530013','Davids','A56A986C-976E-45A7-83B1-0F8D63FFECD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530013')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530014','Jorges','A56A986C-976E-45A7-83B1-0F8D63FFECD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530014')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530013','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530013')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530014','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530014')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055075','Jose','P','Leiva','1994-08-25','Lubbock','193965','5EED229F-2181-4221-9AC1-D977E6314F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055075')); + SET IDENTITY_INSERT edfi.Student OFF; + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055076','Pablo','P','Leiva','1994-08-25','Lubbock','193966','5EED229F-2181-4221-9AC1-D977E6314F99','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055076')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C834','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C837','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530014','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C835','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530014' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','2011','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C836','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8C85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530013')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530013','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530013','385B25B1-7A77-4978-AE9B-8CA5467E70D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','113','2CC51551-0168-4199-B043-6C04C431D2A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530013')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530014','113','2CC51551-0168-4199-B043-6C04C431D2A5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530014')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C86B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530013','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055075','867530013','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055075 AND SchoolId=867530013 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055075','867530014','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE06','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055075 AND SchoolId=867530014 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055076','867530013','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE07','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055076 AND SchoolId=867530013 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF480F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530013')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530014','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF4806','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530014')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530013','2012','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530013','2012','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530014','2012','English I (1 Unit)','QENR11','867530014','39066D32-88AA-4A9F-8285-CD6344BE405B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530014' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530013','2011','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530013','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530013')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE81','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530014','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE82','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530014' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2011','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530013_2012','867530013','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530013_2012' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530014_2012','867530014','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157D' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530014_2012' AND SchoolId= '867530014' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530013','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F080','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530013_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530013_2012' AND Date= '2012-05-20' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530014','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F082','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530014_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530014_2012' AND Date= '2012-05-20' AND SchoolId= '867530014' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530013','2012-05-20','686','Sep 18 2015 11:34AM','867530013_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530013 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530014','2012-05-20','686','Sep 18 2015 11:34AM','867530014_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530014 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055076','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F85')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F86')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530014','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F95','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F95')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2011','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F96','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F96')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738F84','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F84')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F87')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530013','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530014','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530013','2012','9561','Traditional','100055076','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9D9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9D9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-19','QENR11','867530013','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9BA' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9BA')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530015','Davids','A56A986C-976E-45A7-83B1-0F8D63FFECB6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530015')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530015','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530015')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055078','Carlos','P','Leiva','1994-08-25','Lubbock','193968','5EED229F-2181-4221-9AC1-D977E6314FA0','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055078')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055078','867530015','2012','2012-02-20','24','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE09','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055078 AND SchoolId=867530015 AND EntryDate='2012-02-20')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530015_2012','867530015','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157E' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530015_2012' AND SchoolId= '867530015' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530015','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F081','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530015_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530015_2012' AND Date= '2012-05-20' AND SchoolId= '867530015' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530015','2012-05-20','683','Sep 18 2015 11:34AM','867530015_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530015 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530033','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEDD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530033')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530034','Jorges','A56A986C-976E-45A7-83B1-0F8D63FFEDD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530034')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530033','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530033')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530034','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530034')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055085','Jose','P','Leiva','1994-08-25','Lubbock','193975','5EED229F-2181-4221-9AC1-D977E6314E98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055085')); + SET IDENTITY_INSERT edfi.Student OFF; + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055086','Cesar','P','Campos','1994-08-25','Lubbock','193976','5EED229F-2181-4221-9AC1-D977E6314E99','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055086')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C934','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C937','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530034','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C935','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530034' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','2011','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C936','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8D85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530033')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530033','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530033','385B25B1-7A77-4978-AE9B-8CA5467E71D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','113','2CC51551-0168-4199-B043-6C04C431D3A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530033')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530034','113','2CC51551-0168-4199-B043-6C04C431D3A5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530034')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C87B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055085','867530033','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055085 AND SchoolId=867530033 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055085','867530034','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF06','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055085 AND SchoolId=867530034 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055086','867530033','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF07','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055086 AND SchoolId=867530033 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF490F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530033')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530034','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF4906','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530034')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530033','2012','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530033','2012','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530034','2012','English I (1 Unit)','QENR11','867530034','39066D32-88AA-4A9F-8285-CD6344BE415B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530034' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'QENR11','867530033','2011','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530033','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFEBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530033')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF81','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530034','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF82','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530034' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530033','QENR11','2011','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530033_2012','867530033','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107167C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530033_2012' AND SchoolId= '867530033' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530034_2012','867530034','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107167D' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530034_2012' AND SchoolId= '867530034' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530033','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F180','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530033_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530033_2012' AND Date= '2012-05-20' AND SchoolId= '867530033' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530034','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F182','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530034_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530034_2012' AND Date= '2012-05-20' AND SchoolId= '867530034' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530033','2012-05-20','686','Sep 18 2015 11:34AM','867530033_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530033 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530034','2012-05-20','686','Sep 18 2015 11:34AM','867530034_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530034 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055086','867530033','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738E85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E85')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530033','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738E86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E86')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530034','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E95','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E95')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530033','QENR11','2011','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E96','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E96')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055085','867530033','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E87')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530033','2012','9561','Traditional','100055085','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3B7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530034','2012','9561','Traditional','100055085','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3B8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','QENR11','867530033','2012','9561','Traditional','100055086','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3D9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3D9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530043','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEED5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530043')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530043','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530043')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055095','Jose','P','Leiva','1994-08-25','Lubbock','193985','5EED229F-2181-4221-9AC1-D977E6314D98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055095')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530043','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9D034','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530043' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530043','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8E85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530043')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530043','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530043','385B25B1-7A77-4978-AE9B-8CA5467E72D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530043' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530043','113','2CC51551-0168-4199-B043-6C04C431D4A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530043')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530043','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C88B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530043','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530043' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055095','867530043','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CC05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055095 AND SchoolId=867530043 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530043_2012','867530043','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107177C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530043_2012' AND SchoolId= '867530043' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530043','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F280','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530043_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530043_2012' AND Date= '2012-05-20' AND SchoolId= '867530043' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530043','2012-05-20','686','Sep 18 2015 11:34AM','867530043_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530043 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055095','867530043','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738B85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738B85')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-20','YPNR11','867530043','2012','9561','Traditional','100055095','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC7B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC7B7')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530016','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEFD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530016')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT TOP 1'867530016','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530016')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055079','Jose','P','Leiva','1994-08-25','Lubbock','193969','5EED229F-2181-4221-9AC1-D977E6315F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055079')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530016','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9D834','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530016' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530016','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF9D85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530016')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'YPNR11','867530016','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530016','385B25B1-7A77-4978-AE9B-8CA5467E80D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530016' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530016','113','2CC51551-0168-4199-B043-6C04C431E2A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530016')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530016','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C96B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530016','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530016' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055079','867530016','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF24CE05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055079 AND SchoolId=867530016 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'867530016_2012','867530016','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107257C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530016_2012' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F480','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530016_2012' AND Date= '2012-05-20' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-05-20','686','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530016 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055079','867530016','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A739F85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A739F85')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT TOP 1'545','2012-05-19','YPNR11','867530016','2012','9561','Traditional','100055079','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AE9B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AE9B8')); + + -- New Data + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-07-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F580','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530016_2012' AND Date= '2012-07-20' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId) + (SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '547')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530016','2012-07-20','547','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530016 AND '2012-07-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100055074','867530016','2012','2012-07-20','547','Abs','246CD054-7DE4-4F38-AB4B-844B2DB53027','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB53027')); + + --- 200099 867530174 20111103 + -- StudentUSI: 100070882 + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2014','2013-2014','0','1926BB96-BF8C-493A-93BD-A8E60DBC84E1','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2014')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530174_2014','867530174','2014','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D495D8',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2014' AND SchoolId= '867530174' AND SchoolYear= '2014')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530174','2014-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38D16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2014','2014',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2014' AND Date= '2014-05-02' AND SchoolId= '867530174' AND SchoolYear= '2014')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530174','2014-05-02','686','Sep 18 2015 11:34AM','867530174_2014','2014' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2014-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'867530174','2014','530','Traditional','2011-08-22','2014-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810B54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100070885','Davie','Barnes','1999-08-07','200011','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A07BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070885')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100070885','867530174',2014,'2013-08-22','19','D4C9405E-7C08-43FE-BDE9-1102EA64FE0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FE0E')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT TOP 1'100070885','867530174','2014','2014-05-02','545','2735F816-C327-47FA-AFC2-A03218661668','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070885 AND SchoolId=867530174 AND EventDate='2014-05-02' AND AttendanceEventCategoryDescriptorId=545 and SchoolYear = 2014)); + + -- + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT TOP 1'867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9DE85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9571','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9571' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT TOP 1'100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A838F87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9571','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A838F87')); + -- + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530174','2011-11-04','CD1275BE-4758-48B7-90C4-55D2A50FB0C8','Oct 27 2021 11:34AM','Oct 27 2021 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-04' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530174','2011-11-04','686','Oct 27 2021 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-04' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent + (StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator) + (SELECT TOP 1'100070882','867530174','2012','2011-11-04','546',NULL,'2735F816-C327-47FA-AFC2-A03218661969','Oct 27 2021 11:53AM','Oct 27 2021 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-04' AND AttendanceEventCategoryDescriptorId=546)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT TOP 1'867530013','2012-05-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C9','Oct 27 2021 11:34AM','Oct 27 2021 11:34AM','867530013_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530013_2012' AND Date= '2012-05-03' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT TOP 1'867530013','2012-05-03','686','Oct 27 2021 11:34AM','867530013_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = '867530013' AND '2012-05-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator) + (SELECT TOP 1'10100495','867530013','QENR11','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230734','Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','9561','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230734')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'546','2012-05-03','QENR11','867530013','2012','9561','Traditional-Spring Semester','10100495','Tardy',NULL,NULL,'Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79B0',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79B0')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'10100495','867530013',2012,'2012-05-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3977D','Oct 27 2021 11:47AM','Oct 27 2021 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3977D')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'547','2012-05-02','QENR11','867530011','2012','18131','Traditional','10100494','Tardy',NULL,NULL,'Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79C1',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79C1')); + + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_3/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_3/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..e5f4be7d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/MSSQL/v_3_3/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml @@ -0,0 +1,54 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'chrab_ChronicAbsenteeismAttendanceFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + DateKey + varchar + + + ReportedAsPresentAtSchool + int + + + ReportedAsAbsentFromSchool + int + + + ReportedAsPresentAtHomeRoom + int + + + ReportedAsAbsentFromHomeRoom + int + + + ReportedAsIsPresentInAllSections + int + + + ReportedAsAbsentFromAnySection + int + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_2/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_3/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_3/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml new file mode 100644 index 00000000..a6987fc2 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_3/0000_ChronicAbsenteeismAttendanceFact_Data_Load.xml @@ -0,0 +1,1385 @@ + + + Any + + + WITH SOURCE (DescriptorId, Namespace, CodeValue) AS (VALUES + (775,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','FullPrice'), + (686,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Instructional day'), + (687,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Make-up day'), + (545,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Excused Absence'), + (544,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence'), + (547,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Tardy'), + (546,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','In Attendance'), + (24,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Eleventh grade'), + (535,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester'), + (778,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free'), + (18,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other'), + (13,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies'), + (110,'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml','Limited'), + (138,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','State Offense'), + (780,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','Other'), + (140,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','School Code of Conduct'), + (729,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Withdrawn'), + (726,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Other'), + (38,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Twelfth grade'), + (683,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Holiday'), + (31,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Ninth grade'), + (35,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Tenth grade'), + (530,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester'), + (2,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics'), + (19,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Fifth grade'), + (10,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science'), + (1601,'uri://ed-fi.org/GradeTypeDescriptor','Grading Period'), + (1086,'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent'), + (1695,'uri://ed-fi.org/SchoolTypeDescriptor','Regular'), + (1148,'uri://ed-fi.org/CalendarTypeDescriptor','Student Specific'), + (950,'uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom'), + (1232,'uri://ed-fi.org/PopulationServedDescriptor','Regular Students'), + (1451,'uri://ed-fi.org/StateAbbreviationDescriptor','TX'), + (1225,'uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students'), + (1049,'uri://ed-fi.org/IncidentLocationDescriptor','On campus'), + (1460,'uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator'), + (1233,'uri://ed-fi.org/PopulationServedDescriptor','Special Education Students') + ) + INSERT INTO edfi.Descriptor (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, Id, + EffectiveBeginDate, EffectiveEndDate, LastModifiedDate, CreateDate) + SELECT Source.DescriptorId, Source.Namespace, Source.CodeValue, Source.CodeValue, Source.CodeValue, null, gen_random_uuid(), + '2000-01-01','3000-01-01', Now(), Now() FROM SOURCE + ON CONFLICT DO NOTHING; + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530011','Cooper','A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530012','Jonner',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530012')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530011','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530012','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530012')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055074','Adrian','P','Selby','1994-08-25','Lubbock','193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055074','867530011','2011','2011-02-21','24','2012-02-01','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND Schoolyear=2011 and entrydate='2011-02-21')); + + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT '1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530011','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-02' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530012_2012','867530012','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530012_2012' AND SchoolId= '867530012' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT '867530012','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D64','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530012_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530012_2012' AND Date= '2012-05-02' AND SchoolId= '867530012' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530011','2012-05-02','686','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530012','2012-05-02','686','Sep 18 2015 11:34AM','867530012_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530012 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-16','C71B7B6F-ACB0-46BE-A2CC-C98C0CC3CD58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-16' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-16','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-16' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-15','E7242123-3085-419C-8C1D-DC5738FC6AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-15' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-15','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-15' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-10','BE8BB56E-505C-4011-872F-B559E19351A6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-10' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-10','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-10' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530174','King Elementary School',NULL,NULL,'A0309A7C-26BD-4602-9F7C-6C83F1223CA2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530174')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530174','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530174')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530174_2012','867530174','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D494D8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2012' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530174','2012-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38C16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2012-05-02' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530174','2012-05-02','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530022_2012','867530022','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0D2CA3E8-D8D8-46D5-B952-C4144E7CE4E8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530022_2012' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530022','2012-05-02','EDC5E2E9-0431-41CC-95E5-635657D166AA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2012-05-02' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530022','2012-05-02','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','LENR31','English Iii (1 Unit)','1','DE1F9933-2F1E-4C49-9F66-F664E9DAEA78','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'LENR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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 '867530011','2012','535','Traditional-Spring Semester','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 SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'LENR31','867530011','2012','English Iii (1 Unit)','LENR31','867530011','24DA02E6-2081-4E2E-A399-BA382CAF82A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','206','2CC51551-0168-4199-B043-6C04C431D2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '206' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','LENR31','2012','1','1.000','EF5AA153-B644-4A98-9147-4C58A56D99D4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4508','867530011','206','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '4508' AND SessionName= 'Traditional-Spring Semester')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100071861',NULL,'Torrie','P','Marshall',NULL,NULL,'1994-06-04',NULL,NULL,NULL,NULL,'200488','914E3B59-86B4-4EC0-A738-CEE7732CE3CD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071861')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-02','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','A9ACCD38-5CBA-4C74-988B-0668782E65B0' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='A9ACCD38-5CBA-4C74-988B-0668782E65B0')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '545' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '545')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530062','Alvarado Middle School',NULL,NULL,'EC112FBA-E671-412E-9BC8-55C35B33B062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530062')); + + 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 '867530062','LENR07','English Language Arts And Reading, Gr 7','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6D904BBE-E6BA-4AE1-904D-9C18A80387D2','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= 'LENR07' AND EducationOrganizationId= '867530062')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530062','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530062')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530062','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','4A397178-40A3-4191-8213-B15B80A422D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530062' 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 'LENR07','867530062','2012','English Language Arts, Grade 7',NULL,'LENR07','867530062','A7291000-B3D9-4766-9DC9-75D9BCD64DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530062','114',NULL,NULL,'5AE1D163-1817-4052-A4E3-0CCD694DC436','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530062')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530062','LENR07','2012','1',NULL,NULL,'0.000','4F584355-8FDD-44BA-97A4-62E333B17CD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4396','867530062','114','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SectionIdentifier= '4396' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100075987',NULL,'Randall','K','Austin',NULL,NULL,'1998-06-12','Lubbock',NULL,NULL,NULL,'202218','F3E90F7F-90C3-41DE-B994-5C5A8810E123','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075987')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-02','LENR07','867530062','2012','4396','Traditional-Spring Semester','100075987','P-In school suspension',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F0972B54-4CCA-4587-9F06-2887D8CEAA8F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F0972B54-4CCA-4587-9F06-2887D8CEAA8F')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','YBIR11','Business Information Management','1','18','9D406716-D0E3-4500-BD8E-8CE6430F0979','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YBIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YBIR11','867530011','2012','Business Information Management','YBIR11','867530011','FFED20B1-3098-44D2-9D2D-6163DFAFD8D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','107A','A1EF9136-975E-4305-BE7E-5BBCA450CD9B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107A' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','YBIR11','2012','1','1.000','1E52A342-9C5F-452B-BA82-F76FAA5A242E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18267','867530011','107A','1225',NULL,'950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18267' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-02','YBIR11','867530011','2012','18267','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4FCC7D50-BAA7-4E84-8C81-27E476CE47D6' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='4FCC7D50-BAA7-4E84-8C81-27E476CE47D6')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','QAGR40','United States Government (1/2 Unit)','1','13','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.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)','QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530011','115','C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','QAGR40','2012','1','0.500','0AF2F009-3848-448C-8014-009FF62B826F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18938','867530011','115','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18938' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-02','QAGR40','867530011','2012','18938','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','YAIR11','Interior Design','1','18','C57FC015-E9B3-4CB4-802B-98BB0F357FC4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YAIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YAIR11','867530011','2012','Interior Design','YAIR11','867530011','C2A55CE4-A256-47A0-83FD-5184DB3C4422','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','113','6B10093E-5D61-4F94-9B3D-CD253FF9D9C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','YAIR11','2012','1','1.000','58801B52-B52E-4412-908A-A5CB06F5D01B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19515','867530011','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19515' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-02','YAIR11','867530011','2012','19515','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8C84','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YPNR11','867530011','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530011','385B25B1-7A77-4978-AE9B-8CA5467E70D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C86B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19524','867530011','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19524' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-02','YPNR11','867530011','2012','19524','Traditional-Spring Semester','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','CA33C9D4-276E-475A-AC47-08588DDC6429' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='CA33C9D4-276E-475A-AC47-08588DDC6429')); + + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT '1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530011','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'E9894DFF-6207-4F56-AA72-5AAC5D349144','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT '1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530011','8496','32845E12-8DF5-44BB-9326-9704CA374BEC','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='32845E12-8DF5-44BB-9326-9704CA374BEC')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '2706','867530011','2011-11-14','12:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'7876B001-D923-445C-8FD1-B060753EF16B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '2706' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530011','2706','9E6C9BCA-FDE6-4A59-8625-25880A8B96EA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='9E6C9BCA-FDE6-4A59-8625-25880A8B96EA')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100057336',NULL,'Thanh','C','Vasquez',NULL,NULL,'1992-06-03','Lubbock',NULL,NULL,NULL,'194792','D294ADC9-C71F-4534-963E-43D6DA1CBCCF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100057336')); + + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100057336','867530011','8496','64CBFCDC-D065-4875-99EF-EF1DFFB84DA0','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='64CBFCDC-D065-4875-99EF-EF1DFFB84DA0')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100057336','867530011','2706','CE4DAD6D-ED57-464D-8985-991C94270F5F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='CE4DAD6D-ED57-464D-8985-991C94270F5F')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1064','867530022','2011-12-05','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'5B747786-34BF-43E2-AF69-CB3E62BA515D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530022')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100014881',NULL,'Cecilia','D','Begay',NULL,NULL,'1989-06-05','Lubbock',NULL,NULL,NULL,'189889','989B461B-45DD-4947-B310-51229E2068FC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100014881','867530022','1064','5B39FFB7-9441-4F0A-AA03-4C251295F4A3','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='5B39FFB7-9441-4F0A-AA03-4C251295F4A3')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '138' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '138')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier='8496')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530007 AND IncidentIdentifier = '8496' AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530007','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier='8496')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '10100495',NULL,'David','K','Carey',NULL,NULL,'1984-09-04',NULL,NULL,NULL,NULL,'189855','1FBB3B53-A219-40FB-8FF9-676659EED949','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100495')); + + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '10100494','867530011','8496','034543D8-1D92-4622-B636-8A542198E006','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011 AND IncidentIdentifier='8496')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '780' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '780')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1200','867530011','2011-10-11','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'A3A21A69-6C53-40AB-9B7E-0C97447BADE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1200' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','1200','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier='1200')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1615','867530007','2011-10-12','00:00:00.0000000',NULL,NULL,'Washburn, Steven',NULL,NULL,NULL,NULL,'94DE1068-D3F7-4DA5-B7A1-87A7E20225F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1615' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530007','1615','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier='1615')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1064','867530011','2011-10-03','08:00:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'C4695F83-08A8-42F1-984D-BCD37111C2E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = '1064')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530022 AND IncidentIdentifier = '8496' AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530022')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530022','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = '8496')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530022','8496','1B3C4FE4-8F1F-4921-A94A-70167E424862','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530022 AND IncidentIdentifier = '8496')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '7485','867530011','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90991DB0-460C-421F-AB15-3228610D5B92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '7485' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = '7485')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530011','7485','9B398892-C4F6-446A-BE65-B0925B923A44','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530011 AND IncidentIdentifier = '7485')); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT '729' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100026948 AND SchoolId=867530023 AND EntryDate='2011-08-22')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2012-05-20','90C557E4-2D4F-4365-9E09-64FC3EED500C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-05-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '683' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '683')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2012-05-20','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2011-08-20','EDC7141A-C9C7-4CDF-BDD5-D2A83C89FE13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2011-08-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2011-08-20','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2011-08-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT '726' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '726')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE 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.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '600090441',NULL,'Jack','K','Harmine',NULL,NULL,'2001-04-03',NULL,NULL,NULL,NULL,'600090441','9B52A7B8-BE87-48D3-8B4D-EE5269029188','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '600090441')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '600090441','628530001',NULL,'2011-08-07','31',NULL,NULL,NULL,'2011-11-06','726',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8C391698-D64D-43AC-89DB-E4D56A365ED9','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=600090441 AND SchoolId=628530001 AND EntryDate='2011-08-07')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055074','867530011','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE04','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055074','867530011','2012','2013-02-21','24','632','2012','B36B3E0D-E46A-449E-AE9B-DF629912EB8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2013-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055074','867530011','2011','2011-02-21','24','2012-02-01','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2011-02-21')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '10100495','867530012','2011-09-20','35','632','2012','904243FF-1AA7-4891-A489-37521371955E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100495 AND SchoolId=867530012)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100014881 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055074','867530022','2012-02-21','24','2013-02-21','632','2012','A5BE92DB-EA7F-40CA-B61E-A31FB8835A92','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530022 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF480B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530011')); + + 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 '867530012','QENR12','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480C','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= 'QENR12' AND EducationOrganizationId= '867530012')); + + 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 '867530012','QENR13','English I (2 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480D','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= 'QENR13' AND EducationOrganizationId= '867530012')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530012','2012','530','Traditional','2011-08-22','2011-12-20','82','A7964013-62DF-424A-BC52-85CEBFE64062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530011','2012','English I (1 Unit)','QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR12','867530012','2012','English I (1 Unit)',NULL,'QENR12','867530012','39066D32-88AA-4A9F-8285-CD6344BE4050','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR12' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR13','867530012','2012','English I (2 Unit)',NULL,'QENR13','867530012','39066D32-88AA-4A9F-8285-CD6344BE405A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR13' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530011')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530012','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530012')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2012','1',NULL,NULL,'1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18131','867530011','111','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18131' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530012','QENR12','2012','1','1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18132','867530012','111','1232','950' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR12' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SectionIdentifier= '18132' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530012','QENR13','2012','1','1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18133','867530012','111','1232','950' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR13' AND SchoolId= '867530012' AND SchoolYear= '2012' AND SectionIdentifier= '18132' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10100494','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'5952EDA8-830B-42C4-B3ED-D52DB6931930','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18131','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931930')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '10100495','867530012','QENR12','2012','2011-09-15','2011-09-15','1','5952EDA8-830B-42C4-B3ED-D52DB6931931','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18132','Traditional' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931931')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '10100495','867530012','QENR13','2012','2011-09-15','2011-09-15','1','5952EDA8-830B-42C4-B3ED-D52DB6931932','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18133','Traditional' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931932')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','QENR11','867530011','2012','9561','Traditional','10100494','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '546' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '546')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '546','2012-05-02','QENR12','867530012','2012','18132','Traditional','10100495','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0257',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0257')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '546','2012-05-02','QENR13','867530012','2012','18133','Traditional','10100495','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0258',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0258')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530011','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F079','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-20' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530011','2012-05-20','686','Sep 18 2015 11:34AM','867530011_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2011-08-22','E962026B-6DE3-475B-8380-A3621AC45A06','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2011-08-22' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2011-08-22','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2011-08-22' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530022','T01','6ADE0EB1-1136-4DF4-8700-8B7DE99BA599','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName = 'T01' AND Schoolid = '867530022')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','105',NULL,NULL,'0572DE93-B143-4938-991D-34141DAAA4FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE SchoolId=867530022 and ClassroomIdentificationCode='105')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530022','QENR11','English I (1 Unit)','1','4292064B-6416-47CE-A6BF-A9E48C257085','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530022','2012','English I (1 Unit)',NULL,'QENR11','867530022','497496E4-0599-4451-9849-60FEB5C78DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1104',NULL,NULL,'AB49842C-6E32-4AEE-9A27-CEE1A9962BA4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1104' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','QENR11','2012','1',NULL,NULL,'1.000','96B5B65C-85E0-46AF-824F-E08916B771AF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9622','867530022','1104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='96B5B65C-85E0-46AF-824F-E08916B771AF')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','QENR11','2012','1',NULL,NULL,'1.000','B1554264-310C-4683-9D9D-60CBBEA60AEE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055074','867530022','QENR11','2012','2011-09-15','2011-09-15','1','6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738F83','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F83')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','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 SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530011','2011','English I (1 Unit)','QENR11','867530011','9C9371A3-5E01-4D30-BDFA-61E992148370','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','QENR11','2011','1','1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055074','867530011','QENR11','2011','2011-09-15','2011-09-15','1','584B75F4-2A60-4B9A-B3FD-177049CF5086','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='584B75F4-2A60-4B9A-B3FD-177049CF5086')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100079802',NULL,'Luke','O','Johnston',NULL,NULL,'1996-07-18',NULL,NULL,NULL,NULL,'204030','5CE8E0EE-28FF-4ACB-836F-ABA7BE665A9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100079802')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100079802','867530011',NULL,'2012-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','39F3E4DB-CEDD-4662-B088-BDA6FEA350F7','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='39F3E4DB-CEDD-4662-B088-BDA6FEA350F7')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100079802','867530011','QENR11','2012','2011-09-26','2011-11-28','1',NULL,'430E04C4-AC44-44EF-8ED2-A3CA0A05318B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='430E04C4-AC44-44EF-8ED2-A3CA0A05318B')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId = '867530011' AND SchoolYear = '2012' AND TermDescriptorId = '530')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='39066D32-88AA-4A9F-8285-CD6344BE405D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='95669A96-EFA6-4855-AF4B-E616288BF2A2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100079802','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'8E3482C5-6FA7-4611-9E2E-E81E1EA290E2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8E3482C5-6FA7-4611-9E2E-E81E1EA290E2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'2C1F53CF-789F-4C50-B9BF-F46F3C785DDA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2C1F53CF-789F-4C50-B9BF-F46F3C785DDA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'1043A9EA-2AC5-467D-B557-48DF0C208417','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1043A9EA-2AC5-467D-B557-48DF0C208417')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 '867530022','XSMP41','SEP MTH 4','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'80A9A802-64C3-410B-93FF-72ED72E19B8C','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= 'XSMP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','61E88EE1-69CE-451E-A7D6-37EC260A1710','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1405',NULL,NULL,'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1233' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1233')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','XSMP41','2012','1',NULL,NULL,'1.000','752D67A4-580D-43E2-B7F0-54DC4E2A6331','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','0946DADD-EAA1-40C4-B68A-A472165A4DCA',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='0946DADD-EAA1-40C4-B68A-A472165A4DCA')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9E86C992-EA0D-47BB-99F9-DC844BEDEE6E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9E86C992-EA0D-47BB-99F9-DC844BEDEE6E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','712E26B4-C6D8-4577-A4C2-04198D566307',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='712E26B4-C6D8-4577-A4C2-04198D566307')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5D3BEA60-F30E-4527-A3F7-C08F07594850' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5D3BEA60-F30E-4527-A3F7-C08F07594850')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-16','QENR11','867530011','2012','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EE7E75B4-F076-4C40-A124-35AD4830A0F8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EE7E75B4-F076-4C40-A124-35AD4830A0F8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '544','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','A-Absent','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E78E391A-6FFF-4217-804B-2F4761DF5F21' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E78E391A-6FFF-4217-804B-2F4761DF5F21')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7E819588-D81E-4D5F-B672-922A2D9F159A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='7E819588-D81E-4D5F-B672-922A2D9F159A')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530011','XLSK41','FUNCT COM SK 12','1','18','0A3B72C8-24F5-4254-830D-5B0FB91C3B40','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLSK41' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'XLSK41','867530011','2012','FUNCT COM SK 12','XLSK41','867530011','3342778F-F57A-425D-B0F3-4BE3D29327BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530011','XLSK41','2012','1','0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='FFE62040-17BF-499B-894B-4FAA55853BF9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055074','867530011','XLSK41','2012','2011-09-15','2011-09-15','1','F958E086-C827-4D75-B41E-53288CE6B69A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='F958E086-C827-4D75-B41E-53288CE6B69A')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100070882',NULL,'Matthew',NULL,'Barnes',NULL,NULL,'1999-08-07',NULL,NULL,NULL,NULL,'200099','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A06BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070882')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100070882','867530174',NULL,'2011-08-22','19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D4C9405E-7C08-43FE-BDE9-1102EA64FD0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FD0E')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530174','2011-11-03','8BDAC34D-99EE-46F1-92A4-206F003FF4E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-03' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530174','2011-11-03','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530167','Mt. Gleason Elementary School',NULL,NULL,'64ACB96B-7081-4E4B-9CB2-C33134D9F255','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530167')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530167','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530167')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530167_2012','867530167','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','98E7F1CB-4567-40D8-95BA-2751BBA4E062',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530167_2012' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530167','2011-11-03','6DA040F0-4854-402A-8147-15941A60436C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530167_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530167_2012' AND Date= '2011-11-03' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530167','2011-11-03','686','Sep 18 2015 11:34AM','867530167_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530167 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530163','James Lick Elementary School',NULL,NULL,'1E86182B-6478-413D-9106-5DD842298B97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530163')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530163','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530163')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530163_2012','867530163','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0FF0BBBD-738C-4249-AA09-E374E8E8EC3B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530163_2012' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530163','2011-11-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530163_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530163_2012' AND Date= '2011-11-03' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530163','2011-11-03','686','Sep 18 2015 11:34AM','867530163_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530163 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530174','2012','530','Traditional','2011-08-22','2011-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810A54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','544',NULL,'2735F816-C327-47FA-AFC2-A03218661968','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=544)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','545','A-Parent contact','C4E41C67-4D6E-4923-909D-4E0518B79982','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=545)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','546','Excused','DBCB3701-03BB-45FE-9A28-F19C2E2228DF','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='DBCB3701-03BB-45FE-9A28-F19C2E2228DF')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','547','Late','C07501E9-BC3C-4A5F-B8D6-20E23381D6F4','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C07501E9-BC3C-4A5F-B8D6-20E23381D6F4')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100140270',NULL,'Melody','C','Reese',NULL,NULL,'2006-07-04','Lubbock',NULL,NULL,NULL,'235621','BFAD0CA4-9A97-4EF3-A505-D5AE651F215B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140270')); + + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100140270','867530174','2012','2011-11-03','547',NULL,'020241AC-E9C4-473C-A6E4-97AD01A74140','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='020241AC-E9C4-473C-A6E4-97AD01A74140')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT '100055074','867530022','2012','2012-05-20','544','Abs','246CD054-7DE4-4F38-AB4B-844B2DB52E27','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB52E27')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100079802','867530011','2012','2012-05-20','544','Abs','EC1B7463-89B1-41A3-BF5F-1544F1B37A34','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC1B7463-89B1-41A3-BF5F-1544F1B37A34')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT '100055074','867530011','2011','2012-05-20','544','Abs','C15388A3-297B-4721-8F08-3D71BEE71B68','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C15388A3-297B-4721-8F08-3D71BEE71B68')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT '100055074','867530011','2012','2012-06-01','544','Abs','C6A8A994-C7B9-423F-9E59-C6F247712EBC','Jun 1 2012 12:00AM','Jun 1 2012 12:00AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C6A8A994-C7B9-423F-9E59-C6F247712EBC')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530167','2012','530','Traditional','2011-08-22','2011-12-20','82','087799AD-49F9-4C7D-AB36-3D7E5ADBB727','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530167' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100082146',NULL,'Bianca','B','Jessup',NULL,NULL,'2001-11-27',NULL,NULL,NULL,NULL,'204888','6384E2D4-EB0A-40FC-9E5C-1D36D5B36255','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082146')); + + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100082146','867530167','2012','2011-11-03','547',NULL,'EC927F76-8441-4099-A95F-5E8D992BD9EA','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC927F76-8441-4099-A95F-5E8D992BD9EA')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530163','2012','530','Traditional','2011-08-22','2011-12-20','82','E0DFF2A5-0791-4176-B13D-FA4A64C1B523','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530163' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100091085',NULL,'Joe','M','Arribas',NULL,NULL,'2000-05-24','Lubbock',NULL,NULL,NULL,'209514','1F87B2A8-F667-4B84-AF8A-8223F4FF107D','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100091085')); + + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100091085','867530163','2012','2011-11-03','545','A-Absent excused','54D85A58-E0EC-41E5-AD99-028C6FBCC07A','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='54D85A58-E0EC-41E5-AD99-028C6FBCC07A')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100014881','867530022',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3976C','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3976C')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='B07D591A-1EAB-497E-8570-188EF07323BA')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='5DE62337-788B-4F8A-9146-540E5FFC673F')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530022','B05','CD2D4337-E615-48EC-B873-D8D568668CDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='CD2D4337-E615-48EC-B873-D8D568668CDF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530022','2011-12-05','8D4193FE-07C8-4CD3-8A7D-B306A53F7A02','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2011-12-05' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530022','2011-12-05','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2011-12-05' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530022','XSMP41','2012','2011-11-03','2011-12-20','0',NULL,'9A91EAB2-7C14-486B-A87F-D402916864B6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9A91EAB2-7C14-486B-A87F-D402916864B6')); + + 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 '867530022','XSTP41','VOC 4 SE','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'85D52DBF-B05B-447B-890C-16F06DA0864B','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= 'XSTP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSTP41','867530022','2012','BASIC VOC 12',NULL,'XSTP41','867530022','50921FB7-5DB0-41F5-8277-F1B0B35433A0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','XSTP41','2012','1',NULL,NULL,'1.000','5D20FD7D-4634-444B-AB77-4A57206BFC53','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14753','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14753' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530022','XSTP41','2012','2011-08-22','2011-12-20','1',NULL,'8559F681-F3A8-4AA5-A3BC-F2FB15565AE5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','14753','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8559F681-F3A8-4AA5-A3BC-F2FB15565AE5')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','B9DDDABF-3AEF-4505-A339-B3E4E7707895','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','XSMP41','2012','1',NULL,NULL,'1.000','A15ED7AA-EFD5-423D-B832-0D9FC1A92693','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530022','XSMP41','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230731','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230731')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100041249','867530022','XSMP41','2012','2011-11-03','2011-12-20','1',NULL,'9E2F52C5-0CB7-48EC-B4EC-380786F97E02','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9E2F52C5-0CB7-48EC-B4EC-380786F97E02')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '546','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79AF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79AF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','AC4A45FC-0773-46FD-BA29-DE3267B75932',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='AC4A45FC-0773-46FD-BA29-DE3267B75932')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 '867530022','SCMR31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7F1862F0-1B69-4F08-BAB2-390A38A9CFD3','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= 'SCMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'SCMR31','867530022','2012','Chemistry (1 Unit)',NULL,'SCMR31','867530022','D05298E6-2A89-4EE3-A5CA-5C2581E53B90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1501',NULL,NULL,'5688B86B-0341-4C9C-9241-99E976764BC3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1501' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','SCMR31','2012','1',NULL,NULL,'1.000','18E750EC-BD6E-4F42-B3CC-0BAFE41F2B13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11579','867530022','1501','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '11579' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6F149507-917C-45CA-832D-ED407B37920A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6F149507-917C-45CA-832D-ED407B37920A')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D4462F87-3340-43FD-B81C-E19CE2AA432E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D4462F87-3340-43FD-B81C-E19CE2AA432E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E661DC4E-D254-4718-A8A5-48D8F23BF469',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E661DC4E-D254-4718-A8A5-48D8F23BF469')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530022','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = '1064')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530022','1064','443DCCE2-134C-4491-A1AA-E8FA2D10D8E8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='443DCCE2-134C-4491-A1AA-E8FA2D10D8E8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '546','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EBC735CD-0794-4EFD-A448-A35E3F730678',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EBC735CD-0794-4EFD-A448-A35E3F730678')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9865382E-F8AE-4756-AB9A-0B2C0ADBABA7',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9865382E-F8AE-4756-AB9A-0B2C0ADBABA7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','71ECE7A9-7240-43F5-8D02-2DEF36F563C3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='71ECE7A9-7240-43F5-8D02-2DEF36F563C3')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','124784BA-5674-4DBD-999C-87B143463EFF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='124784BA-5674-4DBD-999C-87B143463EFF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011',CAST('2110-12-12' as DATE),'1AE131B4-559E-4695-AD14-C46D257B4994','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= CAST('2110-12-12' as DATE) AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011',CAST('2110-12-12' as DATE),'686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND CAST('2110-12-12' as DATE) = CalendarDateCalendarEvent.Date)); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544',CAST('2110-12-12' as DATE),'LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D7D517D3-546E-494E-B170-E11EBE67C9D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D7D517D3-546E-494E-B170-E11EBE67C9D6')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530013','Davids','A56A986C-976E-45A7-83B1-0F8D63FFECD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530013')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530014','Jorges','A56A986C-976E-45A7-83B1-0F8D63FFECD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530014')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530013','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530013')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530014','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530014')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055075','Jose','P','Leiva','1994-08-25','Lubbock','193965','5EED229F-2181-4221-9AC1-D977E6314F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055075')); + + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055076','Pablo','P','Leiva','1994-08-25','Lubbock','193966','5EED229F-2181-4221-9AC1-D977E6314F99','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055076')); + + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C834','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C837','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530014','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C835','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530014' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','2011','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C836','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530013' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8C85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530013')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YPNR11','867530013','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530013','385B25B1-7A77-4978-AE9B-8CA5467E70D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','113','2CC51551-0168-4199-B043-6C04C431D2A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530013')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530014','113','2CC51551-0168-4199-B043-6C04C431D2A5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530014')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530013','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C86B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530013','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055075','867530013','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055075 AND SchoolId=867530013 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055075','867530014','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE06','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055075 AND SchoolId=867530014 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055076','867530013','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE07','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055076 AND SchoolId=867530013 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF480F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530013')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530014','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF4806','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530014')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530013','2012','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530013','2012','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530014','2012','English I (1 Unit)','QENR11','867530014','39066D32-88AA-4A9F-8285-CD6344BE405B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530014' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530013','2011','English I (1 Unit)','QENR11','867530013','39066D32-88AA-4A9F-8285-CD6344BE405C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT '867530013','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530013')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE81','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530014','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE82','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530014' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530013','QENR11','2011','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530013_2012','867530013','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530013_2012' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530014_2012','867530014','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157D' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530014_2012' AND SchoolId= '867530014' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530013','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F080','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530013_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530013_2012' AND Date= '2012-05-20' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530014','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F082','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530014_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530014_2012' AND Date= '2012-05-20' AND SchoolId= '867530014' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530013','2012-05-20','686','Sep 18 2015 11:34AM','867530013_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530013 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530014','2012-05-20','686','Sep 18 2015 11:34AM','867530014_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530014 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055076','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F85')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055075','867530013','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F86')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055075','867530014','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F95','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F95')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055075','867530013','QENR11','2011','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F96','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F96')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738F84','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F84')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738F87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F87')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530013','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530014','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530013','2012','9561','Traditional','100055076','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9D9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9D9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-19','QENR11','867530013','2012','9561','Traditional','100055075','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9BA' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9BA')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530015','Davids','A56A986C-976E-45A7-83B1-0F8D63FFECB6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530015')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530015','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530015')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055078','Carlos','P','Leiva','1994-08-25','Lubbock','193968','5EED229F-2181-4221-9AC1-D977E6314FA0','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055078')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055078','867530015','2012','2012-02-20','24','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE09','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055078 AND SchoolId=867530015 AND EntryDate='2012-02-20')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530015_2012','867530015','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157E' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530015_2012' AND SchoolId= '867530015' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530015','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F081','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530015_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530015_2012' AND Date= '2012-05-20' AND SchoolId= '867530015' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530015','2012-05-20','683','Sep 18 2015 11:34AM','867530015_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530015 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530033','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEDD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530033')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530034','Jorges','A56A986C-976E-45A7-83B1-0F8D63FFEDD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530034')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530033','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530033')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530034','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530034')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055085','Jose','P','Leiva','1994-08-25','Lubbock','193975','5EED229F-2181-4221-9AC1-D977E6314E98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055085')); + + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055086','Cesar','P','Campos','1994-08-25','Lubbock','193976','5EED229F-2181-4221-9AC1-D977E6314E99','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055086')); + + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C934','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C937','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530034','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C935','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530034' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','2011','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C936','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530033' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8D85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530033')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YPNR11','867530033','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530033','385B25B1-7A77-4978-AE9B-8CA5467E71D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','113','2CC51551-0168-4199-B043-6C04C431D3A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530033')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530034','113','2CC51551-0168-4199-B043-6C04C431D3A5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530034')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530033','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C87B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055085','867530033','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055085 AND SchoolId=867530033 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055085','867530034','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF06','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055085 AND SchoolId=867530034 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055086','867530033','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CF07','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055086 AND SchoolId=867530033 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF490F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530033')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,Id,LastModifiedDate,CreateDate) + (SELECT '867530034','QENR11','English I (1 Unit)','1','D5A69065-FD06-4F65-AF26-CEEE0BBF4906','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR11' AND EducationOrganizationId= '867530034')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530033','2012','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530033','2012','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530034','2012','English I (1 Unit)','QENR11','867530034','39066D32-88AA-4A9F-8285-CD6344BE415B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530034' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'QENR11','867530033','2011','English I (1 Unit)','QENR11','867530033','39066D32-88AA-4A9F-8285-CD6344BE415C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT '867530033','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFEBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530033')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530033','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF81','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530033','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530034','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF82','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530034' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530033','QENR11','2011','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CF85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530033','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530033' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530033_2012','867530033','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107167C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530033_2012' AND SchoolId= '867530033' AND SchoolYear= '2012')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530034_2012','867530034','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107167D' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530034_2012' AND SchoolId= '867530034' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530033','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F180','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530033_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530033_2012' AND Date= '2012-05-20' AND SchoolId= '867530033' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530034','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F182','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530034_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530034_2012' AND Date= '2012-05-20' AND SchoolId= '867530034' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530033','2012-05-20','686','Sep 18 2015 11:34AM','867530033_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530033 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530034','2012-05-20','686','Sep 18 2015 11:34AM','867530034_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530034 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055086','867530033','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738E85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E85')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055085','867530033','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738E86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E86')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055085','867530034','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E95','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E95')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055085','867530033','QENR11','2011','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E96','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E96')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055085','867530033','QENR11','2012','2011-09-15','2011-09-15','0','1265CDAF-E98F-4B27-A276-96DF8A738E87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-Spring Semester' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738E87')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530033','2012','9561','Traditional','100055085','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3B7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530034','2012','9561','Traditional','100055085','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3B8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','QENR11','867530033','2012','9561','Traditional','100055086','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC3D9' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC3D9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530043','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEED5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530043')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530043','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530043')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055095','Jose','P','Leiva','1994-08-25','Lubbock','193985','5EED229F-2181-4221-9AC1-D977E6314D98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055095')); + + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530043','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9D034','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530043' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530043','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF8E85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530043')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YPNR11','867530043','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530043','385B25B1-7A77-4978-AE9B-8CA5467E72D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530043' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530043','113','2CC51551-0168-4199-B043-6C04C431D4A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530043')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530043','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C88B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530043','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530043' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055095','867530043','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CC05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055095 AND SchoolId=867530043 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530043_2012','867530043','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107177C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530043_2012' AND SchoolId= '867530043' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530043','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F280','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530043_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530043_2012' AND Date= '2012-05-20' AND SchoolId= '867530043' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530043','2012-05-20','686','Sep 18 2015 11:34AM','867530043_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530043 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055095','867530043','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A738B85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738B85')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-20','YPNR11','867530043','2012','9561','Traditional','100055095','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC7B7' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC7B7')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530016','Davids','A56A986C-976E-45A7-83B1-0F8D63FFEFD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530016')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId) + (SELECT '867530016','867530','1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530016')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055079','Jose','P','Leiva','1994-08-25','Lubbock','193969','5EED229F-2181-4221-9AC1-D977E6315F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055079')); + + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530016','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9D834','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530016' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '867530016','YPNR11','Lifetime Nutrition and Wellness','1','18','4B112C63-C7F2-4120-BCB2-4D0428DF9D85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YPNR11' AND EducationOrganizationId= '867530016')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT 'YPNR11','867530016','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530016','385B25B1-7A77-4978-AE9B-8CA5467E80D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530016' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,Id,LastModifiedDate,CreateDate) + (SELECT '867530016','113','2CC51551-0168-4199-B043-6C04C431E2A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530016')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530016','YPNR11','2012','1','1.000','E7192AC8-433E-4E66-8315-16E89B1C96B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530016','113','1225','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530016' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,ExitWithdrawDate,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100055079','867530016','2012','2012-02-21','24','2013-02-21','632','2012','41E71353-5B2D-40FC-9DB3-BC58AF24CE05','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055079 AND SchoolId=867530016 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id) + (SELECT '867530016_2012','867530016','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107257C' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530016_2012' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530016','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F480','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530016_2012' AND Date= '2012-05-20' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530016','2012-05-20','686','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530016 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055079','867530016','YPNR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A739F85','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A739F85')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,CreateDate,LastModifiedDate,Id) + (SELECT '545','2012-05-19','YPNR11','867530016','2012','9561','Traditional','100055079','Excused Absence','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AE9B8' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AE9B8')); + + -- New Data + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530016','2012-07-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F580','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530016_2012' AND Date= '2012-07-20' AND SchoolId= '867530016' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId) + (SELECT '547' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '547')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530016','2012-07-20','547','Sep 18 2015 11:34AM','867530016_2012','2012' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530016 AND '2012-07-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT '100055074','867530016','2012','2012-07-20','547','Abs','246CD054-7DE4-4F38-AB4B-844B2DB53027','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB53027')); + + --- 200099 867530174 20111103 + -- StudentUSI: 100070882 + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '2014','2013-2014','0','1926BB96-BF8C-493A-93BD-A8E60DBC84E1','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2014')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530174_2014','867530174','2014','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D495D8',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2014' AND SchoolId= '867530174' AND SchoolYear= '2014')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT '867530174','2014-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38D16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2014','2014',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2014' AND Date= '2014-05-02' AND SchoolId= '867530174' AND SchoolYear= '2014')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530174','2014-05-02','686','Sep 18 2015 11:34AM','867530174_2014','2014' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2014-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT '867530174','2014','530','Traditional','2011-08-22','2014-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810B54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Student(StudentUSI,FirstName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100070885','Davie','Barnes','1999-08-07','200011','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A07BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070885')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '100070885','867530174',2014,'2013-08-22','19','D4C9405E-7C08-43FE-BDE9-1102EA64FE0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FE0E')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,Id,LastModifiedDate,CreateDate,SessionName) + (SELECT '100070885','867530174','2014','2014-05-02','545','2735F816-C327-47FA-AFC2-A03218661668','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070885 AND SchoolId=867530174 AND EventDate='2014-05-02' AND AttendanceEventCategoryDescriptorId=545 and SchoolYear = 2014)); + + -- + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,EducationalEnvironmentDescriptorId) + (SELECT '867530013','QENR11','2012','1','1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9DE85','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9571','867530011','105','1232','950' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530013' AND SchoolYear= '2012' AND SectionIdentifier= '9571' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName) + (SELECT '100055075','867530013','QENR11','2012','2011-09-15','2011-09-15','1','1265CDAF-E98F-4B27-A276-96DF8A838F87','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9571','Traditional' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A838F87')); + -- + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT '867530174','2011-11-04','CD1275BE-4758-48B7-90C4-55D2A50FB0C8','Oct 27 2021 11:34AM','Oct 27 2021 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-04' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530174','2011-11-04','686','Oct 27 2021 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-04' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent + (StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator) + (SELECT '100070882','867530174','2012','2011-11-04','546',NULL,'2735F816-C327-47FA-AFC2-A03218661969','Oct 27 2021 11:53AM','Oct 27 2021 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-04' AND AttendanceEventCategoryDescriptorId=546)); + -- + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator) + (SELECT '867530013','2012-05-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C9','Oct 27 2021 11:34AM','Oct 27 2021 11:34AM','867530013_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530013_2012' AND Date= '2012-05-03' AND SchoolId= '867530013' AND SchoolYear= '2012')); + + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + (SELECT '867530013','2012-05-03','686','Oct 27 2021 11:34AM','867530013_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = '867530013' AND '2012-05-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator) + (SELECT '10100495','867530013','QENR11','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230734','Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','9561','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230734')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '546','2012-05-03','QENR11','867530013','2012','9561','Traditional-Spring Semester','10100495','Tardy',NULL,NULL,'Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79B0',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79B0')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '10100495','867530013',2012,'2012-05-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3977D','Oct 27 2021 11:47AM','Oct 27 2021 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3977D')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '547','2012-05-02','QENR11','867530011','2012','18131','Traditional','10100494','Tardy',NULL,NULL,'Oct 27 2021 11:47AM','Oct 27 2021 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79C1',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79C1')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_3/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_3/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..7c62098c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ChronicAbsenteeismAttendanceFact/PostgreSQL/v_3_3/0001_ChronicAbsenteeismAttendanceFact_should_match_column_dictionary.xml @@ -0,0 +1,54 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'chrab_chronicabsenteeismattendancefact' + ORDER BY ORDINAL_POSITION ASC; + + + studentschoolkey + text + + + studentkey + character varying + + + schoolkey + character varying + + + datekey + text + + + reportedaspresentatschool + integer + + + reportedasabsentfromschool + integer + + + reportedaspresentathomeroom + integer + + + reportedasabsentfromhomeroom + integer + + + reportedasispresentinallsections + integer + + + reportedasabsentfromanysection + integer + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/0001_ClassPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_2/0001_ClassPeriodDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/0001_ClassPeriodDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_2/0001_ClassPeriodDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_1/0001_ClassPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_1/0001_ClassPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..f158bd85 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_1/0001_ClassPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ClassPeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + ClassPeriodKey + nvarchar + + + SectionKey + nvarchar + + + ClassPeriodName + nvarchar + + + LocalCourseCode + nvarchar + + + SchoolId + int + + + SchoolYear + smallint + + + SectionIdentifier + nvarchar + + + SessionName + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_2/0000_ClassPeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_2/0000_ClassPeriodDim_Data_Load.xml new file mode 100644 index 00000000..8b2fd612 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_2/0000_ClassPeriodDim_Data_Load.xml @@ -0,0 +1,30 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T07','47D95C97-3993-46FF-B7F4-C88974F22AD3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T07' AND SchoolId= '867530007')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530007','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C398362D-2A2F-499C-BE03-FE4BB7A7C5F9','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= 'ACER08' AND EducationOrganizationId= '867530007')); + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530007','2012','530','Traditional','2011-08-22','2011-12-20','82','CBD0894B-BDAC-4AD4-81B4-3C0E9A222A56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530007','2012','Art, Grade 8',NULL,'ACER08','867530007','FFDF567E-97FD-4C87-962B-13706862F7BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','107',NULL,NULL,'0A034162-0FA1-4720-A4D4-FD2E8DA0EC92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530007')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ACER08','2012','1',NULL,NULL,'0.000','9617D62B-F93B-4766-9995-C35DF07C7691','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','21855','867530007','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '21855' AND SessionName= 'Traditional')); + INSERT INTO edfi.SectionClassPeriod(ClassPeriodName,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,CreateDate)(SELECT TOP 1'T07','ACER08','867530007','2012','21855','Traditional','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SectionClassPeriod WHERE ClassPeriodName='T07' AND LocalCourseCode='ACER08' AND SchoolId='867530007' AND SchoolYear='2012' AND SectionIdentifier='21855' AND SessionName='Traditional')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_2/0001_ClassPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_2/0001_ClassPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..f158bd85 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_2/0001_ClassPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ClassPeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + ClassPeriodKey + nvarchar + + + SectionKey + nvarchar + + + ClassPeriodName + nvarchar + + + LocalCourseCode + nvarchar + + + SchoolId + int + + + SchoolYear + smallint + + + SectionIdentifier + nvarchar + + + SessionName + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_3/0000_ClassPeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_3/0000_ClassPeriodDim_Data_Load.xml new file mode 100644 index 00000000..8b2fd612 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_3/0000_ClassPeriodDim_Data_Load.xml @@ -0,0 +1,30 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T07','47D95C97-3993-46FF-B7F4-C88974F22AD3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T07' AND SchoolId= '867530007')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530007','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C398362D-2A2F-499C-BE03-FE4BB7A7C5F9','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= 'ACER08' AND EducationOrganizationId= '867530007')); + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530007','2012','530','Traditional','2011-08-22','2011-12-20','82','CBD0894B-BDAC-4AD4-81B4-3C0E9A222A56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530007','2012','Art, Grade 8',NULL,'ACER08','867530007','FFDF567E-97FD-4C87-962B-13706862F7BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','107',NULL,NULL,'0A034162-0FA1-4720-A4D4-FD2E8DA0EC92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530007')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ACER08','2012','1',NULL,NULL,'0.000','9617D62B-F93B-4766-9995-C35DF07C7691','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','21855','867530007','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '21855' AND SessionName= 'Traditional')); + INSERT INTO edfi.SectionClassPeriod(ClassPeriodName,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,CreateDate)(SELECT TOP 1'T07','ACER08','867530007','2012','21855','Traditional','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SectionClassPeriod WHERE ClassPeriodName='T07' AND LocalCourseCode='ACER08' AND SchoolId='867530007' AND SchoolYear='2012' AND SectionIdentifier='21855' AND SessionName='Traditional')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_3/0001_ClassPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_3/0001_ClassPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..f158bd85 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/MSSQL/v_3_3/0001_ClassPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ClassPeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + ClassPeriodKey + nvarchar + + + SectionKey + nvarchar + + + ClassPeriodName + nvarchar + + + LocalCourseCode + nvarchar + + + SchoolId + int + + + SchoolYear + smallint + + + SectionIdentifier + nvarchar + + + SessionName + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/0001_ClassPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_2/0001_ClassPeriodDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/0001_ClassPeriodDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_2/0001_ClassPeriodDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_3/0000_ClassPeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_3/0000_ClassPeriodDim_Data_Load.xml new file mode 100644 index 00000000..998e127c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_3/0000_ClassPeriodDim_Data_Load.xml @@ -0,0 +1,30 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530007','T07','47D95C97-3993-46FF-B7F4-C88974F22AD3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T07' AND SchoolId= '867530007')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 '867530007','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C398362D-2A2F-499C-BE03-FE4BB7A7C5F9','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= 'ACER08' AND EducationOrganizationId= '867530007')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530007','2012','530','Traditional','2011-08-22','2011-12-20','82','CBD0894B-BDAC-4AD4-81B4-3C0E9A222A56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER08','867530007','2012','Art, Grade 8',NULL,'ACER08','867530007','FFDF567E-97FD-4C87-962B-13706862F7BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','107',NULL,NULL,'0A034162-0FA1-4720-A4D4-FD2E8DA0EC92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530007')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','ACER08','2012','1',NULL,NULL,'0.000','9617D62B-F93B-4766-9995-C35DF07C7691','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','21855','867530007','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '21855' AND SessionName= 'Traditional')); + INSERT INTO edfi.SectionClassPeriod(ClassPeriodName,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,CreateDate)(SELECT 'T07','ACER08','867530007','2012','21855','Traditional','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SectionClassPeriod WHERE ClassPeriodName='T07' AND LocalCourseCode='ACER08' AND SchoolId='867530007' AND SchoolYear='2012' AND SectionIdentifier='21855' AND SessionName='Traditional')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_3/0001_ClassPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_3/0001_ClassPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..aeceaaa3 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ClassPeriodDim/PostgreSQL/v_3_3/0001_ClassPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'classperioddim' + ORDER BY ORDINAL_POSITION ASC; + + + classperiodkey + text + + + sectionkey + text + + + classperiodname + character varying + + + localcoursecode + character varying + + + schoolid + integer + + + schoolyear + smallint + + + sectionidentifier + character varying + + + sessionname + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_2/0001_ContactPersonDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_2/0001_ContactPersonDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..281d5e9b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_2/0001_ContactPersonDim_should_match_column_dictionary.xml @@ -0,0 +1,110 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ContactPersonDim' + ORDER BY ORDINAL_POSITION ASC; + + + UniqueKey + nvarchar + + + ContactPersonKey + nvarchar + + + StudentKey + nvarchar + + + ContactFirstName + nvarchar + + + ContactLastName + nvarchar + + + RelationshipToStudent + nvarchar + + + ContactHomeAddress + nvarchar + + + ContactPhysicalAddress + nvarchar + + + ContactMailingAddress + nvarchar + + + ContactWorkAddress + nvarchar + + + ContactTemporaryAddress + nvarchar + + + HomePhoneNumber + nvarchar + + + MobilePhoneNumber + nvarchar + + + WorkPhoneNumber + nvarchar + + + PrimaryEmailAddress + varchar + + + PersonalEmailAddress + nvarchar + + + WorkEmailAddress + nvarchar + + + IsPrimaryContact + bit + + + StudentLivesWith + bit + + + IsEmergencyContact + bit + + + ContactPriority + int + + + ContactRestrictions + nvarchar + + + LastModifiedDate + datetime2 + + + PostalCode + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_3/0000_ContactPersonDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_3/0000_ContactPersonDim_Data_Load.xml new file mode 100644 index 00000000..479c42e3 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_3/0000_ContactPersonDim_Data_Load.xml @@ -0,0 +1,184 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '775', 'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml', 'FullPrice', 'FullPrice', 'Full price', NULL, NULL, NULL, '30E76B96-C05D-4507-B8E3-707F7DBFDC7B', 'Jun 19 2015 12:17PM', 'Jun 19 2015 12:17PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '775')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) ( SELECT TOP 1 '686', 'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml', 'Instructional day', 'Instructional day', 'Instructional day', NULL, NULL, NULL, '4221482F-154F-4196-BB20-948B5F70AAEC', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '687', 'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml', 'Make-up day', 'Make-up day', 'Make-up day', NULL, NULL, NULL, '391A3FF9-8DA0-44A8-8D26-0C2CD987B352', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '545', 'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml', 'Excused Absence', 'Excused Absence', 'Excused Absence', NULL, NULL, NULL, '5146D87C-DE6F-4870-9EEE-AD6890F7A722', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '544', 'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml', 'Unexcused Absence', 'Unexcused Absence', 'Unexcused Absence', NULL, NULL, NULL, '711C0C86-268F-4C42-BC44-B6FBEBF35DAB', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '547', 'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml', 'Tardy', 'Tardy', 'Tardy', NULL, NULL, NULL, '1B39771B-A743-4B06-B5BE-77795E4CA0DB', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1500', 'uri://ed-fi.org/AddressTypeDescriptor', 'Home', 'Home', 'Home', NULL, NULL, NULL, 'AB364693-35E1-49A6-A6C0-FF51FAA372F7', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1500' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1505', 'uri://ed-fi.org/AddressTypeDescriptor', 'Physical', 'Physical', 'Physical', NULL, NULL, NULL, 'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1505' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1505')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1502', 'uri://ed-fi.org/AddressTypeDescriptor', 'Mailing', 'Mailing', 'Mailing', NULL, NULL, NULL, '93E71ED1-83A8-4FAF-8039-D1FD5F846964', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1502' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1502')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1510', 'uri://ed-fi.org/AddressTypeDescriptor', 'Work', 'Work', 'Work', NULL, NULL, NULL, '10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1510' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1510')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1508', 'uri://ed-fi.org/AddressTypeDescriptor', 'Temporary', 'Temporary', 'Temporary', NULL, NULL, NULL, '91B50747-86AF-435C-96F4-4F6AA3D8A52A', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1508' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1508')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1700', 'uri://ed-fi.org/TelephoneNumberTypeDescriptor', 'Home', 'Home', 'Home', NULL, NULL, NULL, '8180EBEE-DFA6-4138-8114-E9C14B4E6907', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TelephoneNumberTypeDescriptor( TelephoneNumberTypeDescriptorId) (SELECT TOP 1 '1700' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1701', 'uri://ed-fi.org/TelephoneNumberTypeDescriptor', 'Mobile', 'Mobile', 'Mobile', NULL, NULL, NULL, 'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TelephoneNumberTypeDescriptor( TelephoneNumberTypeDescriptorId) (SELECT TOP 1 '1701' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1704', 'uri://ed-fi.org/TelephoneNumberTypeDescriptor', 'Work', 'Work', 'Work', NULL, NULL, NULL, '63B0B009-CF63-4D39-9A8E-4B5997CD8A00', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TelephoneNumberTypeDescriptor( TelephoneNumberTypeDescriptorId) (SELECT TOP 1 '1704' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1586', 'uri://ed-fi.org/ElectronicMailTypeDescriptor', 'Home/Personal', 'Home/Personal', 'Home/Personal', NULL, NULL, NULL, '55C70BD5-D46A-4798-AE8D-D2989DA9DB0F', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ElectronicMailTypeDescriptor( ElectronicMailTypeDescriptorId) (SELECT TOP 1 '1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1589', 'uri://ed-fi.org/ElectronicMailTypeDescriptor', 'Work', 'Work', 'Work', NULL, NULL, NULL, '2E66FEA2-2FF6-49CE-84FD-1CD56141F621', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ElectronicMailTypeDescriptor( ElectronicMailTypeDescriptorId) (SELECT TOP 1 '1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + SET IDENTITY_INSERT edfi.Parent ON; + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1070', '132500', NULL, 'Reilly', NULL, 'Patterson', NULL, NULL, NULL, NULL, '5CF5C93A-728E-44F3-856D-5FF54F80B4E2', 'Sep 01 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI = 1070)); + SET IDENTITY_INSERT edfi.Parent 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 '1451', 'uri://ed-fi.org/StateAbbreviationDescriptor', 'TX', 'TX', 'TX', NULL, NULL, NULL, '67A24BD2-B27E-42A1-A508-2D45B49C6617', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor( StateAbbreviationDescriptorId) (SELECT TOP 1 '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId, PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '1070', '1500', '527 Garland No 1 Rd', NULL, NULL, 'Richardson', '1451', '75270', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Aug 24 2021 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=1070 AND AddressTypeDescriptorId=1500)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT TOP 1 '1070', '1704', NULL, NULL, '(989)-738-3918', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=1070 AND TelephoneNumberTypeDescriptorId=1704)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT TOP 1 '1070', '1700', NULL, NULL, '(989)-738-3918', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=1070 AND TelephoneNumberTypeDescriptorId=1700)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT TOP 1 '1070', '1586', 'reilly.patterson@tsds.org', NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=1070 and ElectronicMailTypeDescriptorId=1586)); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1338', 'uri://ed-fi.org/RelationDescriptor', 'Other', 'Other', 'Other', NULL, NULL, NULL, '87AAE713-C729-4932-8D72-0129A63B3A63', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT TOP 1 '1338' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1396', 'uri://ed-fi.org/SexDescriptor', 'Male', 'Male', 'Male', NULL, NULL, NULL, '64E51D5B-8249-45FE-8B6D-4347F525B2FB', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SexDescriptor( SexDescriptorId) (SELECT TOP 1 '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId,DateEnteredUS, MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,Discriminator) (SELECT TOP 1 '10107541', NULL, 'Shawn', 'U', 'Butler', NULL, NULL, '1396', '1973-03-12', NULL, NULL, NULL, NULL, NULL, NULL, '189856', '12AB9310-0E03-4BC9-84EE-9877734E833B', 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', NULL, NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '10107541')); + SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '10107541', '1070', '1338', NULL, NULL, NULL, NULL, NULL, 'B2477D48-17C1-40CD-934F-AC00940C15CE', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=10107541 AND ParentUSI=1070)); + SET IDENTITY_INSERT edfi.Parent ON; + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '180250', '156809', NULL, 'Zane', NULL, 'Rodas', NULL, NULL, NULL, NULL, 'A11E38B0-57DF-4C92-A245-33440932D40E', 'Nov 19 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI=180250)); + SET IDENTITY_INSERT edfi.Parent OFF; + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '180250', '1500', '644 Old Sandtown Rd', NULL, NULL, 'Florence', '1451', '77550', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=180250 AND AddressTypeDescriptorId=1500)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT TOP 1 '180250', '1700', NULL, NULL, '(656)-780-6979', 'Aug 24 2021 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=180250 AND TelephoneNumberTypeDescriptorId=1700)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT TOP 1 '180250', '1589', 'kelliework@edfi.org', 1, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=180250 and ElectronicMailTypeDescriptorId=1589)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT TOP 1 '180250', '1586', 'kelliehome@edfi.org', Null, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=180250 and ElectronicMailTypeDescriptorId=1586)); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1312', 'uri://ed-fi.org/RelationDescriptor', 'Father', 'Father', 'Father', NULL, NULL, NULL, '9F1AEF7A-1DFA-44BA-8586-975EA23157D3', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1312')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT TOP 1 '1312' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1312')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1167', 'uri://ed-fi.org/OldEthnicityDescriptor', 'White, Not Of Hispanic Origin', 'White, Not Of Hispanic Origin', 'White, Not Of Hispanic Origin', NULL, NULL, NULL, '1882389F-FE1E-40ED-8670-5E3C6DEA4607', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT TOP 1 '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1395', 'uri://ed-fi.org/SexDescriptor', 'Female', 'Female', 'Female', NULL, NULL, NULL, 'D047F035-5000-456B-A279-6AF1BD20EB6D', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SexDescriptor( SexDescriptorId) (SELECT TOP 1 '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity, BirthStateAbbreviationDescriptorId,BirthInternationalProvince,BirthCountryDescriptorId,DateEnteredUS,MultipleBirthStatus, BirthSexDescriptorId,CitizenshipStatusDescriptorId,StudentUniqueId,Discriminator,CreateDate,LastModifiedDate,Id) (SELECT TOP 1 '100133749', NULL, 'Amy', 'U', 'Medeiros', NULL, NULL, '2004-05-10', 'Lubbock', '1451', NULL, NULL, NULL, NULL, '1395', NULL, '231203', NULL, 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', 'C154CC17-F9FE-495C-A75E-BFCEA5B2106F' WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '100133749')); + SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '100133749', '180250', '1312', '1', '1', NULL, NULL, NULL, 'E08B0512-061E-4030-B4FD-AA01DAACE286', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=100133749 AND ParentUSI=180250)); + SET IDENTITY_INSERT edfi.Parent ON; + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '150964', '154283', NULL, 'Phoenix', NULL, 'Carrasco', NULL, NULL, NULL, NULL, '6485C04F-DDB5-471C-9289-70F317DCA69F', 'Nov 19 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI=150964)); + SET IDENTITY_INSERT edfi.Parent OFF; + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT TOP 1 '150964', '1701', NULL, NULL, '(847)-813-4119', 'Aug 24 2021 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=150964 AND TelephoneNumberTypeDescriptorId=1701)); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1166', 'uri://ed-fi.org/OldEthnicityDescriptor', 'Hispanic', 'Hispanic', 'Hispanic', NULL, NULL, NULL, '3F337FB4-C428-4B2B-9281-8158BA97B9F0', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT TOP 1 '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity, BirthStateAbbreviationDescriptorId,BirthInternationalProvince,BirthCountryDescriptorId,DateEnteredUS,MultipleBirthStatus, BirthSexDescriptorId,CitizenshipStatusDescriptorId,StudentUniqueId,Discriminator,CreateDate,LastModifiedDate,Id) (SELECT TOP 1 '10139395', NULL, 'Stacey', 'R', 'Williams', NULL, NULL, '1982-03-03', NULL, NULL, NULL, NULL, NULL, NULL, '1395', NULL, '189864', NULL, 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', 'A08804F4-CC5D-424C-89B0-9FEBA7BE214E' WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '10139395')); + SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '10139395', '150964', '1338', '0', '0', NULL, NULL, NULL, 'B28D5D6D-8EAF-4EAE-B262-33882FE8F1C7', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=10139395 AND ParentUSI=150964)); + SET IDENTITY_INSERT edfi.Parent ON; + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '12102', '133012', NULL, 'Kylie', NULL, 'Woody', NULL, NULL, NULL, NULL, '2780C3CC-CA38-4904-A6FF-4B4CDBA54D67', 'Nov 19 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI=12102)); + SET IDENTITY_INSERT edfi.Parent OFF; + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '12102', '1500', '640 Brown Farm Rd', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1500)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT TOP 1 '12102', '1704', NULL, NULL, '(473)-574-8251', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=12102 AND TelephoneNumberTypeDescriptorId=1704)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT TOP 1 '12102', '1586', 'kylie.woody@tsds.org', NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=12102 and ElectronicMailTypeDescriptorId=1586)); + 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.Student ON; + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity, BirthStateAbbreviationDescriptorId,BirthInternationalProvince,BirthCountryDescriptorId,DateEnteredUS,MultipleBirthStatus, BirthSexDescriptorId,CitizenshipStatusDescriptorId,StudentUniqueId,Discriminator,CreateDate,LastModifiedDate,Id) (SELECT TOP 1 '100034835', NULL, 'Evelyn', 'R', 'Jackson', NULL, NULL, '1992-04-18', NULL, NULL, NULL, NULL, NULL, NULL, '1395', NULL, '190142', NULL, 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', '35BFA799-31E9-46E1-8721-2310C05155D5' WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '100034835')); + SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '100034835', '12102', '1338', '1', '1', NULL, NULL, NULL, '284B3BDE-C3E4-4D02-8330-4584A693916E', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=100034835 AND ParentUSI=12102)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '12102', '1505', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Aug 24 2021 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1505)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '12102', '1502', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1502)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '12102', '1510', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1510)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '12102', '1508', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1508)); + UPDATE edfi.ParentElectronicMail set PrimaryEmailAddressIndicator=1 WHERE ParentUSI=12102; + UPDATE edfi.StudentParentAssociation SET ContactRestrictions = 'Contact only on business days' WHERE ParentUSI=12102 ; + INSERT INTO edfi.ParentAddress ( ParentUSI, AddressTypeDescriptorId, StreetNumberName, ApartmentRoomSuiteNumber, BuildingSiteNumber, City, StateAbbreviationDescriptorId, PostalCode, NameOfCounty, CountyFIPSCode, Latitude, Longitude, DoNotPublishIndicator, CongressionalDistrict, LocaleDescriptorId, CreateDate ) ( SELECT TOP 1 '180250', '1510', '677 Green Farm Rd', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI = 180250 AND AddressTypeDescriptorId = 1510 ) ); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '12102', '1510', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=180250 AND AddressTypeDescriptorId=1510)); + INSERT INTO edfi.ParentAddressPeriod ( AddressTypeDescriptorId, BeginDate, City, ParentUSI, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, EndDate, CreateDate ) ( SELECT TOP 1 '1510', '2010-01-06', 'Trent', '180250', '72312', '1451', '677 Green Farm Rd', '2010-01-06', '2019-12-06 11:58:57.1700000' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ParentAddressPeriod WHERE AddressTypeDescriptorId = 1510 AND BeginDate = '2010-01-06' AND ParentUSI = 180250 ) ); + + --Last Modified date + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'261329','163235',NULL,'Zion',NULL,'Waldron',NULL,NULL,NULL,'08B6FF70-EAA4-4A5D-92F2-0613DE506BBF','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '261329'));SET IDENTITY_INSERT edfi.Parent 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'1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId)(SELECT TOP 1'1338' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10142967',NULL,'Cassie','R','Roberts',NULL,NULL,'1982-03-02',NULL,NULL,NULL,NULL,'189865','386C9450-E931-49D7-8CD0-CF6D54D43A8E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10142967'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'10142967','261329','1','1',NULL,NULL,NULL,'B208D427-7870-4BF2-B18F-B0F140EA8765','Aug 24 2021 11:47AM','Sep 18 2015 11:47AM','1338',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=261329 AND StudentUSI='10142967')); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'1827','132579',NULL,'Rory',NULL,'Becks',NULL,NULL,NULL,'7FEF4496-A394-40CA-8688-F1451815B3A0','Aug 24 2021 11:47AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '1827'));SET IDENTITY_INSERT edfi.Parent 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'1312','uri://ed-fi.org/RelationDescriptor','Father','Father','Father',NULL,NULL,NULL,'9F1AEF7A-1DFA-44BA-8586-975EA23157D3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1312'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId)(SELECT TOP 1'1312' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1312')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100133855',NULL,'Tommy','Z','Martinez',NULL,NULL,'1997-01-26','Lubbock',NULL,NULL,NULL,'232151','E984CEB9-0384-4DD3-8F17-D589E0A4BCB5','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100133855'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'100133855','1827','0','1',NULL,NULL,NULL,'8E007F1B-B057-4455-A4F6-571585A155D2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1312',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=1827 AND StudentUSI='100133855')); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'12718','133100',NULL,'Justice','K','Devore',NULL,NULL,NULL,'7B569885-87E7-42B4-94DE-DC4F24D91523','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '12718'));SET IDENTITY_INSERT edfi.Parent 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'1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId)(SELECT TOP 1'1330' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100060056',NULL,'Octavia',NULL,'Johnston',NULL,NULL,'1996-02-12',NULL,NULL,NULL,NULL,'195827','17F8130A-6D14-42E6-B367-D2296CFC7B62','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100060056'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'100060056','12718','1','1',NULL,NULL,NULL,'9949FBB6-B028-4E0C-83E5-5F2045D71549','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1330',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=12718 AND StudentUSI='100060056')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId)(SELECT TOP 1'1502' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1502')); + INSERT INTO edfi.ParentAddress(ParentUSI,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,CreateDate,DoNotPublishIndicator,AddressTypeDescriptorId,StateAbbreviationDescriptorId,CongressionalDistrict,LocaleDescriptorId)(SELECT TOP 1'12718','381 Princeton Ave',NULL,NULL,'Navarro','73383',NULL,NULL,NULL,NULL,'Aug 24 2021 11:47AM',NULL,'1502','1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12718 and AddressTypeDescriptorId=1502)); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'1852','132584',NULL,'Jordan',NULL,'Wheeler',NULL,NULL,NULL,'91DEB754-22DD-48CB-A8A5-C3F152C00180','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '1852'));SET IDENTITY_INSERT edfi.Parent OFF; + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100060058',NULL,'Bobby','K','Thompson',NULL,NULL,'1995-03-16',NULL,NULL,NULL,NULL,'195828','52080D05-26C8-4F7D-9A3A-9EA2DF73EBA9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100060058'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'100060058','1852','0','1',NULL,NULL,NULL,'532E87CC-53FE-4AED-A47C-6E9C6479ECB4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1330',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=1852 AND StudentUSI='100060058')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId)(SELECT TOP 1'1510' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1510')); + INSERT INTO edfi.ParentAddress(ParentUSI,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,CreateDate,DoNotPublishIndicator,AddressTypeDescriptorId,StateAbbreviationDescriptorId,CongressionalDistrict,LocaleDescriptorId)(SELECT TOP 1'1852','339 Running Deer Trl',NULL,NULL,'Taft','73383',NULL,NULL,NULL,NULL,'Aug 24 2021 11:47AM',NULL,'1510','1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=1852 and AddressTypeDescriptorId=1510)); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'19432','134484',NULL,'Jay',NULL,'Hodge',NULL,NULL,NULL,'9C477390-6334-435D-BA60-6449CA8FCEFE','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '19432'));SET IDENTITY_INSERT edfi.Parent OFF; + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100060073',NULL,'Hilario','L','Malacara',NULL,NULL,'1994-09-09',NULL,NULL,NULL,NULL,'195830','FC6B9AA2-906C-47A9-89D6-98CD83647541','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100060073'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'100060073','19432','1','1',NULL,NULL,NULL,'319CDEDE-8753-47E8-A0BA-DD9AFFDB4DC8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1312',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=19432 AND StudentUSI='100060073')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId)(SELECT TOP 1'1508' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1508')); + INSERT INTO edfi.ParentAddress(ParentUSI,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,CreateDate,DoNotPublishIndicator,AddressTypeDescriptorId,StateAbbreviationDescriptorId,CongressionalDistrict,LocaleDescriptorId)(SELECT TOP 1'19432','578 Cambridge Ct',NULL,NULL,'Hedwig Village','73383',NULL,NULL,NULL,NULL,'Aug 24 2021 11:47AM',NULL,'1508','1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=19432 and AddressTypeDescriptorId=1508)); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'47375','142822',NULL,'Kerry',NULL,'Clerkley',NULL,NULL,NULL,'02DE592D-1363-485E-8F38-CAA088FCAC9D','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '47375'));SET IDENTITY_INSERT edfi.Parent OFF; + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100039441',NULL,'Camille','C','Medeiros',NULL,NULL,'1993-07-05','Lubbock',NULL,NULL,NULL,'190237','C2739CC1-3A8E-491D-82DA-504732572C53','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039441'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'100039441','47375','1','1',NULL,NULL,NULL,'CAD8B833-AB6C-4E2B-A7AF-608564785AAF','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1330',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=47375 AND StudentUSI='100039441')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId)(SELECT TOP 1'1704' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + INSERT INTO edfi.ParentTelephone(ParentUSI,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate,DoNotPublishIndicator,TelephoneNumberTypeDescriptorId)(SELECT TOP 1'47375',NULL,NULL,'(756)-558-5054','Aug 24 2021 11:47AM',NULL,'1704' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=47375 and TelephoneNumberTypeDescriptorId=1704)); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'249547','162262',NULL,'Maeve',NULL,'Patterson',NULL,NULL,NULL,'5A87D711-95F8-4917-9524-1D61534A509A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '249547'));SET IDENTITY_INSERT edfi.Parent OFF; + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100036136',NULL,'Byron','V','Green',NULL,NULL,'1989-01-04',NULL,NULL,NULL,NULL,'190191','A592F4E0-9B76-4E53-919B-65AD4E941D08','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100036136'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'100036136','249547','0','1',NULL,NULL,NULL,'A9CEDBF2-AEA0-4F6B-9EAC-D4AD29BD4EEE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1338',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=249547 AND StudentUSI='100036136')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + INSERT INTO edfi.ParentElectronicMail(ParentUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'249547','maeve.patterson@tsds.org',NULL,'Aug 24 2021 11:47AM',NULL,'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=249547 and ElectronicMailTypeDescriptorId=1586)); + SET IDENTITY_INSERT edfi.Parent ON;INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT TOP 1'67352','145198',NULL,'Emerson',NULL,'Becks',NULL,NULL,NULL,'67FA5296-16D6-4FE8-B29A-636C7893102E','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '67352'));SET IDENTITY_INSERT edfi.Parent OFF; + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'464618574',NULL,'Author','O','Chavez',NULL,NULL,'1974-11-02',NULL,NULL,NULL,NULL,'237148','98D2985D-9631-4245-AF08-2A0A5D700DA7','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '464618574'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT TOP 1'464618574','67352','1','1',NULL,NULL,NULL,'6AC325E1-3656-4F65-93EC-A717C354CA86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1338',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=67352 AND StudentUSI='464618574')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + INSERT INTO edfi.ParentElectronicMail(ParentUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'67352','blakework@edfi.org',NULL,'Aug 24 2021 11:47AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=67352 and ElectronicMailTypeDescriptorId=1589)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_3/0001_ContactPersonDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_3/0001_ContactPersonDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..281d5e9b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/MSSQL/v_3_3/0001_ContactPersonDim_should_match_column_dictionary.xml @@ -0,0 +1,110 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ContactPersonDim' + ORDER BY ORDINAL_POSITION ASC; + + + UniqueKey + nvarchar + + + ContactPersonKey + nvarchar + + + StudentKey + nvarchar + + + ContactFirstName + nvarchar + + + ContactLastName + nvarchar + + + RelationshipToStudent + nvarchar + + + ContactHomeAddress + nvarchar + + + ContactPhysicalAddress + nvarchar + + + ContactMailingAddress + nvarchar + + + ContactWorkAddress + nvarchar + + + ContactTemporaryAddress + nvarchar + + + HomePhoneNumber + nvarchar + + + MobilePhoneNumber + nvarchar + + + WorkPhoneNumber + nvarchar + + + PrimaryEmailAddress + varchar + + + PersonalEmailAddress + nvarchar + + + WorkEmailAddress + nvarchar + + + IsPrimaryContact + bit + + + StudentLivesWith + bit + + + IsEmergencyContact + bit + + + ContactPriority + int + + + ContactRestrictions + nvarchar + + + LastModifiedDate + datetime2 + + + PostalCode + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/PostgreSQL/v_3_3/0000_ContactPersonDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/PostgreSQL/v_3_3/0000_ContactPersonDim_Data_Load.xml new file mode 100644 index 00000000..1c57ddf6 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/PostgreSQL/v_3_3/0000_ContactPersonDim_Data_Load.xml @@ -0,0 +1,184 @@ + + + Any + + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '775', 'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml', 'FullPrice', 'FullPrice', 'Full price', NULL, NULL, NULL, '30E76B96-C05D-4507-B8E3-707F7DBFDC7B', 'Jun 19 2015 12:17PM', 'Jun 19 2015 12:17PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '775')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) ( SELECT '686', 'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml', 'Instructional day', 'Instructional day', 'Instructional day', NULL, NULL, NULL, '4221482F-154F-4196-BB20-948B5F70AAEC', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '687', 'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml', 'Make-up day', 'Make-up day', 'Make-up day', NULL, NULL, NULL, '391A3FF9-8DA0-44A8-8D26-0C2CD987B352', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '545', 'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml', 'Excused Absence', 'Excused Absence', 'Excused Absence', NULL, NULL, NULL, '5146D87C-DE6F-4870-9EEE-AD6890F7A722', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '544', 'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml', 'Unexcused Absence', 'Unexcused Absence', 'Unexcused Absence', NULL, NULL, NULL, '711C0C86-268F-4C42-BC44-B6FBEBF35DAB', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '547', 'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml', 'Tardy', 'Tardy', 'Tardy', NULL, NULL, NULL, '1B39771B-A743-4B06-B5BE-77795E4CA0DB', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1500', 'uri://ed-fi.org/AddressTypeDescriptor', 'Home', 'Home', 'Home', NULL, NULL, NULL, 'AB364693-35E1-49A6-A6C0-FF51FAA372F7', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1500' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1505', 'uri://ed-fi.org/AddressTypeDescriptor', 'Physical', 'Physical', 'Physical', NULL, NULL, NULL, 'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1505' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1505')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1502', 'uri://ed-fi.org/AddressTypeDescriptor', 'Mailing', 'Mailing', 'Mailing', NULL, NULL, NULL, '93E71ED1-83A8-4FAF-8039-D1FD5F846964', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1502' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1502')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1510', 'uri://ed-fi.org/AddressTypeDescriptor', 'Work', 'Work', 'Work', NULL, NULL, NULL, '10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1510' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1510')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1508', 'uri://ed-fi.org/AddressTypeDescriptor', 'Temporary', 'Temporary', 'Temporary', NULL, NULL, NULL, '91B50747-86AF-435C-96F4-4F6AA3D8A52A', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1508' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1508')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1700', 'uri://ed-fi.org/TelephoneNumberTypeDescriptor', 'Home', 'Home', 'Home', NULL, NULL, NULL, '8180EBEE-DFA6-4138-8114-E9C14B4E6907', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor( TelephoneNumberTypeDescriptorId) (SELECT '1700' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1701', 'uri://ed-fi.org/TelephoneNumberTypeDescriptor', 'Mobile', 'Mobile', 'Mobile', NULL, NULL, NULL, 'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor( TelephoneNumberTypeDescriptorId) (SELECT '1701' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1704', 'uri://ed-fi.org/TelephoneNumberTypeDescriptor', 'Work', 'Work', 'Work', NULL, NULL, NULL, '63B0B009-CF63-4D39-9A8E-4B5997CD8A00', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor( TelephoneNumberTypeDescriptorId) (SELECT '1704' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1586', 'uri://ed-fi.org/ElectronicMailTypeDescriptor', 'Home/Personal', 'Home/Personal', 'Home/Personal', NULL, NULL, NULL, '55C70BD5-D46A-4798-AE8D-D2989DA9DB0F', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + + INSERT INTO edfi.ElectronicMailTypeDescriptor( ElectronicMailTypeDescriptorId) (SELECT '1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1589', 'uri://ed-fi.org/ElectronicMailTypeDescriptor', 'Work', 'Work', 'Work', NULL, NULL, NULL, '2E66FEA2-2FF6-49CE-84FD-1CD56141F621', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + + INSERT INTO edfi.ElectronicMailTypeDescriptor( ElectronicMailTypeDescriptorId) (SELECT '1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT '1070', '132500', NULL, 'Reilly', NULL, 'Patterson', NULL, NULL, NULL, NULL, '5CF5C93A-728E-44F3-856D-5FF54F80B4E2', 'Sep 01 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI = 1070)); + + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1451', 'uri://ed-fi.org/StateAbbreviationDescriptor', 'TX', 'TX', 'TX', NULL, NULL, NULL, '67A24BD2-B27E-42A1-A508-2D45B49C6617', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + + INSERT INTO edfi.StateAbbreviationDescriptor( StateAbbreviationDescriptorId) (SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId, PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '1070', '1500', '527 Garland No 1 Rd', NULL, NULL, 'Richardson', '1451', '75270', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Aug 24 2021 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=1070 AND AddressTypeDescriptorId=1500)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT '1070', '1704', NULL, NULL, '(989)-738-3918', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=1070 AND TelephoneNumberTypeDescriptorId=1704)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT '1070', '1700', NULL, NULL, '(989)-738-3918', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=1070 AND TelephoneNumberTypeDescriptorId=1700)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT '1070', '1586', 'reilly.patterson@tsds.org', NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=1070 and ElectronicMailTypeDescriptorId=1586)); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1338', 'uri://ed-fi.org/RelationDescriptor', 'Other', 'Other', 'Other', NULL, NULL, NULL, '87AAE713-C729-4932-8D72-0129A63B3A63', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT '1338' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1396', 'uri://ed-fi.org/SexDescriptor', 'Male', 'Male', 'Male', NULL, NULL, NULL, '64E51D5B-8249-45FE-8B6D-4347F525B2FB', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor( SexDescriptorId) (SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId,DateEnteredUS, MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,Discriminator) (SELECT '10107541', NULL, 'Shawn', 'U', 'Butler', NULL, NULL, '1396', '1973-03-12', NULL, NULL, NULL, NULL, NULL, NULL, '189856', '12AB9310-0E03-4BC9-84EE-9877734E833B', 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', NULL, NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '10107541')); + + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT '10107541', '1070', '1338', NULL, NULL, NULL, NULL, NULL, 'B2477D48-17C1-40CD-934F-AC00940C15CE', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=10107541 AND ParentUSI=1070)); + + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT '180250', '156809', NULL, 'Zane', NULL, 'Rodas', NULL, NULL, NULL, NULL, 'A11E38B0-57DF-4C92-A245-33440932D40E', 'Nov 19 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI=180250)); + + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '180250', '1500', '644 Old Sandtown Rd', NULL, NULL, 'Florence', '1451', '77550', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=180250 AND AddressTypeDescriptorId=1500)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT '180250', '1700', NULL, NULL, '(656)-780-6979', 'Aug 24 2021 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=180250 AND TelephoneNumberTypeDescriptorId=1700)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT '180250', '1589', 'kelliework@edfi.org', true, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=180250 and ElectronicMailTypeDescriptorId=1589)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT '180250', '1586', 'kelliehome@edfi.org', Null, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=180250 and ElectronicMailTypeDescriptorId=1586)); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1312', 'uri://ed-fi.org/RelationDescriptor', 'Father', 'Father', 'Father', NULL, NULL, NULL, '9F1AEF7A-1DFA-44BA-8586-975EA23157D3', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1312')); + + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT '1312' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1312')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1167', 'uri://ed-fi.org/OldEthnicityDescriptor', 'White, Not Of Hispanic Origin', 'White, Not Of Hispanic Origin', 'White, Not Of Hispanic Origin', NULL, NULL, NULL, '1882389F-FE1E-40ED-8670-5E3C6DEA4607', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1167')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1395', 'uri://ed-fi.org/SexDescriptor', 'Female', 'Female', 'Female', NULL, NULL, NULL, 'D047F035-5000-456B-A279-6AF1BD20EB6D', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor( SexDescriptorId) (SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity, BirthStateAbbreviationDescriptorId,BirthInternationalProvince,BirthCountryDescriptorId,DateEnteredUS,MultipleBirthStatus, BirthSexDescriptorId,CitizenshipStatusDescriptorId,StudentUniqueId,Discriminator,CreateDate,LastModifiedDate,Id) (SELECT '100133749', NULL, 'Amy', 'U', 'Medeiros', NULL, NULL, '2004-05-10', 'Lubbock', '1451', NULL, NULL, NULL, NULL, '1395', NULL, '231203', NULL, 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', 'C154CC17-F9FE-495C-A75E-BFCEA5B2106F' WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '100133749')); + + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT '100133749', '180250', '1312', '1', '1', NULL, NULL, NULL, 'E08B0512-061E-4030-B4FD-AA01DAACE286', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=100133749 AND ParentUSI=180250)); + + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT '150964', '154283', NULL, 'Phoenix', NULL, 'Carrasco', NULL, NULL, NULL, NULL, '6485C04F-DDB5-471C-9289-70F317DCA69F', 'Nov 19 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI=150964)); + + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT '150964', '1701', NULL, NULL, '(847)-813-4119', 'Aug 24 2021 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=150964 AND TelephoneNumberTypeDescriptorId=1701)); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1166', 'uri://ed-fi.org/OldEthnicityDescriptor', 'Hispanic', 'Hispanic', 'Hispanic', NULL, NULL, NULL, '3F337FB4-C428-4B2B-9281-8158BA97B9F0', 'Jun 19 2015 11:41AM', 'Jun 19 2015 11:41AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.RelationDescriptor( RelationDescriptorId) (SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1166')); + + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity, BirthStateAbbreviationDescriptorId,BirthInternationalProvince,BirthCountryDescriptorId,DateEnteredUS,MultipleBirthStatus, BirthSexDescriptorId,CitizenshipStatusDescriptorId,StudentUniqueId,Discriminator,CreateDate,LastModifiedDate,Id) (SELECT '10139395', NULL, 'Stacey', 'R', 'Williams', NULL, NULL, '1982-03-03', NULL, NULL, NULL, NULL, NULL, NULL, '1395', NULL, '189864', NULL, 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', 'A08804F4-CC5D-424C-89B0-9FEBA7BE214E' WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '10139395')); + + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT '10139395', '150964', '1338', '0', '0', NULL, NULL, NULL, 'B28D5D6D-8EAF-4EAE-B262-33882FE8F1C7', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=10139395 AND ParentUSI=150964)); + + INSERT INTO edfi.Parent( ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexDescriptorId,LoginId,Id,LastModifiedDate,CreateDate) (SELECT '12102', '133012', NULL, 'Kylie', NULL, 'Woody', NULL, NULL, NULL, NULL, '2780C3CC-CA38-4904-A6FF-4B4CDBA54D67', 'Nov 19 2015 4:09PM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Parent WHERE ParentUSI=12102)); + + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '12102', '1500', '640 Brown Farm Rd', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1500)); + INSERT INTO edfi.ParentTelephone( ParentUSI,TelephoneNumberTypeDescriptorId,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate) (SELECT '12102', '1704', NULL, NULL, '(473)-574-8251', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=12102 AND TelephoneNumberTypeDescriptorId=1704)); + INSERT INTO edfi.ParentElectronicMail( ParentUSI,ElectronicMailTypeDescriptorId,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate) (SELECT '12102', '1586', 'kylie.woody@tsds.org', NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=12102 and ElectronicMailTypeDescriptorId=1586)); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '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')); + + + INSERT INTO edfi.Student( StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity, BirthStateAbbreviationDescriptorId,BirthInternationalProvince,BirthCountryDescriptorId,DateEnteredUS,MultipleBirthStatus, BirthSexDescriptorId,CitizenshipStatusDescriptorId,StudentUniqueId,Discriminator,CreateDate,LastModifiedDate,Id) (SELECT '100034835', NULL, 'Evelyn', 'R', 'Jackson', NULL, NULL, '1992-04-18', NULL, NULL, NULL, NULL, NULL, NULL, '1395', NULL, '190142', NULL, 'Nov 19 2015 4:14PM', 'Sep 18 2015 11:34AM', '35BFA799-31E9-46E1-8721-2310C05155D5' WHERE NOT EXISTS( SELECT 1 FROM edfi.Student WHERE StudentUSI= '100034835')); + + INSERT INTO edfi.StudentParentAssociation( StudentUSI,ParentUSI,RelationDescriptorId,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate) (SELECT '100034835', '12102', '1338', '1', '1', NULL, NULL, NULL, '284B3BDE-C3E4-4D02-8330-4584A693916E', 'Sep 18 2015 11:47AM', 'Sep 18 2015 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.StudentParentAssociation WHERE StudentUSI=100034835 AND ParentUSI=12102)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '12102', '1505', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Aug 24 2021 11:47AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1505)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '12102', '1502', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1502)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '12102', '1510', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1510)); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '12102', '1508', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12102 AND AddressTypeDescriptorId=1508)); + UPDATE edfi.ParentElectronicMail set PrimaryEmailAddressIndicator=true WHERE ParentUSI=12102; + UPDATE edfi.StudentParentAssociation SET ContactRestrictions = 'Contact only on business days' WHERE ParentUSI=12102 ; + INSERT INTO edfi.ParentAddress ( ParentUSI, AddressTypeDescriptorId, StreetNumberName, ApartmentRoomSuiteNumber, BuildingSiteNumber, City, StateAbbreviationDescriptorId, PostalCode, NameOfCounty, CountyFIPSCode, Latitude, Longitude, DoNotPublishIndicator, CongressionalDistrict, LocaleDescriptorId, CreateDate ) ( SELECT '180250', '1510', '677 Green Farm Rd', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI = 180250 AND AddressTypeDescriptorId = 1510 ) ); + INSERT INTO edfi.ParentAddress( ParentUSI,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode,NameOfCounty, CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '12102', '1510', '79 Yellow St', NULL, NULL, 'Trent', '1451', '72312', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=180250 AND AddressTypeDescriptorId=1510)); + INSERT INTO edfi.ParentAddressPeriod ( AddressTypeDescriptorId, BeginDate, City, ParentUSI, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, EndDate, CreateDate ) ( SELECT '1510', '2010-01-06', 'Trent', '180250', '72312', '1451', '677 Green Farm Rd', '2010-01-06', '2019-12-06 11:58:57.1700000' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ParentAddressPeriod WHERE AddressTypeDescriptorId = 1510 AND BeginDate = '2010-01-06' AND ParentUSI = 180250 ) ); + + --Last Modified date + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '261329','163235',NULL,'Zion',NULL,'Waldron',NULL,NULL,NULL,'08B6FF70-EAA4-4A5D-92F2-0613DE506BBF','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '261329')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId)(SELECT '1338' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '10142967',NULL,'Cassie','R','Roberts',NULL,NULL,'1982-03-02',NULL,NULL,NULL,NULL,'189865','386C9450-E931-49D7-8CD0-CF6D54D43A8E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10142967')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '10142967','261329','1','1',NULL,NULL,NULL,'B208D427-7870-4BF2-B18F-B0F140EA8765','Aug 24 2021 11:47AM','Sep 18 2015 11:47AM','1338',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=261329 AND StudentUSI='10142967')); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '1827','132579',NULL,'Rory',NULL,'Becks',NULL,NULL,NULL,'7FEF4496-A394-40CA-8688-F1451815B3A0','Aug 24 2021 11:47AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '1827')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1312','uri://ed-fi.org/RelationDescriptor','Father','Father','Father',NULL,NULL,NULL,'9F1AEF7A-1DFA-44BA-8586-975EA23157D3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1312')); + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId)(SELECT '1312' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1312')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100133855',NULL,'Tommy','Z','Martinez',NULL,NULL,'1997-01-26','Lubbock',NULL,NULL,NULL,'232151','E984CEB9-0384-4DD3-8F17-D589E0A4BCB5','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100133855')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '100133855','1827','0','1',NULL,NULL,NULL,'8E007F1B-B057-4455-A4F6-571585A155D2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1312',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=1827 AND StudentUSI='100133855')); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '12718','133100',NULL,'Justice','K','Devore',NULL,NULL,NULL,'7B569885-87E7-42B4-94DE-DC4F24D91523','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '12718')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330')); + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId)(SELECT '1330' WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100060056',NULL,'Octavia',NULL,'Johnston',NULL,NULL,'1996-02-12',NULL,NULL,NULL,NULL,'195827','17F8130A-6D14-42E6-B367-D2296CFC7B62','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100060056')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '100060056','12718','1','1',NULL,NULL,NULL,'9949FBB6-B028-4E0C-83E5-5F2045D71549','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1330',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=12718 AND StudentUSI='100060056')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId)(SELECT '1502' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1502')); + INSERT INTO edfi.ParentAddress(ParentUSI,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,CreateDate,DoNotPublishIndicator,AddressTypeDescriptorId,StateAbbreviationDescriptorId,CongressionalDistrict,LocaleDescriptorId)(SELECT '12718','381 Princeton Ave',NULL,NULL,'Navarro','73383',NULL,NULL,NULL,NULL,'Aug 24 2021 11:47AM',NULL,'1502','1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=12718 and AddressTypeDescriptorId=1502)); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '1852','132584',NULL,'Jordan',NULL,'Wheeler',NULL,NULL,NULL,'91DEB754-22DD-48CB-A8A5-C3F152C00180','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '1852')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100060058',NULL,'Bobby','K','Thompson',NULL,NULL,'1995-03-16',NULL,NULL,NULL,NULL,'195828','52080D05-26C8-4F7D-9A3A-9EA2DF73EBA9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100060058')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '100060058','1852','0','1',NULL,NULL,NULL,'532E87CC-53FE-4AED-A47C-6E9C6479ECB4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1330',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=1852 AND StudentUSI='100060058')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId)(SELECT '1510' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1510')); + INSERT INTO edfi.ParentAddress(ParentUSI,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,CreateDate,DoNotPublishIndicator,AddressTypeDescriptorId,StateAbbreviationDescriptorId,CongressionalDistrict,LocaleDescriptorId)(SELECT '1852','339 Running Deer Trl',NULL,NULL,'Taft','73383',NULL,NULL,NULL,NULL,'Aug 24 2021 11:47AM',NULL,'1510','1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=1852 and AddressTypeDescriptorId=1510)); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '19432','134484',NULL,'Jay',NULL,'Hodge',NULL,NULL,NULL,'9C477390-6334-435D-BA60-6449CA8FCEFE','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '19432')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100060073',NULL,'Hilario','L','Malacara',NULL,NULL,'1994-09-09',NULL,NULL,NULL,NULL,'195830','FC6B9AA2-906C-47A9-89D6-98CD83647541','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100060073')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '100060073','19432','1','1',NULL,NULL,NULL,'319CDEDE-8753-47E8-A0BA-DD9AFFDB4DC8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1312',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=19432 AND StudentUSI='100060073')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId)(SELECT '1508' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1508')); + INSERT INTO edfi.ParentAddress(ParentUSI,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,PostalCode,NameOfCounty,CountyFIPSCode,Latitude,Longitude,CreateDate,DoNotPublishIndicator,AddressTypeDescriptorId,StateAbbreviationDescriptorId,CongressionalDistrict,LocaleDescriptorId)(SELECT '19432','578 Cambridge Ct',NULL,NULL,'Hedwig Village','73383',NULL,NULL,NULL,NULL,'Aug 24 2021 11:47AM',NULL,'1508','1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentAddress WHERE ParentUSI=19432 and AddressTypeDescriptorId=1508)); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '47375','142822',NULL,'Kerry',NULL,'Clerkley',NULL,NULL,NULL,'02DE592D-1363-485E-8F38-CAA088FCAC9D','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '47375')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100039441',NULL,'Camille','C','Medeiros',NULL,NULL,'1993-07-05','Lubbock',NULL,NULL,NULL,'190237','C2739CC1-3A8E-491D-82DA-504732572C53','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039441')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '100039441','47375','1','1',NULL,NULL,NULL,'CAD8B833-AB6C-4E2B-A7AF-608564785AAF','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1330',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=47375 AND StudentUSI='100039441')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId)(SELECT '1704' WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + INSERT INTO edfi.ParentTelephone(ParentUSI,OrderOfPriority,TextMessageCapabilityIndicator,TelephoneNumber,CreateDate,DoNotPublishIndicator,TelephoneNumberTypeDescriptorId)(SELECT '47375',NULL,NULL,'(756)-558-5054','Aug 24 2021 11:47AM',NULL,'1704' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentTelephone WHERE ParentUSI=47375 and TelephoneNumberTypeDescriptorId=1704)); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '249547','162262',NULL,'Maeve',NULL,'Patterson',NULL,NULL,NULL,'5A87D711-95F8-4917-9524-1D61534A509A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '249547')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100036136',NULL,'Byron','V','Green',NULL,NULL,'1989-01-04',NULL,NULL,NULL,NULL,'190191','A592F4E0-9B76-4E53-919B-65AD4E941D08','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100036136')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '100036136','249547','0','1',NULL,NULL,NULL,'A9CEDBF2-AEA0-4F6B-9EAC-D4AD29BD4EEE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1338',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=249547 AND StudentUSI='100036136')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT '1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + INSERT INTO edfi.ParentElectronicMail(ParentUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '249547','maeve.patterson@tsds.org',NULL,'Aug 24 2021 11:47AM',NULL,'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=249547 and ElectronicMailTypeDescriptorId=1586)); + INSERT INTO edfi.Parent(ParentUSI,ParentUniqueId,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,LoginId,Id,LastModifiedDate,CreateDate,SexDescriptorId,Discriminator)(SELECT '67352','145198',NULL,'Emerson',NULL,'Becks',NULL,NULL,NULL,'67FA5296-16D6-4FE8-B29A-636C7893102E','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Parent WHERE ParentUSI= '67352')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '464618574',NULL,'Author','O','Chavez',NULL,NULL,'1974-11-02',NULL,NULL,NULL,NULL,'237148','98D2985D-9631-4245-AF08-2A0A5D700DA7','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '464618574')); + INSERT INTO edfi.StudentParentAssociation(StudentUSI,ParentUSI,PrimaryContactStatus,LivesWith,EmergencyContactStatus,ContactPriority,ContactRestrictions,Id,LastModifiedDate,CreateDate,RelationDescriptorId,Discriminator)(SELECT '464618574','67352','1','1',NULL,NULL,NULL,'6AC325E1-3656-4F65-93EC-A717C354CA86','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1338',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParentAssociation WHERE ParentUSI=67352 AND StudentUSI='464618574')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT '1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + INSERT INTO edfi.ParentElectronicMail(ParentUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '67352','blakework@edfi.org',NULL,'Aug 24 2021 11:47AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ParentElectronicMail WHERE ParentUSI=67352 and ElectronicMailTypeDescriptorId=1589)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/PostgreSQL/v_3_3/0001_ContactPersonDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/PostgreSQL/v_3_3/0001_ContactPersonDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..ff3c0ef6 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/ContactPersonDim/PostgreSQL/v_3_3/0001_ContactPersonDim_should_match_column_dictionary.xml @@ -0,0 +1,110 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'contactpersondim' + ORDER BY ORDINAL_POSITION ASC; + + + uniquekey + text + + + contactpersonkey + character varying + + + studentkey + character varying + + + contactfirstname + character varying + + + contactlastname + character varying + + + relationshiptostudent + character varying + + + contacthomeaddress + text + + + contactphysicaladdress + text + + + contactmailingaddress + text + + + contactworkaddress + text + + + contacttemporaryaddress + text + + + homephonenumber + character varying + + + mobilephonenumber + character varying + + + workphonenumber + character varying + + + primaryemailaddress + text + + + personalemailaddress + character varying + + + workemailaddress + character varying + + + isprimarycontact + boolean + + + studentliveswith + boolean + + + isemergencycontact + boolean + + + contactpriority + integer + + + contactrestrictions + character varying + + + lastmodifieddate + timestamp without time zone + + + postalcode + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_2/0000_DateDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_2/0000_DateDim_Data_Load.xml new file mode 100644 index 00000000..40923b98 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_2/0000_DateDim_Data_Load.xml @@ -0,0 +1,320 @@ + + + Any + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 '686', 'uri://ed-fi.org/CalendarEventDescriptor', 'Instructional day', 'Instructional day', + 'Instructional day', NULL, NULL, NULL, '4221482F-154F-4196-BB20-948B5F70AAEC', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 686) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.CalendarEventDescriptor (CalendarEventDescriptorId) + ( + SELECT TOP 1 '686' WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate, OperationalStatusDescriptorId) + ( + SELECT TOP 1 '628530', 'Lander ISD', NULL, NULL, '13CC7674-8E27-443F-88B8-F8FDDD4601F1', + 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate,OperationalStatusDescriptorId) + ( + SELECT TOP 1 + '628530001', 'Lander Middle', NULL, NULL, '4E368F85-6A25-42F3-8D61-D972C421AC58', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530001) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate,OperationalStatusDescriptorId) + ( + SELECT TOP 1 + '152950', 'ESC Region 17', NULL, NULL, '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + 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) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 '1086', 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', 'Independent', 'Independent', + 'Independent', NULL, NULL, NULL, '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT TOP 1 1086 + WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) + ); + + 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) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 '1695', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular', 'Regular', + 'Regular', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) + ( + SELECT TOP 1 1695 + WHERE NOT EXISTS (SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695) + ); + + 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) + ); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT TOP 1 + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '2019','2018-2019','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= '2019')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'628530001_2019','628530001','2019','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-03-05', 'E8FD8E9C-E66D-40BD-B4F2-D64C156E0FF7', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-03-05') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-05-28', '44B2F7D5-9F11-4AB4-AB57-9CB436C607B1', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-05-28') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-07-12', 'B565A929-317A-4405-8DF1-C279A53B955B', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-07-12') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-12-20', '4D9073A6-10AF-4D0A-AC63-ADCB8E71592C', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-12-20') + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-03-05', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-03-05' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-05-28', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-05-28' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-07-12', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-07-12' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-12-20', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-12-20' AND CalendarEventDescriptorId = 686) + ); + + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-01-01','7B7397E5-7E58-4CB6-9FD8-59526F15E299','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-01-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-03-31','205D18AC-BCC8-4120-882A-972CA8E72F65','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-03-31' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-04-01','E5FC11A4-FE35-42E4-9DCC-92785286B103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-04-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-06-30','A69712E8-7C6A-42E4-BDCE-5ECD1E820ED6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-06-30' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-07-01','6DAC368F-B888-46F5-9090-4691A7F3A1D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-07-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-09-30','AA40BB46-B8D4-43BD-B975-16EC387D0D33','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-09-30' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-10-01','08F7807C-0055-4F75-BC62-14D1CACB21B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-10-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-12-31','3916ECF6-3CB3-412B-9D95-C24FF8769A24','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-12-31' )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-01-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-01-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-03-31','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-03-31' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-04-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-04-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-06-30','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-04-30' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-07-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-07-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-09-30','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-09-30' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-10-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-10-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-12-31','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-12-31' AND CalendarEventDescriptorId=686 )); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..90aca946 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json @@ -0,0 +1,42 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'DateDim' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "DateKey", + "DataType": "varchar" + }, + { + "ColumnName": "Date", + "DataType": "datetime" + }, + { + "ColumnName": "Day", + "DataType": "int" + }, + { + "ColumnName": "Month", + "DataType": "int" + }, + { + "ColumnName": "MonthName", + "DataType": "nvarchar" + }, + { + "ColumnName": "CalendarQuarter", + "DataType": "int" + }, + { + "ColumnName": "CalendarQuarterName", + "DataType": "varchar" + }, + { + "ColumnName": "CalendarYear", + "DataType": "int" + }, + { + "ColumnName": "SchoolYear", + "DataType": "varchar" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_3/0000_DateDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_3/0000_DateDim_Data_Load.xml new file mode 100644 index 00000000..40923b98 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_3/0000_DateDim_Data_Load.xml @@ -0,0 +1,320 @@ + + + Any + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 '686', 'uri://ed-fi.org/CalendarEventDescriptor', 'Instructional day', 'Instructional day', + 'Instructional day', NULL, NULL, NULL, '4221482F-154F-4196-BB20-948B5F70AAEC', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 686) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.CalendarEventDescriptor (CalendarEventDescriptorId) + ( + SELECT TOP 1 '686' WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate, OperationalStatusDescriptorId) + ( + SELECT TOP 1 '628530', 'Lander ISD', NULL, NULL, '13CC7674-8E27-443F-88B8-F8FDDD4601F1', + 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate,OperationalStatusDescriptorId) + ( + SELECT TOP 1 + '628530001', 'Lander Middle', NULL, NULL, '4E368F85-6A25-42F3-8D61-D972C421AC58', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530001) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate,OperationalStatusDescriptorId) + ( + SELECT TOP 1 + '152950', 'ESC Region 17', NULL, NULL, '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + 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) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 '1086', 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', 'Independent', 'Independent', + 'Independent', NULL, NULL, NULL, '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT TOP 1 1086 + WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) + ); + + 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) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 '1695', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular', 'Regular', + 'Regular', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) + ( + SELECT TOP 1 1695 + WHERE NOT EXISTS (SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695) + ); + + 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) + ); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT TOP 1 + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '2019','2018-2019','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= '2019')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'628530001_2019','628530001','2019','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-03-05', 'E8FD8E9C-E66D-40BD-B4F2-D64C156E0FF7', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-03-05') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-05-28', '44B2F7D5-9F11-4AB4-AB57-9CB436C607B1', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-05-28') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-07-12', 'B565A929-317A-4405-8DF1-C279A53B955B', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-07-12') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-12-20', '4D9073A6-10AF-4D0A-AC63-ADCB8E71592C', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-12-20') + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-03-05', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-03-05' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-05-28', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-05-28' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-07-12', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-07-12' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT TOP 1 + '628530001', '2019-12-20', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-12-20' AND CalendarEventDescriptorId = 686) + ); + + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-01-01','7B7397E5-7E58-4CB6-9FD8-59526F15E299','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-01-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-03-31','205D18AC-BCC8-4120-882A-972CA8E72F65','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-03-31' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-04-01','E5FC11A4-FE35-42E4-9DCC-92785286B103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-04-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-06-30','A69712E8-7C6A-42E4-BDCE-5ECD1E820ED6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-06-30' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-07-01','6DAC368F-B888-46F5-9090-4691A7F3A1D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-07-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-09-30','AA40BB46-B8D4-43BD-B975-16EC387D0D33','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-09-30' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-10-01','08F7807C-0055-4F75-BC62-14D1CACB21B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-10-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-12-31','3916ECF6-3CB3-412B-9D95-C24FF8769A24','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-12-31' )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-01-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-01-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-03-31','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-03-31' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-04-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-04-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-06-30','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-04-30' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-07-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-07-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-09-30','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-09-30' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-10-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-10-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT TOP 1 + '628530001','2019-12-31','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-12-31' AND CalendarEventDescriptorId=686 )); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..90aca946 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,42 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'DateDim' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "DateKey", + "DataType": "varchar" + }, + { + "ColumnName": "Date", + "DataType": "datetime" + }, + { + "ColumnName": "Day", + "DataType": "int" + }, + { + "ColumnName": "Month", + "DataType": "int" + }, + { + "ColumnName": "MonthName", + "DataType": "nvarchar" + }, + { + "ColumnName": "CalendarQuarter", + "DataType": "int" + }, + { + "ColumnName": "CalendarQuarterName", + "DataType": "varchar" + }, + { + "ColumnName": "CalendarYear", + "DataType": "int" + }, + { + "ColumnName": "SchoolYear", + "DataType": "varchar" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/PostgreSQL/v_3_3/0000_DateDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/PostgreSQL/v_3_3/0000_DateDim_Data_Load.xml new file mode 100644 index 00000000..b9075d01 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/PostgreSQL/v_3_3/0000_DateDim_Data_Load.xml @@ -0,0 +1,312 @@ + + + Any + + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT '686', 'uri://ed-fi.org/CalendarEventDescriptor', 'Instructional day', 'Instructional day', + 'Instructional day', NULL, NULL, NULL, '4221482F-154F-4196-BB20-948B5F70AAEC', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 686) + ); + + INSERT INTO edfi.CalendarEventDescriptor (CalendarEventDescriptorId) + ( + SELECT '686' WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate, OperationalStatusDescriptorId) + ( + SELECT '628530', 'Lander ISD', NULL, NULL, '13CC7674-8E27-443F-88B8-F8FDDD4601F1', + 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate,OperationalStatusDescriptorId) + ( + SELECT + '628530001', 'Lander Middle', NULL, NULL, '4E368F85-6A25-42F3-8D61-D972C421AC58', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530001) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId, NameOfInstitution, ShortNameOfInstitution, WebSite, Id, LastModifiedDate, CreateDate,OperationalStatusDescriptorId) + ( + SELECT + '152950', 'ESC Region 17', NULL, NULL, '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', NULL + WHERE NOT EXISTS (SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 152950) + ); + + INSERT INTO edfi.EducationServiceCenter + (EducationServiceCenterId, StateEducationAgencyId) + ( + SELECT '152950', NULL + WHERE NOT EXISTS (SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId = 152950) + ); + + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT '1086', 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', 'Independent', 'Independent', + 'Independent', NULL, NULL, NULL, '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086) + ); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT 1086 + WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) + ); + + 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.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT '1695', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular', 'Regular', + 'Regular', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) + ); + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) + ( + SELECT 1695 + WHERE NOT EXISTS (SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695) + ); + + 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.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '2019','2018-2019','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= '2019')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '628530001_2019','628530001','2019','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-03-05', 'E8FD8E9C-E66D-40BD-B4F2-D64C156E0FF7', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-03-05') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-05-28', '44B2F7D5-9F11-4AB4-AB57-9CB436C607B1', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-05-28') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-07-12', 'B565A929-317A-4405-8DF1-C279A53B955B', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-07-12') + ); + + INSERT INTO edfi.CalendarDate + (SchoolId, Date, Id, LastModifiedDate, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-12-20', '4D9073A6-10AF-4D0A-AC63-ADCB8E71592C', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM', '628530001_2019', 2019 + WHERE NOT EXISTS (SELECT 1 FROM edfi.CalendarDate WHERE SchoolId = 628530001 AND Date = '2019-12-20') + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-03-05', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-03-05' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-05-28', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-05-28' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-07-12', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-07-12' AND CalendarEventDescriptorId = 686) + ); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId, Date, CalendarEventDescriptorId, CreateDate, CalendarCode, SchoolYear) + ( + SELECT + '628530001', '2019-12-20', '686', 'Oct 25 2019 11:59AM', '628530001_2019', 2019 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 628530001 AND Date = '2019-12-20' AND CalendarEventDescriptorId = 686) + ); + + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-01-01','7B7397E5-7E58-4CB6-9FD8-59526F15E299','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-01-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-03-31','205D18AC-BCC8-4120-882A-972CA8E72F65','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-03-31' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-04-01','E5FC11A4-FE35-42E4-9DCC-92785286B103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-04-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-06-30','A69712E8-7C6A-42E4-BDCE-5ECD1E820ED6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-06-30' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-07-01','6DAC368F-B888-46F5-9090-4691A7F3A1D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-07-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-09-30','AA40BB46-B8D4-43BD-B975-16EC387D0D33','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-09-30' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-10-01','08F7807C-0055-4F75-BC62-14D1CACB21B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-10-01' )); + + INSERT INTO edfi.CalendarDate + (SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-12-31','3916ECF6-3CB3-412B-9D95-C24FF8769A24','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','628530001_2019',2019 + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE SchoolId=628530001 AND Date= '2019-12-31' )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-01-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-01-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-03-31','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-03-31' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-04-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-04-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-06-30','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-04-30' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-07-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-07-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-09-30','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-09-30' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-10-01','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-10-01' AND CalendarEventDescriptorId=686 )); + + INSERT INTO edfi.CalendarDateCalendarEvent + (SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear) + ( + SELECT + '628530001','2019-12-31','686','Oct 25 2019 11:59AM','628530001_2019',2019 + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId=628530001 AND Date='2019-12-31' AND CalendarEventDescriptorId=686 )); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..644837da --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DateDim/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,42 @@ +{ + "DBMS": "Any", + "Query": "SELECT column_name AS columnname, udt_name AS datatype FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'datedim';", + "Result": [ + { + "ColumnName": "datekey", + "DataType": "text" + }, + { + "ColumnName": "date", + "DataType": "date" + }, + { + "ColumnName": "day", + "DataType": "float8" + }, + { + "ColumnName": "month", + "DataType": "float8" + }, + { + "ColumnName": "monthname", + "DataType": "text" + }, + { + "ColumnName": "calendarquarter", + "DataType": "int4" + }, + { + "ColumnName": "calendarquartername", + "DataType": "text" + }, + { + "ColumnName": "calendaryear", + "DataType": "float8" + }, + { + "ColumnName": "schoolyear", + "DataType": "varchar" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/0000_descriptormap_case_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/0000_descriptormap_case_Data_Load.xml new file mode 100644 index 00000000..642a7d88 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/0000_descriptormap_case_Data_Load.xml @@ -0,0 +1,109 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1500)); + 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'1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1505)); + 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'1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1502)); + 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'1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1510)); + 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'1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1508)); + 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'1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1700)); + 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'1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1701)); + 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'1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1704)); + 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'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1586)); + 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'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1589)); + 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'1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1601)); + 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'2897','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Breakfast','Full Price Breakfast','Full Price Breakfast',NULL,NULL,NULL,'BB3C4646-5530-4697-868C-8BE8A276322D','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2897)); + 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'2898','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Lunch','Full Price Lunch','Full Price Lunch',NULL,NULL,NULL,'19924A0D-3C74-4559-8A76-6048CB359C03','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2898)); + 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'2899','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Milk','Full Price Milk','Full Price Milk',NULL,NULL,NULL,'815BB430-A851-406A-B5A1-E0409F62937E','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2899)); + 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'2900','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Snack','Full Price Snack','Full Price Snack',NULL,NULL,NULL,'2724224A-71C9-4E9A-98FD-E80EAEC84F25','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2900)); + 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'2901','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Supper','Full Price Supper','Full Price Supper',NULL,NULL,NULL,'A3DBA44F-90E1-423B-BF24-587FEB388273','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2901)); + 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'544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=544)); + 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'545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=545)); + 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'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=547)); + 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=686)); + 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'687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=687)); + 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'2242','uri://ed-fi.org/StudentCharacteristicDescriptor','Economic Disadvantaged','Economic Disadvantaged','Economic Disadvantaged',NULL,NULL,NULL,'46732164-BB89-422A-90E0-E32DAF961743','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2242)); + 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'156','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=156)); + 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'158','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'6CDD69AC-577F-48A1-9D61-B258601FE7DA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=158)); + 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'157','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=157)); + 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'160','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=160)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/0000_typemap_case_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/0000_typemap_case_Data_Load.xml new file mode 100644 index 00000000..b84051f4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/0000_typemap_case_Data_Load.xml @@ -0,0 +1,5 @@ + + + Any + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/descriptormap_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/descriptormap_should_match_column_dictionary.xml new file mode 100644 index 00000000..d43179ed --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/descriptormap_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'DescriptorMap' + ORDER BY ORDINAL_POSITION ASC; + + + DescriptorConstantId + int + + + DescriptorId + int + + + CreateDate + datetime + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/descriptormap_should_return_have_records.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/descriptormap_should_return_have_records.xml new file mode 100644 index 00000000..38d2f203 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/descriptormap_should_return_have_records.xml @@ -0,0 +1,13 @@ + + + Any + + + + SELECT TOP 1 1 AS CountValue + FROM analytics_config.DescriptorMap; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/typemap_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/typemap_should_match_column_dictionary.xml new file mode 100644 index 00000000..467d8b1e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/typemap_should_match_column_dictionary.xml @@ -0,0 +1,12 @@ + + + Any + + + + SELECT 1 AS NA; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/typemap_should_return_have_records.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/typemap_should_return_have_records.xml new file mode 100644 index 00000000..56c49742 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_2/typemap_should_return_have_records.xml @@ -0,0 +1,12 @@ + + + Any + + + + SELECT 1 AS NA; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/0000_descriptormap_case_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/0000_descriptormap_case_Data_Load.xml new file mode 100644 index 00000000..642a7d88 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/0000_descriptormap_case_Data_Load.xml @@ -0,0 +1,109 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1500)); + 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'1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1505)); + 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'1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1502)); + 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'1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1510)); + 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'1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1508)); + 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'1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1700)); + 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'1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1701)); + 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'1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1704)); + 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'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1586)); + 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'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1589)); + 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'1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1601)); + 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'2897','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Breakfast','Full Price Breakfast','Full Price Breakfast',NULL,NULL,NULL,'BB3C4646-5530-4697-868C-8BE8A276322D','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2897)); + 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'2898','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Lunch','Full Price Lunch','Full Price Lunch',NULL,NULL,NULL,'19924A0D-3C74-4559-8A76-6048CB359C03','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2898)); + 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'2899','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Milk','Full Price Milk','Full Price Milk',NULL,NULL,NULL,'815BB430-A851-406A-B5A1-E0409F62937E','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2899)); + 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'2900','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Snack','Full Price Snack','Full Price Snack',NULL,NULL,NULL,'2724224A-71C9-4E9A-98FD-E80EAEC84F25','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2900)); + 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'2901','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Supper','Full Price Supper','Full Price Supper',NULL,NULL,NULL,'A3DBA44F-90E1-423B-BF24-587FEB388273','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2901)); + 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'544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=544)); + 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'545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=545)); + 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'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=547)); + 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=686)); + 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'687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=687)); + 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'2242','uri://ed-fi.org/StudentCharacteristicDescriptor','Economic Disadvantaged','Economic Disadvantaged','Economic Disadvantaged',NULL,NULL,NULL,'46732164-BB89-422A-90E0-E32DAF961743','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2242)); + 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'156','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=156)); + 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'158','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'6CDD69AC-577F-48A1-9D61-B258601FE7DA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=158)); + 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'157','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=157)); + 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'160','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=160)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/0000_typemap_case_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/0000_typemap_case_Data_Load.xml new file mode 100644 index 00000000..b84051f4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/0000_typemap_case_Data_Load.xml @@ -0,0 +1,5 @@ + + + Any + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/descriptormap_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/descriptormap_should_match_column_dictionary.xml new file mode 100644 index 00000000..d43179ed --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/descriptormap_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'DescriptorMap' + ORDER BY ORDINAL_POSITION ASC; + + + DescriptorConstantId + int + + + DescriptorId + int + + + CreateDate + datetime + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/descriptormap_should_return_have_records.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/descriptormap_should_return_have_records.xml new file mode 100644 index 00000000..38d2f203 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/descriptormap_should_return_have_records.xml @@ -0,0 +1,13 @@ + + + Any + + + + SELECT TOP 1 1 AS CountValue + FROM analytics_config.DescriptorMap; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/typemap_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/typemap_should_match_column_dictionary.xml new file mode 100644 index 00000000..467d8b1e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/typemap_should_match_column_dictionary.xml @@ -0,0 +1,12 @@ + + + Any + + + + SELECT 1 AS NA; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/typemap_should_return_have_records.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/typemap_should_return_have_records.xml new file mode 100644 index 00000000..56c49742 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/MSSQL/v_3_3/typemap_should_return_have_records.xml @@ -0,0 +1,12 @@ + + + Any + + + + SELECT 1 AS NA; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/0000_descriptormap_case_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/0000_descriptormap_case_Data_Load.xml new file mode 100644 index 00000000..269fc799 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/0000_descriptormap_case_Data_Load.xml @@ -0,0 +1,58 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1500)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1505)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1502)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1510)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1508)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1700)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1701)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1704)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1586)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1589)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=1601)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2897','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Breakfast','Full Price Breakfast','Full Price Breakfast',NULL,NULL,NULL,'BB3C4646-5530-4697-868C-8BE8A276322D','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2897)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2898','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Lunch','Full Price Lunch','Full Price Lunch',NULL,NULL,NULL,'19924A0D-3C74-4559-8A76-6048CB359C03','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2898)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2899','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Milk','Full Price Milk','Full Price Milk',NULL,NULL,NULL,'815BB430-A851-406A-B5A1-E0409F62937E','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2899)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2900','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Snack','Full Price Snack','Full Price Snack',NULL,NULL,NULL,'2724224A-71C9-4E9A-98FD-E80EAEC84F25','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2900)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2901','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Full Price Supper','Full Price Supper','Full Price Supper',NULL,NULL,NULL,'A3DBA44F-90E1-423B-BF24-587FEB388273','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2901)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=544)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=545)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=547)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=686)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=687)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2242','uri://ed-fi.org/StudentCharacteristicDescriptor','Economic Disadvantaged','Economic Disadvantaged','Economic Disadvantaged',NULL,NULL,NULL,'46732164-BB89-422A-90E0-E32DAF961743','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=2242)); + + INSERT INTO edfi.descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '156','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=156)); + + INSERT INTO edfi.descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '158','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'6CDD69AC-577F-48A1-9D61-B258601FE7DA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=158)); + + INSERT INTO edfi.descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '157','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=157)); + + INSERT INTO edfi.descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '160','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.descriptor WHERE descriptorid=160)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/0000_typemap_case_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/0000_typemap_case_Data_Load.xml new file mode 100644 index 00000000..b84051f4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/0000_typemap_case_Data_Load.xml @@ -0,0 +1,5 @@ + + + Any + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/descriptormap_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/descriptormap_should_match_column_dictionary.xml new file mode 100644 index 00000000..1929049d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/descriptormap_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'descriptormap' + ORDER BY ORDINAL_POSITION ASC; + + + descriptorconstantid + integer + + + descriptorid + integer + + + createdate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/descriptormap_should_return_have_records.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/descriptormap_should_return_have_records.xml new file mode 100644 index 00000000..3f86d7b5 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/descriptormap_should_return_have_records.xml @@ -0,0 +1,13 @@ + + + Any + + + + SELECT 1 AS CountValue + FROM analytics_config.descriptormap; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/typemap_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/typemap_should_match_column_dictionary.xml new file mode 100644 index 00000000..467d8b1e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/typemap_should_match_column_dictionary.xml @@ -0,0 +1,12 @@ + + + Any + + + + SELECT 1 AS NA; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/typemap_should_return_have_records.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/typemap_should_return_have_records.xml new file mode 100644 index 00000000..56c49742 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DefaultMap/PostgreSQL/v_3_3/typemap_should_return_have_records.xml @@ -0,0 +1,12 @@ + + + Any + + + + SELECT 1 AS NA; + + + 1 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/0001_DemographicDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_2/0001_DemographicDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/0001_DemographicDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_2/0001_DemographicDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_1/0001_DemographicDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_1/0001_DemographicDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..c631f328 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_1/0001_DemographicDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'DemographicDim' + ORDER BY ORDINAL_POSITION ASC; + + + DemographicKey + nvarchar + + + DemographicParentKey + varchar + + + DemographicLabel + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_2/0000_DemographicDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_2/0000_DemographicDim_Data_Load.xml new file mode 100644 index 00000000..c5a755f0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_2/0000_DemographicDim_Data_Load.xml @@ -0,0 +1,229 @@ + + + Any + + + --- Cohort Year + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade','42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId) + (SELECT TOP 1'1526' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1527','uri://ed-fi.org/CohortYearTypeDescriptor','Eleventh grade','Eleventh grade','Eleventh grade','42AFEE58-752A-42E7-9816-B07EC1238FD3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1527')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId) + (SELECT TOP 1'1527' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1527')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,CreateDate,LastModifiedDate) + (SELECT '2018','2017-2018',0,'FCB17AE4-F68C-49F0-866E-0A9EB15E816B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM') + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,CreateDate,LastModifiedDate) + (SELECT '2019','2018-2019',0,'FCB17AE4-F68C-49F0-866E-0A9EB15E816A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM') + + --- Disability Designation + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'936','uri://ed-fi.org/DisabilityDesignationDescriptor','Other','Other','Other','90043F45-4257-4319-BC45-DD7B983259C5','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '936')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId) + (SELECT TOP 1'936' + WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '936')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504','9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId) + (SELECT TOP 1'937' + WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + --- Language + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'468','uri://ed-fi.org/LanguageDescriptor','English','English','English','A755EE79-9BCB-4DD5-848C-1B81FAE9D369','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '468')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId) + (SELECT TOP 1'468' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '468')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'469','uri://ed-fi.org/LanguageDescriptor','Persian','Persian','Persian','8012945F-E68F-438A-B0CD-89B717B8082C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '469')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId) + (SELECT TOP 1'469' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '469')); + + --- Language Use + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1077','uri://ed-fi.org/LanguageUseDescriptor','Correspondence language','Correspondence language','Correspondence language','01CA903A-D389-4E1E-872F-E6E10A530708','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1077')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId) + (SELECT TOP 1'1077' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1077')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language','CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId) + (SELECT TOP 1'1078' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + --- Race + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian','0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId) + (SELECT TOP 1'1283' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1288','uri://ed-fi.org/RaceDescriptor','White','White','White','9616F43C-59C1-4756-8BD7-B4A960A652A6','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1288')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId) + (SELECT TOP 1'1288' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1288')); + + --- Tribal Affiliation + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak','4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId) + (SELECT TOP 1'2280' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId = '2280')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2281','uri://ed-fi.org/TribalAffiliationDescriptor','Agdaagux','Agdaagux','Agdaagux Tribe of King Cove','C552D64C-271D-4691-8CBD-29A2835C044E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2281')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId) + (SELECT TOP 1'2281' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId = '2281')); + + --- Student Characteristic + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant','3150327C-6466-40BF-B940-2D8763EAA694','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId) + (SELECT TOP 1'660' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId = '660')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'661','uri://ed-fi.org/StudentCharacteristicDescriptor','Asylee','Asylee','Asylee','BA2F13EF-275B-4AF0-B4B0-8BED0194CE3E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '661')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId) + (SELECT TOP 1'661' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId = '661')); + + --- Economic Disadvantage + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor AS Target + USING (VALUES + (2242,'uri://ed-fi.org/StudentCharacteristicDescriptor','Economic Disadvantaged','Economic Disadvantaged','Economic Disadvantaged','46732164-BB89-422A-90E0-E32DAF961743') + ) AS Source(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id + ) + ON TARGET.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, LastModifiedDate, CreateDate) + VALUES (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, getdate(), getdate()) + OUTPUT $action, + inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + MERGE INTO edfi.StudentCharacteristicDescriptor AS Target + USING (VALUES + (2242) + ) AS Source(StudentCharacteristicDescriptorId + ) + ON TARGET.StudentCharacteristicDescriptorId = Source.StudentCharacteristicDescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (StudentCharacteristicDescriptorId) + VALUES (StudentCharacteristicDescriptorId) + OUTPUT $action, + inserted.*; + + --- Disability + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor AS Target + USING (VALUES + (747,'http://www.ed-fi.org/Descriptor/DisabilityDescriptor.xml','Medical condition','Medical condition','Medical condition','37C5406D-8C92-4646-9038-F0AB9F517FB6'), + (757,'http://www.ed-fi.org/Descriptor/DisabilityDescriptor.xml','Physical Disability','Physical Disability','Physical Disability','B53BB05E-C6E2-4D30-8E60-C1AEAF57D96B') + ) AS Source(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id + ) + ON TARGET.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, LastModifiedDate, CreateDate) + VALUES (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, getdate(), getdate()) + OUTPUT $action, + inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + MERGE INTO edfi.DisabilityDescriptor AS Target + USING (VALUES + (747), + (757) + ) AS Source(DisabilityDescriptorId + ) + ON TARGET.DisabilityDescriptorId = Source.DisabilityDescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (DisabilityDescriptorId) + VALUES (DisabilityDescriptorId) + OUTPUT $action, + inserted.*; + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_2/0001_DemographicDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_2/0001_DemographicDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..c631f328 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_2/0001_DemographicDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'DemographicDim' + ORDER BY ORDINAL_POSITION ASC; + + + DemographicKey + nvarchar + + + DemographicParentKey + varchar + + + DemographicLabel + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_3/0000_DemographicDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_3/0000_DemographicDim_Data_Load.xml new file mode 100644 index 00000000..c5a755f0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_3/0000_DemographicDim_Data_Load.xml @@ -0,0 +1,229 @@ + + + Any + + + --- Cohort Year + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade','42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId) + (SELECT TOP 1'1526' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1527','uri://ed-fi.org/CohortYearTypeDescriptor','Eleventh grade','Eleventh grade','Eleventh grade','42AFEE58-752A-42E7-9816-B07EC1238FD3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1527')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId) + (SELECT TOP 1'1527' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1527')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,CreateDate,LastModifiedDate) + (SELECT '2018','2017-2018',0,'FCB17AE4-F68C-49F0-866E-0A9EB15E816B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM') + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,CreateDate,LastModifiedDate) + (SELECT '2019','2018-2019',0,'FCB17AE4-F68C-49F0-866E-0A9EB15E816A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM') + + --- Disability Designation + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'936','uri://ed-fi.org/DisabilityDesignationDescriptor','Other','Other','Other','90043F45-4257-4319-BC45-DD7B983259C5','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '936')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId) + (SELECT TOP 1'936' + WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '936')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504','9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId) + (SELECT TOP 1'937' + WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + --- Language + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'468','uri://ed-fi.org/LanguageDescriptor','English','English','English','A755EE79-9BCB-4DD5-848C-1B81FAE9D369','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '468')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId) + (SELECT TOP 1'468' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '468')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'469','uri://ed-fi.org/LanguageDescriptor','Persian','Persian','Persian','8012945F-E68F-438A-B0CD-89B717B8082C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '469')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId) + (SELECT TOP 1'469' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '469')); + + --- Language Use + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1077','uri://ed-fi.org/LanguageUseDescriptor','Correspondence language','Correspondence language','Correspondence language','01CA903A-D389-4E1E-872F-E6E10A530708','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1077')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId) + (SELECT TOP 1'1077' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1077')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language','CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId) + (SELECT TOP 1'1078' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + --- Race + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian','0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId) + (SELECT TOP 1'1283' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1288','uri://ed-fi.org/RaceDescriptor','White','White','White','9616F43C-59C1-4756-8BD7-B4A960A652A6','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1288')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId) + (SELECT TOP 1'1288' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1288')); + + --- Tribal Affiliation + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak','4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId) + (SELECT TOP 1'2280' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId = '2280')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2281','uri://ed-fi.org/TribalAffiliationDescriptor','Agdaagux','Agdaagux','Agdaagux Tribe of King Cove','C552D64C-271D-4691-8CBD-29A2835C044E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2281')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId) + (SELECT TOP 1'2281' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId = '2281')); + + --- Student Characteristic + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant','3150327C-6466-40BF-B940-2D8763EAA694','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId) + (SELECT TOP 1'660' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId = '660')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'661','uri://ed-fi.org/StudentCharacteristicDescriptor','Asylee','Asylee','Asylee','BA2F13EF-275B-4AF0-B4B0-8BED0194CE3E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '661')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId) + (SELECT TOP 1'661' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId = '661')); + + --- Economic Disadvantage + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor AS Target + USING (VALUES + (2242,'uri://ed-fi.org/StudentCharacteristicDescriptor','Economic Disadvantaged','Economic Disadvantaged','Economic Disadvantaged','46732164-BB89-422A-90E0-E32DAF961743') + ) AS Source(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id + ) + ON TARGET.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, LastModifiedDate, CreateDate) + VALUES (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, getdate(), getdate()) + OUTPUT $action, + inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + MERGE INTO edfi.StudentCharacteristicDescriptor AS Target + USING (VALUES + (2242) + ) AS Source(StudentCharacteristicDescriptorId + ) + ON TARGET.StudentCharacteristicDescriptorId = Source.StudentCharacteristicDescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (StudentCharacteristicDescriptorId) + VALUES (StudentCharacteristicDescriptorId) + OUTPUT $action, + inserted.*; + + --- Disability + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor AS Target + USING (VALUES + (747,'http://www.ed-fi.org/Descriptor/DisabilityDescriptor.xml','Medical condition','Medical condition','Medical condition','37C5406D-8C92-4646-9038-F0AB9F517FB6'), + (757,'http://www.ed-fi.org/Descriptor/DisabilityDescriptor.xml','Physical Disability','Physical Disability','Physical Disability','B53BB05E-C6E2-4D30-8E60-C1AEAF57D96B') + ) AS Source(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id + ) + ON TARGET.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, LastModifiedDate, CreateDate) + VALUES (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, getdate(), getdate()) + OUTPUT $action, + inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + MERGE INTO edfi.DisabilityDescriptor AS Target + USING (VALUES + (747), + (757) + ) AS Source(DisabilityDescriptorId + ) + ON TARGET.DisabilityDescriptorId = Source.DisabilityDescriptorId + WHEN NOT MATCHED BY TARGET + THEN + INSERT (DisabilityDescriptorId) + VALUES (DisabilityDescriptorId) + OUTPUT $action, + inserted.*; + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_3/0001_DemographicDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_3/0001_DemographicDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..c631f328 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/MSSQL/v_3_3/0001_DemographicDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'DemographicDim' + ORDER BY ORDINAL_POSITION ASC; + + + DemographicKey + nvarchar + + + DemographicParentKey + varchar + + + DemographicLabel + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/0001_DemographicDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_2/0001_DemographicDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/0001_DemographicDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_2/0001_DemographicDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_3/0000_DemographicDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_3/0000_DemographicDim_Data_Load.xml new file mode 100644 index 00000000..7d7c40ba --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_3/0000_DemographicDim_Data_Load.xml @@ -0,0 +1,133 @@ + + + Any + + --- Cohort Year + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade','42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId) + (SELECT '1526' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1527','uri://ed-fi.org/CohortYearTypeDescriptor','Eleventh grade','Eleventh grade','Eleventh grade','42AFEE58-752A-42E7-9816-B07EC1238FD3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1527')); + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId) + (SELECT '1527' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1527')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,CreateDate,LastModifiedDate) + (SELECT '2018','2017-2018',false,'FCB17AE4-F68C-49F0-866E-0A9EB15E816B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM'); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,CreateDate,LastModifiedDate) + (SELECT '2019','2018-2019',false,'FCB17AE4-F68C-49F0-866E-0A9EB15E816A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM'); + --- Disability Designation + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '936','uri://ed-fi.org/DisabilityDesignationDescriptor','Other','Other','Other','90043F45-4257-4319-BC45-DD7B983259C5','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '936')); + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId) + (SELECT '936' + WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '936')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504','9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId) + (SELECT '937' + WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + --- Language + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '468','uri://ed-fi.org/LanguageDescriptor','English','English','English','A755EE79-9BCB-4DD5-848C-1B81FAE9D369','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '468')); + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId) + (SELECT '468' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '468')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '469','uri://ed-fi.org/LanguageDescriptor','Persian','Persian','Persian','8012945F-E68F-438A-B0CD-89B717B8082C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '469')); + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId) + (SELECT '469' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '469')); + --- Language Use + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1077','uri://ed-fi.org/LanguageUseDescriptor','Correspondence language','Correspondence language','Correspondence language','01CA903A-D389-4E1E-872F-E6E10A530708','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1077')); + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId) + (SELECT '1077' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1077')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language','CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId) + (SELECT '1078' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + --- Race + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian','0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId) + (SELECT '1283' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1288','uri://ed-fi.org/RaceDescriptor','White','White','White','9616F43C-59C1-4756-8BD7-B4A960A652A6','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1288')); + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId) + (SELECT '1288' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1288')); + --- Tribal Affiliation + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak','4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId) + (SELECT '2280' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId = '2280')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '2281','uri://ed-fi.org/TribalAffiliationDescriptor','Agdaagux','Agdaagux','Agdaagux Tribe of King Cove','C552D64C-271D-4691-8CBD-29A2835C044E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2281')); + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId) + (SELECT '2281' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId = '2281')); + --- Student Characteristic + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant','3150327C-6466-40BF-B940-2D8763EAA694','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId) + (SELECT '660' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId = '660')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '661','uri://ed-fi.org/StudentCharacteristicDescriptor','Asylee','Asylee','Asylee','BA2F13EF-275B-4AF0-B4B0-8BED0194CE3E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '661')); + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId) + (SELECT '661' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId = '661')); + --- Economic Disadvantage + WITH SOURCE (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id + ) AS (VALUES + (2242,'uri://ed-fi.org/StudentCharacteristicDescriptor','Economic Disadvantaged','Economic Disadvantaged','Economic Disadvantaged',uuid('46732164-BB89-422A-90E0-E32DAF961743')) + ) + INSERT INTO edfi.Descriptor (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, LastModifiedDate, CreateDate) + SELECT DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, Now(), Now() FROM SOURCE + ON CONFLICT DO NOTHING; + WITH SOURCE (StudentCharacteristicDescriptorId + ) AS (VALUES + (2242) + ) + INSERT INTO edfi.StudentCharacteristicDescriptor (StudentCharacteristicDescriptorId) + SELECT StudentCharacteristicDescriptorId FROM SOURCE + ON CONFLICT DO NOTHING; + --- Disability + WITH SOURCE (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id + ) AS (VALUES + (747,'http://www.ed-fi.org/Descriptor/DisabilityDescriptor.xml','Medical condition','Medical condition','Medical condition','37C5406D-8C92-4646-9038-F0AB9F517FB6'), + (757,'http://www.ed-fi.org/Descriptor/DisabilityDescriptor.xml','Physical Disability','Physical Disability','Physical Disability','B53BB05E-C6E2-4D30-8E60-C1AEAF57D96B') + ) + INSERT INTO edfi.Descriptor (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id, LastModifiedDate, CreateDate) + SELECT DescriptorId,Namespace,CodeValue,ShortDescription,Description,uuid(Id), Now(), Now() FROM SOURCE + ON CONFLICT DO NOTHING; + WITH SOURCE (DisabilityDescriptorId + ) AS (VALUES + (747), + (757) + ) + INSERT INTO edfi.DisabilityDescriptor (DisabilityDescriptorId) + SELECT DisabilityDescriptorId FROM SOURCE + ON CONFLICT DO NOTHING; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_3/0001_DemographicDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_3/0001_DemographicDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..37edc23e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/DemographicDim/PostgreSQL/v_3_3/0001_DemographicDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'demographicdim' + ORDER BY ORDINAL_POSITION ASC; + + + demographickey + text + + + demographicparentkey + text + + + demographiclabel + text + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/0001_FeederSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_1/0001_FeederSchoolDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/0001_FeederSchoolDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_1/0001_FeederSchoolDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_2/0000_FeederSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_2/0000_FeederSchoolDim_Data_Load.xml new file mode 100644 index 00000000..55269496 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_2/0000_FeederSchoolDim_Data_Load.xml @@ -0,0 +1,25 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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 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'628530','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530','628530','2018-02-03','2019-05-07',NULL,'B840DEE0-4264-42E2-A436-A287220D6AAB','May 7 2019 12:00AM','Feb 3 2018 12:00AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='b840dee0-4264-42e2-a436-a287220d6aab')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'850786060','Grand Oaks High School 88YR','GOHS 88YR',NULL,'762BFBD8-9892-495E-B6C3-318FCDBD01D9','Dec 14 2018 1:08PM','Dec 14 2018 1:08PM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '850786060')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'528530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '528530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'850786060','528530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '850786060')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'850786060','867530','2010-05-07',NULL,NULL,'CEEE6123-2FDC-4D54-9C2B-CDF3840EAAD8','May 7 2010 12:00AM','May 7 2010 12:00AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='ceee6123-2fdc-4d54-9c2b-cdf3840eaad8')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'628530','850786060','2010-08-08','2050-01-01','Feeder Relationship','464E1917-D11A-42F9-968B-D95F2F59E912','Aug 8 2020 12:00AM','Aug 8 2010 12:00AM','Discriminator' WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='464e1917-d11a-42f9-968b-d95f2f59e912')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_2/0001_FeederSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_2/0001_FeederSchoolDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..3b25ad00 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_2/0001_FeederSchoolDim_should_match_column_dictionary.xml @@ -0,0 +1,34 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_FeederSchoolDim' + ORDER BY ORDINAL_POSITION ASC; + + + FeederSchoolUniqueKey + varchar + + + SchoolKey + int + + + FeederSchoolKey + int + + + FeederSchoolName + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_3/0000_FeederSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_3/0000_FeederSchoolDim_Data_Load.xml new file mode 100644 index 00000000..68067185 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_3/0000_FeederSchoolDim_Data_Load.xml @@ -0,0 +1,28 @@ + + + Any + + DISABLE TRIGGER ALL ON edfi.school; + + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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 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'628530','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530','628530','2018-02-03','2019-05-07',NULL,'B840DEE0-4264-42E2-A436-A287220D6AAB','May 7 2019 12:00AM','Feb 3 2018 12:00AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='b840dee0-4264-42e2-a436-a287220d6aab')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'850786060','Grand Oaks High School 88YR','GOHS 88YR',NULL,'762BFBD8-9892-495E-B6C3-318FCDBD01D9','Dec 14 2018 1:08PM','Dec 14 2018 1:08PM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '850786060')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'528530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '528530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'850786060','528530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '850786060')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'850786060','867530','2010-05-07',NULL,NULL,'CEEE6123-2FDC-4D54-9C2B-CDF3840EAAD8','May 7 2010 12:00AM','May 7 2010 12:00AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='ceee6123-2fdc-4d54-9c2b-cdf3840eaad8')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'628530','850786060','2010-08-08','2050-01-01','Feeder Relationship','464E1917-D11A-42F9-968B-D95F2F59E912','Aug 8 2020 12:00AM','Aug 8 2010 12:00AM','Discriminator' WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='464e1917-d11a-42f9-968b-d95f2f59e912')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_3/0001_FeederSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_3/0001_FeederSchoolDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..3b25ad00 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/MSSQL/v_3_3/0001_FeederSchoolDim_should_match_column_dictionary.xml @@ -0,0 +1,34 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_FeederSchoolDim' + ORDER BY ORDINAL_POSITION ASC; + + + FeederSchoolUniqueKey + varchar + + + SchoolKey + int + + + FeederSchoolKey + int + + + FeederSchoolName + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/0001_FeederSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_2/0001_FeederSchoolDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/0001_FeederSchoolDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_2/0001_FeederSchoolDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_3/0000_FeederSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_3/0000_FeederSchoolDim_Data_Load.xml new file mode 100644 index 00000000..a40342ea --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_3/0000_FeederSchoolDim_Data_Load.xml @@ -0,0 +1,31 @@ + + + Any + + ALTER TABLE edfi.school DISABLE TRIGGER ALL; + + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530')); + 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 '628530','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530','628530','2018-02-03','2019-05-07',NULL,'B840DEE0-4264-42E2-A436-A287220D6AAB','May 7 2019 12:00AM','Feb 3 2018 12:00AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='b840dee0-4264-42e2-a436-a287220d6aab')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '850786060','Grand Oaks High School 88YR','GOHS 88YR',NULL,'762BFBD8-9892-495E-B6C3-318FCDBD01D9','Dec 14 2018 1:08PM','Dec 14 2018 1:08PM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '850786060')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '528530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '528530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '850786060','528530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '850786060')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '850786060','867530','2010-05-07',NULL,NULL,'CEEE6123-2FDC-4D54-9C2B-CDF3840EAAD8','May 7 2010 12:00AM','May 7 2010 12:00AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='ceee6123-2fdc-4d54-9c2b-cdf3840eaad8')); + INSERT INTO edfi.FeederSchoolAssociation(FeederSchoolId,SchoolId,BeginDate,EndDate,FeederRelationshipDescription,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '628530','850786060','2010-08-08','2050-01-01','Feeder Relationship','464E1917-D11A-42F9-968B-D95F2F59E912','Aug 8 2020 12:00AM','Aug 8 2010 12:00AM','Discriminator' WHERE NOT EXISTS(SELECT 1 FROM edfi.FeederSchoolAssociation WHERE id='464e1917-d11a-42f9-968b-d95f2f59e912')); + + + ALTER TABLE edfi.school ENABLE TRIGGER ALL; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_3/0001_FeederSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_3/0001_FeederSchoolDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..dc92effb --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/FeederSchoolDim/PostgreSQL/v_3_3/0001_FeederSchoolDim_should_match_column_dictionary.xml @@ -0,0 +1,34 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_feederschooldim' + ORDER BY ORDINAL_POSITION ASC; + + + feederschooluniquekey + text + + + schoolkey + integer + + + feederschoolkey + integer + + + feederschoolname + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_2/0000_GradingPeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_2/0000_GradingPeriodDim_Data_Load.xml new file mode 100644 index 00000000..6bdfa220 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_2/0000_GradingPeriodDim_Data_Load.xml @@ -0,0 +1,287 @@ + + + Any + + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT TOP 1 '628530', + 'Lander ISD', + NULL, + NULL, + NULL, + 'edfi.LocalEducationAgency', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '13CC7674-8E27-443F-88B8-F8FDDD4601F1' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530 + ) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT TOP 1 '628530001', + 'Lander Middle', + NULL, + NULL, + NULL, + 'edfi.School', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '4E368F85-6A25-42F3-8D61-D972C421AC58' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530001 + ) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT TOP 1 '152950', + 'ESC Region 17', + NULL, + NULL, + NULL, + 'edfi.EducationServiceCenter', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9' + 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 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '835', + 'uri://ed-fi.org/CharterStatusDescriptor', + 'School Charter', + 'School Charter', + 'School Charter', + NULL, + NULL, + NULL, + '8C058748-9083-4B68-9E9B-A6F339B87009', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 835 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.CharterStatusDescriptor (CharterStatusDescriptorId) + ( + SELECT TOP 1 835 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId = 835 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT TOP 1 1086 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086 + ) + ); + + INSERT INTO edfi.LocalEducationAgency + (LocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId) + ( + SELECT TOP 1 '628530', + '1086', + '835', + NULL, + '152950', + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId = 628530 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1695', + 'uri://ed-fi.org/SchoolTypeDescriptor', + 'Special Education', + 'Special Education', + 'Special Education', + NULL, + NULL, + NULL, + '66CB3836-E555-45F0-A819-FE264BDE181B', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) + ( + SELECT TOP 1 1695 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695 + ) + ); + + INSERT INTO edfi.school + (SchoolId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,LocalEducationAgencyId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + ( + SELECT TOP 1 '628530001', + NULL, + '835', + NULL, + NULL, + NULL, + NULL, + '628530', + NULL, + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.school WHERE SchoolId = 628530001 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '54', + 'uri://ed-fi.org/GradingPeriodDescriptor', + 'First Six Weeks', + 'First Six Weeks', + 'First Six Weeks', + NULL, + NULL, + NULL, + 'ABE1098D-9723-48ED-AA29-BEF3E458FC5E', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 54 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.GradingPeriodDescriptor (GradingPeriodDescriptorId) + ( + SELECT TOP 1 '54' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorid = 54 + ) + ); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '2011','2010-2011','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2100','2099-2100','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','Jun 19 2100 11:40AM','Jun 19 2100 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2100')); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 '54', + '628530001', + 2011, + '2011-08-22', + '29', + '2011-09-30', + '1', + '0488184B-5AAC-4D54-838B-B180D53CD136', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2011-08-22' + ) + ); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 '54', + '628530001', + 2011, + '2011-11-20', + '27', + '2011-12-30', + '2', + '557EE073-9E3D-4B92-B832-FA9266CD7D26', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2011-11-20' + ) + ); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 '54', + '628530001', + 2100, + '2100-11-20', + '27', + '2100-12-30', + '2', + '557EE073-9E3D-4B92-B832-FA9266CD7D27', + 'Sep 18 2100 11:34AM', + 'Sep 18 2100 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2100-11-20' + ) + ); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_2/0001_GradingPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_2/0001_GradingPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..a12d0acf --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_2/0001_GradingPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,50 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'GradingPeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + GradingPeriodKey + nvarchar + + + GradingPeriodBeginDateKey + nvarchar + + + GradingPeriodEndDateKey + nvarchar + + + GradingPeriodDescription + nvarchar + + + TotalInstructionalDays + int + + + PeriodSequence + int + + + SchoolKey + varchar + + + SchoolYear + varchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_3/0000_GradingPeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_3/0000_GradingPeriodDim_Data_Load.xml new file mode 100644 index 00000000..6bdfa220 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_3/0000_GradingPeriodDim_Data_Load.xml @@ -0,0 +1,287 @@ + + + Any + + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT TOP 1 '628530', + 'Lander ISD', + NULL, + NULL, + NULL, + 'edfi.LocalEducationAgency', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '13CC7674-8E27-443F-88B8-F8FDDD4601F1' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530 + ) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT TOP 1 '628530001', + 'Lander Middle', + NULL, + NULL, + NULL, + 'edfi.School', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '4E368F85-6A25-42F3-8D61-D972C421AC58' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530001 + ) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT TOP 1 '152950', + 'ESC Region 17', + NULL, + NULL, + NULL, + 'edfi.EducationServiceCenter', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9' + 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 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '835', + 'uri://ed-fi.org/CharterStatusDescriptor', + 'School Charter', + 'School Charter', + 'School Charter', + NULL, + NULL, + NULL, + '8C058748-9083-4B68-9E9B-A6F339B87009', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 835 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.CharterStatusDescriptor (CharterStatusDescriptorId) + ( + SELECT TOP 1 835 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId = 835 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT TOP 1 1086 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086 + ) + ); + + INSERT INTO edfi.LocalEducationAgency + (LocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId) + ( + SELECT TOP 1 '628530', + '1086', + '835', + NULL, + '152950', + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId = 628530 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1695', + 'uri://ed-fi.org/SchoolTypeDescriptor', + 'Special Education', + 'Special Education', + 'Special Education', + NULL, + NULL, + NULL, + '66CB3836-E555-45F0-A819-FE264BDE181B', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) + ( + SELECT TOP 1 1695 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695 + ) + ); + + INSERT INTO edfi.school + (SchoolId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,LocalEducationAgencyId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + ( + SELECT TOP 1 '628530001', + NULL, + '835', + NULL, + NULL, + NULL, + NULL, + '628530', + NULL, + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.school WHERE SchoolId = 628530001 + ) + ); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '54', + 'uri://ed-fi.org/GradingPeriodDescriptor', + 'First Six Weeks', + 'First Six Weeks', + 'First Six Weeks', + NULL, + NULL, + NULL, + 'ABE1098D-9723-48ED-AA29-BEF3E458FC5E', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 54 + ) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.GradingPeriodDescriptor (GradingPeriodDescriptorId) + ( + SELECT TOP 1 '54' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorid = 54 + ) + ); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '2011','2010-2011','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2100','2099-2100','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','Jun 19 2100 11:40AM','Jun 19 2100 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2100')); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 '54', + '628530001', + 2011, + '2011-08-22', + '29', + '2011-09-30', + '1', + '0488184B-5AAC-4D54-838B-B180D53CD136', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2011-08-22' + ) + ); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 '54', + '628530001', + 2011, + '2011-11-20', + '27', + '2011-12-30', + '2', + '557EE073-9E3D-4B92-B832-FA9266CD7D26', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2011-11-20' + ) + ); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 '54', + '628530001', + 2100, + '2100-11-20', + '27', + '2100-12-30', + '2', + '557EE073-9E3D-4B92-B832-FA9266CD7D27', + 'Sep 18 2100 11:34AM', + 'Sep 18 2100 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2100-11-20' + ) + ); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_3/0001_GradingPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_3/0001_GradingPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..a12d0acf --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/MSSQL/v_3_3/0001_GradingPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,50 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'GradingPeriodDim' + ORDER BY ORDINAL_POSITION ASC; + + + GradingPeriodKey + nvarchar + + + GradingPeriodBeginDateKey + nvarchar + + + GradingPeriodEndDateKey + nvarchar + + + GradingPeriodDescription + nvarchar + + + TotalInstructionalDays + int + + + PeriodSequence + int + + + SchoolKey + varchar + + + SchoolYear + varchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/PostgreSQL/v_3_3/0000_GradingPeriodDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/PostgreSQL/v_3_3/0000_GradingPeriodDim_Data_Load.xml new file mode 100644 index 00000000..c98bbb88 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/PostgreSQL/v_3_3/0000_GradingPeriodDim_Data_Load.xml @@ -0,0 +1,278 @@ + + + Any + + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT '628530', + 'Lander ISD', + NULL, + NULL, + NULL, + 'edfi.LocalEducationAgency', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '13CC7674-8E27-443F-88B8-F8FDDD4601F1' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530 + ) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT '628530001', + 'Lander Middle', + NULL, + NULL, + NULL, + 'edfi.School', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '4E368F85-6A25-42F3-8D61-D972C421AC58' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 628530001 + ) + ); + + INSERT INTO edfi.EducationOrganization + (EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,CreateDate,LastModifiedDate,Id) + ( + SELECT '152950', + 'ESC Region 17', + NULL, + NULL, + NULL, + 'edfi.EducationServiceCenter', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM', + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 152950 + ) + ); + + INSERT INTO edfi.EducationServiceCenter + (EducationServiceCenterId,StateEducationAgencyId) + ( + SELECT '152950', + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId = 152950 + ) + ); + + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '835', + 'uri://ed-fi.org/CharterStatusDescriptor', + 'School Charter', + 'School Charter', + 'School Charter', + NULL, + NULL, + NULL, + '8C058748-9083-4B68-9E9B-A6F339B87009', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 835 + ) + ); + + INSERT INTO edfi.CharterStatusDescriptor (CharterStatusDescriptorId) + ( + SELECT 835 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId = 835 + ) + ); + + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086 + ) + ); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT 1086 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086 + ) + ); + + INSERT INTO edfi.LocalEducationAgency + (LocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId) + ( + SELECT '628530', + '1086', + '835', + NULL, + '152950', + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId = 628530 + ) + ); + + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '1695', + 'uri://ed-fi.org/SchoolTypeDescriptor', + 'Special Education', + 'Special Education', + 'Special Education', + NULL, + NULL, + NULL, + '66CB3836-E555-45F0-A819-FE264BDE181B', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695 + ) + ); + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) + ( + SELECT 1695 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695 + ) + ); + + INSERT INTO edfi.school + (SchoolId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,LocalEducationAgencyId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + ( + SELECT '628530001', + NULL, + '835', + NULL, + NULL, + NULL, + NULL, + '628530', + NULL, + NULL + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.school WHERE SchoolId = 628530001 + ) + ); + + INSERT INTO edfi.descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '54', + 'uri://ed-fi.org/GradingPeriodDescriptor', + 'First Six Weeks', + 'First Six Weeks', + 'First Six Weeks', + NULL, + NULL, + NULL, + 'ABE1098D-9723-48ED-AA29-BEF3E458FC5E', + 'Jun 19 2015 11:41AM', + 'Jun 19 2015 11:41AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 54 + ) + ); + + INSERT INTO edfi.GradingPeriodDescriptor (GradingPeriodDescriptorId) + ( + SELECT '54' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorid = 54 + ) + ); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '2011','2010-2011','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2100','2099-2100','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','Jun 19 2100 11:40AM','Jun 19 2100 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2100')); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT '54', + '628530001', + 2011, + '2011-08-22', + '29', + '2011-09-30', + '1', + '0488184B-5AAC-4D54-838B-B180D53CD136', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2011-08-22' + ) + ); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT '54', + '628530001', + 2011, + '2011-11-20', + '27', + '2011-12-30', + '2', + '557EE073-9E3D-4B92-B832-FA9266CD7D26', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2011-11-20' + ) + ); + + INSERT INTO edfi.GradingPeriod + (GradingPeriodDescriptorId,SchoolId,SchoolYear,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate) + ( + SELECT '54', + '628530001', + 2100, + '2100-11-20', + '27', + '2100-12-30', + '2', + '557EE073-9E3D-4B92-B832-FA9266CD7D27', + 'Sep 18 2100 11:34AM', + 'Sep 18 2100 11:34AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId = 54 AND SchoolId = 628530001 AND BeginDate = '2100-11-20' + ) + ); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/PostgreSQL/v_3_3/0001_GradingPeriodDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/PostgreSQL/v_3_3/0001_GradingPeriodDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..f7c8b430 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/GradingPeriodDim/PostgreSQL/v_3_3/0001_GradingPeriodDim_should_match_column_dictionary.xml @@ -0,0 +1,49 @@ + + + Any + + + + SELECT column_name AS columnname, + udt_name AS datatype + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'gradingperioddim' + + + gradingperiodkey + text + + + gradingperiodbegindatekey + text + + + gradingperiodenddatekey + text + + + gradingperioddescription + varchar + + + totalinstructionaldays + int4 + + + periodsequence + int4 + + + schoolkey + varchar + + + schoolyear + varchar + + + lastmodifieddate + timestamp + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_2/0000_LocalEducationAgencyDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_2/0000_LocalEducationAgencyDim_Data_Load.xml new file mode 100644 index 00000000..bdd3407f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_2/0000_LocalEducationAgencyDim_Data_Load.xml @@ -0,0 +1,310 @@ + + + Any + + + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '528530', + 'Kingston ISD', + NULL, + NULL, + NULL, + NULL, + '8F269870-093C-4C8F-A9E9-3CBBBF851743', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId=528530)); + + -- 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.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( + LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1 + 1086 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086)); + + --== + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '528530', + NULL, + '1086', + NULL, + NULL, + NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=528530)); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '152950', + 'ESC Region 17', + NULL, + 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 id='03DE6F94-316A-4B06-8C67-2C8748DCA1A9')); + + -- SET IDENTITY_INSERT edfi.CharterStatusType ON; + -- INSERT INTO edfi.CharterStatusType( + -- CharterStatusTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate) + --(SELECT TOP 1 + -- '3', + -- 'Open Enrollment', + -- 'Open Enrollment', + -- 'Open Enrollment', + -- 'BA4FDA3F-3D1C-46F7-89CC-6083FBAA99A2', + -- 'Jun 19 2015 11:41AM', + -- 'Jun 19 2015 11:41AM' + --WHERE NOT EXISTS( + -- SELECT 1 FROM edfi.CharterStatusType WHERE CharterStatusTypeId= '3')); + -- SET IDENTITY_INSERT edfi.CharterStatusType 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 + '834', + 'uri://ed-fi.org/CharterStatusDescriptor', + 'Open Enrollment', + 'Open Enrollment', + 'Open Enrollment', + NULL, + NULL, + NULL, + 'ADEDEF81-765F-4885-A82A-7B69D0B3803C', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '834')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CharterStatusDescriptor ( + CharterStatusDescriptorId) + (SELECT TOP 1 + 834 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId = 834)); + + --== + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '628530', + 'Lander ISD', + NULL, + NULL, + NULL, + NULL, + '13CC7674-8E27-443F-88B8-F8FDDD4601F1', + 'Sep 1 2015 00:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530')); + + 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 + -- '2', + -- 'Charter', + -- 'Charter', + -- 'Charter', + -- 'C4646C15-CDAC-4DCD-A8B4-7BE0372471CF', + -- 'Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' + --WHERE NOT EXISTS( + -- SELECT 1 FROM edfi.LocalEducationAgencyCategoryType WHERE LocalEducationAgencyCategoryTypeId= '2')); + -- SET IDENTITY_INSERT edfi.LocalEducationAgencyCategoryType 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 + '1085', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Charter', + 'Charter', + 'Charter', + NULL, + NULL, + NULL, + 'C3D5B48C-9D94-4DE9-96DB-3DEC96C53586', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1085')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( + LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1 + 1085 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1085)); + + --== + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '778530', + 'Mesa ISD', + NULL, + NULL, + NULL, + NULL, + 'F1137D82-3490-4FC9-BD4D-F06F5C9E66C0', + 'Sep 1 2015 00:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778530')); + + INSERT INTO edfi.StateEducationAgency( + StateEducationAgencyId) + (SELECT TOP 1 + '778530' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId= '778530')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '628530', + NULL, + '1085', + '834', + '152950', + '778530' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=628530)); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '628531', + 'Springfield', + NULL, + NULL, + NULL, + NULL, + '13CC7674-8E27-443F-88B8-F8FDDD4601F2', + 'Sep 10 2015 11:00AM', + 'Sep 9 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628531')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '778531', + 'Mesa ISD2', + NULL, + NULL, + NULL, + NULL, + 'F1137D82-3490-4FC9-BD4D-F06F5C9E66C1', + 'Sep 17 2015 00:00AM', + 'Sep 16 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778531')); + + INSERT INTO edfi.StateEducationAgency( + StateEducationAgencyId) + (SELECT TOP 1 + '778531' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId= '778531')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '152951', + 'ESC Region 18', + NULL, + NULL, + NULL, + NULL, + '03DE6F94-316A-4B06-8C67-2C8748DCA1A7', + 'Sep 2 2015 12:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE id='03DE6F94-316A-4B06-8C67-2C8748DCA1A7')); + + INSERT INTO edfi.EducationServiceCenter( + EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '152951', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '628531', + NULL, + '1085', + '834', + '152951', + '778531' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=628531)); + + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_2/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_2/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..19a6175c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_2/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml @@ -0,0 +1,54 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'LocalEducationAgencyDim' + ORDER BY ORDINAL_POSITION ASC; + + + LocalEducationAgencyKey + int + + + LocalEducationAgencyName + nvarchar + + + LocalEducationAgencyType + nvarchar + + + LocalEducationAgencyParentLocalEducationAgencyKey + int + + + LocalEducationAgencyStateEducationAgencyName + nvarchar + + + LocalEducationAgencyStateEducationAgencyKey + int + + + LocalEducationAgencyServiceCenterName + nvarchar + + + LocalEducationAgencyServiceCenterKey + int + + + LocalEducationAgencyCharterStatus + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_3/0000_LocalEducationAgencyDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_3/0000_LocalEducationAgencyDim_Data_Load.xml new file mode 100644 index 00000000..bdd3407f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_3/0000_LocalEducationAgencyDim_Data_Load.xml @@ -0,0 +1,310 @@ + + + Any + + + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '528530', + 'Kingston ISD', + NULL, + NULL, + NULL, + NULL, + '8F269870-093C-4C8F-A9E9-3CBBBF851743', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId=528530)); + + -- 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.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( + LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1 + 1086 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086)); + + --== + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '528530', + NULL, + '1086', + NULL, + NULL, + NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=528530)); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '152950', + 'ESC Region 17', + NULL, + 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 id='03DE6F94-316A-4B06-8C67-2C8748DCA1A9')); + + -- SET IDENTITY_INSERT edfi.CharterStatusType ON; + -- INSERT INTO edfi.CharterStatusType( + -- CharterStatusTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate) + --(SELECT TOP 1 + -- '3', + -- 'Open Enrollment', + -- 'Open Enrollment', + -- 'Open Enrollment', + -- 'BA4FDA3F-3D1C-46F7-89CC-6083FBAA99A2', + -- 'Jun 19 2015 11:41AM', + -- 'Jun 19 2015 11:41AM' + --WHERE NOT EXISTS( + -- SELECT 1 FROM edfi.CharterStatusType WHERE CharterStatusTypeId= '3')); + -- SET IDENTITY_INSERT edfi.CharterStatusType 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 + '834', + 'uri://ed-fi.org/CharterStatusDescriptor', + 'Open Enrollment', + 'Open Enrollment', + 'Open Enrollment', + NULL, + NULL, + NULL, + 'ADEDEF81-765F-4885-A82A-7B69D0B3803C', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '834')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CharterStatusDescriptor ( + CharterStatusDescriptorId) + (SELECT TOP 1 + 834 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId = 834)); + + --== + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '628530', + 'Lander ISD', + NULL, + NULL, + NULL, + NULL, + '13CC7674-8E27-443F-88B8-F8FDDD4601F1', + 'Sep 1 2015 00:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530')); + + 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 + -- '2', + -- 'Charter', + -- 'Charter', + -- 'Charter', + -- 'C4646C15-CDAC-4DCD-A8B4-7BE0372471CF', + -- 'Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' + --WHERE NOT EXISTS( + -- SELECT 1 FROM edfi.LocalEducationAgencyCategoryType WHERE LocalEducationAgencyCategoryTypeId= '2')); + -- SET IDENTITY_INSERT edfi.LocalEducationAgencyCategoryType 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 + '1085', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Charter', + 'Charter', + 'Charter', + NULL, + NULL, + NULL, + 'C3D5B48C-9D94-4DE9-96DB-3DEC96C53586', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1085')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( + LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1 + 1085 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1085)); + + --== + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '778530', + 'Mesa ISD', + NULL, + NULL, + NULL, + NULL, + 'F1137D82-3490-4FC9-BD4D-F06F5C9E66C0', + 'Sep 1 2015 00:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778530')); + + INSERT INTO edfi.StateEducationAgency( + StateEducationAgencyId) + (SELECT TOP 1 + '778530' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId= '778530')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '628530', + NULL, + '1085', + '834', + '152950', + '778530' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=628530)); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '628531', + 'Springfield', + NULL, + NULL, + NULL, + NULL, + '13CC7674-8E27-443F-88B8-F8FDDD4601F2', + 'Sep 10 2015 11:00AM', + 'Sep 9 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628531')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '778531', + 'Mesa ISD2', + NULL, + NULL, + NULL, + NULL, + 'F1137D82-3490-4FC9-BD4D-F06F5C9E66C1', + 'Sep 17 2015 00:00AM', + 'Sep 16 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778531')); + + INSERT INTO edfi.StateEducationAgency( + StateEducationAgencyId) + (SELECT TOP 1 + '778531' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId= '778531')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '152951', + 'ESC Region 18', + NULL, + NULL, + NULL, + NULL, + '03DE6F94-316A-4B06-8C67-2C8748DCA1A7', + 'Sep 2 2015 12:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE id='03DE6F94-316A-4B06-8C67-2C8748DCA1A7')); + + INSERT INTO edfi.EducationServiceCenter( + EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '152951', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '628531', + NULL, + '1085', + '834', + '152951', + '778531' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=628531)); + + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_3/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_3/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..19a6175c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/MSSQL/v_3_3/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml @@ -0,0 +1,54 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'LocalEducationAgencyDim' + ORDER BY ORDINAL_POSITION ASC; + + + LocalEducationAgencyKey + int + + + LocalEducationAgencyName + nvarchar + + + LocalEducationAgencyType + nvarchar + + + LocalEducationAgencyParentLocalEducationAgencyKey + int + + + LocalEducationAgencyStateEducationAgencyName + nvarchar + + + LocalEducationAgencyStateEducationAgencyKey + int + + + LocalEducationAgencyServiceCenterName + nvarchar + + + LocalEducationAgencyServiceCenterKey + int + + + LocalEducationAgencyCharterStatus + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/PostgreSQL/v_3_3/0000_LocalEducationAgencyDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/PostgreSQL/v_3_3/0000_LocalEducationAgencyDim_Data_Load.xml new file mode 100644 index 00000000..a391f42c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/PostgreSQL/v_3_3/0000_LocalEducationAgencyDim_Data_Load.xml @@ -0,0 +1,212 @@ + + + Any + + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '528530', + 'Kingston ISD', + '8F269870-093C-4C8F-A9E9-3CBBBF851743', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId=528530)); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( + LocalEducationAgencyCategoryDescriptorId) + (SELECT + 1086 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086)); + + --== + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId) + (SELECT + '528530', + '1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=528530)); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '152950', + 'ESC Region 17', + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', + 'Sep 2 2015 12:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE id='03DE6F94-316A-4B06-8C67-2C8748DCA1A9')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT + '834', + 'uri://ed-fi.org/CharterStatusDescriptor', + 'Open Enrollment', + 'Open Enrollment', + 'Open Enrollment', + 'ADEDEF81-765F-4885-A82A-7B69D0B3803C', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '834')); + + INSERT INTO edfi.CharterStatusDescriptor ( + CharterStatusDescriptorId) + (SELECT + 834 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId = 834)); + + --== + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '628530', + 'Lander ISD', + '13CC7674-8E27-443F-88B8-F8FDDD4601F1', + 'Sep 1 2015 00:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530')); + + INSERT INTO edfi.EducationServiceCenter( + EducationServiceCenterId,StateEducationAgencyId) + (SELECT + '152950', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT + '1085', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Charter', + 'Charter', + 'Charter', + 'C3D5B48C-9D94-4DE9-96DB-3DEC96C53586', + 'Jun 19 2015 12:17PM', + 'Jun 19 2015 12:17PM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1085')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( + LocalEducationAgencyCategoryDescriptorId) + (SELECT + 1085 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1085)); + + --== + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '778530', + 'Mesa ISD', + 'F1137D82-3490-4FC9-BD4D-F06F5C9E66C0', + 'Sep 1 2015 00:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778530')); + + INSERT INTO edfi.StateEducationAgency( + StateEducationAgencyId) + (SELECT + '778530' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId= '778530')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT + '628530', + '1085', + '834', + '152950', + '778530' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=628530)); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '628531', + 'Springfield', + '13CC7674-8E27-443F-88B8-F8FDDD4601F2', + 'Sep 10 2015 11:00AM', + 'Sep 9 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628531')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '778531', + 'Mesa ISD2', + 'F1137D82-3490-4FC9-BD4D-F06F5C9E66C1', + 'Sep 17 2015 00:00AM', + 'Sep 16 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778531')); + + INSERT INTO edfi.StateEducationAgency( + StateEducationAgencyId) + (SELECT + '778531' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId= '778531')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT + '152951', + 'ESC Region 18', + '03DE6F94-316A-4B06-8C67-2C8748DCA1A7', + 'Sep 2 2015 12:00AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE id='03DE6F94-316A-4B06-8C67-2C8748DCA1A7')); + + INSERT INTO edfi.EducationServiceCenter( + EducationServiceCenterId,StateEducationAgencyId) + (SELECT + '152951', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT + '628531', + '1085', + '834', + '152951', + '778531' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId=628531)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/PostgreSQL/v_3_3/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/PostgreSQL/v_3_3/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..7a104e94 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/LocalEducationAgencyDim/PostgreSQL/v_3_3/0001_LocalEducationAgencyDim_should_match_column_dictionary.xml @@ -0,0 +1,53 @@ + + + Any + + + + SELECT + column_name AS columnname, + udt_name AS datatype + FROM information_schema.columns + WHERE table_schema = 'analytics' AND table_name = 'localeducationagencydim'; + + + localeducationagencykey + int4 + + + localeducationagencyname + varchar + + + localeducationagencytype + varchar + + + localeducationagencyparentlocaleducationagencykey + int4 + + + localeducationagencystateeducationagencyname + varchar + + + localeducationagencystateeducationagencykey + int4 + + + localeducationagencyservicecentername + varchar + + + localeducationagencyservicecenterkey + int4 + + + localeducationagencycharterstatus + varchar + + + lastmodifieddate + timestamp + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..a4a29229 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json @@ -0,0 +1,62 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'SchoolDim' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "SchoolKey", + "DataType": "varchar" + }, + { + "ColumnName": "SchoolName", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolType", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolAddress", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolCity", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolCounty", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolState", + "DataType": "nvarchar" + }, + { + "ColumnName": "LocalEducationAgencyName", + "DataType": "nvarchar" + }, + { + "ColumnName": "LocalEducationAgencyKey", + "DataType": "int" + }, + { + "ColumnName": "StateEducationAgencyName", + "DataType": "nvarchar" + }, + { + "ColumnName": "StateEducationAgencyKey", + "DataType": "int" + }, + { + "ColumnName": "EducationServiceCenterName", + "DataType": "nvarchar" + }, + { + "ColumnName": "EducationServiceCenterKey", + "DataType": "int" + }, + { + "ColumnName": "LastModifiedDate", + "DataType": "datetime2" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_3/0000_SchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_3/0000_SchoolDim_Data_Load.xml new file mode 100644 index 00000000..4e8d0d0c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_3/0000_SchoolDim_Data_Load.xml @@ -0,0 +1,93 @@ + + + Any + + DISABLE TRIGGER ALL ON edfi.school; + + + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530010', 'Fremont', NULL, NULL, NULL, 'edfi.School', '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530', 'Glendale ISD', NULL, NULL, NULL, 'edfi.School', '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '152950', 'ESC Region 17', NULL, NULL, NULL, 'edfi.School', '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', 'Sep 18 2015 11:34AM', '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')); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1086', 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', 'Independent', 'Independent', 'Independent', NULL, NULL, NULL, '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', 'Jun 19 2015 12:17PM', 'Jun 19 2015 12:17PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( LocalEducationAgencyCategoryDescriptorId) (SELECT TOP 1 1086 WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) ); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT TOP 1 '867530' ,NULL, '1086', NULL, '152950', NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) (SELECT TOP 1 '1695', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular', 'Regular', 'Regular', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) ); + SET IDENTITY_INSERT edfi.descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( SELECT TOP 1 1695 WHERE NOT EXISTS ( SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695) ); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530010', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530010) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530007', 'Badger Springs', NULL, NULL, NULL, 'edfi.School', '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.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530007', '867530', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530007) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530009', 'Burnett (Peter)', NULL, NULL, NULL, 'edfi.School', 'EB647B4D-2EE1-42DE-95A3-118BE5FB3DF8', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530009')); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530009', '867530', NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530009) ); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1500', 'uri://ed-fi.org/AddressTypeDescriptor', 'Home', 'Home', 'Home', NULL, NULL, NULL, 'F50C3DB8-302D-491A-A2BE-1B0610DDC6EC', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1500)); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1500' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1500)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1451', 'uri://ed-fi.org/StateAbbreviationDescriptor', 'TX', 'TX', 'TX', NULL, NULL, NULL, '67A24BD2-B27E-42A1-A508-2D45B49C6617', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1451)); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor( StateAbbreviationDescriptorId) (SELECT TOP 1 '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= 1451)); + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '867530009', '1500', '2604 3RD ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530009 and AddressTypeDescriptorId = 1500)); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1505', 'uri://ed-fi.org/AddressTypeDescriptor', 'Physical', 'Physical', 'Physical', NULL, NULL, NULL, 'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1505)); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1505' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1505)); + + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '867530009', '1505', '2602 2ND ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530009 and AddressTypeDescriptorId = 1505)); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT TOP 1 1505 ,'Sep 21 2017 00:00AM' ,'Glendale' ,867530009 ,'75862-0001' ,'1451' ,'2602 2ND ST' ,NULL ,'Jun 19 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1505 AND educationorganizationid = 867530009 AND postalcode = '75862-0001' ) ); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1502', 'uri://ed-fi.org/AddressTypeDescriptor', 'Mailing', 'Mailing', 'Mailing', NULL, NULL, NULL, '93E71ED1-83A8-4FAF-8039-D1FD5F846964', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1502)); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1502' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1502)); + + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '867530009', '1502', '2600 1ST ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530009 and AddressTypeDescriptorId = 1502)); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT TOP 1 1502 ,'Sep 21 2017 00:00AM' ,'Glendale' ,867530009 ,'75862-0001' ,'1451' ,'2600 1ST ST' ,NULL ,'Jun 19 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1502 AND educationorganizationid = 867530009 AND postalcode = '75862-0001' ) ); + -- + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '152990', 'ESC Region 17', NULL, NULL, NULL, 'edfi.School', '03DE6F94-316A-4B06-8C67-2C8748DCA1A8', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 152990)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530020', 'Beverly Hills High School', NULL, NULL, NULL, 'edfi.School', '56888B72-8AF0-4741-B6BC-90950E29A276', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867530020)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867532', 'Glendale ISD', NULL, NULL, NULL, 'edfi.School', '9CC29A49-637C-4882-A7DB-99AD87690CFC', 'Sep 21 2019 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867532)); + INSERT INTO edfi.StateEducationAgency( StateEducationAgencyId) (SELECT TOP 1 '867532' WHERE NOT EXISTS( SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId = 867532)); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT TOP 1 '867530020', NULL, '1086', NULL, '152950', '867532' WHERE NOT EXISTS( SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= 867530020)); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530020', 867530020, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530020) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530021', 'Belmont High School', NULL, NULL, NULL, 'edfi.School', '96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC', 'Sep 21 2017 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867530021)); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530021', 867530, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530021) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530022', 'Hollywood High School', NULL, NULL, NULL, 'edfi.School', '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)); + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) (SELECT TOP 1 '1696', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular2', 'Regular2', 'Regular2', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC2', 'Jun 21 2017 11:34AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1696) ); + SET IDENTITY_INSERT edfi.descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( SELECT TOP 1 1696 WHERE NOT EXISTS ( SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1696) ); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530022', 867530, NULL, NULL, NULL, NULL, NULL, NULL, 1696, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530022) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '628530001', 'Lander Middle', NULL, NULL, NULL, 'edfi.School', '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.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '628530', 'Lander ISD', NULL, NULL, NULL, 'edfi.School', '13CC7674-8E27-443F-88B8-F8FDDD4601F1', 'Sep 21 2017 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 628530)); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT TOP 1 '628530', NULL, '1086', NULL, '152950', NULL 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.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530023', 'Dorsey High School', NULL, NULL, NULL, 'edfi.School', '630ED5F3-09C7-404B-B0F8-99F608E46D35', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867530023)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867531', 'Glendale ISD', NULL, NULL, NULL, 'edfi.School', '9CC29A49-637C-4882-A7DB-99AD87690CFD', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867531)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '152951', 'ESC Region 17', NULL, NULL, NULL, 'edfi.School', '03DE6F94-316A-4B06-8C67-2C8748DCA110', 'Sep 21 2017 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 152951)); + INSERT INTO edfi.EducationServiceCenter( EducationServiceCenterId,StateEducationAgencyId) (SELECT TOP 1 '152951',NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= 152951)); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT TOP 1 '867531', NULL, '1086', NULL, '152951', NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530023', 867531, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530023) ); + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '1506', 'uri://ed-fi.org/AddressTypeDescriptor', 'Physical2', 'Physical2', 'Physical2', NULL, NULL, NULL, 'B3FBA2D3-794A-4288-8A91-3DEDF43AFD75', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1506)); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT TOP 1 '1506' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1506)); + + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530011', 'Burnett (Peter)', NULL, NULL, NULL, 'edfi.School', 'EB647B4D-2EE1-42DE-95A3-118BE5FB3DF9', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530011', '867530', NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530011) ); + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT TOP 1 '867530011', '1506', '2602 2ND ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530011 and AddressTypeDescriptorId = 1506)); + + INSERT INTO edfi.EducationOrganizationAddress ( AddressTypeDescriptorId, City, EducationOrganizationId, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, ApartmentRoomSuiteNumber, BuildingSiteNumber, NameOfCounty, CountyFIPSCode, Latitude, Longitude, DoNotPublishIndicator, CongressionalDistrict, LocaleDescriptorId, CreateDate ) ( SELECT TOP 1 '1506', 'Grand Bend', '867530011', '9376', '1451', 'P.O. Box 9376', NULL, NULL, 'Williston', NULL, NULL, NULL, NULL, NULL, NULL, '2019-12-06 11:58:59.8833333' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE educationorganizationid = 867530011 AND postalcode = '9376' ) ); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT TOP 1 1506 ,'Sep 21 2017 00:00AM' ,'Grand Bend' ,867530011 ,'9376' ,'1451' ,'P.O. Box 9376' ,'Jun 19 2015 11:41AM' ,'Jun 19 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1506 AND educationorganizationid = 867530011 AND postalcode = '9376' )); + + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT TOP 1 '867530012', 'Bayside High School', NULL, NULL, NULL, 'edfi.School', 'FB647B4D-2EE1-42DE-95A3-118BE5FB3DF9', 'Sep 19 2015 11:34AM', 'Sep 19 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530012')); + INSERT INTO edfi.School(SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) ( SELECT TOP 1 '867530012', '867530', NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530012) ); + INSERT INTO edfi.EducationOrganizationAddress ( AddressTypeDescriptorId, City, EducationOrganizationId, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, ApartmentRoomSuiteNumber, BuildingSiteNumber, NameOfCounty, CountyFIPSCode, Latitude, Longitude, DoNotPublishIndicator, CongressionalDistrict, LocaleDescriptorId, CreateDate ) ( SELECT TOP 1 '1505', 'Grand Bend', '867530012', '9377', '1451', 'P.O. Box 9377', NULL, NULL, 'Williston', NULL, NULL, NULL, NULL, NULL, NULL, '2019-12-07 11:58:59.8833333' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE educationorganizationid = 867530012 AND postalcode = '9377' ) ); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT TOP 1 1505 ,'Sep 22 2017 00:00AM' ,'Grand Bend' ,867530012 ,'9377' ,'1451' ,'P.O. Box 9377' ,'Jun 19 2015 11:41AM' ,'Jun 20 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1505 AND educationorganizationid = 867530012 AND postalcode = '9377' )); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..a4a29229 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,62 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'SchoolDim' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "SchoolKey", + "DataType": "varchar" + }, + { + "ColumnName": "SchoolName", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolType", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolAddress", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolCity", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolCounty", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolState", + "DataType": "nvarchar" + }, + { + "ColumnName": "LocalEducationAgencyName", + "DataType": "nvarchar" + }, + { + "ColumnName": "LocalEducationAgencyKey", + "DataType": "int" + }, + { + "ColumnName": "StateEducationAgencyName", + "DataType": "nvarchar" + }, + { + "ColumnName": "StateEducationAgencyKey", + "DataType": "int" + }, + { + "ColumnName": "EducationServiceCenterName", + "DataType": "nvarchar" + }, + { + "ColumnName": "EducationServiceCenterKey", + "DataType": "int" + }, + { + "ColumnName": "LastModifiedDate", + "DataType": "datetime2" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/PostgreSQL/v_3_3/0000_SchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/PostgreSQL/v_3_3/0000_SchoolDim_Data_Load.xml new file mode 100644 index 00000000..a268e90d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/PostgreSQL/v_3_3/0000_SchoolDim_Data_Load.xml @@ -0,0 +1,95 @@ + + + Any + + ALTER TABLE edfi.school DISABLE TRIGGER ALL; + + + + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530010', 'Fremont', NULL, NULL, NULL, 'edfi.School', '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530', 'Glendale ISD', NULL, NULL, NULL, 'edfi.School', '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '152950', 'ESC Region 17', NULL, NULL, NULL, 'edfi.School', '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter( EducationServiceCenterId,StateEducationAgencyId) (SELECT '152950', NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1086', 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', 'Independent', 'Independent', 'Independent', NULL, NULL, NULL, '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', 'Jun 19 2015 12:17PM', 'Jun 19 2015 12:17PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor ( LocalEducationAgencyCategoryDescriptorId) (SELECT 1086 WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) ); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT '867530' ,NULL, '1086', NULL, '152950', NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.descriptor (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) (SELECT '1695', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular', 'Regular', 'Regular', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', 'Jun 19 2015 11:42AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) ); + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( SELECT 1695 WHERE NOT EXISTS ( SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695) ); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530010', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530010) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530007', 'Badger Springs', NULL, NULL, NULL, 'edfi.School', '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.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530007', '867530', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530007) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530009', 'Burnett (Peter)', NULL, NULL, NULL, 'edfi.School', 'EB647B4D-2EE1-42DE-95A3-118BE5FB3DF8', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530009')); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530009', '867530', NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530009) ); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1500', 'uri://ed-fi.org/AddressTypeDescriptor', 'Home', 'Home', 'Home', NULL, NULL, NULL, 'F50C3DB8-302D-491A-A2BE-1B0610DDC6EC', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1500)); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1500' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1500)); + + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1451', 'uri://ed-fi.org/StateAbbreviationDescriptor', 'TX', 'TX', 'TX', NULL, NULL, NULL, '67A24BD2-B27E-42A1-A508-2D45B49C6617', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1451)); + + INSERT INTO edfi.StateAbbreviationDescriptor( StateAbbreviationDescriptorId) (SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= 1451)); + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '867530009', '1500', '2604 3RD ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530009 and AddressTypeDescriptorId = 1500)); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1505', 'uri://ed-fi.org/AddressTypeDescriptor', 'Physical', 'Physical', 'Physical', NULL, NULL, NULL, 'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1505)); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1505' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1505)); + + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '867530009', '1505', '2602 2ND ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530009 and AddressTypeDescriptorId = 1505)); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT 1505 ,'Sep 21 2017 00:00AM' ,'Glendale' ,867530009 ,'75862-0001' ,'1451' ,'2602 2ND ST' ,NULL ,'Jun 19 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1505 AND educationorganizationid = 867530009 AND postalcode = '75862-0001' ) ); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1502', 'uri://ed-fi.org/AddressTypeDescriptor', 'Mailing', 'Mailing', 'Mailing', NULL, NULL, NULL, '93E71ED1-83A8-4FAF-8039-D1FD5F846964', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1502)); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1502' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1502)); + + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '867530009', '1502', '2600 1ST ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530009 and AddressTypeDescriptorId = 1502)); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT 1502 ,'Sep 21 2017 00:00AM' ,'Glendale' ,867530009 ,'75862-0001' ,'1451' ,'2600 1ST ST' ,NULL ,'Jun 19 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1502 AND educationorganizationid = 867530009 AND postalcode = '75862-0001' ) ); + -- + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '152990', 'ESC Region 17', NULL, NULL, NULL, 'edfi.School', '03DE6F94-316A-4B06-8C67-2C8748DCA1A8', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId = 152990)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530020', 'Beverly Hills High School', NULL, NULL, NULL, 'edfi.School', '56888B72-8AF0-4741-B6BC-90950E29A276', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867530020)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867532', 'Glendale ISD', NULL, NULL, NULL, 'edfi.School', '9CC29A49-637C-4882-A7DB-99AD87690CFC', 'Sep 21 2019 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867532)); + INSERT INTO edfi.StateEducationAgency( StateEducationAgencyId) (SELECT '867532' WHERE NOT EXISTS( SELECT 1 FROM edfi.StateEducationAgency WHERE StateEducationAgencyId = 867532)); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT '867530020', NULL, '1086', NULL, '152950', '867532' WHERE NOT EXISTS( SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= 867530020)); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530020', 867530020, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530020) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530021', 'Belmont High School', NULL, NULL, NULL, 'edfi.School', '96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC', 'Sep 21 2017 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867530021)); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530021', 867530, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530021) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530022', 'Hollywood High School', NULL, NULL, NULL, 'edfi.School', '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.descriptor (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) (SELECT '1696', 'uri://ed-fi.org/SchoolTypeDescriptor', 'Regular2', 'Regular2', 'Regular2', NULL, NULL, NULL, 'F5712765-A14F-4A3D-ABC9-BADFC9134BC2', 'Jun 21 2017 11:34AM', 'Jun 19 2015 11:42AM' WHERE NOT EXISTS (SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1696) ); + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( SELECT 1696 WHERE NOT EXISTS ( SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1696) ); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530022', 867530, NULL, NULL, NULL, NULL, NULL, NULL, 1696, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530022) ); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '628530001', 'Lander Middle', NULL, NULL, NULL, 'edfi.School', '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.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '628530', 'Lander ISD', NULL, NULL, NULL, 'edfi.School', '13CC7674-8E27-443F-88B8-F8FDDD4601F1', 'Sep 21 2017 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 628530)); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT '628530', NULL, '1086', NULL, '152950', NULL 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.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530023', 'Dorsey High School', NULL, NULL, NULL, 'edfi.School', '630ED5F3-09C7-404B-B0F8-99F608E46D35', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867530023)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867531', 'Glendale ISD', NULL, NULL, NULL, 'edfi.School', '9CC29A49-637C-4882-A7DB-99AD87690CFD', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 867531)); + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '152951', 'ESC Region 17', NULL, NULL, NULL, 'edfi.School', '03DE6F94-316A-4B06-8C67-2C8748DCA110', 'Sep 21 2017 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= 152951)); + INSERT INTO edfi.EducationServiceCenter( EducationServiceCenterId,StateEducationAgencyId) (SELECT '152951',NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= 152951)); + INSERT INTO edfi.LocalEducationAgency( LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) (SELECT '867531', NULL, '1086', NULL, '152951', NULL WHERE NOT EXISTS( SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId, InternetAccessDescriptorId, MagnetSpecialProgramEmphasisSchoolDescriptorId, SchoolTypeDescriptorId, TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530023', 867531, NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530023) ); + + INSERT INTO edfi.Descriptor( DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) (SELECT '1506', 'uri://ed-fi.org/AddressTypeDescriptor', 'Physical2', 'Physical2', 'Physical2', NULL, NULL, NULL, 'B3FBA2D3-794A-4288-8A91-3DEDF43AFD75', 'Dec 13 2018 2:31PM', 'Dec 13 2018 2:31PM' WHERE NOT EXISTS( SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= 1506)); + + INSERT INTO edfi.AddressTypeDescriptor( AddressTypeDescriptorId) (SELECT '1506' WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= 1506)); + + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530011', 'Burnett (Peter)', NULL, NULL, NULL, 'edfi.School', 'EB647B4D-2EE1-42DE-95A3-118BE5FB3DF9', 'Sep 18 2015 11:34AM', 'Sep 18 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.School (SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530011', '867530', NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530011) ); + INSERT INTO edfi.EducationOrganizationAddress( EducationOrganizationId,AddressTypeDescriptorId,StreetNumberName,ApartmentRoomSuiteNumber,BuildingSiteNumber,City,StateAbbreviationDescriptorId,PostalCode, NameOfCounty,CountyFIPSCode,Latitude,Longitude,DoNotPublishIndicator,CongressionalDistrict,LocaleDescriptorId,CreateDate) (SELECT '867530011', '1506', '2602 2ND ST', NULL, NULL, 'Glendale', '1451', '75862-0001', 'The County', NULL, NULL, NULL, NULL, NULL, NULL, 'Sep 21 2017 00:00AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE EducationOrganizationId = 867530011 and AddressTypeDescriptorId = 1506)); + + INSERT INTO edfi.EducationOrganizationAddress ( AddressTypeDescriptorId, City, EducationOrganizationId, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, ApartmentRoomSuiteNumber, BuildingSiteNumber, NameOfCounty, CountyFIPSCode, Latitude, Longitude, DoNotPublishIndicator, CongressionalDistrict, LocaleDescriptorId, CreateDate ) ( SELECT '1506', 'Grand Bend', '867530011', '9376', '1451', 'P.O. Box 9376', NULL, NULL, 'Williston', NULL, NULL, NULL, NULL, NULL, NULL, '2019-12-06 11:58:59.8833333' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE educationorganizationid = 867530011 AND postalcode = '9376' ) ); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT 1506 ,'Sep 21 2017 00:00AM' ,'Grand Bend' ,867530011 ,'9376' ,'1451' ,'P.O. Box 9376' ,'Jun 19 2015 11:41AM' ,'Jun 19 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1506 AND educationorganizationid = 867530011 AND postalcode = '9376' )); + + INSERT INTO edfi.EducationOrganization( EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Discriminator,Id,LastModifiedDate,CreateDate) (SELECT '867530012', 'Bayside High School', NULL, NULL, NULL, 'edfi.School', 'FB647B4D-2EE1-42DE-95A3-118BE5FB3DF9', 'Sep 19 2015 11:34AM', 'Sep 19 2015 11:34AM' WHERE NOT EXISTS( SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530012')); + INSERT INTO edfi.School(SchoolId, LocalEducationAgencyId, AdministrativeFundingControlDescriptorId, CharterApprovalSchoolYear, CharterApprovalAgencyTypeDescriptorId, CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) ( SELECT '867530012', '867530', NULL, NULL, NULL, NULL, NULL, NULL, 1695, NULL WHERE NOT EXISTS (SELECT 1 FROM edfi.School WHERE SchoolId = 867530012) ); + INSERT INTO edfi.EducationOrganizationAddress ( AddressTypeDescriptorId, City, EducationOrganizationId, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, ApartmentRoomSuiteNumber, BuildingSiteNumber, NameOfCounty, CountyFIPSCode, Latitude, Longitude, DoNotPublishIndicator, CongressionalDistrict, LocaleDescriptorId, CreateDate ) ( SELECT '1505', 'Grand Bend', '867530012', '9377', '1451', 'P.O. Box 9377', NULL, NULL, 'Williston', NULL, NULL, NULL, NULL, NULL, NULL, '2019-12-07 11:58:59.8833333' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddress WHERE educationorganizationid = 867530012 AND postalcode = '9377' ) ); + INSERT INTO edfi.EducationOrganizationAddressPeriod (AddressTypeDescriptorId ,BeginDate ,City ,EducationOrganizationId ,PostalCode ,StateAbbreviationDescriptorId ,StreetNumberName ,EndDate ,CreateDate) (SELECT 1505 ,'Sep 22 2017 00:00AM' ,'Grand Bend' ,867530012 ,'9377' ,'1451' ,'P.O. Box 9377' ,'Jun 19 2015 11:41AM' ,'Jun 20 2015 11:41AM' WHERE NOT EXISTS ( SELECT 1 FROM edfi.EducationOrganizationAddressPeriod WHERE AddressTypeDescriptorId=1505 AND educationorganizationid = 867530012 AND postalcode = '9377' )); + + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..3f788a2c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,62 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'schooldim' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "schoolkey", + "DataType": "character varying" + }, + { + "ColumnName": "schoolname", + "DataType": "character varying" + }, + { + "ColumnName": "schooltype", + "DataType": "character varying" + }, + { + "ColumnName": "schooladdress", + "DataType": "text" + }, + { + "ColumnName": "schoolcity", + "DataType": "character varying" + }, + { + "ColumnName": "schoolcounty", + "DataType": "character varying" + }, + { + "ColumnName": "schoolstate", + "DataType": "character varying" + }, + { + "ColumnName": "localeducationagencyname", + "DataType": "character varying" + }, + { + "ColumnName": "localeducationagencykey", + "DataType": "integer" + }, + { + "ColumnName": "stateeducationagencyname", + "DataType": "character varying" + }, + { + "ColumnName": "stateeducationagencykey", + "DataType": "integer" + }, + { + "ColumnName": "educationservicecentername", + "DataType": "character varying" + }, + { + "ColumnName": "educationservicecenterkey", + "DataType": "integer" + }, + { + "ColumnName": "lastmodifieddate", + "DataType": "timestamp without time zone" + } + ] +} \ No newline at end of file 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 new file mode 100644 index 00000000..b754dbb2 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0000_SectionDim_Data_Load.xml @@ -0,0 +1,615 @@ + + + Any + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + 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 TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL 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')); + + 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','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','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= 'QBIR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='741922CD-51F6-4D76-B5D1-779980288273')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','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= 'ACER31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER31','867530011','2012','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C886AE90-AE5B-4C52-8199-514E1CD44281')); + + 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 TOP 1'867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','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= 'ARTR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530011','2012','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F8F83759-C1B4-4814-8187-F038569FB4D6')); + + 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 TOP 1'867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','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= 'BCSR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BCSR21','867530011','2012','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F38F91E5-8D0E-4878-B597-C00C3D91FFF6')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + + 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 TOP 1'867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','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= 'FSP78A' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSP78A','867530011','2012','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','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='13E51EA7-C2B2-4514-808F-A335EF57B92A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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 TOP 1'867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','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 id='E4A55D39-C269-44FB-8F04-9028F30A114A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530017','Bunche',NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + + 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 TOP 1'867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','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 id='32AEF233-B3AC-4E85-9610-BB4E1C7B39B8')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + 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 TOP 1'867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','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 id='73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E')); + + 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 TOP 1'867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','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= 'QWHR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QWHR11','867530011','2012','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QWHR11','2012','1',NULL,NULL,'1.000','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21341','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '21341' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QWHR11','2012','2012-01-04','2012-05-25','0',NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','21341','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8072995E-BC62-4EB0-B36E-87FC5800BBFE')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QBIR21','2012','1',NULL,NULL,'1.000','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9315','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9315' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QBIR21','2012','2012-01-04','2012-05-25','0',NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9315','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7FCDD6E7-88A4-4900-8839-25618F28094D')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QAGR40','2012','2012-01-04','2012-05-25','0',NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18940','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='E885EC43-603A-4984-AF5F-DA1198EB6242')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'9' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + 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 TOP 1'867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','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= 'CAFR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C20E55AF-240B-4F3B-A419-12B02520A630')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1993-09-07',NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1B54F0C2-FF81-471B-9D71-7703C2435166')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='3E93E4A7-4601-45ED-9551-C85EEFC4AA24')); + + 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 TOP 1'867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','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= 'LENR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='75BCE349-BE3D-4472-88DC-60ED8227A077')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','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= 'YTAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YTAR11','867530022','2012','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YTAR11','2012','1',NULL,NULL,'1.000','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15583','867530022','AUDITORIUM','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15583' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','YTAR11','2012','2011-08-22','2011-12-20','0',NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15583','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2DD5B2D3-B506-42BA-BB84-315CD190F0E1')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1948-01-01','0','102','36.00',NULL,'1',NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B249A085-39A9-4FDB-AB84-C6705CE9D271')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1976-11-07','1','102','9.00',NULL,'0',NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E31E0EBB-3B66-4379-B816-EB1FAFEEAD24')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'1976-01-28','0','102','1.00',NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='46E208A1-84E2-40B3-B8F7-C4C332CBF528')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='9DD0B659-03AC-4395-A8C1-5B94C8CAE77F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530024','Carter',NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + 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 TOP 1'867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','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 id='E6BC7324-220F-4BC1-84E5-D5965E51FA7A')); + + 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 TOP 1'867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','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 id='267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='858E4B4D-33FA-4366-A6BA-D1C8986DDFC4')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='0AC3BDCE-5116-40D1-B902-A826F3E0F117')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D2F5A8DA-F50C-4971-A382-359CF755B5D3')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1983-02-27','0','102','4.00',NULL,'1',NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7019','867530022','LENR41','2012','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','4575-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FB7CD109-7585-41D5-88E3-B1B1A922FF3B')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='8EE158B4-1046-448D-AC4B-9ED5B45222DA')); + + 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 TOP 1'867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','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= 'CALR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CALR41','867530022','2012','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CALR41','2012','1',NULL,NULL,'0.500','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2217-3','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2217-3' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'1977-04-06','0','102','9.00',NULL,'1',NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'6425','867530022','CALR41','2012','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','2217-3','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='491C8FA4-3128-44F5-B562-994C65B88107')); + + 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 TOP 1'867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','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= 'GYMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'GYMR31','867530022','2012','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','GYMR31','2012','1',NULL,NULL,'0.500','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3350','867530022','AUDITORIUM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3350' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'1965-05-18','0','102','11.00',NULL,'0',NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3192','867530022','GYMR31','2012','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','3350','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='31D9D449-60AD-4439-9B13-A17FE54F1A6C')); + + 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 TOP 1'867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','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= 'AJFR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'AJFR31','867530022','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','AJFR31','2012','1',NULL,NULL,'1.000','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','25','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '25' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1980-05-24','1','102','4.00',NULL,'1',NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','AJFR31','2012','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','25','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='862F5F47-1C7F-469E-BBB7-150B320EC3BD')); + + 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 TOP 1'867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','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= 'ICSC41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ICSC41','867530022','2012','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ICSC41','2012','1',NULL,NULL,'1.000','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3418','867530022','02','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3418' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1972-07-06','0','102','15.00',NULL,'1',NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3803','867530022','ICSC41','2012','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','3418','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='2B0D1D59-4F97-4C91-A670-46818D701E86')); + + 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 TOP 1'867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','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= 'YBIR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14964','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14964' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1977-08-22','0','102','1.00',NULL,'1',NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14964','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3A39B802-C310-4073-92B0-71521419061A')); + + 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 TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR11','2012','1',NULL,NULL,'1.000','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','954','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '954' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','ARTR11','2012','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','954','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='56B79ABE-9D44-46EE-A87A-FCF1024D3BFD')); + + 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 TOP 1'867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','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= 'YMPH11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2580',NULL,'Mark','F','Fronk',NULL,NULL,'1963-04-11','0',NULL,'20.00',NULL,'0',NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='54B76299-8F04-45D8-907F-5135DC8B8CFB')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E')); + + 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 TOP 1'867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','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= 'CAFR21' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR21','867530022','2012','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR21','2012','1',NULL,NULL,'0.500','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2137','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2137' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1AE26CF8-131D-4A45-8582-C8F0A867941D')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E6FDD31D-F087-4410-A62A-62BB4E18854C')); + + 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 TOP 1'867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','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= 'CAFR12' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR12','867530022','2012','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR12','2012','1',NULL,NULL,'0.500','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','20782-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '20782-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR12','2012','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','20782-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='9641D271-C3B8-4FDF-B839-1B28F6FA3BEC')); + + 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 TOP 1'867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','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= 'BPPR10' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21223','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '21223' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','BPPR10','2012','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','21223','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='20071FA7-0526-4C36-9920-9F2F847CF527')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9092','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9092' AND SessionName= 'Traditional')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' 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,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1951-04-17','0','105','32.00',NULL,'0',NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','9092','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B75BF103-8450-466B-AE26-840341313E70')); + + 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 TOP 1'867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','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= 'QENR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9676','867530011','9922','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9676' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9676','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='5AF842D2-5D21-44A3-A25D-1176B18DB58F')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9675','867530011','9921','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9675' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9675','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FA14A3BA-8E29-4F75-9574-A4F61EF2544C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='98693363-4F20-4932-B72D-896CAEC34053')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='BE4FF557-3876-47A8-9454-DAF1AD943CFB')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FE88F203-12C4-4FC9-B348-B2F6422162CD')); + + 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 TOP 1'867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','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= 'YFAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YFAR11','867530022','2012','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YFAR11','2012','1',NULL,NULL,'1.000','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15045-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15045-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YFAR11','2012','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','15045-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1283',NULL,'Saul','F','Elston',NULL,NULL,'1965-02-25','0','105','21.00',NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='11B214C7-D435-4E88-A462-C31797EDCCDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='924D21AB-4D67-4618-A23B-4D23C71EA11D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','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= 'QALR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QALR11','867530011','2012','Algebra I (1 Unit)',NULL,'QALR11','867530011','419D1CFB-BCB9-4161-9868-804575679155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QALR11','2012','1',NULL,NULL,'0.500','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QALR11','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 TOP 1'867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','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= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530010','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','QAGR40','2012','1',NULL,NULL,'0.500','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530010','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530010','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2011','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','7E9A766F-23B5-4CB4-84CF-5CDEB79A5207','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '28C59BC9-5F47-496D-8EBA-99490A36013A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + 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 TOP 1'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 TOP 1'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 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.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')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'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 TOP 1'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')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'628530001','QAGR40','2012','1',NULL,NULL,'0.500','0EE38E0D-93CC-46F5-ABCE-6965D9815310','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','628530001','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','628530001','QAGR40','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','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= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','B3C3DFF1-C5C9-4876-A84E-AA11E7BDC46E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'0B7777A3-FADB-4147-A280-77039E96C119','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id = '0B7777A3-FADB-4147-A280-77039E96C119')); + + 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 TOP 1'867530011','APAR31','Art Iii Painting (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A8C5ED64-1D25-4B34-BAA3-DEC940C99347','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= 'APAR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'APAR31','867530011','2012','Art Iii Painting (1 Unit)',NULL,'APAR31','867530011','1ACA07E6-9D2F-45FE-92EB-3145FB780EE3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','209',NULL,NULL,'26213BA8-7EAB-49B6-AEB5-B33C00F5098C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','APAR31','2012','1',NULL,NULL,'1.000','F1C0DBC1-68E4-40CA-B004-065A3331DAA3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','APAR31','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'A3530906-00BC-4FCF-90E0-7657B28F877E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id='A3530906-00BC-4FCF-90E0-7657B28F877E')); + + 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.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + + UPDATE edfi.Descriptor SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E'; + + INSERT INTO edfi.ClassPeriod VALUES ('CL1',628530001,1,'1','2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','QAGR40',628530001,2012,'18940','Traditional-Spring Semester','2021-01-01'); + + INSERT INTO edfi.ClassPeriod VALUES ('CL1',867530011,1,'1','2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','QAGR40',867530011,2012,'9092','Traditional','2021-01-01'); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','QAGR40',867530011,2011,'18940','Traditional','2021-01-01'); + + INSERT INTO edfi.ClassPeriod VALUES ('CL1',867530022,1,'1','2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','BPPR10',867530022,2012,'1961-2','Traditional','2021-01-01'); + + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','APAR31',867530011,2012,'18940','Traditional-Spring Semester','2021-01-01'); + + INSERT INTO edfi.CourseOffering VALUES ('APAR31',867530011,2011,'Traditional-Spring Semester','Business Information Management',NULL,'APAR31',867530011, NULL,'2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.Section(LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId,AvailableCredits,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,LocationSchoolId,LocationClassroomIdentificationCode,Discriminator,CreateDate,LastModifiedDate,Id) VALUES ('APAR31', 867530011, 2011 ,'18940', 'Traditional-Spring Semester' ,1 ,950, NULL, 1232, 1.000, NULL, NULL, NULL, 867530011, 115, NULL, '2015-09-18 11:34:00.0000000', '2015-09-18 11:34:00.0000000', NEWID()); + + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','APAR31',867530011,2011,'18940','Traditional-Spring Semester','2021-01-01'); + + INSERT INTO edfi.Session VALUES (867530010,2011,'Traditional','2011-08-22','2011-12-20',535,82,NULL,'2015-09-18','2015-09-18',NEWID()) + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0001_SectionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0001_SectionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..2ef263bb --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0001_SectionDim_should_match_column_dictionary.xml @@ -0,0 +1,62 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'SectionDim' + ORDER BY ORDINAL_POSITION ASC; + + + SchoolKey + varchar + + + SectionKey + nvarchar + + + Description + nvarchar + + + SectionName + nvarchar + + + SessionName + nvarchar + + + LocalCourseCode + nvarchar + + + SchoolYear + smallint + + + LocalEducationAgencyKey + int + + + EducationalEnvironmentDescriptor + nvarchar + + + LastModifiedDate + datetime2 + + + CourseTitle + nvarchar + + + SessionKey + nvarchar + + \ No newline at end of file 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 new file mode 100644 index 00000000..33fc022c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0000_SectionDim_Data_Load.xml @@ -0,0 +1,620 @@ + + + Any + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + 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 TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL 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')); + + 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','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','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= 'QBIR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='741922CD-51F6-4D76-B5D1-779980288273')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','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= 'ACER31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER31','867530011','2012','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C886AE90-AE5B-4C52-8199-514E1CD44281')); + + 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 TOP 1'867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','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= 'ARTR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530011','2012','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F8F83759-C1B4-4814-8187-F038569FB4D6')); + + 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 TOP 1'867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','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= 'BCSR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BCSR21','867530011','2012','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F38F91E5-8D0E-4878-B597-C00C3D91FFF6')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + + 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 TOP 1'867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','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= 'FSP78A' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSP78A','867530011','2012','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','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='13E51EA7-C2B2-4514-808F-A335EF57B92A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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 TOP 1'867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','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 id='E4A55D39-C269-44FB-8F04-9028F30A114A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530017','Bunche',NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + + 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 TOP 1'867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','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 id='32AEF233-B3AC-4E85-9610-BB4E1C7B39B8')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + 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 TOP 1'867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','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 id='73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E')); + + 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 TOP 1'867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','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= 'QWHR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QWHR11','867530011','2012','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QWHR11','2012','1',NULL,NULL,'1.000','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21341','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '21341' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QWHR11','2012','2012-01-04','2012-05-25','0',NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','21341','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8072995E-BC62-4EB0-B36E-87FC5800BBFE')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QBIR21','2012','1',NULL,NULL,'1.000','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9315','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9315' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QBIR21','2012','2012-01-04','2012-05-25','0',NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9315','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7FCDD6E7-88A4-4900-8839-25618F28094D')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QAGR40','2012','2012-01-04','2012-05-25','0',NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18940','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='E885EC43-603A-4984-AF5F-DA1198EB6242')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'9' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + 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 TOP 1'867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','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= 'CAFR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C20E55AF-240B-4F3B-A419-12B02520A630')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1993-09-07',NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1B54F0C2-FF81-471B-9D71-7703C2435166')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='3E93E4A7-4601-45ED-9551-C85EEFC4AA24')); + + 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 TOP 1'867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','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= 'LENR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='75BCE349-BE3D-4472-88DC-60ED8227A077')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','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= 'YTAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YTAR11','867530022','2012','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YTAR11','2012','1',NULL,NULL,'1.000','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15583','867530022','AUDITORIUM','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15583' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','YTAR11','2012','2011-08-22','2011-12-20','0',NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15583','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2DD5B2D3-B506-42BA-BB84-315CD190F0E1')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1948-01-01','0','102','36.00',NULL,'1',NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B249A085-39A9-4FDB-AB84-C6705CE9D271')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1976-11-07','1','102','9.00',NULL,'0',NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E31E0EBB-3B66-4379-B816-EB1FAFEEAD24')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'1976-01-28','0','102','1.00',NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='46E208A1-84E2-40B3-B8F7-C4C332CBF528')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='9DD0B659-03AC-4395-A8C1-5B94C8CAE77F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530024','Carter',NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + 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 TOP 1'867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','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 id='E6BC7324-220F-4BC1-84E5-D5965E51FA7A')); + + 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 TOP 1'867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','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 id='267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='858E4B4D-33FA-4366-A6BA-D1C8986DDFC4')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='0AC3BDCE-5116-40D1-B902-A826F3E0F117')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D2F5A8DA-F50C-4971-A382-359CF755B5D3')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1983-02-27','0','102','4.00',NULL,'1',NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7019','867530022','LENR41','2012','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','4575-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FB7CD109-7585-41D5-88E3-B1B1A922FF3B')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='8EE158B4-1046-448D-AC4B-9ED5B45222DA')); + + 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 TOP 1'867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','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= 'CALR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CALR41','867530022','2012','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CALR41','2012','1',NULL,NULL,'0.500','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2217-3','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2217-3' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'1977-04-06','0','102','9.00',NULL,'1',NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'6425','867530022','CALR41','2012','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','2217-3','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='491C8FA4-3128-44F5-B562-994C65B88107')); + + 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 TOP 1'867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','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= 'GYMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'GYMR31','867530022','2012','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','GYMR31','2012','1',NULL,NULL,'0.500','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3350','867530022','AUDITORIUM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3350' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'1965-05-18','0','102','11.00',NULL,'0',NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3192','867530022','GYMR31','2012','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','3350','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='31D9D449-60AD-4439-9B13-A17FE54F1A6C')); + + 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 TOP 1'867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','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= 'AJFR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'AJFR31','867530022','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','AJFR31','2012','1',NULL,NULL,'1.000','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','25','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '25' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1980-05-24','1','102','4.00',NULL,'1',NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','AJFR31','2012','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','25','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='862F5F47-1C7F-469E-BBB7-150B320EC3BD')); + + 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 TOP 1'867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','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= 'ICSC41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ICSC41','867530022','2012','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ICSC41','2012','1',NULL,NULL,'1.000','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3418','867530022','02','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3418' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1972-07-06','0','102','15.00',NULL,'1',NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3803','867530022','ICSC41','2012','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','3418','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='2B0D1D59-4F97-4C91-A670-46818D701E86')); + + 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 TOP 1'867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','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= 'YBIR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14964','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14964' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1977-08-22','0','102','1.00',NULL,'1',NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14964','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3A39B802-C310-4073-92B0-71521419061A')); + + 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 TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR11','2012','1',NULL,NULL,'1.000','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','954','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '954' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','ARTR11','2012','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','954','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='56B79ABE-9D44-46EE-A87A-FCF1024D3BFD')); + + 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 TOP 1'867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','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= 'YMPH11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2580',NULL,'Mark','F','Fronk',NULL,NULL,'1963-04-11','0',NULL,'20.00',NULL,'0',NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='54B76299-8F04-45D8-907F-5135DC8B8CFB')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E')); + + 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 TOP 1'867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','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= 'CAFR21' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR21','867530022','2012','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR21','2012','1',NULL,NULL,'0.500','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2137','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2137' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1AE26CF8-131D-4A45-8582-C8F0A867941D')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E6FDD31D-F087-4410-A62A-62BB4E18854C')); + + 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 TOP 1'867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','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= 'CAFR12' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR12','867530022','2012','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR12','2012','1',NULL,NULL,'0.500','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','20782-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '20782-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR12','2012','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','20782-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='9641D271-C3B8-4FDF-B839-1B28F6FA3BEC')); + + 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 TOP 1'867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','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= 'BPPR10' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21223','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '21223' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','BPPR10','2012','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','21223','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='20071FA7-0526-4C36-9920-9F2F847CF527')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9092','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9092' AND SessionName= 'Traditional')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' 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,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1951-04-17','0','105','32.00',NULL,'0',NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','9092','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B75BF103-8450-466B-AE26-840341313E70')); + + 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 TOP 1'867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','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= 'QENR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9676','867530011','9922','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9676' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9676','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='5AF842D2-5D21-44A3-A25D-1176B18DB58F')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9675','867530011','9921','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9675' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9675','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FA14A3BA-8E29-4F75-9574-A4F61EF2544C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='98693363-4F20-4932-B72D-896CAEC34053')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='BE4FF557-3876-47A8-9454-DAF1AD943CFB')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FE88F203-12C4-4FC9-B348-B2F6422162CD')); + + 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 TOP 1'867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','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= 'YFAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YFAR11','867530022','2012','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YFAR11','2012','1',NULL,NULL,'1.000','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15045-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15045-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YFAR11','2012','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','15045-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1283',NULL,'Saul','F','Elston',NULL,NULL,'1965-02-25','0','105','21.00',NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='11B214C7-D435-4E88-A462-C31797EDCCDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='924D21AB-4D67-4618-A23B-4D23C71EA11D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','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= 'QALR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QALR11','867530011','2012','Algebra I (1 Unit)',NULL,'QALR11','867530011','419D1CFB-BCB9-4161-9868-804575679155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QALR11','2012','1',NULL,NULL,'0.500','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QALR11','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 TOP 1'867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','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= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530010','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','QAGR40','2012','1',NULL,NULL,'0.500','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530010','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530010','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2011','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','7E9A766F-23B5-4CB4-84CF-5CDEB79A5207','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '28C59BC9-5F47-496D-8EBA-99490A36013A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + 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 TOP 1'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 TOP 1'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 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.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')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'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 TOP 1'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')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'628530001','QAGR40','2012','1',NULL,NULL,'0.500','0EE38E0D-93CC-46F5-ABCE-6965D9815310','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','628530001','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','628530001','QAGR40','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','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= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','B3C3DFF1-C5C9-4876-A84E-AA11E7BDC46E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'0B7777A3-FADB-4147-A280-77039E96C119','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id = '0B7777A3-FADB-4147-A280-77039E96C119')); + + 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 TOP 1'867530011','APAR31','Art Iii Painting (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A8C5ED64-1D25-4B34-BAA3-DEC940C99347','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= 'APAR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'APAR31','867530011','2012','Art Iii Painting (1 Unit)',NULL,'APAR31','867530011','1ACA07E6-9D2F-45FE-92EB-3145FB780EE3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','209',NULL,NULL,'26213BA8-7EAB-49B6-AEB5-B33C00F5098C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','APAR31','2012','1',NULL,NULL,'1.000','F1C0DBC1-68E4-40CA-B004-065A3331DAA3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','APAR31','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'A3530906-00BC-4FCF-90E0-7657B28F877E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id='A3530906-00BC-4FCF-90E0-7657B28F877E')); + + 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.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + + UPDATE edfi.Descriptor SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E'; + + INSERT INTO edfi.ClassPeriod (ClassPeriodName,SchoolId,OfficialAttendancePeriod,Discriminator,CreateDate,LastModifiedDate,Id) + VALUES ('CL1',628530001,1,'1','2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','QAGR40',628530001,2012,'18940','Traditional-Spring Semester','2021-01-01'); + + INSERT INTO edfi.ClassPeriod (ClassPeriodName,SchoolId,OfficialAttendancePeriod,Discriminator,CreateDate,LastModifiedDate,Id) + VALUES ('CL1',867530011,1,'1','2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','QAGR40',867530011,2012,'9092','Traditional','2021-01-01'); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','QAGR40',867530011,2011,'18940','Traditional','2021-01-01'); + + INSERT INTO edfi.ClassPeriod (ClassPeriodName,SchoolId,OfficialAttendancePeriod,Discriminator,CreateDate,LastModifiedDate,Id) + VALUES ('CL1',867530022,1,'1','2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','BPPR10',867530022,2012,'1961-2','Traditional','2021-01-01'); + + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','APAR31',867530011,2012,'18940','Traditional-Spring Semester','2021-01-01'); + + INSERT INTO edfi.CourseOffering (LocalCourseCode,SchoolId,SchoolYear,SessionName,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Discriminator,CreateDate,LastModifiedDate,Id) + VALUES ('APAR31',867530011,2011,'Traditional-Spring Semester','Business Information Management',NULL,'APAR31',867530011, NULL,'2021-01-01','2021-01-01',NEWID()); + INSERT INTO edfi.Section(LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId,AvailableCredits,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,LocationSchoolId,LocationClassroomIdentificationCode,Discriminator,CreateDate,LastModifiedDate,Id) VALUES ('APAR31', 867530011, 2011 ,'18940', 'Traditional-Spring Semester' ,1 ,950, NULL, 1232, 1.000, NULL, NULL, NULL, 867530011, 115, NULL, '2015-09-18 11:34:00.0000000', '2015-09-18 11:34:00.0000000', NEWID()); + + INSERT INTO edfi.SectionClassPeriod VALUES ('Cl1','APAR31',867530011,2011,'18940','Traditional-Spring Semester','2021-01-01'); + + INSERT INTO edfi.Session (SchoolId,SchoolYear,SessionName,BeginDate,EndDate,TermDescriptorId,TotalInstructionalDays,Discriminator,CreateDate,LastModifiedDate,Id) + VALUES (867530010,2011,'Traditional','2011-08-22','2011-12-20',535,82,NULL,'2015-09-18','2015-09-18',NEWID()) + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0001_SectionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0001_SectionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..2ef263bb --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0001_SectionDim_should_match_column_dictionary.xml @@ -0,0 +1,62 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'SectionDim' + ORDER BY ORDINAL_POSITION ASC; + + + SchoolKey + varchar + + + SectionKey + nvarchar + + + Description + nvarchar + + + SectionName + nvarchar + + + SessionName + nvarchar + + + LocalCourseCode + nvarchar + + + SchoolYear + smallint + + + LocalEducationAgencyKey + int + + + EducationalEnvironmentDescriptor + nvarchar + + + LastModifiedDate + datetime2 + + + CourseTitle + nvarchar + + + SessionKey + nvarchar + + \ No newline at end of file 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 new file mode 100644 index 00000000..77b2f8e8 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0000_SectionDim_Data_Load.xml @@ -0,0 +1,276 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '13','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + 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 '867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL 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 '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '10','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + 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 '867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','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= 'QBIR21' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='741922CD-51F6-4D76-B5D1-779980288273')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 '867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','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= 'ACER31' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER31','867530011','2012','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C886AE90-AE5B-4C52-8199-514E1CD44281')); + 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 '867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','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= 'ARTR11' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ARTR11','867530011','2012','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F8F83759-C1B4-4814-8187-F038569FB4D6')); + 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 '867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','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= 'BCSR21' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BCSR21','867530011','2012','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F38F91E5-8D0E-4878-B597-C00C3D91FFF6')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '14','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + 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 '867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','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= 'FSP78A' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'FSP78A','867530011','2012','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','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='13E51EA7-C2B2-4514-808F-A335EF57B92A')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + 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 '867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','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 id='E4A55D39-C269-44FB-8F04-9028F30A114A')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530017','Bunche',NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + 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 '867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','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 id='32AEF233-B3AC-4E85-9610-BB4E1C7B39B8')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + 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 '867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','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 id='73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E')); + 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 '867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','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= 'QWHR11' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QWHR11','867530011','2012','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QWHR11','2012','1',NULL,NULL,'1.000','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21341','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '21341' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10133197','867530011','QWHR11','2012','2012-01-04','2012-05-25','0',NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','21341','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8072995E-BC62-4EB0-B36E-87FC5800BBFE')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QBIR21','2012','1',NULL,NULL,'1.000','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9315','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9315' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10133197','867530011','QBIR21','2012','2012-01-04','2012-05-25','0',NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9315','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7FCDD6E7-88A4-4900-8839-25618F28094D')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'0.500','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10133197','867530011','QAGR40','2012','2012-01-04','2012-05-25','0',NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18940','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='E885EC43-603A-4984-AF5F-DA1198EB6242')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '9','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '9' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + 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 '867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','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= 'CAFR41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C20E55AF-240B-4F3B-A419-12B02520A630')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR41','2012','1',NULL,NULL,'0.500','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128' AND SessionName= 'Traditional')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1993-09-07',NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1B54F0C2-FF81-471B-9D71-7703C2435166')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR41','2012','1',NULL,NULL,'0.500','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='3E93E4A7-4601-45ED-9551-C85EEFC4AA24')); + 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 '867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','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= 'LENR41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='75BCE349-BE3D-4472-88DC-60ED8227A077')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '18','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + 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 '867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','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= 'YTAR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YTAR11','867530022','2012','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YTAR11','2012','1',NULL,NULL,'1.000','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15583','867530022','AUDITORIUM','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15583' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','YTAR11','2012','2011-08-22','2011-12-20','0',NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15583','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2DD5B2D3-B506-42BA-BB84-315CD190F0E1')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '127','uri://ed-fi.org/ClassroomPositionDescriptor','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')); + INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId)(SELECT '127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '102','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1948-01-01','0','102','36.00',NULL,'1',NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4235','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B249A085-39A9-4FDB-AB84-C6705CE9D271')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1976-11-07','1','102','9.00',NULL,'0',NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4565','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E31E0EBB-3B66-4379-B816-EB1FAFEEAD24')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'1976-01-28','0','102','1.00',NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '231440','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='46E208A1-84E2-40B3-B8F7-C4C332CBF528')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='9DD0B659-03AC-4395-A8C1-5B94C8CAE77F')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530024','Carter',NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + 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 '867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','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 id='E6BC7324-220F-4BC1-84E5-D5965E51FA7A')); + 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 '867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','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 id='267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='858E4B4D-33FA-4366-A6BA-D1C8986DDFC4')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='0AC3BDCE-5116-40D1-B902-A826F3E0F117')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D2F5A8DA-F50C-4971-A382-359CF755B5D3')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1983-02-27','0','102','4.00',NULL,'1',NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '7019','867530022','LENR41','2012','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','4575-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FB7CD109-7585-41D5-88E3-B1B1A922FF3B')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4565','867530022','CAFR41','2012','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','17128-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='8EE158B4-1046-448D-AC4B-9ED5B45222DA')); + 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 '867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','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= 'CALR41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CALR41','867530022','2012','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CALR41','2012','1',NULL,NULL,'0.500','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2217-3','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2217-3' AND SessionName= 'Traditional')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'1977-04-06','0','102','9.00',NULL,'1',NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '6425','867530022','CALR41','2012','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','2217-3','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='491C8FA4-3128-44F5-B562-994C65B88107')); + 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 '867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','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= 'GYMR31' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'GYMR31','867530022','2012','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','GYMR31','2012','1',NULL,NULL,'0.500','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3350','867530022','AUDITORIUM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3350' AND SessionName= 'Traditional')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'1965-05-18','0','102','11.00',NULL,'0',NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '3192','867530022','GYMR31','2012','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','3350','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='31D9D449-60AD-4439-9B13-A17FE54F1A6C')); + 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 '867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','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= 'AJFR31' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'AJFR31','867530022','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','AJFR31','2012','1',NULL,NULL,'1.000','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','25','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '25' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1980-05-24','1','102','4.00',NULL,'1',NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '7460','867530022','AJFR31','2012','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','25','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='862F5F47-1C7F-469E-BBB7-150B320EC3BD')); + 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 '867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','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= 'ICSC41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ICSC41','867530022','2012','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','ICSC41','2012','1',NULL,NULL,'1.000','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3418','867530022','02','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3418' AND SessionName= 'Traditional')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1972-07-06','0','102','15.00',NULL,'1',NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '3803','867530022','ICSC41','2012','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','3418','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='2B0D1D59-4F97-4C91-A670-46818D701E86')); + 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 '867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','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= 'YBIR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14964','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14964' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1977-08-22','0','102','1.00',NULL,'1',NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14964','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3A39B802-C310-4073-92B0-71521419061A')); + 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 '867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','ARTR11','2012','1',NULL,NULL,'1.000','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','954','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '954' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '7460','867530022','ARTR11','2012','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','954','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='56B79ABE-9D44-46EE-A87A-FCF1024D3BFD')); + 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 '867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','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= 'YMPH11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YMPH11','2012','1',NULL,NULL,'2.000','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '2580',NULL,'Mark','F','Fronk',NULL,NULL,'1963-04-11','0',NULL,'20.00',NULL,'0',NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2580','867530022','YMPH11','2012','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','17614-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='54B76299-8F04-45D8-907F-5135DC8B8CFB')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YMPH11','2012','1',NULL,NULL,'2.000','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2580','867530022','YMPH11','2012','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','17614-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E')); + 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 '867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','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= 'CAFR21' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR21','867530022','2012','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR21','2012','1',NULL,NULL,'0.500','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2137','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2137' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4565','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1AE26CF8-131D-4A45-8582-C8F0A867941D')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4235','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E6FDD31D-F087-4410-A62A-62BB4E18854C')); + 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 '867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','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= 'CAFR12' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR12','867530022','2012','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR12','2012','1',NULL,NULL,'0.500','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','20782-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '20782-2' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4235','867530022','CAFR12','2012','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','20782-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='9641D271-C3B8-4FDF-B839-1B28F6FA3BEC')); + 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 '867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','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= 'BPPR10' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','BPPR10','2012','1',NULL,NULL,'1.000','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21223','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '21223' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '231440','867530022','BPPR10','2012','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','21223','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='20071FA7-0526-4C36-9920-9F2F847CF527')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'0.500','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9092','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9092' AND SessionName= 'Traditional')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1951-04-17','0','105','32.00',NULL,'0',NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2012','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','9092','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B75BF103-8450-466B-AE26-840341313E70')); + 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 '867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','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= 'QENR21' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR21','2012','1',NULL,NULL,'1.000','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9676','867530011','9922','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9676' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QENR21','2012','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','9676','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='5AF842D2-5D21-44A3-A25D-1176B18DB58F')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR21','2012','1',NULL,NULL,'1.000','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9675','867530011','9921','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9675' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QENR21','2012','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','9675','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FA14A3BA-8E29-4F75-9574-A4F61EF2544C')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14960-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='98693363-4F20-4932-B72D-896CAEC34053')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14960-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='BE4FF557-3876-47A8-9454-DAF1AD943CFB')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14960','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FE88F203-12C4-4FC9-B348-B2F6422162CD')); + 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 '867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','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= 'YFAR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YFAR11','867530022','2012','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YFAR11','2012','1',NULL,NULL,'1.000','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15045-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15045-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YFAR11','2012','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','15045-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','BPPR10','2012','1',NULL,NULL,'1.000','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1283',NULL,'Saul','F','Elston',NULL,NULL,'1965-02-25','0','105','21.00',NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1283','867530022','BPPR10','2012','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','1961-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='11B214C7-D435-4E88-A462-C31797EDCCDD')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','BPPR10','2012','1',NULL,NULL,'1.000','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1283','867530022','BPPR10','2012','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','1961-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='924D21AB-4D67-4618-A23B-4D23C71EA11D')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2011','1',NULL,NULL,'1.000','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2011','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + 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 '867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','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= 'QALR11' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QALR11','867530011','2012','Algebra I (1 Unit)',NULL,'QALR11','867530011','419D1CFB-BCB9-4161-9868-804575679155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QALR11','2012','1',NULL,NULL,'0.500','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QALR11','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + 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 '867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','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= '867530010')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530010','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','QAGR40','2012','1',NULL,NULL,'0.500','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530010','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530010','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','2011','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','7E9A766F-23B5-4CB4-84CF-5CDEB79A5207','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '28C59BC9-5F47-496D-8EBA-99490A36013A')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + 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.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')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '628530001','QAGR40','2012','1',NULL,NULL,'0.500','0EE38E0D-93CC-46F5-ABCE-6965D9815310','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','628530001','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','628530001','QAGR40','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','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= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2011','1',NULL,NULL,'1.000','B3C3DFF1-C5C9-4876-A84E-AA11E7BDC46E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2011','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'0B7777A3-FADB-4147-A280-77039E96C119','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id = '0B7777A3-FADB-4147-A280-77039E96C119')); + 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 '867530011','APAR31','Art Iii Painting (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A8C5ED64-1D25-4B34-BAA3-DEC940C99347','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= 'APAR31' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'APAR31','867530011','2012','Art Iii Painting (1 Unit)',NULL,'APAR31','867530011','1ACA07E6-9D2F-45FE-92EB-3145FB780EE3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','209',NULL,NULL,'26213BA8-7EAB-49B6-AEB5-B33C00F5098C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530011')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','APAR31','2012','1',NULL,NULL,'1.000','F1C0DBC1-68E4-40CA-B004-065A3331DAA3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','APAR31','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'A3530906-00BC-4FCF-90E0-7657B28F877E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id='A3530906-00BC-4FCF-90E0-7657B28F877E')); + 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.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + UPDATE edfi.Descriptor SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E'; + INSERT INTO edfi.ClassPeriod VALUES ('CL1',628530001,true,'1','2021-01-01','2021-01-01',gen_random_uuid()); + INSERT INTO edfi.SectionClassPeriod VALUES ('CL1','QAGR40',628530001,2012,'18940','Traditional-Spring Semester','2021-01-01'); + INSERT INTO edfi.ClassPeriod VALUES ('CL1',867530011,true,'1','2021-01-01','2021-01-01',gen_random_uuid()); + INSERT INTO edfi.SectionClassPeriod VALUES ('CL1','QAGR40',867530011,2012,'9092','Traditional','2021-01-01'); + INSERT INTO edfi.SectionClassPeriod VALUES ('CL1','QAGR40',867530011,2011,'18940','Traditional','2021-01-01'); + INSERT INTO edfi.ClassPeriod VALUES ('CL1',867530022,true,'1','2021-01-01','2021-01-01',gen_random_uuid()); + INSERT INTO edfi.SectionClassPeriod VALUES ('CL1','BPPR10',867530022,2012,'1961-2','Traditional','2021-01-01'); + INSERT INTO edfi.SectionClassPeriod VALUES ('CL1','APAR31',867530011,2012,'18940','Traditional-Spring Semester','2021-01-01'); + INSERT INTO edfi.CourseOffering VALUES ('APAR31',867530011,2011,'Traditional-Spring Semester','Business Information Management',NULL,'APAR31',867530011, NULL,'2021-01-01','2021-01-01',gen_random_uuid()); + INSERT INTO edfi.Section(LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId,AvailableCredits,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,LocationSchoolId,LocationClassroomIdentificationCode,Discriminator,CreateDate,LastModifiedDate,Id) VALUES ('APAR31', 867530011, 2011 ,'18940', 'Traditional-Spring Semester' ,1 ,950, NULL, 1232, 1.000, NULL, NULL, NULL, 867530011, 115, NULL, '2015-09-18 11:34:00.0000000', '2015-09-18 11:34:00.0000000', gen_random_uuid()); + INSERT INTO edfi.SectionClassPeriod VALUES ('CL1','APAR31',867530011,2011,'18940','Traditional-Spring Semester','2021-01-01'); + INSERT INTO edfi.Session VALUES (867530010,2011,'Traditional','2011-08-22','2011-12-20',535,82,NULL,'2015-09-18','2015-09-18',gen_random_uuid()) + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0001_SectionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0001_SectionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..eb120562 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0001_SectionDim_should_match_column_dictionary.xml @@ -0,0 +1,62 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'sectiondim' + ORDER BY ORDINAL_POSITION ASC; + + + schoolkey + character varying + + + sectionkey + text + + + description + text + + + sectionname + text + + + sessionname + character varying + + + localcoursecode + character varying + + + schoolyear + smallint + + + educationalenvironmentdescriptor + character varying + + + localeducationagencykey + integer + + + lastmodifieddate + timestamp without time zone + + + coursetitle + character varying + + + sessionkey + text + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_2/0001_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/0001_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_2/0001_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_1/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_1/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..b26d7218 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_1/0001_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'rls_StaffClassificationDescriptorScopeList' + ORDER BY ORDINAL_POSITION ASC; + + + AuthorizationScopeName + varchar + + + CodeValue + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_2/0000_StaffClassificationDescriptorScopeList_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_2/0000_StaffClassificationDescriptorScopeList_Data_Load.xml new file mode 100644 index 00000000..a8f6313e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_2/0000_StaffClassificationDescriptorScopeList_Data_Load.xml @@ -0,0 +1,27 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'160','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=160)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'156','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=156)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'157','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=157)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'544','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_2/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_2/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..b26d7218 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_2/0001_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'rls_StaffClassificationDescriptorScopeList' + ORDER BY ORDINAL_POSITION ASC; + + + AuthorizationScopeName + varchar + + + CodeValue + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_3/0000_StaffClassificationDescriptorScopeList_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_3/0000_StaffClassificationDescriptorScopeList_Data_Load.xml new file mode 100644 index 00000000..a8f6313e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_3/0000_StaffClassificationDescriptorScopeList_Data_Load.xml @@ -0,0 +1,27 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'160','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=160)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'156','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=156)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'157','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=157)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'544','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_3/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_3/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..b26d7218 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/MSSQL/v_3_3/0001_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'rls_StaffClassificationDescriptorScopeList' + ORDER BY ORDINAL_POSITION ASC; + + + AuthorizationScopeName + varchar + + + CodeValue + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_2/0001_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/0001_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_2/0001_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_3/0000_StaffClassificationDescriptorScopeList_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_3/0000_StaffClassificationDescriptorScopeList_Data_Load.xml new file mode 100644 index 00000000..16fc7ad2 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_3/0000_StaffClassificationDescriptorScopeList_Data_Load.xml @@ -0,0 +1,19 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '160','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '160' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=160)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '156','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '156' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=156)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '157','http://www.ed-fi.org/Descriptor/StaffClassificationDescriptor.xml','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + + INSERT INTO EDFI.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '157' WHERE NOT EXISTS(SELECT 1 FROM EDFI.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId=157)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '544','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_3/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_3/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..f9d5b77d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffClassificationDescriptorScopeList/PostgreSQL/v_3_3/0001_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics_config' + AND table_name = 'rls_staffclassificationdescriptorscopelist' + ORDER BY ORDINAL_POSITION ASC; + + + authorizationscopename + character varying + + + codevalue + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_2/0000_StaffSectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_2/0000_StaffSectionDim_Data_Load.xml new file mode 100644 index 00000000..85ff9800 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_2/0000_StaffSectionDim_Data_Load.xml @@ -0,0 +1,99 @@ + + + Any + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1030','Mrs.','Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00','20.00','1','lakonya.higgins','11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=1030));SET IDENTITY_INSERT edfi.Staff 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'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1030','Mrs.','Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00','20.00','1','lakonya.higgins','11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1030'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1030','lakonya.higgins@edfi.org',NULL,'Sep 18 2015 11:34AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1030)); + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' 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'12','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + 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 TOP 1'867530020','NCMR11','Music I Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E9F00C12-EA6B-400E-83FA-36F46E0860A0','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= 'NCMR11' AND EducationOrganizationId= '867530020')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530020','2012','530','Traditional','2011-08-22','2011-12-20','82','5A3B8E35-D9A0-4BE6-864A-BB435F528198','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','F2A93A39-AF53-482B-858F-06E671926D93','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530020','108',NULL,NULL,'0A58614A-A9CD-4461-8535-1A5360FC359E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','781A5F3D-5BD7-471F-B17A-5AF539EC5737','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17362','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '17362' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22',NULL,NULL,NULL,NULL,'12011F16-FD7D-4C6B-ACD9-A0320E7AF26B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','17362','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='17362' AND SessionName='Traditional' AND StaffUSI = 1030)); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7352' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'1290EA89-2B7F-436B-8DCD-E92E9BF378F6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7352','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='7352' AND SessionName='Traditional' AND StaffUSI='1030')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530020','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','14D3FA4C-690A-46EA-99DC-263EAE8CA739','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' 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 TOP 1'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','2D697839-6533-4A3E-9987-40B1094DF8CF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','2BA9E8E5-68BF-409E-9B95-EFBBBE402D96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','7353','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7353' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22','2099-12-31',NULL,NULL,NULL,'00C8273E-4048-4409-9938-07180C091F6B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7353','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='7353' AND SessionName='Traditional-Spring Semester' AND StaffUSI='1030')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'176229',NULL,'Quinton',NULL,'Brown',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,'13724','B7B43154-7EBA-49EE-BAB0-1F2FB6E6F296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=176229));SET IDENTITY_INSERT edfi.Staff 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + 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 TOP 1'867530020','BPPR20','Other Secondary Subject','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'71CF3035-1898-47D8-83D4-19CBEBF8F47A','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= 'BPPR20' AND EducationOrganizationId= '867530020')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR20','867530020','2012','Other Secondary Subject',NULL,'BPPR20','867530020','798A47A7-56CB-40DC-AC1F-8BD92C9965D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR20' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530020','LIBRARY',NULL,NULL,'9D40B6C3-5B1F-41E1-BCDF-576564F3F0C0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530020')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','BPPR20','2012','1',NULL,NULL,'1.000','D61F7B46-BC65-4DE1-8AD6-04ED9DC27850','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21445','867530020','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR20' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '21445' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'176229',NULL,'Quinton',NULL,'Brown',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,'13724','B7B43154-7EBA-49EE-BAB0-1F2FB6E6F296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '176229'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'176229','867530020','BPPR20','2012','127','2011-08-22','2099-12-31',NULL,NULL,NULL,'A826BB02-4480-4AA8-B62C-92021F113953','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','21445','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='BPPR20' AND SchoolYear='2012' AND SectionIdentifier='21445' AND SessionName='Traditional-Spring Semester' AND StaffUSI='176229')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1282','uri://ed-fi.org/RaceDescriptor','American Indian - Alaska Native','American Indian - Alaska Native','American Indian - Alaska Native',NULL,NULL,NULL,'39BF5152-5C56-42C7-A191-7C1D1AD34A79','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1282'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1282' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1282')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'176229','Sep 18 2015 11:34AM','1282' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='176229' AND RaceDescriptorId='1282')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1286','uri://ed-fi.org/RaceDescriptor','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander',NULL,NULL,NULL,'0E3B30C1-4513-4761-B83B-21F19CFFB41C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1286'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1286')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'176229','Sep 18 2015 11:34AM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='176229' AND RaceDescriptorId='1286')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=1009));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + 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 TOP 1'867530010','XLTV31','FUNCT VOC 11','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B220E503-811A-4763-AAEC-551B8CC18E1F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV31' AND EducationOrganizationId= '867530010')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'540','uri://ed-fi.org/TermDescriptor','MiniTerm','MiniTerm','MiniTerm',NULL,NULL,NULL,'45E4AC08-0898-4C1C-81F3-ECEAEEB88474','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '540'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'540' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '540')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2012','540','SHORT','2012-05-10','2012-06-09','27','BCBFEB9F-7EC2-468C-B4A0-6093641CFC66','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','FUNCT VOC 11',NULL,'XLTV31','867530010','2943C518-FEC9-446E-AC3C-BDB5F68C0C42','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','702',NULL,NULL,'E25004BE-3043-4752-82AB-84E5B09EAC50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530010')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14139' AND SessionName= 'SHORT')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1009','867530010','XLTV31','2012','127','2012-05-10',NULL,NULL,NULL,NULL,'FA20D582-5898-4A8C-B05F-546532C0BEE3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530010' AND LocalCourseCode='XLTV31' AND SchoolYear='2012' AND SectionIdentifier='14139' AND SessionName='SHORT' AND StaffUSI='1009')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'1009','Sep 18 2015 11:34AM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='1009' AND RaceDescriptorId='1286')); + + SET IDENTITY_INSERT edfi.Staff ON; + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1'142990',NULL,'John',NULL,'Miller',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'142990','B7343A54-7EA4-49EE-BAB0-1F5FB6FFF296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=142990)); + + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId) + (SELECT TOP 1 '142990','john.miller@edfi.org',NULL,'Nov 1 2021 11:34AM',NULL,'1589' + WHERE NOT EXISTS( SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI = 142990)); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator) + (SELECT TOP 1 '142990','867530020','NCMR11','2012','127','2011-08-22',NULL,NULL,NULL,NULL,'12011F16-FD7D-4C6B-ACD9-B1320E7AF26B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','17362','Traditional',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId = '867530020' AND LocalCourseCode = 'NCMR11' AND SchoolYear = '2012' AND SectionIdentifier = '17362' AND SessionName = 'Traditional' AND StaffUSI = 142990)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_2/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_2/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..680cad81 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_2/0001_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StaffSectionDim' + ORDER BY ORDINAL_POSITION ASC; + + + StaffSectionKey + nvarchar + + + UserKey + nvarchar + + + SchoolKey + varchar + + + SectionKey + nvarchar + + + PersonalTitlePrefix + nvarchar + + + StaffFirstName + nvarchar + + + StaffMiddleName + nvarchar + + + StaffLastName + nvarchar + + + ElectronicMailAddress + nvarchar + + + Sex + nvarchar + + + BirthDate + varchar + + + Race + nvarchar + + + HispanicLatinoEthnicity + int + + + HighestCompletedLevelOfEducation + nvarchar + + + YearsOfPriorProfessionalExperience + decimal + + + YearsOfPriorTeachingExperience + decimal + + + HighlyQualifiedTeacher + int + + + LoginId + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_3/0000_StaffSectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_3/0000_StaffSectionDim_Data_Load.xml new file mode 100644 index 00000000..85ff9800 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_3/0000_StaffSectionDim_Data_Load.xml @@ -0,0 +1,99 @@ + + + Any + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1030','Mrs.','Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00','20.00','1','lakonya.higgins','11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=1030));SET IDENTITY_INSERT edfi.Staff 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'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1030','Mrs.','Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00','20.00','1','lakonya.higgins','11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1030'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1030','lakonya.higgins@edfi.org',NULL,'Sep 18 2015 11:34AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1030)); + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' 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'12','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + 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 TOP 1'867530020','NCMR11','Music I Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E9F00C12-EA6B-400E-83FA-36F46E0860A0','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= 'NCMR11' AND EducationOrganizationId= '867530020')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530020','2012','530','Traditional','2011-08-22','2011-12-20','82','5A3B8E35-D9A0-4BE6-864A-BB435F528198','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','F2A93A39-AF53-482B-858F-06E671926D93','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530020','108',NULL,NULL,'0A58614A-A9CD-4461-8535-1A5360FC359E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','781A5F3D-5BD7-471F-B17A-5AF539EC5737','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17362','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '17362' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22',NULL,NULL,NULL,NULL,'12011F16-FD7D-4C6B-ACD9-A0320E7AF26B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','17362','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='17362' AND SessionName='Traditional' AND StaffUSI = 1030)); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7352' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'1290EA89-2B7F-436B-8DCD-E92E9BF378F6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7352','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='7352' AND SessionName='Traditional' AND StaffUSI='1030')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530020','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','14D3FA4C-690A-46EA-99DC-263EAE8CA739','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' 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 TOP 1'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','2D697839-6533-4A3E-9987-40B1094DF8CF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','2BA9E8E5-68BF-409E-9B95-EFBBBE402D96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','7353','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7353' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22','2099-12-31',NULL,NULL,NULL,'00C8273E-4048-4409-9938-07180C091F6B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7353','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='7353' AND SessionName='Traditional-Spring Semester' AND StaffUSI='1030')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'176229',NULL,'Quinton',NULL,'Brown',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,'13724','B7B43154-7EBA-49EE-BAB0-1F2FB6E6F296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=176229));SET IDENTITY_INSERT edfi.Staff 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + 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 TOP 1'867530020','BPPR20','Other Secondary Subject','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'71CF3035-1898-47D8-83D4-19CBEBF8F47A','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= 'BPPR20' AND EducationOrganizationId= '867530020')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR20','867530020','2012','Other Secondary Subject',NULL,'BPPR20','867530020','798A47A7-56CB-40DC-AC1F-8BD92C9965D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR20' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530020','LIBRARY',NULL,NULL,'9D40B6C3-5B1F-41E1-BCDF-576564F3F0C0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530020')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','BPPR20','2012','1',NULL,NULL,'1.000','D61F7B46-BC65-4DE1-8AD6-04ED9DC27850','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21445','867530020','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR20' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '21445' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'176229',NULL,'Quinton',NULL,'Brown',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,'13724','B7B43154-7EBA-49EE-BAB0-1F2FB6E6F296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '176229'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'176229','867530020','BPPR20','2012','127','2011-08-22','2099-12-31',NULL,NULL,NULL,'A826BB02-4480-4AA8-B62C-92021F113953','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','21445','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='BPPR20' AND SchoolYear='2012' AND SectionIdentifier='21445' AND SessionName='Traditional-Spring Semester' AND StaffUSI='176229')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1282','uri://ed-fi.org/RaceDescriptor','American Indian - Alaska Native','American Indian - Alaska Native','American Indian - Alaska Native',NULL,NULL,NULL,'39BF5152-5C56-42C7-A191-7C1D1AD34A79','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1282'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1282' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1282')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'176229','Sep 18 2015 11:34AM','1282' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='176229' AND RaceDescriptorId='1282')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1286','uri://ed-fi.org/RaceDescriptor','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander',NULL,NULL,NULL,'0E3B30C1-4513-4761-B83B-21F19CFFB41C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1286'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1286')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'176229','Sep 18 2015 11:34AM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='176229' AND RaceDescriptorId='1286')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=1009));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + 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 TOP 1'867530010','XLTV31','FUNCT VOC 11','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B220E503-811A-4763-AAEC-551B8CC18E1F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV31' AND EducationOrganizationId= '867530010')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'540','uri://ed-fi.org/TermDescriptor','MiniTerm','MiniTerm','MiniTerm',NULL,NULL,NULL,'45E4AC08-0898-4C1C-81F3-ECEAEEB88474','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '540'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'540' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '540')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2012','540','SHORT','2012-05-10','2012-06-09','27','BCBFEB9F-7EC2-468C-B4A0-6093641CFC66','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','FUNCT VOC 11',NULL,'XLTV31','867530010','2943C518-FEC9-446E-AC3C-BDB5F68C0C42','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','702',NULL,NULL,'E25004BE-3043-4752-82AB-84E5B09EAC50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530010')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14139' AND SessionName= 'SHORT')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1009','867530010','XLTV31','2012','127','2012-05-10',NULL,NULL,NULL,NULL,'FA20D582-5898-4A8C-B05F-546532C0BEE3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530010' AND LocalCourseCode='XLTV31' AND SchoolYear='2012' AND SectionIdentifier='14139' AND SessionName='SHORT' AND StaffUSI='1009')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'1009','Sep 18 2015 11:34AM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='1009' AND RaceDescriptorId='1286')); + + SET IDENTITY_INSERT edfi.Staff ON; + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1'142990',NULL,'John',NULL,'Miller',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'142990','B7343A54-7EA4-49EE-BAB0-1F5FB6FFF296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=142990)); + + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId) + (SELECT TOP 1 '142990','john.miller@edfi.org',NULL,'Nov 1 2021 11:34AM',NULL,'1589' + WHERE NOT EXISTS( SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI = 142990)); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator) + (SELECT TOP 1 '142990','867530020','NCMR11','2012','127','2011-08-22',NULL,NULL,NULL,NULL,'12011F16-FD7D-4C6B-ACD9-B1320E7AF26B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','17362','Traditional',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId = '867530020' AND LocalCourseCode = 'NCMR11' AND SchoolYear = '2012' AND SectionIdentifier = '17362' AND SessionName = 'Traditional' AND StaffUSI = 142990)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_3/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_3/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..680cad81 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/MSSQL/v_3_3/0001_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StaffSectionDim' + ORDER BY ORDINAL_POSITION ASC; + + + StaffSectionKey + nvarchar + + + UserKey + nvarchar + + + SchoolKey + varchar + + + SectionKey + nvarchar + + + PersonalTitlePrefix + nvarchar + + + StaffFirstName + nvarchar + + + StaffMiddleName + nvarchar + + + StaffLastName + nvarchar + + + ElectronicMailAddress + nvarchar + + + Sex + nvarchar + + + BirthDate + varchar + + + Race + nvarchar + + + HispanicLatinoEthnicity + int + + + HighestCompletedLevelOfEducation + nvarchar + + + YearsOfPriorProfessionalExperience + decimal + + + YearsOfPriorTeachingExperience + decimal + + + HighlyQualifiedTeacher + int + + + LoginId + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/PostgreSQL/v_3_3/0000_StaffSectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/PostgreSQL/v_3_3/0000_StaffSectionDim_Data_Load.xml new file mode 100644 index 00000000..b53e8e9b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/PostgreSQL/v_3_3/0000_StaffSectionDim_Data_Load.xml @@ -0,0 +1,97 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1030','Mrs.','Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00','20.00','1','lakonya.higgins','11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=1030)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT '1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1030','Mrs.','Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00','20.00','1','lakonya.higgins','11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1030')); + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '1030','lakonya.higgins@edfi.org',NULL,'Sep 18 2015 11:34AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1030)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '127','uri://ed-fi.org/ClassroomPositionDescriptor','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')); + INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId)(SELECT '127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + 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 '867530020','NCMR11','Music I Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E9F00C12-EA6B-400E-83FA-36F46E0860A0','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= 'NCMR11' AND EducationOrganizationId= '867530020')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530020','2012','530','Traditional','2011-08-22','2011-12-20','82','5A3B8E35-D9A0-4BE6-864A-BB435F528198','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','F2A93A39-AF53-482B-858F-06E671926D93','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530020','108',NULL,NULL,'0A58614A-A9CD-4461-8535-1A5360FC359E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530020','NCMR11','2012','1',NULL,NULL,'1.000','781A5F3D-5BD7-471F-B17A-5AF539EC5737','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17362','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '17362' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1030','867530020','NCMR11','2012','127','2011-08-22',NULL,NULL,NULL,NULL,'12011F16-FD7D-4C6B-ACD9-A0320E7AF26B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','17362','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='17362' AND SessionName='Traditional' AND StaffUSI = 1030)); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7352' AND SessionName= 'Traditional')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1030','867530020','NCMR11','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'1290EA89-2B7F-436B-8DCD-E92E9BF378F6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7352','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='7352' AND SessionName='Traditional' AND StaffUSI='1030')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530020','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','14D3FA4C-690A-46EA-99DC-263EAE8CA739','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' 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 'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','2D697839-6533-4A3E-9987-40B1094DF8CF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530020','NCMR11','2012','1',NULL,NULL,'1.000','2BA9E8E5-68BF-409E-9B95-EFBBBE402D96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','7353','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7353' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1030','867530020','NCMR11','2012','127','2011-08-22','2099-12-31',NULL,NULL,NULL,'00C8273E-4048-4409-9938-07180C091F6B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7353','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='NCMR11' AND SchoolYear='2012' AND SectionIdentifier='7353' AND SessionName='Traditional-Spring Semester' AND StaffUSI='1030')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '176229',NULL,'Quinton',NULL,'Brown',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,'13724','B7B43154-7EBA-49EE-BAB0-1F2FB6E6F296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=176229)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '18','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + 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 '867530020','BPPR20','Other Secondary Subject','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'71CF3035-1898-47D8-83D4-19CBEBF8F47A','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= 'BPPR20' AND EducationOrganizationId= '867530020')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BPPR20','867530020','2012','Other Secondary Subject',NULL,'BPPR20','867530020','798A47A7-56CB-40DC-AC1F-8BD92C9965D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR20' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530020','LIBRARY',NULL,NULL,'9D40B6C3-5B1F-41E1-BCDF-576564F3F0C0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530020')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530020','BPPR20','2012','1',NULL,NULL,'1.000','D61F7B46-BC65-4DE1-8AD6-04ED9DC27850','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21445','867530020','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR20' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '21445' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '176229',NULL,'Quinton',NULL,'Brown',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,'13724','B7B43154-7EBA-49EE-BAB0-1F2FB6E6F296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '176229')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '176229','867530020','BPPR20','2012','127','2011-08-22','2099-12-31',NULL,NULL,NULL,'A826BB02-4480-4AA8-B62C-92021F113953','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','21445','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530020' AND LocalCourseCode='BPPR20' AND SchoolYear='2012' AND SectionIdentifier='21445' AND SessionName='Traditional-Spring Semester' AND StaffUSI='176229')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1282','uri://ed-fi.org/RaceDescriptor','American Indian - Alaska Native','American Indian - Alaska Native','American Indian - Alaska Native',NULL,NULL,NULL,'39BF5152-5C56-42C7-A191-7C1D1AD34A79','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1282')); + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT '1282' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1282')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT '176229','Sep 18 2015 11:34AM','1282' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='176229' AND RaceDescriptorId='1282')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1286','uri://ed-fi.org/RaceDescriptor','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander',NULL,NULL,NULL,'0E3B30C1-4513-4761-B83B-21F19CFFB41C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1286')); + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT '1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1286')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT '176229','Sep 18 2015 11:34AM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='176229' AND RaceDescriptorId='1286')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=1009)); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + 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 '867530010','XLTV31','FUNCT VOC 11','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B220E503-811A-4763-AAEC-551B8CC18E1F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV31' AND EducationOrganizationId= '867530010')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '540','uri://ed-fi.org/TermDescriptor','MiniTerm','MiniTerm','MiniTerm',NULL,NULL,NULL,'45E4AC08-0898-4C1C-81F3-ECEAEEB88474','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '540')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '540' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '540')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','2012','540','SHORT','2012-05-10','2012-06-09','27','BCBFEB9F-7EC2-468C-B4A0-6093641CFC66','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2012','FUNCT VOC 11',NULL,'XLTV31','867530010','2943C518-FEC9-446E-AC3C-BDB5F68C0C42','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','702',NULL,NULL,'E25004BE-3043-4752-82AB-84E5B09EAC50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530010')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14139' AND SessionName= 'SHORT')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1009','867530010','XLTV31','2012','127','2012-05-10',NULL,NULL,NULL,NULL,'FA20D582-5898-4A8C-B05F-546532C0BEE3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId='867530010' AND LocalCourseCode='XLTV31' AND SchoolYear='2012' AND SectionIdentifier='14139' AND SessionName='SHORT' AND StaffUSI='1009')); + INSERT INTO edfi.StaffRace(StaffUSI,CreateDate,RaceDescriptorId)(SELECT '1009','Sep 18 2015 11:34AM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffRace WHERE StaffUSI='1009' AND RaceDescriptorId='1286')); + + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '142990',NULL,'John',NULL,'Miller',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'142990','B7343A54-7EA4-49EE-BAB0-1F5FB6FFF296','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,NULL,'1167',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI=142990)); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId) + (SELECT '142990','john.miller@edfi.org',NULL,'Nov 1 2021 11:34AM',NULL,'1589' + WHERE NOT EXISTS( SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI = 142990)); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator) + (SELECT '142990','867530020','NCMR11','2012','127','2011-08-22',NULL,NULL,NULL,NULL,'12011F16-FD7D-4C6B-ACD9-B1320E7AF26B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','17362','Traditional',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId = '867530020' AND LocalCourseCode = 'NCMR11' AND SchoolYear = '2012' AND SectionIdentifier = '17362' AND SessionName = 'Traditional' AND StaffUSI = 142990)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/PostgreSQL/v_3_3/0001_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/PostgreSQL/v_3_3/0001_should_match_column_dictionary.xml new file mode 100644 index 00000000..b0a6317d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StaffSectionDim/PostgreSQL/v_3_3/0001_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'staffsectiondim' + ORDER BY ORDINAL_POSITION ASC; + + + staffsectionkey + text + + + userkey + character varying + + + schoolkey + character varying + + + sectionkey + text + + + personaltitleprefix + character varying + + + stafffirstname + character varying + + + staffmiddlename + character varying + + + stafflastname + character varying + + + electronicmailaddress + character varying + + + sex + character varying + + + birthdate + character varying + + + race + character varying + + + hispaniclatinoethnicity + boolean + + + highestcompletedlevelofeducation + character varying + + + yearsofpriorprofessionalexperience + numeric + + + yearsofpriorteachingexperience + numeric + + + highlyqualifiedteacher + boolean + + + loginid + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/0001_StudentAssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_1/0001_StudentAssessmentFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/0001_StudentAssessmentFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_1/0001_StudentAssessmentFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_2/0000_StudentAssessmentFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_2/0000_StudentAssessmentFact_Data_Load.xml new file mode 100644 index 00000000..1f69be4e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_2/0000_StudentAssessmentFact_Data_Load.xml @@ -0,0 +1,787 @@ + + + Any + + ------------- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2001','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Range','Range','Range',NULL,NULL,NULL,'DE232BF2-7253-464A-8EA4-A50BA020C81C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2001'));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'231','uri://ed-fi.org/AssessmentReportingMethodDescriptor','RIT scale score','RIT scale score','RIT scale score',NULL,NULL,NULL,'12F4C346-B22E-4FF1-8C05-16C2FF90B2AE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '231'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'231' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '231')); + -- assessment identifier: 04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01 + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'787','uri://ed-fi.org/AdministrationEnvironmentDescriptor','School','School','School',NULL,NULL,NULL,'B1FA14D9-ACA4-46A5-BFEB-D7BDEB010FBF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '787'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT TOP 1'787' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '787')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'591','uri://ed-fi.org/AssessmentCategoryDescriptor','State summative assessment 3-8 general','State summative assessment 3-8 general','State summative assessment 3-8 general',NULL,NULL,NULL,'F4E3CB35-A041-418B-B352-E438D5110CD4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '591'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'591' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '591')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'25','uri://ed-fi.org/GradeLevelDescriptor','Fourth grade','Fourth grade','Fourth grade',NULL,NULL,NULL,'7C47AC7F-3C3D-4FED-A48E-210748C9A803','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '25'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'25' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '25')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075337',NULL,'Nubia','X','Medrano',NULL,NULL,'1999-10-09','Lubbock',NULL,NULL,NULL,'202040','619785E8-B6A4-43C6-A8A3-D8DA54AD3729','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075337'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100075337','2009-04-01 00:00:00.0000000',NULL,'207100982',NULL,'25',NULL,'9D581629-4DDB-4B69-88C6-3A52B4C79C29','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '100075337' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'37','uri://ed-fi.org/GradeLevelDescriptor','Sixth grade','Sixth grade','Sixth grade',NULL,NULL,NULL,'60046E19-5F2D-4E5C-9431-097E27769DEB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '37'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'37' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '37')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530069','Washington Middle School',NULL,NULL,'85127CE8-0EDA-43D2-A160-D853210EAB4A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530069')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530069','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530069')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100075337','867530069',NULL,'2011-08-22','37',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0CB3AF96-D5DB-47E5-A57E-8B2C08927C7D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100075337')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1120','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'C3D22595-4485-4CD9-A969-4BD3FFE479EE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1120'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1688','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Integer','Integer','Integer',NULL,NULL,NULL,'4C642858-BCFB-4472-9625-ADC9B985A07E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1688'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT TOP 1'1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1688')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100075337','2009-04-01 00:00:00.0000000',NULL,'207100982',NULL,'25',NULL,'9D581629-4DDB-4B69-88C6-3A52B4C79C29','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' AND StudentUSI= '100075337')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100075337','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446' and StudentUSI = '100075337')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'637','uri://ed-fi.org/PerformanceLevelDescriptor','Proficient','Proficient','Proficient',NULL,NULL,NULL,'55D1F5E3-D166-4C3F-AF59-160472682404','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '637'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT TOP 1'637' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446')); + -- + -- Cases to cover exception scenarios for INNER JOIN edfi.AssessmentPerformanceLevel + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE447',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE447' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE447','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE447')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446','uri://edfi.org/Assessment_AssessmentPerformanceLevel_1',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446' and Namespace = 'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1122','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Scale score','Scale score','Scale score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11505','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1122'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1122')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1093','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Age score','Age score','Age score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11506','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1093'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1093')); + -- + + -- assessment identifier: D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01 + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100035251',NULL,'Quintesa',NULL,'Moniz',NULL,NULL,'1992-08-08','Lubbock',NULL,NULL,NULL,'190151','B2D617C4-835F-40AD-8267-3F4BDA098E8B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100035251'));SET IDENTITY_INSERT edfi.Student OFF; + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100035252',NULL,'Quintesa',NULL,'Moniz',NULL,NULL,'1992-08-08','Lubbock',NULL,NULL,NULL,'190152','B2D617C4-835F-40AD-8267-3F4BDA098E8C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100035252'));SET IDENTITY_INSERT edfi.Student OFF; + -- + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100035251','867530022',NULL,'2011-10-03','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','2B9D1648-3537-4867-9E4D-DDAC8797281F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100035251')); + -- + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100035252','867530022',NULL,'2011-10-03','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','2B9D1648-3537-4867-9E4D-DDAC8797282A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100035252')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2010-09-01','55',NULL,'uri://edfi.org/Assessment','DCB00AED-8548-45E4-934D-C80CB8186E7A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0',NULL,NULL,'2010',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100035251','2010-04-01 00:00:00.0000000',NULL,'458500265',NULL,'24',NULL,'D93F8614-51CF-4A23-BD45-EC975AD76A5F','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI= '100035251')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100035252','2010-04-01 00:00:00.0000000',NULL,'458500265',NULL,'24',NULL,'D93F8614-51CF-4A23-BD45-EC975AD76A6A','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI= '100035252')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100035252','27','Sep 18 2015 11:46AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100035252' and StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' and AssessmentReportingMethodDescriptorId = '1120')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment',newid(),'Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','AssessmentIdentifier_TestCase',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'AssessmentIdentifier_TestCase' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment',newid(),'Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','uri://edfi.org/Assessment',1688,'231' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='231')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','AssessmentIdentifier_TestCase','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'AssessmentIdentifier_TestCase' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + -- + + -- assessment identifier: EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01 + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530021','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100074717',NULL,'Norma','B','Mcdaniels',NULL,NULL,'1994-04-13','Lubbock',NULL,NULL,NULL,'201864','1C195DFA-AB46-4D33-9641-17BA691CDAA3','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100074717'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100074717','867530021',NULL,'2011-08-22','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','6C2D460E-D36B-4EFE-A2F1-76FCC23E38D8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100074717')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS-M','591',NULL,'2002-09-01','40',NULL,'uri://edfi.org/Assessment','A8A0ABEB-F2F0-4135-A103-C6B918DCE067','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71',NULL,NULL,'2002',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS-M','591',NULL,'2002-09-01','40',NULL,'uri://edfi.org/Assessment_ns_1','A8A0ABEB-F2F0-4135-A103-C6B918DCE068','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71',NULL,NULL,'2002',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment_ns_1')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100074717','2012-04-01 00:00:00.0000000',NULL,'481001126',NULL,'35',NULL,'6EF2F54E-9E7F-4293-9BE9-D6F201EC0BE8','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' AND StudentUSI= '100074717')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100074717','2012-04-01 00:00:00.0000000',NULL,'481001126',NULL,'35',NULL,'6EF2F54E-9E7F-4293-9BE9-D6F201EC0BE9','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment_ns_1',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment_ns_1' AND StudentAssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' AND StudentUSI= '100074717' and Namespace = 'uri://edfi.org/Assessment_ns_1')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100074717','24','Sep 18 2015 11:46AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment_ns_1','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100074717' and StudentAssessmentIdentifier = 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','2100','3500','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71')); + + -- + -- assessment identifier: C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01 + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100039988',NULL,'Jennifer','H','Knoll',NULL,NULL,'1993-03-20',NULL,NULL,NULL,NULL,'190257','B264F600-7D33-42B6-847E-991B4B7B4E87','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039988'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100039988','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','02D49D56-9990-44F6-88CB-259BAEF5AC8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100039988')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2008-09-01','48',NULL,'uri://edfi.org/Assessment','0EFAFB45-C90B-47D9-88C3-5EE05870A0EF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','C2036C8D-1333-F75D-0B6B-380756666AF8',NULL,NULL,'2008',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'21','uri://ed-fi.org/GradeLevelDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'A94CADDB-1E3A-4710-A09A-2D91077317C4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '21'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'21' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '21')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100039988','2008-03-01 00:00:00.0000000',NULL,'510001780',NULL,'21',NULL,'C22CACA4-91E2-4BA2-840E-1F5F4448F4BA','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01' AND StudentUSI= '100039988')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100039988','2008-03-01 00:00:00.0000000',NULL,'510001780',NULL,'21',NULL,'C22CACA4-91E2-4BA2-840E-1F5F4448F4BB','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-02','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-02' AND StudentUSI= '100039988')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100039988','41','Sep 18 2015 11:46AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100039988' and StudentAssessmentIdentifier = 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','33','48','Sep 18 2015 11:34AM','C2036C8D-1333-F75D-0B6B-380756666AF8','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'C2036C8D-1333-F75D-0B6B-380756666AF8')); + + -- + -- assessment identifier: 0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01 + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100041249')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','42',NULL,'uri://edfi.org/Assessment','47DEBFE3-5A36-4365-AB78-1EA9A8CE82E3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141145',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','42',NULL,'uri://edfi.org/Assessment','47DEBFE3-5A36-4365-AB78-1EA9A8CE82E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141146',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141146' AND Namespace= 'uri://edfi.org/Assessment')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100041249','2009-04-01 00:00:00.0000000',NULL,'237901791',NULL,'31',NULL,'F9102CE9-5C87-4DA9-B8E0-CF99113819D7','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','0E886CBB-AB8F-ABD3-747F-C455C5141145','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' AND StudentUSI= '100041249')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100041249','2009-04-01 00:00:00.0000000',NULL,'237901791',NULL,'31',NULL,'F9102CE9-5C87-4DA9-B8E0-CF99113819D8','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','0E886CBB-AB8F-ABD3-747F-C455C5141146','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141146' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' AND StudentUSI= '100041249')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100041249','31','Sep 18 2015 11:46AM','0E886CBB-AB8F-ABD3-747F-C455C5141146','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100041249' and StudentAssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' and AssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141146' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','42','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141145','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141145')); + + -- + -- assessment identifier: A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01 + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100067279',NULL,'Marvis','X','Tucker',NULL,NULL,'1995-09-04','Lubbock',NULL,NULL,NULL,'198715','3DFE8883-2C46-4695-AB74-BBAC0286E6EF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100067279'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100067279','867530021',NULL,'2011-08-22','24',NULL,NULL,NULL,DATEADD(day, 1, GETDATE()),NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','018EF3E6-72AB-4472-87A7-7DCDAB907226','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100067279')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','48',NULL,'uri://edfi.org/Assessment','707E021B-544C-4833-925C-8D84C7457103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100067279','2009-03-01 00:00:00.0000000',NULL,'503003155',NULL,'21',NULL,'36CBA4E1-B716-44C1-9083-1E0001837659','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01' AND StudentUSI= '100067279')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100067279','34','Sep 18 2015 11:46AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100067279' and StudentAssessmentIdentifier = 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','34','48','Sep 18 2015 11:34AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2')); + + -- + -- assessment identifier: 2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01 + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100071960',NULL,'Adrianna','N','Meacham',NULL,NULL,'1995-05-04','Lubbock',NULL,NULL,NULL,'200547','B7519E6C-0056-40C1-BE52-6AF18831F4AD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071960'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100071960','867530020',NULL,'2011-08-22','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'634','2013','D8DAA3B6-670D-4E13-9AC6-281F5FDD56B8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100071960')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','50',NULL,'uri://edfi.org/Assessment','E7A87C0A-6FDB-40DA-8A8A-5F93E98A2A28','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100071960','2009-04-01 00:00:00.0000000',NULL,'541602531',NULL,'21',NULL,'EFFBDAB7-FFF8-449F-A2A4-9B3C757C705F','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' AND StudentUSI= '100071960')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100071960','45','Sep 18 2015 11:46AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100071960' and StudentAssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','30','50','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852')); + -- + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','49','50','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852' and MinimumScore = '49')); + -- + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','30','31','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852' and MaximumScore = '31')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','50',NULL,'uri://edfi.org/Assessment_ns_1','9DEE6630-39E2-4FE3-85A9-002E10554BE4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND Namespace='uri://edfi.org/Assessment_ns_1' )); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100071960','2009-04-01 00:00:00.0000000',NULL,'541602531',NULL,'21',NULL,'15FC5C74-C3E7-4C4D-8106-91E8752947BF','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment_ns_1',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment_ns_1' AND StudentAssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' AND StudentUSI= '100071960')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100071960','24','Sep 18 2015 11:46AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment_ns_1','1122','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND Namespace='uri://edfi.org/Assessment_ns_1' AND STUDENTUSI='100071960' )); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','0','1000','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment_ns_1',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND AssessmentReportingMethodDescriptorId='1122' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','26','3500','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment_ns_1',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71') AND AssessmentReportingMethodDescriptorId='1120' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','20','23','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment_ns_1',NULL,'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71') AND AssessmentReportingMethodDescriptorId='1093' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + + + + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'955','uri://ed-fi.org/EducationalEnvironmentDescriptor','Mainstream (Special Education)','Mainstream (Special Education)','Mainstream (Special Education)',NULL,NULL,NULL,'AEF030E4-19AC-4F5E-A1BE-2AAC8DB2CB59','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '955'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'955' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '955')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1685','uri://ed-fi.org/RecognitionTypeDescriptor','Points','Points','Points',NULL,NULL,NULL,'A2145F7F-2FCA-49AC-A361-1584F8442A6B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1685'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OperationalStatusDescriptor(OperationalStatusDescriptorId)(SELECT TOP 1'1685' WHERE NOT EXISTS(SELECT 1 FROM edfi.OperationalStatusDescriptor WHERE OperationalStatusDescriptorId= '1685')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255901001','Grand Bend High School','GBHS','http://www.GBISD.edu/GBHS/','EFC9A04B-AA2C-434C-9A86-CA4B5A378B50','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM','1685','edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901001')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'991','uri://ed-fi.org/EntryGradeLevelReasonDescriptor','Promotion - Other','Promotion - Other','Promotion - Other',NULL,NULL,NULL,'8077E06D-362E-435B-89F2-1CE2C2C84D61','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '991'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'991' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '991')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'991','255901001','2011',NULL,'28.000',NULL,'AD7C8A9A-B6FF-4B82-8F4D-6FF747BC6140','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901001' AND GraduationPlanTypeDescriptorId= '991' AND GraduationSchoolYear= '2011')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'104','uri://ed-fi.org/LevelOfEducationDescriptor','Associate''s Degree (two years or more)','Associate''s Degree (two years or more)','Associate''s Degree (two years or more)',NULL,NULL,NULL,'32DD0969-AE57-4037-BC35-4CEBDB7BEB49','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '104'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AdministrativeFundingControlDescriptor(AdministrativeFundingControlDescriptorId)(SELECT TOP 1'104' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrativeFundingControlDescriptor WHERE AdministrativeFundingControlDescriptorId= '104')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'297','uri://ed-fi.org/CountryDescriptor','IR','Iran, Islamic Republic of','Iran, Islamic Republic of',NULL,NULL,NULL,'E51583E4-424F-438F-BE3C-6AF844AA5342','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '297'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CharterStatusDescriptor(CharterStatusDescriptorId)(SELECT TOP 1'297' WHERE NOT EXISTS(SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId= '297')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255901','Grand Bend ISD','GBISD','http://www.GBISD.edu/','5BEE93F6-F1CE-4C31-A52D-2C0AFE1B0DDC','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255950','Region 99 Education Service Center',NULL,NULL,'A5CF3F99-F869-4916-8E32-2D03B4979E00','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT TOP 1'255950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '255950')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1627','uri://ed-fi.org/ProgramTypeDescriptor','Counseling Services','Counseling Services','Counseling Services',NULL,NULL,NULL,'CD88E854-E043-49AD-93A0-0504B05F8192','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1627'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1627' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1627')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'255901',NULL,'255950',NULL,NULL,'1627' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '255901')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2055','uri://ed-fi.org/LanguageDescriptor','nzi','Nzima','Nzima',NULL,NULL,NULL,'1B7D4FBB-73EC-45D9-B4E5-5B2E3A9F915C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2055'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'2055' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '2055')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2360','uri://ed-fi.org/TribalAffiliationDescriptor','Chickahominy Indian Tribe','Inc.','Chickahominy Indian Tribe, Inc.',NULL,NULL,NULL,'4DEA53BF-F7B4-4192-9C66-E46EEB5B0EB2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2360'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TitleIPartASchoolDesignationDescriptor(TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.TitleIPartASchoolDesignationDescriptor WHERE TitleIPartASchoolDesignationDescriptorId= '2360')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'255901001','255901','104',NULL,NULL,'297',NULL,NULL,'2055','2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '255901001')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'392','Mr','Lance','Leslie','Key',NULL,NULL,'1999-08-23',NULL,NULL,NULL,NULL,'605213','8B33A695-F7C1-48E2-B824-3B26AABE4D19','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '392'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'392','255901001',NULL,'2010-08-23','955',NULL,NULL,NULL,'2011-12-08',NULL,NULL,NULL,NULL,NULL,'255901001','991','2011','7CF5C8DD-0977-48DA-AF09-58D0182CECFF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '392' AND SchoolId='255901001')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255901044','Grand Bend Middle School','GBMS','http://www.GBISD.edu/GBMS/','5BA02598-5F5C-491D-BF0F-AC28E76AE3F6','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM','1685','edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901044')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'991','255901044','2011',NULL,'28.000',NULL,'31828FAB-724C-4F9D-9BDD-B89F4EE9C030','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901044' AND GraduationPlanTypeDescriptorId= '991' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'255901044','255901','104',NULL,NULL,'297',NULL,NULL,'2055','2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '255901044')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'392','255901044',NULL,'2010-08-23','955',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'255901044','991','2011','8A73E06D-C454-431B-A079-6E887E77E446','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '392' AND SchoolId='255901044')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'956','uri://ed-fi.org/EducationalEnvironmentDescriptor','Off-school center','Off-school center','Off-school center',NULL,NULL,NULL,'CBD1F2A8-F8CC-4052-88DA-AF27E6BC71A9','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '956'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'956' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '956')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'992','uri://ed-fi.org/EntryGradeLevelReasonDescriptor','Promotion - Probationary promotion','Promotion - Probationary promotion','Promotion - Probationary promotion',NULL,NULL,NULL,'F581E121-E19F-4279-A87F-33E772513DE6','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '992'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'992' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '992')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'992','255901044','2011',NULL,'26.000',NULL,'0314EB3A-5FC4-4A2A-A81D-0C47B694F645','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901044' AND GraduationPlanTypeDescriptorId= '992' AND GraduationSchoolYear= '2011')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'396','Mr','Jacob','Barry','Watson',NULL,NULL,'2000-05-04',NULL,NULL,NULL,NULL,'605215','EF765E67-64AE-4AB1-8D8F-75F953456AEE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '396'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'396','255901044',NULL,'2010-08-23','956',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'255901044','992','2011','32FA378E-6E5C-4B20-9238-1C476E8267C7','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '396' AND SchoolId='255901044')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1120','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'C3D22595-4485-4CD9-A969-4BD3FFE479EE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1120'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1687','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Decimal','Decimal','Decimal',NULL,NULL,NULL,'F9234C8D-9276-4FFA-9F75-083220CAE958','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1687'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT TOP 1'1687' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1687')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'132','uri://ed-fi.org/CompetencyLevelDescriptor','Basic','Basic','Basic',NULL,NULL,NULL,'7FDC2B01-23C9-41CE-9D23-25897698C03B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '132'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'132' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '132')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','04E3686E-D181-4A8D-94E4-65C2490F1A5A','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'D8EE4912-42E5-46FB-9F9D-0C35C7117EC7','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '102')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1182','uri://ed-fi.org/OperationalStatusDescriptor','Reopened','Reopened','Reopened',NULL,NULL,NULL,'DBA7B933-5A1B-41C5-96E6-4ED40203EDE2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1182'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'1182' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '1182')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2010','2009-2010','0','67EFBB2E-8214-4C44-9072-92DFB5550A8D','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2010')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'3EFED5FB-D853-4F22-A496-10762B8553D4','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1715','uri://ed-fi.org/AttemptStatusDescriptor','Withdrawal by a parent (or guardian)','Withdrawal by a parent (or guardian)','Withdrawal by a parent (or guardian)',NULL,NULL,NULL,'2022C052-66F7-4DF9-B5FA-6F0A30C5841F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1715'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT TOP 1'1715' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '1715')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'126','uri://ed-fi.org/ClassroomPositionDescriptor','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'42679B77-329B-4FFC-99A8-27F290AFD28F','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '126'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'126' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '126')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'State Assessment','126',NULL,'2011-09-01','50',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','DD4856B3-D80A-448F-AEA5-4DE6D4FB6FFF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade',NULL,NULL,'2011',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'State Assessment_Mathematics8-4',NULL,'5','0.1000',NULL,NULL,'319491DA-E58E-487F-8F35-D0F3E06C7CB6','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND IdentificationCode= 'State Assessment_Mathematics8-4' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100','uri://ed-fi.org/AssessmentIdentificationSystemDescriptor','Other Federal','Other Federal','Other Federal',NULL,NULL,NULL,'09D9713D-0394-4389-84EA-6BF7629D89E2','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '100'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT TOP 1'100' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '100')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'943','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','Student Incarcerated','Student Incarcerated','Student Incarcerated',NULL,NULL,NULL,'9E515C7D-E797-4FFF-BFEA-E1C3550E9927','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '943'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'943' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '943')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'71','Mr','Bobby','Jacob','Hendrix',NULL,NULL,'1997-09-03',NULL,NULL,NULL,NULL,'604889','B01CD801-5D5A-4B35-AB09-D31838871325','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '71'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'71','2010-04-01 16:00:00.0000000',NULL,'513900201','1182','943',NULL,'3E4FEA24-65C1-44FC-8913-E5092C611A90','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml','2010','100',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND StudentUSI= '71')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'71','State Assessment_Mathematics8-4','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND IdentificationCode= 'State Assessment_Mathematics8-4' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND StudentUSI= '71')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'71','State Assessment_Mathematics8-4','1715','1','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '71' AND IdentificationCode = 'State Assessment_Mathematics8-4' AND AssessmentIdentifier = 'SA-2011-Mathematics-Eighth grade' AND StudentAssessmentIdentifier = 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'71','State Assessment_Mathematics8-4','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE IdentificationCode = 'State Assessment_Mathematics8-4' AND AssessmentIdentifier = 'SA-2011-Mathematics-Eighth grade' AND StudentAssessmentIdentifier = 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','3867B4F2-42F9-41C6-9F57-704DCD0862D6','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'2CBCD12A-0FC9-46D9-9D52-C4DDBCD95AAF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'6EA765C9-ADD5-4EAB-86DE-BFDE19D4EA8F','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade-TestCase' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48-TestCase',NULL,'1','0.0392',NULL,NULL,'5CF41EF6-8AB5-476E-A1A8-FD5D577C17EE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48-TestCase','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48-TestCase','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48-TestCase' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment-TestCase.xml','F81E4C5B-B2D9-43FF-AA1F-5DF3447F94DE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'66EA39FA-2E1C-4B77-99DF-4B4133C35AB1','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'CD3C0ECF-86C9-4A38-9B16-001028B08F03','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'49BA95A7-B9AC-4DA6-8362-2165AC461645','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'396','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'20EEA7B3-1DB0-42EE-944D-D941E41DA726','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '396')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'396','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '396')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'396','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '396' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1090','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Achievement/proficiency level','Achievement/proficiency level','Achievement/proficiency level',NULL,NULL,NULL,'E86DDC5C-6F8D-42B9-BF9A-22490FB5D7E9','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1090'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1090')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1090')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'636','uri://ed-fi.org/PerformanceLevelDescriptor','Basic','Basic','Basic',NULL,NULL,NULL,'A07B4D26-4AB8-491F-9DAA-80B594AC33CE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '636'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT TOP 1'636' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '636')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade-TestCase' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1090')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48-TestCase','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48-TestCase' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'396','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '396' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + + + ----- SASOA + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '392', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '392', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '392', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + -------------SASOASR + + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + --INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', NULL WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId IS NULL ) ); + -- + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + -- + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + --identificationCode + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48_TestCase', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48_TestCase', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48_TestCase', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --Namespace + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment_TestCase', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment_TestCase', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + + --StudentAssessmentIdentifier + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --StudentUSI + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', null, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + + -------SASOAPL + -----PL + --Namespace + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --AssessmentIdentifier + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --StudentAssessmentIdentifier + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + -- + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + --StudentUSI + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100075337', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100075337' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100075337', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100075337' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100075337', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100075337' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100075337', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100075337' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --COALESCE + INSERT INTO edfi.AssessmentPerformanceLevel ( PerformanceLevelDescriptorId, MinimumScore, MaximumScore, CreateDate, AssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '636', '28', '40', 'Sep 18 2015 11:34AM', 'MP-2013-Mathematics-Seventh grade', 'uri://ed-fi.org/Assessment/Assessment.xml', '1688', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '636' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' ) ); + INSERT INTO edfi.AssessmentPerformanceLevel ( PerformanceLevelDescriptorId, MinimumScore, MaximumScore, CreateDate, AssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '637', '39', '40', 'Sep 18 2015 11:34AM', 'MP-2013-Mathematics-Seventh grade', 'uri://ed-fi.org/Assessment/Assessment.xml', '1688', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' ) ); + INSERT INTO edfi.StudentAssessmentScoreResult ( StudentUSI, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId, ResultDatatypeTypeDescriptorId ) ( SELECT TOP 1 '392', '29', 'Sep 18 2015 11:46AM', 'MP-2013-Mathematics-Seventh grade', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://ed-fi.org/Assessment/Assessment.xml', '231', '1688' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' AND NAMESPACE='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '231' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentUSI = '392' ) ); + -- ## 04556570-B715-6D8E-5E86-008A72ECE100-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01-1120-637-Seventh grade Mathematics-48-1120-637-202042-867530069-2011-08-22 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075330','dave','X','Smith','1999-10-09','Lubbock','202042','619785E8-B6A4-43C6-A8A3-D8DA54AD3100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075330')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79100','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075330','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075330')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and ResultDatatypeTypeDescriptorId = '1688')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117100','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -------- + + -- AssessmentIdentifier + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE101' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79101','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101' and StudentUSI = '400075330')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117101','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- IdentificationCode + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-49','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117102','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-49' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-49','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-49' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-49','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-49' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- Namespace + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment_Alt','5A93ED33-D40F-4EE9-A351-0EA2EB2F3103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79103','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and ResultDatatypeTypeDescriptorId = '1688' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117103','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment_Alt' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentAssessmentIdentifier + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79104','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentUSI + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075331','dave','X','Smith','1999-10-09','Lubbock','202043','619785E8-B6A4-43C6-A8A3-D8DA54AD3105','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075331')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075331','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79105','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075331' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075331','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927105','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075331')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075331','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075331')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075331','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075331')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075331','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075331' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075331','Seventh grade Mathematics-48','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075331' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- AssessmentReportingMethodDescriptorId + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1122' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1122')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE110-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01-1120-637-Seventh grade Mathematics-58-1120-637-202252-867530069-2011-08-22 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075340','Kim','X','Johnson','1999-10-09','Lubbock','202252','619785E8-B6A4-43C6-A8A3-D8DA54AD3110','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075340')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79110','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075340','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927110','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075340')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and ResultDatatypeTypeDescriptorId = '1688')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117110','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -------- + + -- AssessmentIdentifier + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3111','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE111' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79111','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' and StudentUSI = '400075340')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117111','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- IdentificationCode + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-59','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117112','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-59' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-59','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-59' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-59','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-59' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-59','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-59' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- Namespace + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment_Alt','5A93ED33-D40F-4EE9-A351-0EA2EB2F3113','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79113','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and ResultDatatypeTypeDescriptorId = '1688' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117113','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment_Alt' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentAssessmentIdentifier + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79114','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentUSI + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075341','Kim','X','Johnson','1999-10-09','Lubbock','202253','619785E8-B6A4-43C6-A8A3-D8DA54AD3115','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075341')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075341','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79115','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075341' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075341','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927115','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075341')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075341','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075341')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075341','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075341')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075341','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075341' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075341','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075341' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE120-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01-1120-637----202262-867530069-20110822 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3120','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE120' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075350','Jim','X','Morrison','1999-10-09','Lubbock','202262','619785E8-B6A4-43C6-A8A3-D8DA54AD3120','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075350')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075350','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79120','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE120','04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075350' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075350','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927120','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075350')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075350','41','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE120','04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120' and StudentUSI = '400075350')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE120','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120' and ResultDatatypeTypeDescriptorId = '1688')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE140-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01---Seventh grade Mathematics-58-1120--202282-867530069-20110822 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3140','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE140' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075370','Carl','X','Smith','1999-10-09','Lubbock','202282','619785E8-B6A4-43C6-A8A3-D8DA54AD3140','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075370')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075370','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79140','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075370' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075370','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927140','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075370')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117143','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075370','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' AND StudentUSI= '400075370')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075370','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075370' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_2/0001_StudentAssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_2/0001_StudentAssessmentFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..a7ae99bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_2/0001_StudentAssessmentFact_should_match_column_dictionary.xml @@ -0,0 +1,82 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'asmt_StudentAssessmentFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentAssessmentFactKey + nvarchar + + + StudentAssessmentKey + nvarchar + + + StudentObjectiveAssessmentKey + nvarchar + + + ObjectiveAssessmentKey + nvarchar + + + AssessmentKey + nvarchar + + + AssessmentIdentifier + nvarchar + + + Namespace + nvarchar + + + StudentAssessmentIdentifier + nvarchar + + + StudentUSI + int + + + StudentSchoolKey + nvarchar + + + SchoolKey + int + + + AdministrationDate + varchar + + + AssessedGradeLevel + nvarchar + + + StudentScore + nvarchar + + + ResultDataType + nvarchar + + + ReportingMethod + nvarchar + + + PerformanceResult + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_3/0000_StudentAssessmentFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_3/0000_StudentAssessmentFact_Data_Load.xml new file mode 100644 index 00000000..1f69be4e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_3/0000_StudentAssessmentFact_Data_Load.xml @@ -0,0 +1,787 @@ + + + Any + + ------------- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2001','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Range','Range','Range',NULL,NULL,NULL,'DE232BF2-7253-464A-8EA4-A50BA020C81C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2001'));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'231','uri://ed-fi.org/AssessmentReportingMethodDescriptor','RIT scale score','RIT scale score','RIT scale score',NULL,NULL,NULL,'12F4C346-B22E-4FF1-8C05-16C2FF90B2AE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '231'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'231' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '231')); + -- assessment identifier: 04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01 + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'787','uri://ed-fi.org/AdministrationEnvironmentDescriptor','School','School','School',NULL,NULL,NULL,'B1FA14D9-ACA4-46A5-BFEB-D7BDEB010FBF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '787'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT TOP 1'787' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '787')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'591','uri://ed-fi.org/AssessmentCategoryDescriptor','State summative assessment 3-8 general','State summative assessment 3-8 general','State summative assessment 3-8 general',NULL,NULL,NULL,'F4E3CB35-A041-418B-B352-E438D5110CD4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '591'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'591' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '591')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'25','uri://ed-fi.org/GradeLevelDescriptor','Fourth grade','Fourth grade','Fourth grade',NULL,NULL,NULL,'7C47AC7F-3C3D-4FED-A48E-210748C9A803','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '25'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'25' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '25')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075337',NULL,'Nubia','X','Medrano',NULL,NULL,'1999-10-09','Lubbock',NULL,NULL,NULL,'202040','619785E8-B6A4-43C6-A8A3-D8DA54AD3729','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075337'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100075337','2009-04-01 00:00:00.0000000',NULL,'207100982',NULL,'25',NULL,'9D581629-4DDB-4B69-88C6-3A52B4C79C29','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '100075337' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'37','uri://ed-fi.org/GradeLevelDescriptor','Sixth grade','Sixth grade','Sixth grade',NULL,NULL,NULL,'60046E19-5F2D-4E5C-9431-097E27769DEB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '37'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'37' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '37')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530069','Washington Middle School',NULL,NULL,'85127CE8-0EDA-43D2-A160-D853210EAB4A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530069')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530069','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530069')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100075337','867530069',NULL,'2011-08-22','37',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0CB3AF96-D5DB-47E5-A57E-8B2C08927C7D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100075337')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1120','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'C3D22595-4485-4CD9-A969-4BD3FFE479EE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1120'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1688','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Integer','Integer','Integer',NULL,NULL,NULL,'4C642858-BCFB-4472-9625-ADC9B985A07E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1688'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT TOP 1'1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1688')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100075337','2009-04-01 00:00:00.0000000',NULL,'207100982',NULL,'25',NULL,'9D581629-4DDB-4B69-88C6-3A52B4C79C29','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' AND StudentUSI= '100075337')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100075337','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446' and StudentUSI = '100075337')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'637','uri://ed-fi.org/PerformanceLevelDescriptor','Proficient','Proficient','Proficient',NULL,NULL,NULL,'55D1F5E3-D166-4C3F-AF59-160472682404','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '637'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT TOP 1'637' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446')); + -- + -- Cases to cover exception scenarios for INNER JOIN edfi.AssessmentPerformanceLevel + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE447',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE447' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE447','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE447')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446','uri://edfi.org/Assessment_AssessmentPerformanceLevel_1',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446' and Namespace = 'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1122','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Scale score','Scale score','Scale score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11505','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1122'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1122')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1093','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Age score','Age score','Age score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11506','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1093'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1093')); + -- + + -- assessment identifier: D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01 + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100035251',NULL,'Quintesa',NULL,'Moniz',NULL,NULL,'1992-08-08','Lubbock',NULL,NULL,NULL,'190151','B2D617C4-835F-40AD-8267-3F4BDA098E8B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100035251'));SET IDENTITY_INSERT edfi.Student OFF; + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100035252',NULL,'Quintesa',NULL,'Moniz',NULL,NULL,'1992-08-08','Lubbock',NULL,NULL,NULL,'190152','B2D617C4-835F-40AD-8267-3F4BDA098E8C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100035252'));SET IDENTITY_INSERT edfi.Student OFF; + -- + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100035251','867530022',NULL,'2011-10-03','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','2B9D1648-3537-4867-9E4D-DDAC8797281F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100035251')); + -- + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100035252','867530022',NULL,'2011-10-03','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','2B9D1648-3537-4867-9E4D-DDAC8797282A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100035252')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2010-09-01','55',NULL,'uri://edfi.org/Assessment','DCB00AED-8548-45E4-934D-C80CB8186E7A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0',NULL,NULL,'2010',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100035251','2010-04-01 00:00:00.0000000',NULL,'458500265',NULL,'24',NULL,'D93F8614-51CF-4A23-BD45-EC975AD76A5F','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI= '100035251')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100035252','2010-04-01 00:00:00.0000000',NULL,'458500265',NULL,'24',NULL,'D93F8614-51CF-4A23-BD45-EC975AD76A6A','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI= '100035252')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100035252','27','Sep 18 2015 11:46AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100035252' and StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' and AssessmentReportingMethodDescriptorId = '1120')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment',newid(),'Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','AssessmentIdentifier_TestCase',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'AssessmentIdentifier_TestCase' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment',newid(),'Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','uri://edfi.org/Assessment',1688,'231' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='231')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','24','55','Sep 18 2015 11:34AM','AssessmentIdentifier_TestCase','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'AssessmentIdentifier_TestCase' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + -- + + -- assessment identifier: EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01 + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530021','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100074717',NULL,'Norma','B','Mcdaniels',NULL,NULL,'1994-04-13','Lubbock',NULL,NULL,NULL,'201864','1C195DFA-AB46-4D33-9641-17BA691CDAA3','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100074717'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100074717','867530021',NULL,'2011-08-22','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','6C2D460E-D36B-4EFE-A2F1-76FCC23E38D8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100074717')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS-M','591',NULL,'2002-09-01','40',NULL,'uri://edfi.org/Assessment','A8A0ABEB-F2F0-4135-A103-C6B918DCE067','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71',NULL,NULL,'2002',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS-M','591',NULL,'2002-09-01','40',NULL,'uri://edfi.org/Assessment_ns_1','A8A0ABEB-F2F0-4135-A103-C6B918DCE068','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71',NULL,NULL,'2002',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment_ns_1')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100074717','2012-04-01 00:00:00.0000000',NULL,'481001126',NULL,'35',NULL,'6EF2F54E-9E7F-4293-9BE9-D6F201EC0BE8','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' AND StudentUSI= '100074717')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100074717','2012-04-01 00:00:00.0000000',NULL,'481001126',NULL,'35',NULL,'6EF2F54E-9E7F-4293-9BE9-D6F201EC0BE9','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment_ns_1',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment_ns_1' AND StudentAssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' AND StudentUSI= '100074717' and Namespace = 'uri://edfi.org/Assessment_ns_1')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100074717','24','Sep 18 2015 11:46AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment_ns_1','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100074717' and StudentAssessmentIdentifier = 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','2100','3500','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71')); + + -- + -- assessment identifier: C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01 + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100039988',NULL,'Jennifer','H','Knoll',NULL,NULL,'1993-03-20',NULL,NULL,NULL,NULL,'190257','B264F600-7D33-42B6-847E-991B4B7B4E87','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039988'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100039988','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','02D49D56-9990-44F6-88CB-259BAEF5AC8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100039988')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2008-09-01','48',NULL,'uri://edfi.org/Assessment','0EFAFB45-C90B-47D9-88C3-5EE05870A0EF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','C2036C8D-1333-F75D-0B6B-380756666AF8',NULL,NULL,'2008',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'21','uri://ed-fi.org/GradeLevelDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'A94CADDB-1E3A-4710-A09A-2D91077317C4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '21'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'21' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '21')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100039988','2008-03-01 00:00:00.0000000',NULL,'510001780',NULL,'21',NULL,'C22CACA4-91E2-4BA2-840E-1F5F4448F4BA','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01' AND StudentUSI= '100039988')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100039988','2008-03-01 00:00:00.0000000',NULL,'510001780',NULL,'21',NULL,'C22CACA4-91E2-4BA2-840E-1F5F4448F4BB','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-02','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-02' AND StudentUSI= '100039988')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100039988','41','Sep 18 2015 11:46AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100039988' and StudentAssessmentIdentifier = 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','33','48','Sep 18 2015 11:34AM','C2036C8D-1333-F75D-0B6B-380756666AF8','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'C2036C8D-1333-F75D-0B6B-380756666AF8')); + + -- + -- assessment identifier: 0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01 + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100041249')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','42',NULL,'uri://edfi.org/Assessment','47DEBFE3-5A36-4365-AB78-1EA9A8CE82E3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141145',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','42',NULL,'uri://edfi.org/Assessment','47DEBFE3-5A36-4365-AB78-1EA9A8CE82E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141146',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141146' AND Namespace= 'uri://edfi.org/Assessment')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100041249','2009-04-01 00:00:00.0000000',NULL,'237901791',NULL,'31',NULL,'F9102CE9-5C87-4DA9-B8E0-CF99113819D7','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','0E886CBB-AB8F-ABD3-747F-C455C5141145','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' AND StudentUSI= '100041249')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100041249','2009-04-01 00:00:00.0000000',NULL,'237901791',NULL,'31',NULL,'F9102CE9-5C87-4DA9-B8E0-CF99113819D8','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','0E886CBB-AB8F-ABD3-747F-C455C5141146','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141146' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' AND StudentUSI= '100041249')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100041249','31','Sep 18 2015 11:46AM','0E886CBB-AB8F-ABD3-747F-C455C5141146','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100041249' and StudentAssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' and AssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141146' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','28','42','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141145','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141145')); + + -- + -- assessment identifier: A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01 + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100067279',NULL,'Marvis','X','Tucker',NULL,NULL,'1995-09-04','Lubbock',NULL,NULL,NULL,'198715','3DFE8883-2C46-4695-AB74-BBAC0286E6EF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100067279'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100067279','867530021',NULL,'2011-08-22','24',NULL,NULL,NULL,DATEADD(day, 1, GETDATE()),NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','018EF3E6-72AB-4472-87A7-7DCDAB907226','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100067279')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','48',NULL,'uri://edfi.org/Assessment','707E021B-544C-4833-925C-8D84C7457103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100067279','2009-03-01 00:00:00.0000000',NULL,'503003155',NULL,'21',NULL,'36CBA4E1-B716-44C1-9083-1E0001837659','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01' AND StudentUSI= '100067279')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100067279','34','Sep 18 2015 11:46AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100067279' and StudentAssessmentIdentifier = 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','34','48','Sep 18 2015 11:34AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2')); + + -- + -- assessment identifier: 2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01 + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100071960',NULL,'Adrianna','N','Meacham',NULL,NULL,'1995-05-04','Lubbock',NULL,NULL,NULL,'200547','B7519E6C-0056-40C1-BE52-6AF18831F4AD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071960'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100071960','867530020',NULL,'2011-08-22','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'634','2013','D8DAA3B6-670D-4E13-9AC6-281F5FDD56B8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100071960')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','50',NULL,'uri://edfi.org/Assessment','E7A87C0A-6FDB-40DA-8A8A-5F93E98A2A28','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100071960','2009-04-01 00:00:00.0000000',NULL,'541602531',NULL,'21',NULL,'EFFBDAB7-FFF8-449F-A2A4-9B3C757C705F','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' AND StudentUSI= '100071960')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100071960','45','Sep 18 2015 11:46AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100071960' and StudentAssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','30','50','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852')); + -- + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','49','50','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852' and MinimumScore = '49')); + -- + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','30','31','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852' and MaximumScore = '31')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'TAKS','591',NULL,'2009-09-01','50',NULL,'uri://edfi.org/Assessment_ns_1','9DEE6630-39E2-4FE3-85A9-002E10554BE4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND Namespace='uri://edfi.org/Assessment_ns_1' )); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'100071960','2009-04-01 00:00:00.0000000',NULL,'541602531',NULL,'21',NULL,'15FC5C74-C3E7-4C4D-8106-91E8752947BF','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment_ns_1',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment_ns_1' AND StudentAssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' AND StudentUSI= '100071960')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT TOP 1'100071960','24','Sep 18 2015 11:46AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment_ns_1','1122','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND Namespace='uri://edfi.org/Assessment_ns_1' AND STUDENTUSI='100071960' )); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','0','1000','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment_ns_1',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND AssessmentReportingMethodDescriptorId='1122' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','26','3500','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment_ns_1',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71') AND AssessmentReportingMethodDescriptorId='1120' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'637','20','23','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment_ns_1',NULL,'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71') AND AssessmentReportingMethodDescriptorId='1093' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + + + + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'955','uri://ed-fi.org/EducationalEnvironmentDescriptor','Mainstream (Special Education)','Mainstream (Special Education)','Mainstream (Special Education)',NULL,NULL,NULL,'AEF030E4-19AC-4F5E-A1BE-2AAC8DB2CB59','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '955'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'955' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '955')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1685','uri://ed-fi.org/RecognitionTypeDescriptor','Points','Points','Points',NULL,NULL,NULL,'A2145F7F-2FCA-49AC-A361-1584F8442A6B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1685'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OperationalStatusDescriptor(OperationalStatusDescriptorId)(SELECT TOP 1'1685' WHERE NOT EXISTS(SELECT 1 FROM edfi.OperationalStatusDescriptor WHERE OperationalStatusDescriptorId= '1685')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255901001','Grand Bend High School','GBHS','http://www.GBISD.edu/GBHS/','EFC9A04B-AA2C-434C-9A86-CA4B5A378B50','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM','1685','edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901001')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'991','uri://ed-fi.org/EntryGradeLevelReasonDescriptor','Promotion - Other','Promotion - Other','Promotion - Other',NULL,NULL,NULL,'8077E06D-362E-435B-89F2-1CE2C2C84D61','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '991'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'991' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '991')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'991','255901001','2011',NULL,'28.000',NULL,'AD7C8A9A-B6FF-4B82-8F4D-6FF747BC6140','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901001' AND GraduationPlanTypeDescriptorId= '991' AND GraduationSchoolYear= '2011')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'104','uri://ed-fi.org/LevelOfEducationDescriptor','Associate''s Degree (two years or more)','Associate''s Degree (two years or more)','Associate''s Degree (two years or more)',NULL,NULL,NULL,'32DD0969-AE57-4037-BC35-4CEBDB7BEB49','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '104'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AdministrativeFundingControlDescriptor(AdministrativeFundingControlDescriptorId)(SELECT TOP 1'104' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrativeFundingControlDescriptor WHERE AdministrativeFundingControlDescriptorId= '104')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'297','uri://ed-fi.org/CountryDescriptor','IR','Iran, Islamic Republic of','Iran, Islamic Republic of',NULL,NULL,NULL,'E51583E4-424F-438F-BE3C-6AF844AA5342','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '297'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CharterStatusDescriptor(CharterStatusDescriptorId)(SELECT TOP 1'297' WHERE NOT EXISTS(SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId= '297')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255901','Grand Bend ISD','GBISD','http://www.GBISD.edu/','5BEE93F6-F1CE-4C31-A52D-2C0AFE1B0DDC','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255950','Region 99 Education Service Center',NULL,NULL,'A5CF3F99-F869-4916-8E32-2D03B4979E00','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT TOP 1'255950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '255950')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1627','uri://ed-fi.org/ProgramTypeDescriptor','Counseling Services','Counseling Services','Counseling Services',NULL,NULL,NULL,'CD88E854-E043-49AD-93A0-0504B05F8192','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1627'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1627' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1627')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'255901',NULL,'255950',NULL,NULL,'1627' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '255901')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2055','uri://ed-fi.org/LanguageDescriptor','nzi','Nzima','Nzima',NULL,NULL,NULL,'1B7D4FBB-73EC-45D9-B4E5-5B2E3A9F915C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2055'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'2055' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '2055')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2360','uri://ed-fi.org/TribalAffiliationDescriptor','Chickahominy Indian Tribe','Inc.','Chickahominy Indian Tribe, Inc.',NULL,NULL,NULL,'4DEA53BF-F7B4-4192-9C66-E46EEB5B0EB2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2360'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.TitleIPartASchoolDesignationDescriptor(TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.TitleIPartASchoolDesignationDescriptor WHERE TitleIPartASchoolDesignationDescriptorId= '2360')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'255901001','255901','104',NULL,NULL,'297',NULL,NULL,'2055','2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '255901001')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'392','Mr','Lance','Leslie','Key',NULL,NULL,'1999-08-23',NULL,NULL,NULL,NULL,'605213','8B33A695-F7C1-48E2-B824-3B26AABE4D19','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '392'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'392','255901001',NULL,'2010-08-23','955',NULL,NULL,NULL,'2011-12-08',NULL,NULL,NULL,NULL,NULL,'255901001','991','2011','7CF5C8DD-0977-48DA-AF09-58D0182CECFF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '392' AND SchoolId='255901001')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'255901044','Grand Bend Middle School','GBMS','http://www.GBISD.edu/GBMS/','5BA02598-5F5C-491D-BF0F-AC28E76AE3F6','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM','1685','edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901044')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'991','255901044','2011',NULL,'28.000',NULL,'31828FAB-724C-4F9D-9BDD-B89F4EE9C030','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901044' AND GraduationPlanTypeDescriptorId= '991' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'255901044','255901','104',NULL,NULL,'297',NULL,NULL,'2055','2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '255901044')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'392','255901044',NULL,'2010-08-23','955',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'255901044','991','2011','8A73E06D-C454-431B-A079-6E887E77E446','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '392' AND SchoolId='255901044')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'956','uri://ed-fi.org/EducationalEnvironmentDescriptor','Off-school center','Off-school center','Off-school center',NULL,NULL,NULL,'CBD1F2A8-F8CC-4052-88DA-AF27E6BC71A9','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '956'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'956' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '956')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'992','uri://ed-fi.org/EntryGradeLevelReasonDescriptor','Promotion - Probationary promotion','Promotion - Probationary promotion','Promotion - Probationary promotion',NULL,NULL,NULL,'F581E121-E19F-4279-A87F-33E772513DE6','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '992'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'992' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '992')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'992','255901044','2011',NULL,'26.000',NULL,'0314EB3A-5FC4-4A2A-A81D-0C47B694F645','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901044' AND GraduationPlanTypeDescriptorId= '992' AND GraduationSchoolYear= '2011')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'396','Mr','Jacob','Barry','Watson',NULL,NULL,'2000-05-04',NULL,NULL,NULL,NULL,'605215','EF765E67-64AE-4AB1-8D8F-75F953456AEE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '396'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'396','255901044',NULL,'2010-08-23','956',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'255901044','992','2011','32FA378E-6E5C-4B20-9238-1C476E8267C7','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '396' AND SchoolId='255901044')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1120','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'C3D22595-4485-4CD9-A969-4BD3FFE479EE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1120'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1687','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Decimal','Decimal','Decimal',NULL,NULL,NULL,'F9234C8D-9276-4FFA-9F75-083220CAE958','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1687'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT TOP 1'1687' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1687')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'132','uri://ed-fi.org/CompetencyLevelDescriptor','Basic','Basic','Basic',NULL,NULL,NULL,'7FDC2B01-23C9-41CE-9D23-25897698C03B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '132'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'132' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '132')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','04E3686E-D181-4A8D-94E4-65C2490F1A5A','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'D8EE4912-42E5-46FB-9F9D-0C35C7117EC7','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '102')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1182','uri://ed-fi.org/OperationalStatusDescriptor','Reopened','Reopened','Reopened',NULL,NULL,NULL,'DBA7B933-5A1B-41C5-96E6-4ED40203EDE2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1182'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'1182' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '1182')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2010','2009-2010','0','67EFBB2E-8214-4C44-9072-92DFB5550A8D','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2010')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'3EFED5FB-D853-4F22-A496-10762B8553D4','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1715','uri://ed-fi.org/AttemptStatusDescriptor','Withdrawal by a parent (or guardian)','Withdrawal by a parent (or guardian)','Withdrawal by a parent (or guardian)',NULL,NULL,NULL,'2022C052-66F7-4DF9-B5FA-6F0A30C5841F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1715'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT TOP 1'1715' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '1715')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'126','uri://ed-fi.org/ClassroomPositionDescriptor','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'42679B77-329B-4FFC-99A8-27F290AFD28F','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '126'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT TOP 1'126' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '126')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'State Assessment','126',NULL,'2011-09-01','50',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','DD4856B3-D80A-448F-AEA5-4DE6D4FB6FFF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade',NULL,NULL,'2011',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'State Assessment_Mathematics8-4',NULL,'5','0.1000',NULL,NULL,'319491DA-E58E-487F-8F35-D0F3E06C7CB6','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND IdentificationCode= 'State Assessment_Mathematics8-4' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100','uri://ed-fi.org/AssessmentIdentificationSystemDescriptor','Other Federal','Other Federal','Other Federal',NULL,NULL,NULL,'09D9713D-0394-4389-84EA-6BF7629D89E2','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '100'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT TOP 1'100' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '100')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'943','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','Student Incarcerated','Student Incarcerated','Student Incarcerated',NULL,NULL,NULL,'9E515C7D-E797-4FFF-BFEA-E1C3550E9927','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '943'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'943' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '943')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'71','Mr','Bobby','Jacob','Hendrix',NULL,NULL,'1997-09-03',NULL,NULL,NULL,NULL,'604889','B01CD801-5D5A-4B35-AB09-D31838871325','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '71'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'71','2010-04-01 16:00:00.0000000',NULL,'513900201','1182','943',NULL,'3E4FEA24-65C1-44FC-8913-E5092C611A90','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml','2010','100',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND StudentUSI= '71')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'71','State Assessment_Mathematics8-4','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND IdentificationCode= 'State Assessment_Mathematics8-4' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND StudentUSI= '71')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'71','State Assessment_Mathematics8-4','1715','1','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '71' AND IdentificationCode = 'State Assessment_Mathematics8-4' AND AssessmentIdentifier = 'SA-2011-Mathematics-Eighth grade' AND StudentAssessmentIdentifier = 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'71','State Assessment_Mathematics8-4','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE IdentificationCode = 'State Assessment_Mathematics8-4' AND AssessmentIdentifier = 'SA-2011-Mathematics-Eighth grade' AND StudentAssessmentIdentifier = 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','3867B4F2-42F9-41C6-9F57-704DCD0862D6','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'2CBCD12A-0FC9-46D9-9D52-C4DDBCD95AAF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'6EA765C9-ADD5-4EAB-86DE-BFDE19D4EA8F','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade-TestCase' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48-TestCase',NULL,'1','0.0392',NULL,NULL,'5CF41EF6-8AB5-476E-A1A8-FD5D577C17EE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48-TestCase','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48-TestCase','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48-TestCase' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT TOP 1'7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment-TestCase.xml','F81E4C5B-B2D9-43FF-AA1F-5DF3447F94DE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT TOP 1'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'66EA39FA-2E1C-4B77-99DF-4B4133C35AB1','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'CD3C0ECF-86C9-4A38-9B16-001028B08F03','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'49BA95A7-B9AC-4DA6-8362-2165AC461645','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT TOP 1'396','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'20EEA7B3-1DB0-42EE-944D-D941E41DA726','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '396')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT TOP 1'396','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '396')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'396','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '396' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1090','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Achievement/proficiency level','Achievement/proficiency level','Achievement/proficiency level',NULL,NULL,NULL,'E86DDC5C-6F8D-42B9-BF9A-22490FB5D7E9','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1090'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT TOP 1'1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1090')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1090')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'636','uri://ed-fi.org/PerformanceLevelDescriptor','Basic','Basic','Basic',NULL,NULL,NULL,'A07B4D26-4AB8-491F-9DAA-80B594AC33CE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '636'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT TOP 1'636' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '636')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade-TestCase' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1090')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48-TestCase','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48-TestCase' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT TOP 1'396','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '396' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + + + ----- SASOA + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '392', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '392', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '392', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + -------------SASOASR + + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + --INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', NULL WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId IS NULL ) ); + -- + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + -- + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + --identificationCode + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48_TestCase', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48_TestCase', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48_TestCase', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --Namespace + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment_TestCase', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment_TestCase', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + + --StudentAssessmentIdentifier + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --StudentUSI + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', null, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + + -------SASOAPL + -----PL + --Namespace + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --AssessmentIdentifier + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT TOP 1 '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT TOP 1 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --StudentAssessmentIdentifier + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + -- + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + --StudentUSI + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT TOP 1 '100075337', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, NEWID(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100075337' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT TOP 1 '100075337', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100075337' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100075337', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100075337' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '100075337', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100075337' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --COALESCE + INSERT INTO edfi.AssessmentPerformanceLevel ( PerformanceLevelDescriptorId, MinimumScore, MaximumScore, CreateDate, AssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '636', '28', '40', 'Sep 18 2015 11:34AM', 'MP-2013-Mathematics-Seventh grade', 'uri://ed-fi.org/Assessment/Assessment.xml', '1688', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '636' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' ) ); + INSERT INTO edfi.AssessmentPerformanceLevel ( PerformanceLevelDescriptorId, MinimumScore, MaximumScore, CreateDate, AssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT TOP 1 '637', '39', '40', 'Sep 18 2015 11:34AM', 'MP-2013-Mathematics-Seventh grade', 'uri://ed-fi.org/Assessment/Assessment.xml', '1688', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' ) ); + INSERT INTO edfi.StudentAssessmentScoreResult ( StudentUSI, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId, ResultDatatypeTypeDescriptorId ) ( SELECT TOP 1 '392', '29', 'Sep 18 2015 11:46AM', 'MP-2013-Mathematics-Seventh grade', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://ed-fi.org/Assessment/Assessment.xml', '231', '1688' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' AND NAMESPACE='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '231' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentUSI = '392' ) ); + -- ## 04556570-B715-6D8E-5E86-008A72ECE100-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01-1120-637-Seventh grade Mathematics-48-1120-637-202042-867530069-2011-08-22 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075330','dave','X','Smith','1999-10-09','Lubbock','202042','619785E8-B6A4-43C6-A8A3-D8DA54AD3100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075330')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79100','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075330','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075330')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and ResultDatatypeTypeDescriptorId = '1688')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117100','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -------- + + -- AssessmentIdentifier + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE101' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79101','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101' and StudentUSI = '400075330')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117101','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- IdentificationCode + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-49','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117102','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-49' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-49','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-49' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-49','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-49' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- Namespace + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment_Alt','5A93ED33-D40F-4EE9-A351-0EA2EB2F3103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79103','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and ResultDatatypeTypeDescriptorId = '1688' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117103','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment_Alt' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentAssessmentIdentifier + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79104','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentUSI + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075331','dave','X','Smith','1999-10-09','Lubbock','202043','619785E8-B6A4-43C6-A8A3-D8DA54AD3105','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075331')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075331','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79105','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075331' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075331','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927105','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075331')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075331','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075331')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075331','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075331')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075331','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075331' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075331','Seventh grade Mathematics-48','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075331' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- AssessmentReportingMethodDescriptorId + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1122' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1122')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE110-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01-1120-637-Seventh grade Mathematics-58-1120-637-202252-867530069-2011-08-22 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075340','Kim','X','Johnson','1999-10-09','Lubbock','202252','619785E8-B6A4-43C6-A8A3-D8DA54AD3110','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075340')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79110','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075340','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927110','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075340')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and ResultDatatypeTypeDescriptorId = '1688')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117110','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -------- + + -- AssessmentIdentifier + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3111','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE111' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79111','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' and StudentUSI = '400075340')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117111','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- IdentificationCode + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-59','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117112','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-59' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-59','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-59' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-59','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-59' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-59','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-59' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- Namespace + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment_Alt','5A93ED33-D40F-4EE9-A351-0EA2EB2F3113','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79113','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and ResultDatatypeTypeDescriptorId = '1688' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117113','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment_Alt' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentAssessmentIdentifier + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79114','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentUSI + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075341','Kim','X','Johnson','1999-10-09','Lubbock','202253','619785E8-B6A4-43C6-A8A3-D8DA54AD3115','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075341')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075341','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79115','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075341' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075341','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927115','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075341')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075341','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075341')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075341','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075341')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075341','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075341' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075341','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075341' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE120-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01-1120-637----202262-867530069-20110822 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3120','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE120' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075350','Jim','X','Morrison','1999-10-09','Lubbock','202262','619785E8-B6A4-43C6-A8A3-D8DA54AD3120','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075350')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075350','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79120','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE120','04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075350' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075350','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927120','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075350')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT TOP 1'400075350','41','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE120','04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120' and StudentUSI = '400075350')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE120','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120' and ResultDatatypeTypeDescriptorId = '1688')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE140-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01---Seventh grade Mathematics-58-1120--202282-867530069-20110822 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT TOP 1'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3140','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE140' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND Namespace= 'uri://edfi.org/Assessment')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075370','Carl','X','Smith','1999-10-09','Lubbock','202282','619785E8-B6A4-43C6-A8A3-D8DA54AD3140','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075370')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075370','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79140','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075370' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'400075370','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927140','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075370')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT TOP 1'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117143','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT TOP 1'400075370','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' AND StudentUSI= '400075370')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT TOP 1'400075370','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075370' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_3/0001_StudentAssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_3/0001_StudentAssessmentFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..a7ae99bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/MSSQL/v_3_3/0001_StudentAssessmentFact_should_match_column_dictionary.xml @@ -0,0 +1,82 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'asmt_StudentAssessmentFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentAssessmentFactKey + nvarchar + + + StudentAssessmentKey + nvarchar + + + StudentObjectiveAssessmentKey + nvarchar + + + ObjectiveAssessmentKey + nvarchar + + + AssessmentKey + nvarchar + + + AssessmentIdentifier + nvarchar + + + Namespace + nvarchar + + + StudentAssessmentIdentifier + nvarchar + + + StudentUSI + int + + + StudentSchoolKey + nvarchar + + + SchoolKey + int + + + AdministrationDate + varchar + + + AssessedGradeLevel + nvarchar + + + StudentScore + nvarchar + + + ResultDataType + nvarchar + + + ReportingMethod + nvarchar + + + PerformanceResult + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/0001_StudentAssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_2/0001_StudentAssessmentFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/0001_StudentAssessmentFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_2/0001_StudentAssessmentFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_3/0000_StudentAssessmentFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_3/0000_StudentAssessmentFact_Data_Load.xml new file mode 100644 index 00000000..35c77778 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_3/0000_StudentAssessmentFact_Data_Load.xml @@ -0,0 +1,787 @@ + + + Any + + ------------- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2001','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Range','Range','Range',NULL,NULL,NULL,'DE232BF2-7253-464A-8EA4-A50BA020C81C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2001')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '231','uri://ed-fi.org/AssessmentReportingMethodDescriptor','RIT scale score','RIT scale score','RIT scale score',NULL,NULL,NULL,'12F4C346-B22E-4FF1-8C05-16C2FF90B2AE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '231')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '231' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '231')); + -- assessment identifier: 04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01 + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '787','uri://ed-fi.org/AdministrationEnvironmentDescriptor','School','School','School',NULL,NULL,NULL,'B1FA14D9-ACA4-46A5-BFEB-D7BDEB010FBF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '787')); + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT '787' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '787')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '591','uri://ed-fi.org/AssessmentCategoryDescriptor','State summative assessment 3-8 general','State summative assessment 3-8 general','State summative assessment 3-8 general',NULL,NULL,NULL,'F4E3CB35-A041-418B-B352-E438D5110CD4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '591')); + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT '591' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '591')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '25','uri://ed-fi.org/GradeLevelDescriptor','Fourth grade','Fourth grade','Fourth grade',NULL,NULL,NULL,'7C47AC7F-3C3D-4FED-A48E-210748C9A803','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '25')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '25' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '25')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100075337',NULL,'Nubia','X','Medrano',NULL,NULL,'1999-10-09','Lubbock',NULL,NULL,NULL,'202040','619785E8-B6A4-43C6-A8A3-D8DA54AD3729','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075337')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100075337','2009-04-01 00:00:00.0000000',NULL,'207100982',NULL,'25',NULL,'9D581629-4DDB-4B69-88C6-3A52B4C79C29','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '100075337' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '37','uri://ed-fi.org/GradeLevelDescriptor','Sixth grade','Sixth grade','Sixth grade',NULL,NULL,NULL,'60046E19-5F2D-4E5C-9431-097E27769DEB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '37')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '37' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '37')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530069','Washington Middle School',NULL,NULL,'85127CE8-0EDA-43D2-A160-D853210EAB4A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530069')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530069','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530069')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100075337','867530069',NULL,'2011-08-22','37',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0CB3AF96-D5DB-47E5-A57E-8B2C08927C7D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100075337')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1120','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'C3D22595-4485-4CD9-A969-4BD3FFE479EE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1120')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1120')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1688','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Integer','Integer','Integer',NULL,NULL,NULL,'4C642858-BCFB-4472-9625-ADC9B985A07E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1688')); + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT '1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1688')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100075337','2009-04-01 00:00:00.0000000',NULL,'207100982',NULL,'25',NULL,'9D581629-4DDB-4B69-88C6-3A52B4C79C29','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' AND StudentUSI= '100075337')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100075337','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE446','04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446' and StudentUSI = '100075337')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '637','uri://ed-fi.org/PerformanceLevelDescriptor','Proficient','Proficient','Proficient',NULL,NULL,NULL,'55D1F5E3-D166-4C3F-AF59-160472682404','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '637')); + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT '637' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446')); + -- + -- Cases to cover exception scenarios for INNER JOIN edfi.AssessmentPerformanceLevel + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE447',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE447' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE447','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE447')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1','5A93ED33-D40F-4EE9-A351-0EA2EB2F3C4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE446' AND Namespace= 'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE446','uri://edfi.org/Assessment_AssessmentPerformanceLevel_1',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE446' and Namespace = 'uri://edfi.org/Assessment_AssessmentPerformanceLevel_1')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1122','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Scale score','Scale score','Scale score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11505','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1122')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1122')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1093','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Age score','Age score','Age score',NULL,NULL,NULL,'6FEFBB56-4830-407E-BC3F-204C6AA11506','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1093')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1093')); + -- + + -- assessment identifier: D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01 + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100035251',NULL,'Quintesa',NULL,'Moniz',NULL,NULL,'1992-08-08','Lubbock',NULL,NULL,NULL,'190151','B2D617C4-835F-40AD-8267-3F4BDA098E8B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100035251')); + -- + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100035252',NULL,'Quintesa',NULL,'Moniz',NULL,NULL,'1992-08-08','Lubbock',NULL,NULL,NULL,'190152','B2D617C4-835F-40AD-8267-3F4BDA098E8C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100035252')); + -- + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100035251','867530022',NULL,'2011-10-03','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','2B9D1648-3537-4867-9E4D-DDAC8797281F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100035251')); + -- + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100035252','867530022',NULL,'2011-10-03','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','2B9D1648-3537-4867-9E4D-DDAC8797282A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100035252')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2010-09-01','55',NULL,'uri://edfi.org/Assessment','DCB00AED-8548-45E4-934D-C80CB8186E7A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0',NULL,NULL,'2010',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100035251','2010-04-01 00:00:00.0000000',NULL,'458500265',NULL,'24',NULL,'D93F8614-51CF-4A23-BD45-EC975AD76A5F','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI= '100035251')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100035252','2010-04-01 00:00:00.0000000',NULL,'458500265',NULL,'24',NULL,'D93F8614-51CF-4A23-BD45-EC975AD76A6A','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI= '100035252')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100035252','27','Sep 18 2015 11:46AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100035252' and StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' and AssessmentReportingMethodDescriptorId = '1120')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment',gen_random_uuid(),'Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','AssessmentIdentifier_TestCase',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'AssessmentIdentifier_TestCase' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','40',NULL,'uri://edfi.org/Assessment',gen_random_uuid(),'Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0','uri://edfi.org/Assessment',1688,'231' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='231')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','24','55','Sep 18 2015 11:34AM','D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','24','55','Sep 18 2015 11:34AM','AssessmentIdentifier_TestCase','uri://edfi.org/Assessment',1688,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'AssessmentIdentifier_TestCase' AND Namespace='uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId='1120')); + -- + + -- assessment identifier: EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01 + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530021','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100074717',NULL,'Norma','B','Mcdaniels',NULL,NULL,'1994-04-13','Lubbock',NULL,NULL,NULL,'201864','1C195DFA-AB46-4D33-9641-17BA691CDAA3','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100074717')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100074717','867530021',NULL,'2011-08-22','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','6C2D460E-D36B-4EFE-A2F1-76FCC23E38D8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100074717')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS-M','591',NULL,'2002-09-01','40',NULL,'uri://edfi.org/Assessment','A8A0ABEB-F2F0-4135-A103-C6B918DCE067','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71',NULL,NULL,'2002',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS-M','591',NULL,'2002-09-01','40',NULL,'uri://edfi.org/Assessment_ns_1','A8A0ABEB-F2F0-4135-A103-C6B918DCE068','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71',NULL,NULL,'2002',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment_ns_1')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100074717','2012-04-01 00:00:00.0000000',NULL,'481001126',NULL,'35',NULL,'6EF2F54E-9E7F-4293-9BE9-D6F201EC0BE8','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' AND StudentUSI= '100074717')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100074717','2012-04-01 00:00:00.0000000',NULL,'481001126',NULL,'35',NULL,'6EF2F54E-9E7F-4293-9BE9-D6F201EC0BE9','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment_ns_1',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71' AND Namespace= 'uri://edfi.org/Assessment_ns_1' AND StudentAssessmentIdentifier= 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' AND StudentUSI= '100074717' and Namespace = 'uri://edfi.org/Assessment_ns_1')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100074717','24','Sep 18 2015 11:46AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01','uri://edfi.org/Assessment_ns_1','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100074717' and StudentAssessmentIdentifier = 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71_2012-04-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','2100','3500','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71')); + + -- + -- assessment identifier: C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01 + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100039988',NULL,'Jennifer','H','Knoll',NULL,NULL,'1993-03-20',NULL,NULL,NULL,NULL,'190257','B264F600-7D33-42B6-847E-991B4B7B4E87','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039988')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100039988','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','02D49D56-9990-44F6-88CB-259BAEF5AC8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100039988')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2008-09-01','48',NULL,'uri://edfi.org/Assessment','0EFAFB45-C90B-47D9-88C3-5EE05870A0EF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','C2036C8D-1333-F75D-0B6B-380756666AF8',NULL,NULL,'2008',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '21','uri://ed-fi.org/GradeLevelDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'A94CADDB-1E3A-4710-A09A-2D91077317C4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '21')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '21' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '21')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100039988','2008-03-01 00:00:00.0000000',NULL,'510001780',NULL,'21',NULL,'C22CACA4-91E2-4BA2-840E-1F5F4448F4BA','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01' AND StudentUSI= '100039988')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100039988','2008-03-01 00:00:00.0000000',NULL,'510001780',NULL,'21',NULL,'C22CACA4-91E2-4BA2-840E-1F5F4448F4BB','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-02','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-02' AND StudentUSI= '100039988')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100039988','41','Sep 18 2015 11:46AM','C2036C8D-1333-F75D-0B6B-380756666AF8','C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100039988' and StudentAssessmentIdentifier = 'C2036C8D-1333-F75D-0B6B-380756666AF8_2008-03-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','33','48','Sep 18 2015 11:34AM','C2036C8D-1333-F75D-0B6B-380756666AF8','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'C2036C8D-1333-F75D-0B6B-380756666AF8')); + + -- + -- assessment identifier: 0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01 + -- + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100041249')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','42',NULL,'uri://edfi.org/Assessment','47DEBFE3-5A36-4365-AB78-1EA9A8CE82E3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141145',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','42',NULL,'uri://edfi.org/Assessment','47DEBFE3-5A36-4365-AB78-1EA9A8CE82E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141146',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141146' AND Namespace= 'uri://edfi.org/Assessment')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100041249','2009-04-01 00:00:00.0000000',NULL,'237901791',NULL,'31',NULL,'F9102CE9-5C87-4DA9-B8E0-CF99113819D7','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','0E886CBB-AB8F-ABD3-747F-C455C5141145','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' AND StudentUSI= '100041249')); + -- + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100041249','2009-04-01 00:00:00.0000000',NULL,'237901791',NULL,'31',NULL,'F9102CE9-5C87-4DA9-B8E0-CF99113819D8','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','0E886CBB-AB8F-ABD3-747F-C455C5141146','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141146' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' AND StudentUSI= '100041249')); + -- + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100041249','31','Sep 18 2015 11:46AM','0E886CBB-AB8F-ABD3-747F-C455C5141146','0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100041249' and StudentAssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141145_2009-04-01' and AssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141146' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','28','42','Sep 18 2015 11:34AM','0E886CBB-AB8F-ABD3-747F-C455C5141145','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '0E886CBB-AB8F-ABD3-747F-C455C5141145')); + + -- + -- assessment identifier: A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01 + -- + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100067279',NULL,'Marvis','X','Tucker',NULL,NULL,'1995-09-04','Lubbock',NULL,NULL,NULL,'198715','3DFE8883-2C46-4695-AB74-BBAC0286E6EF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100067279')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100067279','867530021',NULL,'2011-08-22','24',NULL,NULL,NULL,CURRENT_DATE + INTERVAL '1 day',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','018EF3E6-72AB-4472-87A7-7DCDAB907226','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100067279')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','48',NULL,'uri://edfi.org/Assessment','707E021B-544C-4833-925C-8D84C7457103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100067279','2009-03-01 00:00:00.0000000',NULL,'503003155',NULL,'21',NULL,'36CBA4E1-B716-44C1-9083-1E0001837659','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01' AND StudentUSI= '100067279')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100067279','34','Sep 18 2015 11:46AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100067279' and StudentAssessmentIdentifier = 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2_2009-03-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','34','48','Sep 18 2015 11:34AM','A71C02C3-CBC5-9C2F-2D04-012CA2B007A2','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = 'A71C02C3-CBC5-9C2F-2D04-012CA2B007A2')); + + -- + -- assessment identifier: 2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01 + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100071960',NULL,'Adrianna','N','Meacham',NULL,NULL,'1995-05-04','Lubbock',NULL,NULL,NULL,'200547','B7519E6C-0056-40C1-BE52-6AF18831F4AD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071960')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100071960','867530020',NULL,'2011-08-22','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'634','2013','D8DAA3B6-670D-4E13-9AC6-281F5FDD56B8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100071960')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','50',NULL,'uri://edfi.org/Assessment','E7A87C0A-6FDB-40DA-8A8A-5F93E98A2A28','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100071960','2009-04-01 00:00:00.0000000',NULL,'541602531',NULL,'21',NULL,'EFFBDAB7-FFF8-449F-A2A4-9B3C757C705F','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' AND StudentUSI= '100071960')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100071960','45','Sep 18 2015 11:46AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment','1120','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE StudentUSI = '100071960' and StudentAssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' and AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','30','50','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852')); + -- + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','49','50','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852' and MinimumScore = '49')); + -- + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','30','31','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment',NULL,'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '2CB96919-1D86-B089-89DD-42AAF9E46852' and MaximumScore = '31')); + -- + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'TAKS','591',NULL,'2009-09-01','50',NULL,'uri://edfi.org/Assessment_ns_1','9DEE6630-39E2-4FE3-85A9-002E10554BE4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852',NULL,NULL,'2009',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND Namespace='uri://edfi.org/Assessment_ns_1' )); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '100071960','2009-04-01 00:00:00.0000000',NULL,'541602531',NULL,'21',NULL,'15FC5C74-C3E7-4C4D-8106-91E8752947BF','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment_ns_1',NULL,'787',NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852' AND Namespace= 'uri://edfi.org/Assessment_ns_1' AND StudentAssessmentIdentifier= '2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01' AND StudentUSI= '100071960')); + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId)(SELECT '100071960','24','Sep 18 2015 11:46AM','2CB96919-1D86-B089-89DD-42AAF9E46852','2CB96919-1D86-B089-89DD-42AAF9E46852_2009-04-01','uri://edfi.org/Assessment_ns_1','1122','1688' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND Namespace='uri://edfi.org/Assessment_ns_1' AND STUDENTUSI='100071960' )); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','0','1000','Sep 18 2015 11:34AM','2CB96919-1D86-B089-89DD-42AAF9E46852','uri://edfi.org/Assessment_ns_1',NULL,'1122' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('2CB96919-1D86-B089-89DD-42AAF9E46852') AND AssessmentReportingMethodDescriptorId='1122' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','26','3500','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment_ns_1',NULL,'1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71') AND AssessmentReportingMethodDescriptorId='1120' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '637','20','23','Sep 18 2015 11:34AM','EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71','uri://edfi.org/Assessment_ns_1',NULL,'1093' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE AssessmentIdentifier IN ('EC3D3C28-3C31-4C94-4C50-FB0F25EE5E71') AND AssessmentReportingMethodDescriptorId='1093' AND Namespace='uri://edfi.org/Assessment_ns_1' AND PerformanceLevelDescriptorId='637')); + + + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '955','uri://ed-fi.org/EducationalEnvironmentDescriptor','Mainstream (Special Education)','Mainstream (Special Education)','Mainstream (Special Education)',NULL,NULL,NULL,'AEF030E4-19AC-4F5E-A1BE-2AAC8DB2CB59','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '955')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '955' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '955')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1685','uri://ed-fi.org/RecognitionTypeDescriptor','Points','Points','Points',NULL,NULL,NULL,'A2145F7F-2FCA-49AC-A361-1584F8442A6B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1685')); + INSERT INTO edfi.OperationalStatusDescriptor(OperationalStatusDescriptorId)(SELECT '1685' WHERE NOT EXISTS(SELECT 1 FROM edfi.OperationalStatusDescriptor WHERE OperationalStatusDescriptorId= '1685')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '255901001','Grand Bend High School','GBHS','http://www.GBISD.edu/GBHS/','EFC9A04B-AA2C-434C-9A86-CA4B5A378B50','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM','1685','edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901001')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '991','uri://ed-fi.org/EntryGradeLevelReasonDescriptor','Promotion - Other','Promotion - Other','Promotion - Other',NULL,NULL,NULL,'8077E06D-362E-435B-89F2-1CE2C2C84D61','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '991')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '991' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '991')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '991','255901001','2011',NULL,'28.000',NULL,'AD7C8A9A-B6FF-4B82-8F4D-6FF747BC6140','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901001' AND GraduationPlanTypeDescriptorId= '991' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '104','uri://ed-fi.org/LevelOfEducationDescriptor','Associate''s Degree (two years or more)','Associate''s Degree (two years or more)','Associate''s Degree (two years or more)',NULL,NULL,NULL,'32DD0969-AE57-4037-BC35-4CEBDB7BEB49','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '104')); + INSERT INTO edfi.AdministrativeFundingControlDescriptor(AdministrativeFundingControlDescriptorId)(SELECT '104' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrativeFundingControlDescriptor WHERE AdministrativeFundingControlDescriptorId= '104')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '297','uri://ed-fi.org/CountryDescriptor','IR','Iran, Islamic Republic of','Iran, Islamic Republic of',NULL,NULL,NULL,'E51583E4-424F-438F-BE3C-6AF844AA5342','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '297')); + INSERT INTO edfi.CharterStatusDescriptor(CharterStatusDescriptorId)(SELECT '297' WHERE NOT EXISTS(SELECT 1 FROM edfi.CharterStatusDescriptor WHERE CharterStatusDescriptorId= '297')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '255901','Grand Bend ISD','GBISD','http://www.GBISD.edu/','5BEE93F6-F1CE-4C31-A52D-2C0AFE1B0DDC','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '255950','Region 99 Education Service Center',NULL,NULL,'A5CF3F99-F869-4916-8E32-2D03B4979E00','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '255950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '255950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1627','uri://ed-fi.org/ProgramTypeDescriptor','Counseling Services','Counseling Services','Counseling Services',NULL,NULL,NULL,'CD88E854-E043-49AD-93A0-0504B05F8192','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1627')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1627' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1627')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '255901',NULL,'255950',NULL,NULL,'1627' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '255901')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2055','uri://ed-fi.org/LanguageDescriptor','nzi','Nzima','Nzima',NULL,NULL,NULL,'1B7D4FBB-73EC-45D9-B4E5-5B2E3A9F915C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2055')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '2055' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '2055')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2360','uri://ed-fi.org/TribalAffiliationDescriptor','Chickahominy Indian Tribe','Inc.','Chickahominy Indian Tribe, Inc.',NULL,NULL,NULL,'4DEA53BF-F7B4-4192-9C66-E46EEB5B0EB2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2360')); + INSERT INTO edfi.TitleIPartASchoolDesignationDescriptor(TitleIPartASchoolDesignationDescriptorId)(SELECT '2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.TitleIPartASchoolDesignationDescriptor WHERE TitleIPartASchoolDesignationDescriptorId= '2360')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '255901001','255901','104',NULL,NULL,'297',NULL,NULL,'2055','2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '255901001')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '392','Mr','Lance','Leslie','Key',NULL,NULL,'1999-08-23',NULL,NULL,NULL,NULL,'605213','8B33A695-F7C1-48E2-B824-3B26AABE4D19','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '392')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '392','255901001',NULL,'2010-08-23','955',NULL,NULL,NULL,'2011-12-08',NULL,NULL,NULL,NULL,NULL,'255901001','991','2011','7CF5C8DD-0977-48DA-AF09-58D0182CECFF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '392' AND SchoolId='255901001')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '255901044','Grand Bend Middle School','GBMS','http://www.GBISD.edu/GBMS/','5BA02598-5F5C-491D-BF0F-AC28E76AE3F6','Aug 11 2020 12:58PM','Aug 11 2020 12:58PM','1685','edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '255901044')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '991','255901044','2011',NULL,'28.000',NULL,'31828FAB-724C-4F9D-9BDD-B89F4EE9C030','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901044' AND GraduationPlanTypeDescriptorId= '991' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '255901044','255901','104',NULL,NULL,'297',NULL,NULL,'2055','2360' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '255901044')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '392','255901044',NULL,'2010-08-23','955',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'255901044','991','2011','8A73E06D-C454-431B-A079-6E887E77E446','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '392' AND SchoolId='255901044')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '956','uri://ed-fi.org/EducationalEnvironmentDescriptor','Off-school center','Off-school center','Off-school center',NULL,NULL,NULL,'CBD1F2A8-F8CC-4052-88DA-AF27E6BC71A9','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '956')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '956' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '956')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '992','uri://ed-fi.org/EntryGradeLevelReasonDescriptor','Promotion - Probationary promotion','Promotion - Probationary promotion','Promotion - Probationary promotion',NULL,NULL,NULL,'F581E121-E19F-4279-A87F-33E772513DE6','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '992')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '992' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '992')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '992','255901044','2011',NULL,'26.000',NULL,'0314EB3A-5FC4-4A2A-A81D-0C47B694F645','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '255901044' AND GraduationPlanTypeDescriptorId= '992' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '396','Mr','Jacob','Barry','Watson',NULL,NULL,'2000-05-04',NULL,NULL,NULL,NULL,'605215','EF765E67-64AE-4AB1-8D8F-75F953456AEE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '396')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '396','255901044',NULL,'2010-08-23','956',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'255901044','992','2011','32FA378E-6E5C-4B20-9238-1C476E8267C7','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '396' AND SchoolId='255901044')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1120','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Raw score','Raw score','Raw score',NULL,NULL,NULL,'C3D22595-4485-4CD9-A969-4BD3FFE479EE','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1120')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1120')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1687','uri://ed-fi.org/ResultDatatypeTypeDescriptor','Decimal','Decimal','Decimal',NULL,NULL,NULL,'F9234C8D-9276-4FFA-9F75-083220CAE958','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1687')); + INSERT INTO edfi.ResultDatatypeTypeDescriptor(ResultDatatypeTypeDescriptorId)(SELECT '1687' WHERE NOT EXISTS(SELECT 1 FROM edfi.ResultDatatypeTypeDescriptor WHERE ResultDatatypeTypeDescriptorId= '1687')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '132','uri://ed-fi.org/CompetencyLevelDescriptor','Basic','Basic','Basic',NULL,NULL,NULL,'7FDC2B01-23C9-41CE-9D23-25897698C03B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '132')); + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT '132' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '132')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT '7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','04E3686E-D181-4A8D-94E4-65C2490F1A5A','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT 'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'D8EE4912-42E5-46FB-9F9D-0C35C7117EC7','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '102','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT '102' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '102')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1182','uri://ed-fi.org/OperationalStatusDescriptor','Reopened','Reopened','Reopened',NULL,NULL,NULL,'DBA7B933-5A1B-41C5-96E6-4ED40203EDE2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1182')); + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT '1182' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '1182')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '2010','2009-2010','0','67EFBB2E-8214-4C44-9072-92DFB5550A8D','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2010')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'3EFED5FB-D853-4F22-A496-10762B8553D4','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1715','uri://ed-fi.org/AttemptStatusDescriptor','Withdrawal by a parent (or guardian)','Withdrawal by a parent (or guardian)','Withdrawal by a parent (or guardian)',NULL,NULL,NULL,'2022C052-66F7-4DF9-B5FA-6F0A30C5841F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1715')); + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT '1715' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '1715')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '126','uri://ed-fi.org/ClassroomPositionDescriptor','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'42679B77-329B-4FFC-99A8-27F290AFD28F','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '126')); + INSERT INTO edfi.AssessmentCategoryDescriptor(AssessmentCategoryDescriptorId)(SELECT '126' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentCategoryDescriptor WHERE AssessmentCategoryDescriptorId= '126')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT 'State Assessment','126',NULL,'2011-09-01','50',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','DD4856B3-D80A-448F-AEA5-4DE6D4FB6FFF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade',NULL,NULL,'2011',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT 'State Assessment_Mathematics8-4',NULL,'5','0.1000',NULL,NULL,'319491DA-E58E-487F-8F35-D0F3E06C7CB6','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND IdentificationCode= 'State Assessment_Mathematics8-4' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '100','uri://ed-fi.org/AssessmentIdentificationSystemDescriptor','Other Federal','Other Federal','Other Federal',NULL,NULL,NULL,'09D9713D-0394-4389-84EA-6BF7629D89E2','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '100')); + INSERT INTO edfi.AdministrationEnvironmentDescriptor(AdministrationEnvironmentDescriptorId)(SELECT '100' WHERE NOT EXISTS(SELECT 1 FROM edfi.AdministrationEnvironmentDescriptor WHERE AdministrationEnvironmentDescriptorId= '100')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '943','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','Student Incarcerated','Student Incarcerated','Student Incarcerated',NULL,NULL,NULL,'9E515C7D-E797-4FFF-BFEA-E1C3550E9927','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '943')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '943' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '943')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '71','Mr','Bobby','Jacob','Hendrix',NULL,NULL,'1997-09-03',NULL,NULL,NULL,NULL,'604889','B01CD801-5D5A-4B35-AB09-D31838871325','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM',NULL,NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '71')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '71','2010-04-01 16:00:00.0000000',NULL,'513900201','1182','943',NULL,'3E4FEA24-65C1-44FC-8913-E5092C611A90','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml','2010','100',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND StudentUSI= '71')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '71','State Assessment_Mathematics8-4','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'SA-2011-Mathematics-Eighth grade' AND IdentificationCode= 'State Assessment_Mathematics8-4' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND StudentUSI= '71')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '71','State Assessment_Mathematics8-4','1715','1','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '71' AND IdentificationCode = 'State Assessment_Mathematics8-4' AND AssessmentIdentifier = 'SA-2011-Mathematics-Eighth grade' AND StudentAssessmentIdentifier = 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '71','State Assessment_Mathematics8-4','Aug 11 2020 12:59PM','SA-2011-Mathematics-Eighth grade','rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE IdentificationCode = 'State Assessment_Mathematics8-4' AND AssessmentIdentifier = 'SA-2011-Mathematics-Eighth grade' AND StudentAssessmentIdentifier = 'rtkQAv1VoyjupI9nWZs5NwSKslxpjJgbPj5Sa5tp' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT '7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment.xml','3867B4F2-42F9-41C6-9F57-704DCD0862D6','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT 'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'2CBCD12A-0FC9-46D9-9D52-C4DDBCD95AAF','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'6EA765C9-ADD5-4EAB-86DE-BFDE19D4EA8F','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade-TestCase' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade-TestCase' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT 'Seventh grade Mathematics-48-TestCase',NULL,'1','0.0392',NULL,NULL,'5CF41EF6-8AB5-476E-A1A8-FD5D577C17EE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '392','Seventh grade Mathematics-48-TestCase','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48-TestCase' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48-TestCase','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48-TestCase' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.Assessment(AssessmentTitle,AssessmentCategoryDescriptorId,AssessmentForm,RevisionDate,MaxRawScore,Nomenclature,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,EducationOrganizationId,AdaptiveAssessment,AssessmentVersion,AssessmentFamily,Discriminator)(SELECT '7th Grade Math Placement','132',NULL,'2010-07-15','25',NULL,'uri://ed-fi.org/Assessment/Assessment-TestCase.xml','F81E4C5B-B2D9-43FF-AA1F-5DF3447F94DE','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade',NULL,NULL,'2010',NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml')); + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,ParentIdentificationCode,MaxRawScore,PercentOfAssessment,Nomenclature,Description,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace,Discriminator)(SELECT 'Seventh grade Mathematics-48',NULL,'1','0.0392',NULL,NULL,'66EA39FA-2E1C-4B77-99DF-4B4133C35AB1','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'CD3C0ECF-86C9-4A38-9B16-001028B08F03','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '392','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'49BA95A7-B9AC-4DA6-8362-2165AC461645','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '392','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND StudentUSI= '392')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,AdministrationEndDate,SerialNumber,AdministrationLanguageDescriptorId,WhenAssessedGradeLevelDescriptorId,EventDescription,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,SchoolYear,AdministrationEnvironmentDescriptorId,RetestIndicatorDescriptorId,ReasonNotTestedDescriptorId,EventCircumstanceDescriptorId,Discriminator)(SELECT '396','2010-04-08 21:00:00.0000000',NULL,'6151612','1182','956',NULL,'20EEA7B3-1DB0-42EE-944D-D941E41DA726','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','2010','102',NULL,NULL,NULL,'NULL' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '396')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace)(SELECT '396','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://ed-fi.org/Assessment/Assessment.xml' AND StudentAssessmentIdentifier= 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI= '396')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '396','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '396' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1090','uri://ed-fi.org/AssessmentReportingMethodDescriptor','Achievement/proficiency level','Achievement/proficiency level','Achievement/proficiency level',NULL,NULL,NULL,'E86DDC5C-6F8D-42B9-BF9A-22490FB5D7E9','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1090')); + INSERT INTO edfi.AssessmentReportingMethodDescriptor(AssessmentReportingMethodDescriptorId)(SELECT '1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentReportingMethodDescriptor WHERE AssessmentReportingMethodDescriptorId= '1090')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1687','1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1090')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '636','uri://ed-fi.org/PerformanceLevelDescriptor','Basic','Basic','Basic',NULL,NULL,NULL,'A07B4D26-4AB8-491F-9DAA-80B594AC33CE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '636')); + INSERT INTO edfi.PerformanceLevelDescriptor(PerformanceLevelDescriptorId)(SELECT '636' WHERE NOT EXISTS(SELECT 1 FROM edfi.PerformanceLevelDescriptor WHERE PerformanceLevelDescriptorId= '636')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade-TestCase','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade-TestCase' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1090' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1090')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48-TestCase','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48-TestCase' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment-TestCase.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '392','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '392' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q-TestCase' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId)(SELECT '396','Seventh grade Mathematics-48','636','1','Aug 11 2020 12:59PM','MP-2013-Mathematics-Seventh grade','zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q','uri://ed-fi.org/Assessment/Assessment.xml','1120' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '396' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '1120')); + + + ----- SASOA + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'MP-2013-Mathematics-Seventh grade', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://ed-fi.org/Assessment/Assessment-TestCase.xml' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND StudentUSI = '100035252' ) ); + -- + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '392', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '392', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '392', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '392' ) ); + -------------SASOASR + + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + --INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', NULL WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId IS NULL ) ); + -- + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + -- + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + -- INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + --identificationCode + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48_TestCase', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48_TestCase', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035252', 'Seventh grade Mathematics-48_TestCase', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48_TestCase' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --Namespace + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment_TestCase', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'uri://edfi.org/Assessment_TestCase', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + + --StudentAssessmentIdentifier + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035252', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035252', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035252' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035252', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035252' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --StudentUSI + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', null, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + + -------SASOAPL + -----PL + --Namespace + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment_TestCase', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment_TestCase' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --AssessmentIdentifier + INSERT INTO edfi.Assessment ( AssessmentTitle, AssessmentCategoryDescriptorId, AssessmentForm, RevisionDate, MaxRawScore, Nomenclature, Namespace, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, EducationOrganizationId, AdaptiveAssessment, AssessmentVersion, AssessmentFamily, Discriminator ) ( SELECT '7th Grade Math Placement', '132', NULL, '2010-07-15', '25', NULL, 'uri://edfi.org/Assessment', gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', NULL, NULL, '2010', NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.ObjectiveAssessment ( IdentificationCode, ParentIdentificationCode, MaxRawScore, PercentOfAssessment, Nomenclature, Description, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, Namespace, Discriminator ) ( SELECT 'Seventh grade Mathematics-48', NULL, '1', '0.0392', NULL, NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'uri://edfi.org/Assessment', 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' ) ); + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns-1' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --StudentAssessmentIdentifier + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100035251', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100035251', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND StudentUSI = '100035251' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01_TestCase' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + -- + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100035251', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100035251' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '231' ) ); + --StudentUSI + INSERT INTO edfi.StudentAssessment ( StudentUSI, AdministrationDate, AdministrationEndDate, SerialNumber, AdministrationLanguageDescriptorId, WhenAssessedGradeLevelDescriptorId, EventDescription, Id, LastModifiedDate, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, SchoolYear, AdministrationEnvironmentDescriptorId, RetestIndicatorDescriptorId, ReasonNotTestedDescriptorId, EventCircumstanceDescriptorId, Discriminator ) ( SELECT '100075337', '2010-04-08 21:00:00.0000000', NULL, '6151612', '1182', '956', NULL, gen_random_uuid(), 'Aug 11 2020 12:59PM', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '2010', '102', NULL, NULL, NULL, 'NULL' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100075337' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment ( StudentUSI, IdentificationCode, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace ) ( SELECT '100075337', 'Seventh grade Mathematics-48', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND IdentificationCode = 'Seventh grade Mathematics-48' AND Namespace = 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND StudentUSI = '100075337' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( StudentUSI, IdentificationCode, PerformanceLevelDescriptorId, PerformanceLevelMet, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId ) ( SELECT '100075337', 'Seventh grade Mathematics-48', '1715', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '100075337' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( StudentUSI, IdentificationCode, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '100075337', 'Seventh grade Mathematics-48', '1', 'Aug 11 2020 12:59PM', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns', 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01', 'uri://edfi.org/Assessment', '1687', '1120' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '100075337' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_ns' AND StudentAssessmentIdentifier = 'D0FEA09D-5781-D6EF-7232-59E9BE3212A0_2010-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120' ) ); + --COALESCE + INSERT INTO edfi.AssessmentPerformanceLevel ( PerformanceLevelDescriptorId, MinimumScore, MaximumScore, CreateDate, AssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '636', '28', '40', 'Sep 18 2015 11:34AM', 'MP-2013-Mathematics-Seventh grade', 'uri://ed-fi.org/Assessment/Assessment.xml', '1688', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '636' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' ) ); + INSERT INTO edfi.AssessmentPerformanceLevel ( PerformanceLevelDescriptorId, MinimumScore, MaximumScore, CreateDate, AssessmentIdentifier, Namespace, ResultDatatypeTypeDescriptorId, AssessmentReportingMethodDescriptorId ) ( SELECT '637', '39', '40', 'Sep 18 2015 11:34AM', 'MP-2013-Mathematics-Seventh grade', 'uri://ed-fi.org/Assessment/Assessment.xml', '1688', '231' WHERE NOT EXISTS ( SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND Namespace='uri://ed-fi.org/Assessment/Assessment.xml' ) ); + INSERT INTO edfi.StudentAssessmentScoreResult ( StudentUSI, Result, CreateDate, AssessmentIdentifier, StudentAssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId, ResultDatatypeTypeDescriptorId ) ( SELECT '392', '29', 'Sep 18 2015 11:46AM', 'MP-2013-Mathematics-Seventh grade', 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q', 'uri://ed-fi.org/Assessment/Assessment.xml', '231', '1688' WHERE NOT EXISTS ( SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' AND NAMESPACE='uri://ed-fi.org/Assessment/Assessment.xml' AND AssessmentReportingMethodDescriptorId = '231' AND StudentAssessmentIdentifier = 'zXFMqaQUouumDhHF8VnSmBJPaZ1Xbc8f/Li1nh1q' AND AssessmentIdentifier = 'MP-2013-Mathematics-Seventh grade' AND StudentUSI = '392' ) ); + -- ## 04556570-B715-6D8E-5E86-008A72ECE100-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01-1120-637-Seventh grade Mathematics-48-1120-637-202042-867530069-2011-08-22 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND Namespace= 'uri://edfi.org/Assessment')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '400075330','dave','X','Smith','1999-10-09','Lubbock','202042','619785E8-B6A4-43C6-A8A3-D8DA54AD3100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075330')); + + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79100','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '400075330','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075330')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and ResultDatatypeTypeDescriptorId = '1688')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117100','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-48','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -------- + + -- AssessmentIdentifier + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE101' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79101','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101' and StudentUSI = '400075330')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117101','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE101' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE101','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE101' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- IdentificationCode + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-49','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117102','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-49' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','Seventh grade Mathematics-49','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-49' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-49','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-49' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- Namespace + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment_Alt','5A93ED33-D40F-4EE9-A351-0EA2EB2F3103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79103','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and ResultDatatypeTypeDescriptorId = '1688' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-48','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117103','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment_Alt' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentAssessmentIdentifier + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79104','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075330' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075330','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075330','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' AND StudentUSI= '400075330')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentUSI + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '400075331','dave','X','Smith','1999-10-09','Lubbock','202043','619785E8-B6A4-43C6-A8A3-D8DA54AD3105','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075331')); + + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075331','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79105','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075331' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '400075331','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927105','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075331')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075331','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' and StudentUSI = '400075331')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075331','Seventh grade Mathematics-48','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100' AND IdentificationCode= 'Seventh grade Mathematics-48' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND StudentUSI= '400075331')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075331','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075331' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075331','Seventh grade Mathematics-48','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075331' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- AssessmentReportingMethodDescriptorId + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075330','Seventh grade Mathematics-48','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE100','04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01','uri://edfi.org/Assessment','1688','1122' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-48' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE100_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1122')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE110-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01-1120-637-Seventh grade Mathematics-58-1120-637-202252-867530069-2011-08-22 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND Namespace= 'uri://edfi.org/Assessment')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '400075340','Kim','X','Johnson','1999-10-09','Lubbock','202252','619785E8-B6A4-43C6-A8A3-D8DA54AD3110','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075340')); + + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79110','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '400075340','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927110','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075340')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and ResultDatatypeTypeDescriptorId = '1688')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117110','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -------- + + -- AssessmentIdentifier + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3111','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE111' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79111','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' and StudentUSI = '400075340')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117111','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE111' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE111','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075330' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE111' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- IdentificationCode + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-59','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117112','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-59' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','Seventh grade Mathematics-59','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-59' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-59','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-59' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-59','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-59' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- Namespace + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment_Alt','5A93ED33-D40F-4EE9-A351-0EA2EB2F3113','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79113','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and ResultDatatypeTypeDescriptorId = '1688' and Namespace = 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117113','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment_Alt')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment_Alt' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment_Alt','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment_Alt' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentAssessmentIdentifier + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79114','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075340' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075340','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075340','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND StudentUSI= '400075340')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075340','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075340' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-02' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- StudentUSI + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '400075341','Kim','X','Johnson','1999-10-09','Lubbock','202253','619785E8-B6A4-43C6-A8A3-D8DA54AD3115','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075341')); + + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075341','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79115','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075341' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '400075341','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927115','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075341')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075341','29','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' and StudentUSI = '400075341')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075341','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND StudentUSI= '400075341')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075341','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075341' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel(StudentUSI,IdentificationCode,PerformanceLevelDescriptorId,PerformanceLevelMet,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId) + (SELECT '400075341','Seventh grade Mathematics-58','637','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE110','04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01','uri://edfi.org/Assessment','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel WHERE StudentUSI = '400075341' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE110_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE120-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01-1120-637----202262-867530069-20110822 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3120','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE120' AND Namespace= 'uri://edfi.org/Assessment')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '400075350','Jim','X','Morrison','1999-10-09','Lubbock','202262','619785E8-B6A4-43C6-A8A3-D8DA54AD3120','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075350')); + + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075350','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79120','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE120','04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075350' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '400075350','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927120','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075350')); + + INSERT INTO edfi.StudentAssessmentScoreResult(StudentUSI,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,AssessmentReportingMethodDescriptorId,ResultDatatypeTypeDescriptorId) + (SELECT '400075350','41','Sep 18 2015 11:46AM','04556570-B715-6D8E-5E86-008A72ECE120','04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01','uri://edfi.org/Assessment','1120','1688' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentScoreResult WHERE ResultDatatypeTypeDescriptorId = '1688' and AssessmentReportingMethodDescriptorId = '1120' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120' and StudentUSI = '400075350')); + + INSERT INTO edfi.AssessmentPerformanceLevel(PerformanceLevelDescriptorId,MinimumScore,MaximumScore,CreateDate,AssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '637','28','40','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE120','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AssessmentPerformanceLevel WHERE PerformanceLevelDescriptorId = '637' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE120' and ResultDatatypeTypeDescriptorId = '1688')); + + -- ## 04556570-B715-6D8E-5E86-008A72ECE140-uri://edfi.org/Assessment-04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01---Seventh grade Mathematics-58-1120--202282-867530069-20110822 + + INSERT INTO edfi.Assessment(AssessmentTitle,RevisionDate,MaxRawScore,Namespace,Id,LastModifiedDate,CreateDate,AssessmentIdentifier) + (SELECT 'TAKS','2009-09-01','40','uri://edfi.org/Assessment','5A93ED33-D40F-4EE9-A351-0EA2EB2F3140','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','04556570-B715-6D8E-5E86-008A72ECE140' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Assessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND Namespace= 'uri://edfi.org/Assessment')); + + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '400075370','Carl','X','Smith','1999-10-09','Lubbock','202282','619785E8-B6A4-43C6-A8A3-D8DA54AD3140','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '400075370')); + + + INSERT INTO edfi.StudentAssessment(StudentUSI,AdministrationDate,WhenAssessedGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075370','2009-04-01 00:00:00.0000000','25','9D581629-4DDB-4B69-88C6-3A52B4C79140','Sep 18 2015 11:35AM','Sep 18 2015 11:35AM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessment WHERE StudentUSI = '400075370' and StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' and AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '400075370','867530069','2011-08-22','37','0CB3AF96-D5DB-47E5-A57E-8B2C08927140','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '400075370')); + + INSERT INTO edfi.ObjectiveAssessment(IdentificationCode,MaxRawScore,PercentOfAssessment,Id,LastModifiedDate,CreateDate,AssessmentIdentifier,Namespace) + (SELECT 'Seventh grade Mathematics-58','1','0.0392','D8EE4912-42E5-46FB-9F9D-0C35C7117143','Aug 11 2020 12:59PM','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessment(StudentUSI,IdentificationCode,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace) + (SELECT '400075370','Seventh grade Mathematics-58','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessment WHERE AssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140' AND IdentificationCode= 'Seventh grade Mathematics-58' AND Namespace= 'uri://edfi.org/Assessment' AND StudentAssessmentIdentifier= '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' AND StudentUSI= '400075370')); + + INSERT INTO edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult(StudentUSI,IdentificationCode,Result,CreateDate,AssessmentIdentifier,StudentAssessmentIdentifier,Namespace,ResultDatatypeTypeDescriptorId,AssessmentReportingMethodDescriptorId) + (SELECT '400075370','Seventh grade Mathematics-58','1','Aug 11 2020 12:59PM','04556570-B715-6D8E-5E86-008A72ECE140','04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01','uri://edfi.org/Assessment','1688','1120' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult WHERE StudentUSI = '400075370' AND IdentificationCode = 'Seventh grade Mathematics-58' AND AssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140' AND StudentAssessmentIdentifier = '04556570-B715-6D8E-5E86-008A72ECE140_2009-04-01' AND Namespace = 'uri://edfi.org/Assessment' AND AssessmentReportingMethodDescriptorId = '1120')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_3/0001_StudentAssessmentFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_3/0001_StudentAssessmentFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..f1429455 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentAssessmentFact/PostgreSQL/v_3_3/0001_StudentAssessmentFact_should_match_column_dictionary.xml @@ -0,0 +1,82 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'asmt_studentassessmentfact' + ORDER BY ORDINAL_POSITION ASC; + + + studentassessmentfactkey + text + + + studentassessmentkey + text + + + studentobjectiveassessmentkey + text + + + objectiveassessmentkey + text + + + assessmentkey + text + + + assessmentidentifier + character varying + + + namespace + character varying + + + studentassessmentidentifier + character varying + + + studentusi + integer + + + studentschoolkey + text + + + schoolkey + integer + + + administrationdate + text + + + assessedgradelevel + character varying + + + studentscore + character varying + + + resultdatatype + character varying + + + reportingmethod + character varying + + + performanceresult + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_2/0000_StudentDataAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_2/0000_StudentDataAuthorization_Data_Load.xml new file mode 100644 index 00000000..cf150891 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_2/0000_StudentDataAuthorization_Data_Load.xml @@ -0,0 +1,198 @@ + + + Any + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100054973',NULL,'Cruz','B','Labbe',NULL,NULL,'1995-02-18','Lubbock',NULL,NULL,NULL,'198070','E0A4C7C3-5EA4-4A71-B92C-4161B762095A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE id='E0A4C7C3-5EA4-4A71-B92C-4161B762095A')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId = 867530007)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530015','Harte (Bret) Prepatory Interme',NULL,NULL,'CD2E4956-6194-44AA-AF93-5F8F494E1CBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530015')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530015','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId = 867530015)); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + 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 TOP 1'867530007','TWHH11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D427BD85-D6DE-439B-A313-DA344D255D72','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= 'TWHH11' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530007','2012','530','Traditional','2011-08-22','2011-12-20','82','CBD0894B-BDAC-4AD4-81B4-3C0E9A222A56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'TWHH11','867530007','2012','World History Studies (1 Unit)',NULL,'TWHH11','867530007','EB9A7F54-78B6-4128-85A9-897C5AE5540B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','114',NULL,NULL,'07271B64-3D5B-4CB5-A7BD-BEF67409469B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530007')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','TWHH11','2012','1',NULL,NULL,'1.000','918EA89F-79BB-4280-A612-98B0885369F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22541','867530007','114','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22541' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100054973',NULL,'Cruz','B','Labbe',NULL,NULL,'1995-02-18','Lubbock',NULL,NULL,NULL,'198070','E0A4C7C3-5EA4-4A71-B92C-4161B762095A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100054973')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','TWHH11','2012','2011-12-01','2011-12-20','0',NULL,'2ACB09A1-61B8-43C2-90BB-F9E7ED355348','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22541','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2ACB09A1-61B8-43C2-90BB-F9E7ED355348')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T08','E68A2D90-0DC4-44FA-99A9-9A13868BE343','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='E68A2D90-0DC4-44FA-99A9-9A13868BE343')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T01','82777E21-6538-49BD-BA06-7EDD6BA9FB08','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='82777E21-6538-49BD-BA06-7EDD6BA9FB08')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T02','02B59D1E-5FD2-4930-82DC-D36535F21397','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='02B59D1E-5FD2-4930-82DC-D36535F21397')); + + 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 TOP 1'867530015','ZTRX20','Local 2','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC8','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 id='67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC8')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530007','ZTRX40','Career and Technical Education','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9E86E593-31DF-41DD-ACB0-D62DA6C59A09','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= 'ZTRX40' AND EducationOrganizationId= '867530007')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530007','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED74','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' 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 TOP 1'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB7')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','1C079F1A-F186-4157-89C5-32077C4376CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='1C079F1A-F186-4157-89C5-32077C4376CD')); + + 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 TOP 1'867530007','ZTRX20','Local','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC7','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= 'ZTRX20' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2014','2013-2014','0','B77B5282-3896-4EB7-BF17-83F7917FE716','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2014')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','2014','535','Traditional','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED77','Sep 20 2015 11:34AM','Sep 22 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2014','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB8')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530015','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530015')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2013','2012-2013','1','1EA4FC18-04FF-464A-A336-52FCA7869C9E','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','2013','530','Traditional','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED76','Sep 20 2015 11:34AM','Sep 22 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530015' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX20','867530015','2013','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB9')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX20','867530015','2013','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX20' AND SchoolId= '867530015' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','GYM',NULL,NULL,'395188AF-6E35-4BE7-AC8B-0F5D63E2CB8C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'GYM' AND SchoolId= '867530015')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530015','ZTRX20','2013','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB91','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530015','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB91')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','1C079F1A-F186-4157-89C5-32077C4376CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','GYM',NULL,NULL,'828D4E89-9C81-4B4C-A371-A07D1B371945','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'GYM' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB92')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2014','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','VTC',NULL,NULL,'3E1F924C-9ABD-4407-A834-183A9DFBC8D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'VTC' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2014','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','VTC','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB96')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22065','867530007','VTC','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB97')); + + 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 TOP 1'867530007','YLEH11','Law Enforcement I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7EB5579A-0B50-4104-9C85-0B51F195956C','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= 'YLEH11' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530007','2012','Law Enforcement I',NULL,'YLEH11','867530007','572E554E-2785-45AD-A682-5D6BF2242DBB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','103',NULL,NULL,'32BAD4E1-A895-43D5-85BE-777946E86F54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '103' AND SchoolId= '867530007')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'AFDA1F48-78B4-431B-BE3D-4D92ABBF7184','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='AFDA1F48-78B4-431B-BE3D-4D92ABBF7184')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','2013','535','Traditional','2012-01-05','2012-05-25','93','FD80A4FF-D7D0-4730-8969-B4121AC78CBB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530007','2013','Law Enforcement I',NULL,'YLEH11','867530007','C6F5E417-1778-4526-A2E1-58138E4FA660','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2013','1',NULL,NULL,'1.000','84465D44-736C-49E0-8239-5D4D7BA93DAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2013' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2013','2012-03-19','2012-04-17','0',NULL,'D1ECB8AE-0FBE-440E-AE6A-B63C31D538F0','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D1ECB8AE-0FBE-440E-AE6A-B63C31D538F0')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530007','2012','Law Enforcement I',NULL,'YLEH11','867530007','DE4BA36C-DBC8-43A4-8AD7-EF7335FF866C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2012','1',NULL,NULL,'1.000','F4A48C2E-6B16-426D-AF95-F56EBF4E3894','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'CA92ECBE-1171-48C0-BAA9-CBD0E417836B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='CA92ECBE-1171-48C0-BAA9-CBD0E417836B')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','106',NULL,NULL,'C5D162D9-C754-4DAE-8B45-5DBFA9DE5BAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '106' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2012','1',NULL,NULL,'1.000','532ABA2D-F547-430E-ABE8-AEC1347AF216','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','20267','867530007','106','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '20267' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2012','2011-12-01','2011-12-20','0',NULL,'777CC2CA-92DC-4B32-8E58-747973FAE5B1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','20267','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='777CC2CA-92DC-4B32-8E58-747973FAE5B1')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','ZTRX40','2012','2011-12-01','2011-12-20',NULL,NULL,'7A83B6DF-6D96-4905-A1ED-0C39FA44A003','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7A83B6DF-6D96-4905-A1ED-0C39FA44A003')); + + 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 TOP 1'867530015','YLEH11','Law Enforcement I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'07F4DEDC-245A-4600-A694-81373B7472CD','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= 'YLEH11' AND EducationOrganizationId= '867530015')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','2012','530','Traditional','2011-08-22','2011-12-20','82','FEFB5C6A-E87A-498E-AEB6-17610DFFBD3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530015' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530015','2012','Law Enforcement I',NULL,'YLEH11','867530015','DD1D126F-AA0D-46BE-B04E-D20D136C2D87','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530015' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','103',NULL,NULL,'D267F6AE-B44A-4EB9-B5DC-B113A20431C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '103' AND SchoolId= '867530015')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530015','YLEH11','2012','1',NULL,NULL,'1.000','D7F5BDCD-9F7F-40AF-B57F-FA4BA7BB1319','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530015','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530015' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530015','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'BC7835EF-8016-4633-A6B3-2AE3A7BB8FEE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='BC7835EF-8016-4633-A6B3-2AE3A7BB8FEE')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..b1287256 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json @@ -0,0 +1,26 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'rls_StudentDataAuthorization' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "StudentKey", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolKey", + "DataType": "varchar" + }, + { + "ColumnName": "SectionId", + "DataType": "nvarchar" + }, + { + "ColumnName": "BeginDate", + "DataType": "date" + }, + { + "ColumnName": "EndDate", + "DataType": "date" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_3/0000_StudentDataAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_3/0000_StudentDataAuthorization_Data_Load.xml new file mode 100644 index 00000000..cf150891 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_3/0000_StudentDataAuthorization_Data_Load.xml @@ -0,0 +1,198 @@ + + + Any + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100054973',NULL,'Cruz','B','Labbe',NULL,NULL,'1995-02-18','Lubbock',NULL,NULL,NULL,'198070','E0A4C7C3-5EA4-4A71-B92C-4161B762095A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE id='E0A4C7C3-5EA4-4A71-B92C-4161B762095A')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId = 867530007)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530015','Harte (Bret) Prepatory Interme',NULL,NULL,'CD2E4956-6194-44AA-AF93-5F8F494E1CBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530015')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530015','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId = 867530015)); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + 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 TOP 1'867530007','TWHH11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D427BD85-D6DE-439B-A313-DA344D255D72','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= 'TWHH11' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530007','2012','530','Traditional','2011-08-22','2011-12-20','82','CBD0894B-BDAC-4AD4-81B4-3C0E9A222A56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'TWHH11','867530007','2012','World History Studies (1 Unit)',NULL,'TWHH11','867530007','EB9A7F54-78B6-4128-85A9-897C5AE5540B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','114',NULL,NULL,'07271B64-3D5B-4CB5-A7BD-BEF67409469B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530007')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','TWHH11','2012','1',NULL,NULL,'1.000','918EA89F-79BB-4280-A612-98B0885369F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22541','867530007','114','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22541' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100054973',NULL,'Cruz','B','Labbe',NULL,NULL,'1995-02-18','Lubbock',NULL,NULL,NULL,'198070','E0A4C7C3-5EA4-4A71-B92C-4161B762095A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100054973')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','TWHH11','2012','2011-12-01','2011-12-20','0',NULL,'2ACB09A1-61B8-43C2-90BB-F9E7ED355348','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22541','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2ACB09A1-61B8-43C2-90BB-F9E7ED355348')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T08','E68A2D90-0DC4-44FA-99A9-9A13868BE343','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='E68A2D90-0DC4-44FA-99A9-9A13868BE343')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T01','82777E21-6538-49BD-BA06-7EDD6BA9FB08','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='82777E21-6538-49BD-BA06-7EDD6BA9FB08')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530007','T02','02B59D1E-5FD2-4930-82DC-D36535F21397','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='02B59D1E-5FD2-4930-82DC-D36535F21397')); + + 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 TOP 1'867530015','ZTRX20','Local 2','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC8','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 id='67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC8')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530007','ZTRX40','Career and Technical Education','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9E86E593-31DF-41DD-ACB0-D62DA6C59A09','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= 'ZTRX40' AND EducationOrganizationId= '867530007')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530007','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED74','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' 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 TOP 1'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB7')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','1C079F1A-F186-4157-89C5-32077C4376CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='1C079F1A-F186-4157-89C5-32077C4376CD')); + + 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 TOP 1'867530007','ZTRX20','Local','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC7','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= 'ZTRX20' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2014','2013-2014','0','B77B5282-3896-4EB7-BF17-83F7917FE716','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2014')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','2014','535','Traditional','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED77','Sep 20 2015 11:34AM','Sep 22 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2014','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB8')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530015','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530015')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2013','2012-2013','1','1EA4FC18-04FF-464A-A336-52FCA7869C9E','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','2013','530','Traditional','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED76','Sep 20 2015 11:34AM','Sep 22 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530015' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX20','867530015','2013','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB9')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX20','867530015','2013','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX20' AND SchoolId= '867530015' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','GYM',NULL,NULL,'395188AF-6E35-4BE7-AC8B-0F5D63E2CB8C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'GYM' AND SchoolId= '867530015')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530015','ZTRX20','2013','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB91','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530015','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB91')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','1C079F1A-F186-4157-89C5-32077C4376CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','GYM',NULL,NULL,'828D4E89-9C81-4B4C-A371-A07D1B371945','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'GYM' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB92')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ZTRX40','867530007','2014','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','VTC',NULL,NULL,'3E1F924C-9ABD-4407-A834-183A9DFBC8D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'VTC' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2014','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','VTC','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB96')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22065','867530007','VTC','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB97')); + + 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 TOP 1'867530007','YLEH11','Law Enforcement I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7EB5579A-0B50-4104-9C85-0B51F195956C','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= 'YLEH11' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530007','2012','Law Enforcement I',NULL,'YLEH11','867530007','572E554E-2785-45AD-A682-5D6BF2242DBB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','103',NULL,NULL,'32BAD4E1-A895-43D5-85BE-777946E86F54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '103' AND SchoolId= '867530007')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'AFDA1F48-78B4-431B-BE3D-4D92ABBF7184','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='AFDA1F48-78B4-431B-BE3D-4D92ABBF7184')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','2013','535','Traditional','2012-01-05','2012-05-25','93','FD80A4FF-D7D0-4730-8969-B4121AC78CBB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530007','2013','Law Enforcement I',NULL,'YLEH11','867530007','C6F5E417-1778-4526-A2E1-58138E4FA660','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2013','1',NULL,NULL,'1.000','84465D44-736C-49E0-8239-5D4D7BA93DAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2013' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2013','2012-03-19','2012-04-17','0',NULL,'D1ECB8AE-0FBE-440E-AE6A-B63C31D538F0','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D1ECB8AE-0FBE-440E-AE6A-B63C31D538F0')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530007','2012','Law Enforcement I',NULL,'YLEH11','867530007','DE4BA36C-DBC8-43A4-8AD7-EF7335FF866C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2012','1',NULL,NULL,'1.000','F4A48C2E-6B16-426D-AF95-F56EBF4E3894','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'CA92ECBE-1171-48C0-BAA9-CBD0E417836B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='CA92ECBE-1171-48C0-BAA9-CBD0E417836B')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530007','106',NULL,NULL,'C5D162D9-C754-4DAE-8B45-5DBFA9DE5BAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '106' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','YLEH11','2012','1',NULL,NULL,'1.000','532ABA2D-F547-430E-ABE8-AEC1347AF216','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','20267','867530007','106','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '20267' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','YLEH11','2012','2011-12-01','2011-12-20','0',NULL,'777CC2CA-92DC-4B32-8E58-747973FAE5B1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','20267','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='777CC2CA-92DC-4B32-8E58-747973FAE5B1')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530007','ZTRX40','2012','2011-12-01','2011-12-20',NULL,NULL,'7A83B6DF-6D96-4905-A1ED-0C39FA44A003','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7A83B6DF-6D96-4905-A1ED-0C39FA44A003')); + + 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 TOP 1'867530015','YLEH11','Law Enforcement I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'07F4DEDC-245A-4600-A694-81373B7472CD','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= 'YLEH11' AND EducationOrganizationId= '867530015')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','2012','530','Traditional','2011-08-22','2011-12-20','82','FEFB5C6A-E87A-498E-AEB6-17610DFFBD3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530015' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YLEH11','867530015','2012','Law Enforcement I',NULL,'YLEH11','867530015','DD1D126F-AA0D-46BE-B04E-D20D136C2D87','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530015' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530015','103',NULL,NULL,'D267F6AE-B44A-4EB9-B5DC-B113A20431C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '103' AND SchoolId= '867530015')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530015','YLEH11','2012','1',NULL,NULL,'1.000','D7F5BDCD-9F7F-40AF-B57F-FA4BA7BB1319','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530015','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530015' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100054973','867530015','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'BC7835EF-8016-4633-A6B3-2AE3A7BB8FEE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='BC7835EF-8016-4633-A6B3-2AE3A7BB8FEE')); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..b1287256 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,26 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'rls_StudentDataAuthorization' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "StudentKey", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolKey", + "DataType": "varchar" + }, + { + "ColumnName": "SectionId", + "DataType": "nvarchar" + }, + { + "ColumnName": "BeginDate", + "DataType": "date" + }, + { + "ColumnName": "EndDate", + "DataType": "date" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/PostgreSQL/v_3_3/0000_StudentDataAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/PostgreSQL/v_3_3/0000_StudentDataAuthorization_Data_Load.xml new file mode 100644 index 00000000..bdd647ae --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/PostgreSQL/v_3_3/0000_StudentDataAuthorization_Data_Load.xml @@ -0,0 +1,176 @@ + + + Any + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100054973',NULL,'Cruz','B','Labbe',NULL,NULL,'1995-02-18','Lubbock',NULL,NULL,NULL,'198070','E0A4C7C3-5EA4-4A71-B92C-4161B762095A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE id='E0A4C7C3-5EA4-4A71-B92C-4161B762095A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId = 867530007)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530015','Harte (Bret) Prepatory Interme',NULL,NULL,'CD2E4956-6194-44AA-AF93-5F8F494E1CBF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530015')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530015','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId = 867530015)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '13','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + 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 '867530007','TWHH11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D427BD85-D6DE-439B-A313-DA344D255D72','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= 'TWHH11' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530007','2012','530','Traditional','2011-08-22','2011-12-20','82','CBD0894B-BDAC-4AD4-81B4-3C0E9A222A56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'TWHH11','867530007','2012','World History Studies (1 Unit)',NULL,'TWHH11','867530007','EB9A7F54-78B6-4128-85A9-897C5AE5540B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','114',NULL,NULL,'07271B64-3D5B-4CB5-A7BD-BEF67409469B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530007')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','TWHH11','2012','1',NULL,NULL,'1.000','918EA89F-79BB-4280-A612-98B0885369F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22541','867530007','114','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22541' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100054973',NULL,'Cruz','B','Labbe',NULL,NULL,'1995-02-18','Lubbock',NULL,NULL,NULL,'198070','E0A4C7C3-5EA4-4A71-B92C-4161B762095A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100054973')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530007','TWHH11','2012','2011-12-01','2011-12-20','0',NULL,'2ACB09A1-61B8-43C2-90BB-F9E7ED355348','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22541','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2ACB09A1-61B8-43C2-90BB-F9E7ED355348')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530007','T08','E68A2D90-0DC4-44FA-99A9-9A13868BE343','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='E68A2D90-0DC4-44FA-99A9-9A13868BE343')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530007','T01','82777E21-6538-49BD-BA06-7EDD6BA9FB08','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='82777E21-6538-49BD-BA06-7EDD6BA9FB08')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530007','T02','02B59D1E-5FD2-4930-82DC-D36535F21397','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='02B59D1E-5FD2-4930-82DC-D36535F21397')); + + 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 '867530015','ZTRX20','Local 2','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC8','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 id='67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC8')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '18','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 '867530007','ZTRX40','Career and Technical Education','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9E86E593-31DF-41DD-ACB0-D62DA6C59A09','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= 'ZTRX40' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530007','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED74','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' 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 'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB7')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','1C079F1A-F186-4157-89C5-32077C4376CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='1C079F1A-F186-4157-89C5-32077C4376CD')); + + 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 '867530007','ZTRX20','Local','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'67C8B4C9-F7B6-4E78-ABA8-D4CF215F7BC7','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= 'ZTRX20' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '2014','2013-2014','0','B77B5282-3896-4EB7-BF17-83F7917FE716','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2014')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','2014','535','Traditional','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED77','Sep 20 2015 11:34AM','Sep 22 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ZTRX40','867530007','2014','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB8')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530015','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530015')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '2013','2012-2013','1','1EA4FC18-04FF-464A-A336-52FCA7869C9E','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530015','2013','530','Traditional','2012-01-05','2012-05-25','93','451A5924-283E-4E07-B4B9-EEDD47C3ED76','Sep 20 2015 11:34AM','Sep 22 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530015' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ZTRX20','867530015','2013','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='5213A712-BF48-48EC-AD03-10AD670B7BB9')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ZTRX20','867530015','2013','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX20' AND SchoolId= '867530015' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530015','GYM',NULL,NULL,'395188AF-6E35-4BE7-AC8B-0F5D63E2CB8C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'GYM' AND SchoolId= '867530015')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530015','ZTRX20','2013','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB91','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530015','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB91')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ZTRX40','867530007','2012','Career and Technical Education',NULL,'ZTRX40','867530007','1C079F1A-F186-4157-89C5-32077C4376CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','GYM',NULL,NULL,'828D4E89-9C81-4B4C-A371-A07D1B371945','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'GYM' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB92')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ZTRX40','867530007','2014','Career and Technical Education',NULL,'ZTRX20','867530007','5213A712-BF48-48EC-AD03-10AD670B7BB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2014' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','VTC',NULL,NULL,'3E1F924C-9ABD-4407-A834-183A9DFBC8D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'VTC' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','ZTRX40','2014','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','VTC','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB96')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22065','867530007','VTC','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A460D6FF-CE92-4699-89CB-FBB4C0F1FB97')); + + 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 '867530007','YLEH11','Law Enforcement I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7EB5579A-0B50-4104-9C85-0B51F195956C','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= 'YLEH11' AND EducationOrganizationId= '867530007')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YLEH11','867530007','2012','Law Enforcement I',NULL,'YLEH11','867530007','572E554E-2785-45AD-A682-5D6BF2242DBB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','103',NULL,NULL,'32BAD4E1-A895-43D5-85BE-777946E86F54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '103' AND SchoolId= '867530007')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','YLEH11','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530007','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'AFDA1F48-78B4-431B-BE3D-4D92ABBF7184','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='AFDA1F48-78B4-431B-BE3D-4D92ABBF7184')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','2013','535','Traditional','2012-01-05','2012-05-25','93','FD80A4FF-D7D0-4730-8969-B4121AC78CBB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530007' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YLEH11','867530007','2013','Law Enforcement I',NULL,'YLEH11','867530007','C6F5E417-1778-4526-A2E1-58138E4FA660','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2013' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','YLEH11','2013','1',NULL,NULL,'1.000','84465D44-736C-49E0-8239-5D4D7BA93DAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2013' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530007','YLEH11','2013','2012-03-19','2012-04-17','0',NULL,'D1ECB8AE-0FBE-440E-AE6A-B63C31D538F0','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D1ECB8AE-0FBE-440E-AE6A-B63C31D538F0')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YLEH11','867530007','2012','Law Enforcement I',NULL,'YLEH11','867530007','DE4BA36C-DBC8-43A4-8AD7-EF7335FF866C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','YLEH11','2012','1',NULL,NULL,'1.000','F4A48C2E-6B16-426D-AF95-F56EBF4E3894','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','22064','867530007','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530007','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'CA92ECBE-1171-48C0-BAA9-CBD0E417836B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='CA92ECBE-1171-48C0-BAA9-CBD0E417836B')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530007','106',NULL,NULL,'C5D162D9-C754-4DAE-8B45-5DBFA9DE5BAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '106' AND SchoolId= '867530007')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','YLEH11','2012','1',NULL,NULL,'1.000','532ABA2D-F547-430E-ABE8-AEC1347AF216','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','20267','867530007','106','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '20267' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530007','YLEH11','2012','2011-12-01','2011-12-20','0',NULL,'777CC2CA-92DC-4B32-8E58-747973FAE5B1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','20267','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='777CC2CA-92DC-4B32-8E58-747973FAE5B1')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530007','ZTRX40','2012','1',NULL,NULL,'1.000','A460D6FF-CE92-4699-89CB-FBB4C0F1FB92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530007','GYM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZTRX40' AND SchoolId= '867530007' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530007','ZTRX40','2012','2011-12-01','2011-12-20',NULL,NULL,'7A83B6DF-6D96-4905-A1ED-0C39FA44A003','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7A83B6DF-6D96-4905-A1ED-0C39FA44A003')); + + 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 '867530015','YLEH11','Law Enforcement I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'07F4DEDC-245A-4600-A694-81373B7472CD','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= 'YLEH11' AND EducationOrganizationId= '867530015')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530015','2012','530','Traditional','2011-08-22','2011-12-20','82','FEFB5C6A-E87A-498E-AEB6-17610DFFBD3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530015' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YLEH11','867530015','2012','Law Enforcement I',NULL,'YLEH11','867530015','DD1D126F-AA0D-46BE-B04E-D20D136C2D87','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530015' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530015','103',NULL,NULL,'D267F6AE-B44A-4EB9-B5DC-B113A20431C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '103' AND SchoolId= '867530015')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530015','YLEH11','2012','1',NULL,NULL,'1.000','D7F5BDCD-9F7F-40AF-B57F-FA4BA7BB1319','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','22064','867530015','103','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YLEH11' AND SchoolId= '867530015' AND SchoolYear= '2012' AND SectionIdentifier= '22064' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100054973','867530015','YLEH11','2012','2012-03-19','2012-04-17','0',NULL,'BC7835EF-8016-4633-A6B3-2AE3A7BB8FEE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','22064','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='BC7835EF-8016-4633-A6B3-2AE3A7BB8FEE')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..22e5e2db --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDataAuthorization/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,26 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'rls_studentdataauthorization' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "studentkey", + "DataType": "character varying" + }, + { + "ColumnName": "schoolkey", + "DataType": "character varying" + }, + { + "ColumnName": "sectionid", + "DataType": "character varying" + }, + { + "ColumnName": "begindate", + "DataType": "date" + }, + { + "ColumnName": "enddate", + "DataType": "date" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_1/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_1/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_2/0000_StudentDisciplineActionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_2/0000_StudentDisciplineActionDim_Data_Load.xml new file mode 100644 index 00000000..9e465188 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_2/0000_StudentDisciplineActionDim_Data_Load.xml @@ -0,0 +1,92 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','628530','2011',NULL,'26.000',NULL,'D54302EA-4FC4-45EB-AE51-7570995DF15D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '628530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + 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')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','3B91E9F6-6AB1-4CE2-901D-74A2949E19D4','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100055074' AND Schoolid='628530001')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100082817',NULL,'Eric','V','Gonzalez',NULL,NULL,'1997-05-10','Lubbock',NULL,NULL,NULL,'205270','2E814BEC-8241-40A2-900B-7852982400C4','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082817'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100082817','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','5D10E8D3-A32E-48FC-9E6C-6AEED031651D','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100082817' AND Schoolid='628530001')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT TOP 1'940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'27061','100055074','2011-11-14','3.00','3.00',NULL,'867530011',NULL,'548321AF-EE2A-4DC2-9D77-59CE84829F08','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '27061' AND DisciplineDate= '2011-11-14' AND StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'624','uri://ed-fi.org/DisciplineDescriptor','Community Service','Community Service','Community Service',NULL,NULL,NULL,'F8D085EB-77E2-4B61-9C11-D14D61FF0BCE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '624'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'624' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '624')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100055074','27061','2011-11-14','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE DisciplineActionIdentifier='27061' AND StudentUSI='100055074' AND DisciplineDate='2011-11-14' AND DisciplineDescriptorId='624')); + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2020 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100055074','27061','2011-11-14','1009','Jun 1 2021 12:00AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='27061' AND StudentUSI='100055074' AND DisciplineDate='2011-11-14')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11061','100082817','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'C095A657-C95F-46E3-828E-A8A5CCE19ADA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100082817','11061','2011-10-05','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100082817' AND DisciplineDate='2011-10-05' AND DisciplineDescriptorId='624')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11051','100082817','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'3ABE0CBF-6AF1-4F3D-879D-8140681F4C5A','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11051' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100082817','11051','2011-10-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11051' AND StudentUSI='100082817' AND DisciplineDate='2011-10-05')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100098415',NULL,'Ulises','J','Moore',NULL,NULL,'2000-10-18','Lubbock County',NULL,NULL,NULL,'213600','A73A0531-FCFF-4CCD-BDFC-2C96E9D8B47C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100098415'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11061','100098415','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'4FFA0489-B5B6-48F2-83F7-30797FA4CAB8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100098415')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100098415','11061','2011-10-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100098415' AND DisciplineDate='2011-10-05')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11061','100082817','2011-11-05','3.00','3.00',NULL,'867530020',NULL,'5322159B-7C01-4C58-9BD8-2766EC5BF4BE','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-11-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100082817','11061','2011-11-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100082817' AND DisciplineDate='2011-11-05')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100098415','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','6C510557-B718-4E77-B3F6-958117BBE324','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100098415' AND SchoolId='628530001')); + + + --- + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT TOP 1'940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530193','Hill Elementary School',NULL,NULL,'0024B754-D997-4066-9482-B352A259C89A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530193')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530193','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530193')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100098253',NULL,'Everett','C','Oliver',NULL,NULL,'2001-09-02','Lubbock',NULL,NULL,NULL,'213503','188AB3B1-EF39-4B42-9AB2-7AEFB4D83118','Jan 19 2021 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100098253'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11431','100098253','2011-10-07','1.00','1.00',NULL,'867530193',NULL,'48E2ED06-CFAC-413E-913D-0824E7045F1F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11431' AND DisciplineDate= '2011-10-07' AND StudentUSI= '100098253')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'625','uri://ed-fi.org/DisciplineDescriptor','Other','Other','Other',NULL,NULL,NULL,'2F25AC98-67CF-4D71-8EB8-7BB4D1ECCF23','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '625'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'625' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '625')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100098253','11431','2011-10-07','625','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100098253' AND DisciplineActionIdentifier='11431' AND DisciplineDate='2011-10-07' AND DisciplineDescriptorId='625' )); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'19','uri://ed-fi.org/GradeLevelDescriptor','Fifth grade','Fifth grade','Fifth grade',NULL,NULL,NULL,'9008EF41-D6B3-4A6E-BD1B-4FAF5CEFDC42','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '19'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100098253','867530193',NULL,'2011-08-22','19',NULL,NULL,NULL,'2099-01-01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5F6D92D7-EEA9-46B9-A1A6-FEB1C43A4E6E','Dec 18 2020 11:47AM','Dec 18 2020 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100098253' AND SchoolId='867530193' )); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075570',NULL,'Austin','O','Stump',NULL,NULL,'1996-01-08','Lubbock',NULL,NULL,NULL,'202109','CD8EF47D-36CE-406B-A830-7D265741BF03','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075570'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'10463','100075570','2011-10-04','3.00','3.00',NULL,'867530022',NULL,'5FE43657-670A-43C8-9F03-4A22E5C7FAAB','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '10463' AND DisciplineDate= '2011-10-04' AND StudentUSI= '100075570')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'624','uri://ed-fi.org/DisciplineDescriptor','Community Service','Community Service','Community Service',NULL,NULL,NULL,'F8D085EB-77E2-4B61-9C11-D14D61FF0BCE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '624'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'624' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '624')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100075570','10463','2011-10-04','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100075570' AND DisciplineActionIdentifier='10463' AND DisciplineDate='2011-10-04' AND DisciplineDescriptorId='624' )); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100075570','867530022',NULL,'2011-11-22','31',NULL,NULL,NULL,'2020-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','8ACA29EB-CD96-40F2-9052-4D3C6FF56A18','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100075570' AND SchoolId='867530022' )); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_2/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_2/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..961562bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_2/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentDisciplineActionDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentDisciplineActionKey + nvarchar + + + DisciplineDateKey + nvarchar + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + int + + + DisciplineActionDescription + nvarchar + + + UserKey + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_3/0000_StudentDisciplineActionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_3/0000_StudentDisciplineActionDim_Data_Load.xml new file mode 100644 index 00000000..9e465188 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_3/0000_StudentDisciplineActionDim_Data_Load.xml @@ -0,0 +1,92 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','628530','2011',NULL,'26.000',NULL,'D54302EA-4FC4-45EB-AE51-7570995DF15D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '628530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + 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')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','3B91E9F6-6AB1-4CE2-901D-74A2949E19D4','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100055074' AND Schoolid='628530001')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100082817',NULL,'Eric','V','Gonzalez',NULL,NULL,'1997-05-10','Lubbock',NULL,NULL,NULL,'205270','2E814BEC-8241-40A2-900B-7852982400C4','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082817'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100082817','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','5D10E8D3-A32E-48FC-9E6C-6AEED031651D','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100082817' AND Schoolid='628530001')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT TOP 1'940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'27061','100055074','2011-11-14','3.00','3.00',NULL,'867530011',NULL,'548321AF-EE2A-4DC2-9D77-59CE84829F08','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '27061' AND DisciplineDate= '2011-11-14' AND StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'624','uri://ed-fi.org/DisciplineDescriptor','Community Service','Community Service','Community Service',NULL,NULL,NULL,'F8D085EB-77E2-4B61-9C11-D14D61FF0BCE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '624'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'624' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '624')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100055074','27061','2011-11-14','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE DisciplineActionIdentifier='27061' AND StudentUSI='100055074' AND DisciplineDate='2011-11-14' AND DisciplineDescriptorId='624')); + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Staff ON;INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2020 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009'));SET IDENTITY_INSERT edfi.Staff OFF; + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100055074','27061','2011-11-14','1009','Jun 1 2021 12:00AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='27061' AND StudentUSI='100055074' AND DisciplineDate='2011-11-14')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11061','100082817','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'C095A657-C95F-46E3-828E-A8A5CCE19ADA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100082817','11061','2011-10-05','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100082817' AND DisciplineDate='2011-10-05' AND DisciplineDescriptorId='624')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11051','100082817','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'3ABE0CBF-6AF1-4F3D-879D-8140681F4C5A','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11051' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100082817','11051','2011-10-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11051' AND StudentUSI='100082817' AND DisciplineDate='2011-10-05')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100098415',NULL,'Ulises','J','Moore',NULL,NULL,'2000-10-18','Lubbock County',NULL,NULL,NULL,'213600','A73A0531-FCFF-4CCD-BDFC-2C96E9D8B47C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100098415'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11061','100098415','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'4FFA0489-B5B6-48F2-83F7-30797FA4CAB8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100098415')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100098415','11061','2011-10-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100098415' AND DisciplineDate='2011-10-05')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11061','100082817','2011-11-05','3.00','3.00',NULL,'867530020',NULL,'5322159B-7C01-4C58-9BD8-2766EC5BF4BE','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-11-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT TOP 1'100082817','11061','2011-11-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100082817' AND DisciplineDate='2011-11-05')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100098415','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','6C510557-B718-4E77-B3F6-958117BBE324','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100098415' AND SchoolId='628530001')); + + + --- + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT TOP 1'940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530193','Hill Elementary School',NULL,NULL,'0024B754-D997-4066-9482-B352A259C89A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530193')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530193','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530193')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100098253',NULL,'Everett','C','Oliver',NULL,NULL,'2001-09-02','Lubbock',NULL,NULL,NULL,'213503','188AB3B1-EF39-4B42-9AB2-7AEFB4D83118','Jan 19 2021 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100098253'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'11431','100098253','2011-10-07','1.00','1.00',NULL,'867530193',NULL,'48E2ED06-CFAC-413E-913D-0824E7045F1F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11431' AND DisciplineDate= '2011-10-07' AND StudentUSI= '100098253')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'625','uri://ed-fi.org/DisciplineDescriptor','Other','Other','Other',NULL,NULL,NULL,'2F25AC98-67CF-4D71-8EB8-7BB4D1ECCF23','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '625'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'625' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '625')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100098253','11431','2011-10-07','625','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100098253' AND DisciplineActionIdentifier='11431' AND DisciplineDate='2011-10-07' AND DisciplineDescriptorId='625' )); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'19','uri://ed-fi.org/GradeLevelDescriptor','Fifth grade','Fifth grade','Fifth grade',NULL,NULL,NULL,'9008EF41-D6B3-4A6E-BD1B-4FAF5CEFDC42','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '19'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100098253','867530193',NULL,'2011-08-22','19',NULL,NULL,NULL,'2099-01-01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5F6D92D7-EEA9-46B9-A1A6-FEB1C43A4E6E','Dec 18 2020 11:47AM','Dec 18 2020 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100098253' AND SchoolId='867530193' )); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075570',NULL,'Austin','O','Stump',NULL,NULL,'1996-01-08','Lubbock',NULL,NULL,NULL,'202109','CD8EF47D-36CE-406B-A830-7D265741BF03','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075570'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'10463','100075570','2011-10-04','3.00','3.00',NULL,'867530022',NULL,'5FE43657-670A-43C8-9F03-4A22E5C7FAAB','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '10463' AND DisciplineDate= '2011-10-04' AND StudentUSI= '100075570')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'624','uri://ed-fi.org/DisciplineDescriptor','Community Service','Community Service','Community Service',NULL,NULL,NULL,'F8D085EB-77E2-4B61-9C11-D14D61FF0BCE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '624'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'624' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '624')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100075570','10463','2011-10-04','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100075570' AND DisciplineActionIdentifier='10463' AND DisciplineDate='2011-10-04' AND DisciplineDescriptorId='624' )); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100075570','867530022',NULL,'2011-11-22','31',NULL,NULL,NULL,'2020-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','8ACA29EB-CD96-40F2-9052-4D3C6FF56A18','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100075570' AND SchoolId='867530022' )); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_3/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_3/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..961562bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/MSSQL/v_3_3/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentDisciplineActionDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentDisciplineActionKey + nvarchar + + + DisciplineDateKey + nvarchar + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + int + + + DisciplineActionDescription + nvarchar + + + UserKey + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_2/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_2/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_3/0000_StudentDisciplineActionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_3/0000_StudentDisciplineActionDim_Data_Load.xml new file mode 100644 index 00000000..529b3bce --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_3/0000_StudentDisciplineActionDim_Data_Load.xml @@ -0,0 +1,92 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + 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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '633','628530','2011',NULL,'26.000',NULL,'D54302EA-4FC4-45EB-AE51-7570995DF15D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '628530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + 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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + 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.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','3B91E9F6-6AB1-4CE2-901D-74A2949E19D4','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100055074' AND Schoolid='628530001')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100082817',NULL,'Eric','V','Gonzalez',NULL,NULL,'1997-05-10','Lubbock',NULL,NULL,NULL,'205270','2E814BEC-8241-40A2-900B-7852982400C4','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082817')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100082817','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','5D10E8D3-A32E-48FC-9E6C-6AEED031651D','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100082817' AND Schoolid='628530001')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940')); + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT '940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '27061','100055074','2011-11-14','3.00','3.00',NULL,'867530011',NULL,'548321AF-EE2A-4DC2-9D77-59CE84829F08','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '27061' AND DisciplineDate= '2011-11-14' AND StudentUSI= '100055074')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '624','uri://ed-fi.org/DisciplineDescriptor','Community Service','Community Service','Community Service',NULL,NULL,NULL,'F8D085EB-77E2-4B61-9C11-D14D61FF0BCE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '624')); + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT '624' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '624')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT '100055074','27061','2011-11-14','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE DisciplineActionIdentifier='27061' AND StudentUSI='100055074' AND DisciplineDate='2011-11-14' AND DisciplineDescriptorId='624')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2020 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT '100055074','27061','2011-11-14','1009','Jun 1 2021 12:00AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='27061' AND StudentUSI='100055074' AND DisciplineDate='2011-11-14')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '11061','100082817','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'C095A657-C95F-46E3-828E-A8A5CCE19ADA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT '100082817','11061','2011-10-05','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100082817' AND DisciplineDate='2011-10-05' AND DisciplineDescriptorId='624')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '11051','100082817','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'3ABE0CBF-6AF1-4F3D-879D-8140681F4C5A','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11051' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT '100082817','11051','2011-10-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11051' AND StudentUSI='100082817' AND DisciplineDate='2011-10-05')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100098415',NULL,'Ulises','J','Moore',NULL,NULL,'2000-10-18','Lubbock County',NULL,NULL,NULL,'213600','A73A0531-FCFF-4CCD-BDFC-2C96E9D8B47C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100098415')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '11061','100098415','2011-10-05','3.00','3.00',NULL,'867530020',NULL,'4FFA0489-B5B6-48F2-83F7-30797FA4CAB8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-10-05' AND StudentUSI= '100098415')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT '100098415','11061','2011-10-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100098415' AND DisciplineDate='2011-10-05')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '11061','100082817','2011-11-05','3.00','3.00',NULL,'867530020',NULL,'5322159B-7C01-4C58-9BD8-2766EC5BF4BE','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11061' AND DisciplineDate= '2011-11-05' AND StudentUSI= '100082817')); + INSERT INTO edfi.DisciplineActionStaff(StudentUSI,DisciplineActionIdentifier,DisciplineDate,StaffUSI,CreateDate)(SELECT '100082817','11061','2011-11-05','1009','Jun 14 2021 12:49PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionStaff WHERE DisciplineActionIdentifier='11061' AND StudentUSI='100082817' AND DisciplineDate='2011-11-05')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100098415','628530001',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','633','2011','6C510557-B718-4E77-B3F6-958117BBE324','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100098415' AND SchoolId='628530001')); + + + --- + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940')); + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT '940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530193','Hill Elementary School',NULL,NULL,'0024B754-D997-4066-9482-B352A259C89A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530193')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530193','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530193')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100098253',NULL,'Everett','C','Oliver',NULL,NULL,'2001-09-02','Lubbock',NULL,NULL,NULL,'213503','188AB3B1-EF39-4B42-9AB2-7AEFB4D83118','Jan 19 2021 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100098253')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '11431','100098253','2011-10-07','1.00','1.00',NULL,'867530193',NULL,'48E2ED06-CFAC-413E-913D-0824E7045F1F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '11431' AND DisciplineDate= '2011-10-07' AND StudentUSI= '100098253')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '625','uri://ed-fi.org/DisciplineDescriptor','Other','Other','Other',NULL,NULL,NULL,'2F25AC98-67CF-4D71-8EB8-7BB4D1ECCF23','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '625')); + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT '625' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '625')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT '100098253','11431','2011-10-07','625','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100098253' AND DisciplineActionIdentifier='11431' AND DisciplineDate='2011-10-07' AND DisciplineDescriptorId='625' )); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '19','uri://ed-fi.org/GradeLevelDescriptor','Fifth grade','Fifth grade','Fifth grade',NULL,NULL,NULL,'9008EF41-D6B3-4A6E-BD1B-4FAF5CEFDC42','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '19')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100098253','867530193',NULL,'2011-08-22','19',NULL,NULL,NULL,'2099-01-01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'5F6D92D7-EEA9-46B9-A1A6-FEB1C43A4E6E','Dec 18 2020 11:47AM','Dec 18 2020 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100098253' AND SchoolId='867530193' )); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100075570',NULL,'Austin','O','Stump',NULL,NULL,'1996-01-08','Lubbock',NULL,NULL,NULL,'202109','CD8EF47D-36CE-406B-A830-7D265741BF03','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075570')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '10463','100075570','2011-10-04','3.00','3.00',NULL,'867530022',NULL,'5FE43657-670A-43C8-9F03-4A22E5C7FAAB','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '10463' AND DisciplineDate= '2011-10-04' AND StudentUSI= '100075570')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '624','uri://ed-fi.org/DisciplineDescriptor','Community Service','Community Service','Community Service',NULL,NULL,NULL,'F8D085EB-77E2-4B61-9C11-D14D61FF0BCE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '624')); + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT '624' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '624')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT '100075570','10463','2011-10-04','624','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100075570' AND DisciplineActionIdentifier='10463' AND DisciplineDate='2011-10-04' AND DisciplineDescriptorId='624' )); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100075570','867530022',NULL,'2011-11-22','31',NULL,NULL,NULL,'2020-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','8ACA29EB-CD96-40F2-9052-4D3C6FF56A18','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI='100075570' AND SchoolId='867530022' )); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_3/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_3/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..794dacc1 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentDisciplineActionDim/PostgreSQL/v_3_3/0001_StudentDisciplineActionDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_studentdisciplineactiondim' + ORDER BY ORDINAL_POSITION ASC; + + + studentdisciplineactionkey + text + + + disciplinedatekey + text + + + studentschoolkey + text + + + studentkey + character varying + + + schoolkey + integer + + + disciplineactiondescription + character varying + + + userkey + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_1/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_1/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..94ebad44 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_1/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_StudentEarlyWarningFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + DateKey + varchar + + + IsInstructionalDay + int + + + IsEnrolled + int + + + IsPresentSchool + int + + + IsAbsentFromSchoolExcused + int + + + IsAbsentFromSchoolUnexcused + int + + + IsTardyToSchool + int + + + IsPresentHomeroom + int + + + IsAbsentFromHomeroomExcused + int + + + IsAbsentFromHomeroomUnexcused + int + + + IsTardyToHomeroom + int + + + IsPresentAnyClass + int + + + IsAbsentFromAnyClassExcused + int + + + IsAbsentFromAnyClassUnexcused + int + + + IsTardyToAnyClass + int + + + CountByDayOfStateOffenses + int + + + CountByDayOfConductOffenses + int + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_2/0000_StudentEarlyWarningFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_2/0000_StudentEarlyWarningFact_Data_Load.xml new file mode 100644 index 00000000..14dadc56 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_2/0000_StudentEarlyWarningFact_Data_Load.xml @@ -0,0 +1,781 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor as Target + USING (VALUES + ('775','http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','FullPrice'), + ('686','http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Instructional day'), + ('687','http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Make-up day'), + ('545','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Excused Absence'), + ('544','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence'), + ('547','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Tardy'), + ('546','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','In Attendance'), + ('24','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Eleventh grade'), + ('535','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester'), + ('778','http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free'), + ('18','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other'), + ('13','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies'), + ('110','http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml','Limited'), + ('138','http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','State Offense'), + ('780','http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','Other'), + ('140','http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','School Code of Conduct'), + ('729','http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Withdrawn'), + ('726','http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Other'), + ('38','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Twelfth grade'), + ('683','http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Holiday'), + ('31','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Ninth grade'), + ('35','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Tenth grade'), + ('530','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester'), + ('2','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics'), + ('19','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Fifth grade'), + ('10','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science'), + ('1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period'), + ('1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent'), + ('1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular'), + ('1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific'), + ('950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom'), + ('1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students'), + ('1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX'), + ('1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students'), + ('1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus'), + ('1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator'), + ('1233','uri://ed-fi.org/PopulationServedDescriptor','Special Education Students') + ) + AS Source(DescriptorId, Namespace, CodeValue) + ON Target.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN INSERT + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, Id, + EffectiveBeginDate, EffectiveEndDate, LastModifiedDate, CreateDate) + VALUES + (Source.DescriptorId, Source.Namespace, Source.CodeValue, Source.CodeValue, Source.CodeValue, null, newid(), + '2000-01-01','3000-01-01', getdate(), getdate()) + OUTPUT $action, inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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'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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND Schoolyear=2011 and entrydate='2011-02-21')); + + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + 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.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-02' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-02','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-16','C71B7B6F-ACB0-46BE-A2CC-C98C0CC3CD58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-16' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-16','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-16' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-15','E7242123-3085-419C-8C1D-DC5738FC6AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-15' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-15','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-15' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-10','BE8BB56E-505C-4011-872F-B559E19351A6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-10' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-10','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-10' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530174','King Elementary School',NULL,NULL,'A0309A7C-26BD-4602-9F7C-6C83F1223CA2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530174')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530174','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530174')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530174_2012','867530174','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D494D8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2012' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2012-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38C16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2012-05-02' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2012-05-02','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530022_2012','867530022','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0D2CA3E8-D8D8-46D5-B952-C4144E7CE4E8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530022_2012' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2012-05-02','EDC5E2E9-0431-41CC-95E5-635657D166AA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2012-05-02' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2012-05-02','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + + 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 TOP 1'867530011','LENR31','English Iii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DE1F9933-2F1E-4C49-9F66-F664E9DAEA78','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= 'LENR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 TOP 1'LENR31','867530011','2012','English Iii (1 Unit)',NULL,'LENR31','867530011','24DA02E6-2081-4E2E-A399-BA382CAF82A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','206',NULL,NULL,'2CC51551-0168-4199-B043-6C04C431D2A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '206' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','LENR31','2012','1',NULL,NULL,'1.000','EF5AA153-B644-4A98-9147-4C58A56D99D4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4508','867530011','206','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '4508' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100071861',NULL,'Torrie','P','Marshall',NULL,NULL,'1994-06-04',NULL,NULL,NULL,NULL,'200488','914E3B59-86B4-4EC0-A738-CEE7732CE3CD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071861')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','A9ACCD38-5CBA-4C74-988B-0668782E65B0',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='A9ACCD38-5CBA-4C74-988B-0668782E65B0')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'545' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '545')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530062','Alvarado Middle School',NULL,NULL,'EC112FBA-E671-412E-9BC8-55C35B33B062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530062')); + + 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 TOP 1'867530062','LENR07','English Language Arts And Reading, Gr 7','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6D904BBE-E6BA-4AE1-904D-9C18A80387D2','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= 'LENR07' AND EducationOrganizationId= '867530062')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530062','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530062')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','4A397178-40A3-4191-8213-B15B80A422D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530062' 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 TOP 1'LENR07','867530062','2012','English Language Arts, Grade 7',NULL,'LENR07','867530062','A7291000-B3D9-4766-9DC9-75D9BCD64DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','114',NULL,NULL,'5AE1D163-1817-4052-A4E3-0CCD694DC436','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530062')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530062','LENR07','2012','1',NULL,NULL,'0.000','4F584355-8FDD-44BA-97A4-62E333B17CD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4396','867530062','114','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SectionIdentifier= '4396' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075987',NULL,'Randall','K','Austin',NULL,NULL,'1998-06-12','Lubbock',NULL,NULL,NULL,'202218','F3E90F7F-90C3-41DE-B994-5C5A8810E123','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075987')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-02','LENR07','867530062','2012','4396','Traditional-Spring Semester','100075987','P-In school suspension',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F0972B54-4CCA-4587-9F06-2887D8CEAA8F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F0972B54-4CCA-4587-9F06-2887D8CEAA8F')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530011','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9D406716-D0E3-4500-BD8E-8CE6430F0979','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= 'YBIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530011','2012','Business Information Management',NULL,'YBIR11','867530011','FFED20B1-3098-44D2-9D2D-6163DFAFD8D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','107A',NULL,NULL,'A1EF9136-975E-4305-BE7E-5BBCA450CD9B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107A' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','YBIR11','2012','1',NULL,NULL,'1.000','1E52A342-9C5F-452B-BA82-F76FAA5A242E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18267','867530011','107A','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18267' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','YBIR11','867530011','2012','18267','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4FCC7D50-BAA7-4E84-8C81-27E476CE47D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='4FCC7D50-BAA7-4E84-8C81-27E476CE47D6')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + 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 TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','0AF2F009-3848-448C-8014-009FF62B826F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18938','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18938' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','QAGR40','867530011','2012','18938','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F')); + + 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 TOP 1'867530011','YAIR11','Interior Design','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C57FC015-E9B3-4CB4-802B-98BB0F357FC4','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= 'YAIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YAIR11','867530011','2012','Interior Design',NULL,'YAIR11','867530011','C2A55CE4-A256-47A0-83FD-5184DB3C4422','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','113',NULL,NULL,'6B10093E-5D61-4F94-9B3D-CD253FF9D9C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','YAIR11','2012','1',NULL,NULL,'1.000','58801B52-B52E-4412-908A-A5CB06F5D01B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19515','867530011','113','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19515' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','YAIR11','867530011','2012','19515','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5')); + + 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 TOP 1'867530011','YPNR11','Lifetime Nutrition and Wellness','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4B112C63-C7F2-4120-BCB2-4D0428DF8C84','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= 'YPNR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YPNR11','867530011','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530011','385B25B1-7A77-4978-AE9B-8CA5467E70D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','YPNR11','2012','1',NULL,NULL,'1.000','E7192AC8-433E-4E66-8315-16E89B1C86B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19524','867530011','113','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19524' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','YPNR11','867530011','2012','19524','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','CA33C9D4-276E-475A-AC47-08588DDC6429',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='CA33C9D4-276E-475A-AC47-08588DDC6429')); + + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530011','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'E9894DFF-6207-4F56-AA72-5AAC5D349144','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','8496','32845E12-8DF5-44BB-9326-9704CA374BEC','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='32845E12-8DF5-44BB-9326-9704CA374BEC')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'2706','867530011','2011-11-14','12:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'7876B001-D923-445C-8FD1-B060753EF16B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '2706' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2706','9E6C9BCA-FDE6-4A59-8625-25880A8B96EA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='9E6C9BCA-FDE6-4A59-8625-25880A8B96EA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100057336',NULL,'Thanh','C','Vasquez',NULL,NULL,'1992-06-03','Lubbock',NULL,NULL,NULL,'194792','D294ADC9-C71F-4534-963E-43D6DA1CBCCF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100057336')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','8496','64CBFCDC-D065-4875-99EF-EF1DFFB84DA0','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='64CBFCDC-D065-4875-99EF-EF1DFFB84DA0')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','2706','CE4DAD6D-ED57-464D-8985-991C94270F5F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='CE4DAD6D-ED57-464D-8985-991C94270F5F')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530022','2011-12-05','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'5B747786-34BF-43E2-AF69-CB3E62BA515D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100014881',NULL,'Cecilia','D','Begay',NULL,NULL,'1989-06-05','Lubbock',NULL,NULL,NULL,'189889','989B461B-45DD-4947-B310-51229E2068FC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','1064','5B39FFB7-9441-4F0A-AA03-4C251295F4A3','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='5B39FFB7-9441-4F0A-AA03-4C251295F4A3')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'138' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '138')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530007 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=8496)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','8496','034543D8-1D92-4622-B636-8A542198E006','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'780' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '780')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1200','867530011','2011-10-11','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'A3A21A69-6C53-40AB-9B7E-0C97447BADE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1200' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1200','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=1200)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1615','867530007','2011-10-12','00:00:00.0000000',NULL,NULL,'Washburn, Steven',NULL,NULL,NULL,NULL,'94DE1068-D3F7-4DA5-B7A1-87A7E20225F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1615' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','1615','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=1615)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530011','2011-10-03','08:00:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'C4695F83-08A8-42F1-984D-BCD37111C2E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 1064)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530022 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530022')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 8496)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','8496','1B3C4FE4-8F1F-4921-A94A-70167E424862','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530022 AND IncidentIdentifier = 8496)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'7485','867530011','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90991DB0-460C-421F-AB15-3228610D5B92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '7485' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 7485)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','7485','9B398892-C4F6-446A-BE65-B0925B923A44','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530011 AND IncidentIdentifier = 7485)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'729' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100026948 AND SchoolId=867530023 AND EntryDate='2011-08-22')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-05-20','90C557E4-2D4F-4365-9E09-64FC3EED500C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-05-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'683' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '683')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-05-20','683','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2011-08-20','EDC7141A-C9C7-4CDF-BDD5-D2A83C89FE13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2011-08-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2011-08-20','683','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2011-08-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'726' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '726')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'600090441',NULL,'Jack','K','Harmine',NULL,NULL,'2001-04-03',NULL,NULL,NULL,NULL,'600090441','9B52A7B8-BE87-48D3-8B4D-EE5269029188','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '600090441')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'600090441','628530001',NULL,'2011-08-07','31',NULL,NULL,NULL,'2011-11-06','726',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8C391698-D64D-43AC-89DB-E4D56A365ED9','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=600090441 AND SchoolId=628530001 AND EntryDate='2011-08-07')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2012-02-21','24',NULL,NULL,NULL,'2013-02-21',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE04','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2013-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B36B3E0D-E46A-449E-AE9B-DF629912EB8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2013-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2011-02-21')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100014881 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022',NULL,'2012-02-21','24',NULL,NULL,NULL,'2013-02-21',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','A5BE92DB-EA7F-40CA-B61E-A31FB8835A92','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530022 AND EntryDate='2012-02-21')); + + 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 TOP 1'867530011','QENR11','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480B','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= 'QENR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'530' 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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18131','867530011','111','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18131' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'5952EDA8-830B-42C4-B3ED-D52DB6931930','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18131','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931930')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','10100494','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F079','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-20' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-20','683','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2011-08-22','E962026B-6DE3-475B-8380-A3621AC45A06','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2011-08-22' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2011-08-22','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2011-08-22' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','T01','6ADE0EB1-1136-4DF4-8700-8B7DE99BA599','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName = 'T01' AND Schoolid = '867530022')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','105',NULL,NULL,'0572DE93-B143-4938-991D-34141DAAA4FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE SchoolId=867530022 and ClassroomIdentificationCode='105')); + + 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 TOP 1'867530022','QENR11','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4292064B-6416-47CE-A6BF-A9E48C257085','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= 'QENR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530022','2012','English I (1 Unit)',NULL,'QENR11','867530022','497496E4-0599-4451-9849-60FEB5C78DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1104',NULL,NULL,'AB49842C-6E32-4AEE-9A27-CEE1A9962BA4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1104' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','96B5B65C-85E0-46AF-824F-E08916B771AF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9622','867530022','1104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='96B5B65C-85E0-46AF-824F-E08916B771AF')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','B1554264-310C-4683-9D9D-60CBBEA60AEE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','0',NULL,'1265CDAF-E98F-4B27-A276-96DF8A738F83','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F83')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2011','English I (1 Unit)',NULL,'QENR11','867530011','9C9371A3-5E01-4D30-BDFA-61E992148370','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'584B75F4-2A60-4B9A-B3FD-177049CF5086','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='584B75F4-2A60-4B9A-B3FD-177049CF5086')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100079802',NULL,'Luke','O','Johnston',NULL,NULL,'1996-07-18',NULL,NULL,NULL,NULL,'204030','5CE8E0EE-28FF-4ACB-836F-ABA7BE665A9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100079802')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011',NULL,'2012-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','39F3E4DB-CEDD-4662-B088-BDA6FEA350F7','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='39F3E4DB-CEDD-4662-B088-BDA6FEA350F7')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2012','2011-09-26','2011-11-28','1',NULL,'430E04C4-AC44-44EF-8ED2-A3CA0A05318B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='430E04C4-AC44-44EF-8ED2-A3CA0A05318B')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId = '867530011' AND SchoolYear = '2012' AND TermDescriptorId = '530')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='39066D32-88AA-4A9F-8285-CD6344BE405D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='95669A96-EFA6-4855-AF4B-E616288BF2A2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'8E3482C5-6FA7-4611-9E2E-E81E1EA290E2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8E3482C5-6FA7-4611-9E2E-E81E1EA290E2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'2C1F53CF-789F-4C50-B9BF-F46F3C785DDA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2C1F53CF-789F-4C50-B9BF-F46F3C785DDA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'1043A9EA-2AC5-467D-B557-48DF0C208417','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1043A9EA-2AC5-467D-B557-48DF0C208417')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530022','XSMP41','SEP MTH 4','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'80A9A802-64C3-410B-93FF-72ED72E19B8C','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= 'XSMP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','61E88EE1-69CE-451E-A7D6-37EC260A1710','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1405',NULL,NULL,'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1233' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1233')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','752D67A4-580D-43E2-B7F0-54DC4E2A6331','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','0946DADD-EAA1-40C4-B68A-A472165A4DCA',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='0946DADD-EAA1-40C4-B68A-A472165A4DCA')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9E86C992-EA0D-47BB-99F9-DC844BEDEE6E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9E86C992-EA0D-47BB-99F9-DC844BEDEE6E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','712E26B4-C6D8-4577-A4C2-04198D566307',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='712E26B4-C6D8-4577-A4C2-04198D566307')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5D3BEA60-F30E-4527-A3F7-C08F07594850',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5D3BEA60-F30E-4527-A3F7-C08F07594850')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-16','QENR11','867530011','2012','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EE7E75B4-F076-4C40-A124-35AD4830A0F8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EE7E75B4-F076-4C40-A124-35AD4830A0F8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E78E391A-6FFF-4217-804B-2F4761DF5F21',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E78E391A-6FFF-4217-804B-2F4761DF5F21')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B9',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7E819588-D81E-4D5F-B672-922A2D9F159A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='7E819588-D81E-4D5F-B672-922A2D9F159A')); + + 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 TOP 1'867530011','XLSK41','FUNCT COM SK 12','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0A3B72C8-24F5-4254-830D-5B0FB91C3B40','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= 'XLSK41' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLSK41','867530011','2012','FUNCT COM SK 12',NULL,'XLSK41','867530011','3342778F-F57A-425D-B0F3-4BE3D29327BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='FFE62040-17BF-499B-894B-4FAA55853BF9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','XLSK41','2012','2011-09-15','2011-09-15','1',NULL,'F958E086-C827-4D75-B41E-53288CE6B69A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='F958E086-C827-4D75-B41E-53288CE6B69A')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100070882',NULL,'Matthew',NULL,'Barnes',NULL,NULL,'1999-08-07',NULL,NULL,NULL,NULL,'200099','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A06BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174',NULL,'2011-08-22','19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D4C9405E-7C08-43FE-BDE9-1102EA64FD0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FD0E')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2011-11-03','8BDAC34D-99EE-46F1-92A4-206F003FF4E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-03' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2011-11-03','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530167','Mt. Gleason Elementary School',NULL,NULL,'64ACB96B-7081-4E4B-9CB2-C33134D9F255','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530167')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530167','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530167')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530167_2012','867530167','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','98E7F1CB-4567-40D8-95BA-2751BBA4E062',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530167_2012' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530167','2011-11-03','6DA040F0-4854-402A-8147-15941A60436C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530167_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530167_2012' AND Date= '2011-11-03' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530167','2011-11-03','686','Sep 18 2015 11:34AM','867530167_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530167 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530163','James Lick Elementary School',NULL,NULL,'1E86182B-6478-413D-9106-5DD842298B97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530163')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530163','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530163')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530163_2012','867530163','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0FF0BBBD-738C-4249-AA09-E374E8E8EC3B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530163_2012' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530163','2011-11-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530163_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530163_2012' AND Date= '2011-11-03' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530163','2011-11-03','686','Sep 18 2015 11:34AM','867530163_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530163 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530174','2012','530','Traditional','2011-08-22','2011-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810A54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','544',NULL,'2735F816-C327-47FA-AFC2-A03218661968','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=544)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','545','A-Parent contact','C4E41C67-4D6E-4923-909D-4E0518B79982','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=545)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'546' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '546')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','546','Excused','DBCB3701-03BB-45FE-9A28-F19C2E2228DF','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='DBCB3701-03BB-45FE-9A28-F19C2E2228DF')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','547','Late','C07501E9-BC3C-4A5F-B8D6-20E23381D6F4','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C07501E9-BC3C-4A5F-B8D6-20E23381D6F4')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140270',NULL,'Melody','C','Reese',NULL,NULL,'2006-07-04','Lubbock',NULL,NULL,NULL,'235621','BFAD0CA4-9A97-4EF3-A505-D5AE651F215B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140270')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100140270','867530174','2012','2011-11-03','547',NULL,'020241AC-E9C4-473C-A6E4-97AD01A74140','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='020241AC-E9C4-473C-A6E4-97AD01A74140')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2012-05-20','545','Abs','2518F909-C36C-4A52-8560-AC1150AEC2B6','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='2518F909-C36C-4A52-8560-AC1150AEC2B6')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','2012','2012-05-20','544','Abs','246CD054-7DE4-4F38-AB4B-844B2DB52E27','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB52E27')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','2012','2012-05-20','544','Abs','EC1B7463-89B1-41A3-BF5F-1544F1B37A34','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC1B7463-89B1-41A3-BF5F-1544F1B37A34')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2012-05-20','544','Abs','C15388A3-297B-4721-8F08-3D71BEE71B68','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C15388A3-297B-4721-8F08-3D71BEE71B68')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2012-06-01','544','Abs','C6A8A994-C7B9-423F-9E59-C6F247712EBC','Jun 1 2012 12:00AM','Jun 1 2012 12:00AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C6A8A994-C7B9-423F-9E59-C6F247712EBC')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530167','2012','530','Traditional','2011-08-22','2011-12-20','82','087799AD-49F9-4C7D-AB36-3D7E5ADBB727','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530167' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100082146',NULL,'Bianca','B','Jessup',NULL,NULL,'2001-11-27',NULL,NULL,NULL,NULL,'204888','6384E2D4-EB0A-40FC-9E5C-1D36D5B36255','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082146')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100082146','867530167','2012','2011-11-03','547',NULL,'EC927F76-8441-4099-A95F-5E8D992BD9EA','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC927F76-8441-4099-A95F-5E8D992BD9EA')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530163','2012','530','Traditional','2011-08-22','2011-12-20','82','E0DFF2A5-0791-4176-B13D-FA4A64C1B523','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530163' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100091085',NULL,'Joe','M','Arribas',NULL,NULL,'2000-05-24','Lubbock',NULL,NULL,NULL,'209514','1F87B2A8-F667-4B84-AF8A-8223F4FF107D','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100091085')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100091085','867530163','2012','2011-11-03','545','A-Absent excused','54D85A58-E0EC-41E5-AD99-028C6FBCC07A','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='54D85A58-E0EC-41E5-AD99-028C6FBCC07A')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3976C','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3976C')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='B07D591A-1EAB-497E-8570-188EF07323BA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='5DE62337-788B-4F8A-9146-540E5FFC673F')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','B05','CD2D4337-E615-48EC-B873-D8D568668CDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='CD2D4337-E615-48EC-B873-D8D568668CDF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2011-12-05','8D4193FE-07C8-4CD3-8A7D-B306A53F7A02','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2011-12-05' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2011-12-05','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2011-12-05' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2011-11-03','2011-12-20','0',NULL,'9A91EAB2-7C14-486B-A87F-D402916864B6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9A91EAB2-7C14-486B-A87F-D402916864B6')); + + 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 TOP 1'867530022','XSTP41','VOC 4 SE','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'85D52DBF-B05B-447B-890C-16F06DA0864B','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= 'XSTP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSTP41','867530022','2012','BASIC VOC 12',NULL,'XSTP41','867530022','50921FB7-5DB0-41F5-8277-F1B0B35433A0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSTP41','2012','1',NULL,NULL,'1.000','5D20FD7D-4634-444B-AB77-4A57206BFC53','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14753','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14753' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSTP41','2012','2011-08-22','2011-12-20','1',NULL,'8559F681-F3A8-4AA5-A3BC-F2FB15565AE5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','14753','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8559F681-F3A8-4AA5-A3BC-F2FB15565AE5')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','B9DDDABF-3AEF-4505-A339-B3E4E7707895','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','A15ED7AA-EFD5-423D-B832-0D9FC1A92693','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230731','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230731')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022','XSMP41','2012','2011-11-03','2011-12-20','1',NULL,'9E2F52C5-0CB7-48EC-B4EC-380786F97E02','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9E2F52C5-0CB7-48EC-B4EC-380786F97E02')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79AF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79AF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','AC4A45FC-0773-46FD-BA29-DE3267B75932',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='AC4A45FC-0773-46FD-BA29-DE3267B75932')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530022','SCMR31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7F1862F0-1B69-4F08-BAB2-390A38A9CFD3','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= 'SCMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'SCMR31','867530022','2012','Chemistry (1 Unit)',NULL,'SCMR31','867530022','D05298E6-2A89-4EE3-A5CA-5C2581E53B90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1501',NULL,NULL,'5688B86B-0341-4C9C-9241-99E976764BC3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1501' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','SCMR31','2012','1',NULL,NULL,'1.000','18E750EC-BD6E-4F42-B3CC-0BAFE41F2B13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11579','867530022','1501','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '11579' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6F149507-917C-45CA-832D-ED407B37920A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6F149507-917C-45CA-832D-ED407B37920A')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D4462F87-3340-43FD-B81C-E19CE2AA432E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D4462F87-3340-43FD-B81C-E19CE2AA432E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E661DC4E-D254-4718-A8A5-48D8F23BF469',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E661DC4E-D254-4718-A8A5-48D8F23BF469')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 1064)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','1064','443DCCE2-134C-4491-A1AA-E8FA2D10D8E8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='443DCCE2-134C-4491-A1AA-E8FA2D10D8E8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EBC735CD-0794-4EFD-A448-A35E3F730678',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EBC735CD-0794-4EFD-A448-A35E3F730678')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9865382E-F8AE-4756-AB9A-0B2C0ADBABA7',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9865382E-F8AE-4756-AB9A-0B2C0ADBABA7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','71ECE7A9-7240-43F5-8D02-2DEF36F563C3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='71ECE7A9-7240-43F5-8D02-2DEF36F563C3')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','124784BA-5674-4DBD-999C-87B143463EFF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='124784BA-5674-4DBD-999C-87B143463EFF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100055074','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6462C746-2EF3-4C16-9390-096DDB4228D5',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6462C746-2EF3-4C16-9390-096DDB4228D5')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2121-01-01','1AE131B4-559E-4695-AD14-C46D257B4994','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2121-01-01' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2121-01-01','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2121-01-01' = CalendarDateCalendarEvent.Date)); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2121-01-01','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D7D517D3-546E-494E-B170-E11EBE67C9D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D7D517D3-546E-494E-B170-E11EBE67C9D6')); + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100039441',NULL,'Camille','C','Medeiros',NULL,NULL,'1993-07-05','Lubbock',NULL,NULL,NULL,'190237','C2739CC1-3A8E-491D-82DA-504732572C53','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039441'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100039441','867530022',2012,'2011-08-22','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','C58B7CBF-13C8-4F65-B6D7-8EFA0E881FAB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100039441 AND SchoolId=867530022 AND EntryDate='2011-08-22')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','EFFA17BD-8925-4416-BF4D-EAF677BD1D3B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR11','2012','1',NULL,NULL,'1.000','DA8F59D0-525C-4982-B3C0-9DAFBED1EB71','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','951','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '951' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-04','ARTR11','867530022','2012','951','Traditional-Spring Semester','100039441','A-Parent contact',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F432A708-D253-4469-9188-278E8DDB431F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE ID='F432A708-D253-4469-9188-278E8DDB431F')); + + 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 TOP 1'867530022','ARTR21','Art Ii Drawing (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4DF03F19-E9FB-49B2-8AB2-523A98472D17','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= 'ARTR21' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR21','867530022','2012','Art Ii Drawing (1 Unit)',NULL,'ARTR21','867530022','92E309AE-9BE3-4865-878B-D8DAEC0252E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1003',NULL,NULL,'5A309B34-C117-4404-A737-EBB16D437E91','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1003' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR21','2012','1',NULL,NULL,'1.000','DFD881C1-93B2-46D2-89BF-58C37F447049','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','981-2','867530022','1003','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '981-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100039441','867530022','ARTR21','2012','2011-08-22','2011-08-29','0',NULL,'A545A93F-B1AC-4D0B-8475-7343F55BB8FB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','981-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE ID='A545A93F-B1AC-4D0B-8475-7343F55BB8FB')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2012-05-02','ARTR21','867530022', 2012,'981-2','Traditional','100039441','',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9A17166E-6DAD-406E-B711-510F4D37CCAF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE ID='9A17166E-6DAD-406E-B711-510F4D37CCAF')); + ---20210914 + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530063','Anderson Middle School',NULL,NULL,'CE1E1BFE-9735-4C59-9FA6-9E1669A573D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530063')); + 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 TOP 1'867530063','ZADV07','Other Secondary Subject','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'555122C8-8DA1-4674-A489-6E1D631E9D08','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= 'ZADV07' AND EducationOrganizationId= '867530063')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530063','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530063')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530063','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','EA00E202-289F-4A8C-9A29-64976621EB75','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530063' 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 TOP 1'ZADV07','867530063','2012','Other Secondary Subject',NULL,'ZADV07','867530063','E7E0BAEA-9EB8-435B-9949-85772AE19C56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530063','110',NULL,NULL,'045F6E7E-B746-4ECE-A13B-1EB51891FA39','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '110' AND SchoolId= '867530063')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530063','ZADV07','2012','1',NULL,NULL,'0.000','D4CA7F0A-1DCC-4ED7-A97D-6BF21E5502F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','15766','867530063','110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SectionIdentifier= '15766' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140531',NULL,'Larry','Z','Nall',NULL,NULL,'1999-05-18','Plainview',NULL,NULL,NULL,'236165','504C03FA-C6CD-45A6-930E-66F66416B846','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140531'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO EDFI.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2012-05-25','ZADV07','867530063','2012','15766','Traditional-Spring Semester','100140531',NULL,NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','8A2068D8-EC7B-4A3A-8BE1-32B230587D3A',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAttendanceEvent WHERE ID='8A2068D8-EC7B-4A3A-8BE1-32B230587D3A')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100140531','867530063','ZADV07','2012','2012-01-19','2012-05-25','1',NULL,'1D27B1D6-995D-4D6D-B7B1-3AEBBE68EBA8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15766','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE ID='1D27B1D6-995D-4D6D-B7B1-3AEBBE68EBA8')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'34','uri://ed-fi.org/GradeLevelDescriptor','Seventh grade','Seventh grade','Seventh grade',NULL,NULL,NULL,'1102B6E1-10B1-4042-BA3C-923A9C9C5E51','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '34'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'34' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '34')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100140531','867530063',NULL,'2012-01-19','34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3669C0C2-3D03-4BC4-A324-70CA0400DF5E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE ID='3669C0C2-3D03-4BC4-A324-70CA0400DF5E')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530063_2012','867530063','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','30C85F0E-F2CD-465D-8085-FE6BFE97A5BB',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530063_2012' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530063','2012-05-25','AC0B089F-F304-4057-A817-FE30DAE96463','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530063_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530063_2012' AND Date= '2012-05-25' AND SchoolId= '867530063' AND 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530063','2012-05-25','686','Sep 18 2015 11:34AM','867530063_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530063' AND Date='2012-05-25')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530063','209',NULL,NULL,'E316DC00-F53F-48A6-8FCE-DCAC9379B0B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530063')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530063','ZADV07','2012','1',NULL,NULL,'0.000','2F7D75A7-32F6-4DC5-9401-79604E848369','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','15765','867530063','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SectionIdentifier= '15765' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100088895',NULL,'Phillip','E','Spratt',NULL,NULL,'1998-01-09','Lubbock',NULL,NULL,NULL,'208452','8C4B51A8-6ED7-492D-BBDA-DC06F5E082D5','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100088895'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO EDFI.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2012-05-08','ZADV07','867530063','2012','15765','Traditional-Spring Semester','100088895',NULL,NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5AA202A2-9734-4B43-95D3-7E3E18553463',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAttendanceEvent WHERE ID='5AA202A2-9734-4B43-95D3-7E3E18553463')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100088895','867530063','ZADV07','2012','2012-01-04','2012-05-25','0',NULL,'09766AA1-8339-41FD-8FA9-F68DD5FA36D5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15765','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE ID='09766AA1-8339-41FD-8FA9-F68DD5FA36D5')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100088895','867530063',NULL,'2011-08-31','34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8E2DBB10-48D7-4976-9EBA-12A137C10E1F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE ID='8E2DBB10-48D7-4976-9EBA-12A137C10E1F')); + INSERT INTO EDFI.[DisciplineIncident](IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'7485','867530063','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'F504B00A-6397-46F9-B8F2-6A9931EDEC76','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.[DisciplineIncident] WHERE SchoolId='867530063' AND IncidentIdentifier='7485')); + INSERT INTO EDFI.[DisciplineIncidentBehavior](SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530063','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.[DisciplineIncidentBehavior] WHERE SchoolId='867530063' AND BehaviorDescriptorId='138' AND IncidentIdentifier='7485')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530063','2012-01-01','4790193B-CE45-4ACF-83CA-C02109112E8F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530063_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530063_2012' AND Date= '2012-01-01' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530063','2012-01-01','683','Sep 18 2015 11:34AM','867530063_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530063' AND Date='2012-01-01')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','6135CF5F-F037-4408-888B-D505B1C87128','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE id='6135CF5F-F037-4408-888B-D505B1C87128')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE id='70218923-F2A8-4E90-9143-40D2E899ED60')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-25','37226510-C303-4194-8039-E0874521592B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-25' AND SchoolId= '867530011' AND 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-25','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530011' AND Date='2012-05-25')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530007_2012','867530007','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','256935B4-9E6F-4687-8A4F-B150711A970E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530007_2012' AND SchoolId= '867530007' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530007','2012-05-25','5DA89319-FA44-4209-B62F-671D25B4C15D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530007_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530007_2012' AND Date= '2012-05-25' AND SchoolId= '867530007' AND SchoolYear= '2012')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530007','2012-05-25','686','Sep 18 2015 11:34AM','867530007_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530007' AND Date='2012-05-25')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus','On campus','On campus',NULL,NULL,NULL,'8E849C4A-5B64-456F-80C8-DB3D8F65687B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1049'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1133','867530007','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'892E5F88-25B2-437E-8D10-AFF5CC17D19D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1133' AND SchoolId= '867530007')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator','Perpetrator','Perpetrator',NULL,NULL,NULL,'2932E49D-A673-4BF1-A99E-391039AB1093','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1460'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + INSERT INTO EDFI.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007','1133','B713226A-545A-4A65-A03B-6A3C4A6F0C19','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentDisciplineIncidentAssociation WHERE id='B713226A-545A-4A65-A03B-6A3C4A6F0C19')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1133','867530007','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'892E5F88-25B2-437E-8D10-AFF5CC17D19D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE id='892E5F88-25B2-437E-8D10-AFF5CC17D19D')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'140','uri://ed-fi.org/BehaviorDescriptor','04','School Code of Conduct','School Code of Conduct',NULL,NULL,NULL,'FF2FE3B8-CC06-4F2A-8ABA-AEFDDF02D5FF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '140'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','1133','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530007' AND IncidentIdentifier='1133')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus','On campus','On campus',NULL,NULL,NULL,'8E849C4A-5B64-456F-80C8-DB3D8F65687B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1049'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530063','Anderson Middle School',NULL,NULL,'CE1E1BFE-9735-4C59-9FA6-9E1669A573D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530063')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530063','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530063')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE id='17E60BE1-F547-4BB2-9D4C-4E2251E78FEA')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530063')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140531',NULL,'Larry','Z','Nall',NULL,NULL,'1999-05-18','Plainview',NULL,NULL,NULL,'236165','504C03FA-C6CD-45A6-930E-66F66416B846','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140531'));SET IDENTITY_INSERT edfi.Student 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'1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator','Perpetrator','Perpetrator',NULL,NULL,NULL,'2932E49D-A673-4BF1-A99E-391039AB1093','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1460'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + INSERT INTO EDFI.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100140531','867530063','8496','17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentDisciplineIncidentAssociation WHERE id='17E60BE1-F547-4BB2-9D4C-4E2251E78FEA')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'140','uri://ed-fi.org/BehaviorDescriptor','04','School Code of Conduct','School Code of Conduct',NULL,NULL,NULL,'FF2FE3B8-CC06-4F2A-8ABA-AEFDDF02D5FF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '140'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530069','Washington Middle School',NULL,NULL,'85127CE8-0EDA-43D2-A160-D853210EAB4A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530069')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530069','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530069')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530069','2012-05-25','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'40E49A94-FEE3-4395-8C9A-172B55B5EEAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530069')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530069','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530069' AND IncidentIdentifier='8496')); + --- + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530069','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530069' AND IncidentIdentifier='8496')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530069','2012-05-25','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'40E49A94-FEE3-4395-8C9A-172B55B5EEAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530069')); + + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530063','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530063' AND IncidentIdentifier='8496')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'6CC5AC8D-CB62-4FD4-A718-6E4D2D7C480E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530063')); + --- + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2012','530','Traditional-TestCase','2011-08-22','2011-12-20','82','7042C256-F4EA-4842-AF15-91B76B6692E8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-TestCase')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','56BA9AFF-86CB-4AB9-9488-DA0A5182EFFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-TestCase',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-TestCase')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','CF9365AF-90E6-4DDE-B398-F747922D6F0B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-TestCase','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-TestCase')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'9435E0F8-2286-45AA-BC27-1D0CF4B54DA6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-TestCase',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE id='9435E0F8-2286-45AA-BC27-1D0CF4B54DA6')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..94ebad44 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_StudentEarlyWarningFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + DateKey + varchar + + + IsInstructionalDay + int + + + IsEnrolled + int + + + IsPresentSchool + int + + + IsAbsentFromSchoolExcused + int + + + IsAbsentFromSchoolUnexcused + int + + + IsTardyToSchool + int + + + IsPresentHomeroom + int + + + IsAbsentFromHomeroomExcused + int + + + IsAbsentFromHomeroomUnexcused + int + + + IsTardyToHomeroom + int + + + IsPresentAnyClass + int + + + IsAbsentFromAnyClassExcused + int + + + IsAbsentFromAnyClassUnexcused + int + + + IsTardyToAnyClass + int + + + CountByDayOfStateOffenses + int + + + CountByDayOfConductOffenses + int + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_3/0000_StudentEarlyWarningFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_3/0000_StudentEarlyWarningFact_Data_Load.xml new file mode 100644 index 00000000..14dadc56 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_3/0000_StudentEarlyWarningFact_Data_Load.xml @@ -0,0 +1,781 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + MERGE INTO edfi.Descriptor as Target + USING (VALUES + ('775','http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','FullPrice'), + ('686','http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Instructional day'), + ('687','http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Make-up day'), + ('545','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Excused Absence'), + ('544','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence'), + ('547','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Tardy'), + ('546','http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','In Attendance'), + ('24','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Eleventh grade'), + ('535','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester'), + ('778','http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free'), + ('18','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other'), + ('13','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies'), + ('110','http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml','Limited'), + ('138','http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','State Offense'), + ('780','http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','Other'), + ('140','http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','School Code of Conduct'), + ('729','http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Withdrawn'), + ('726','http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Other'), + ('38','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Twelfth grade'), + ('683','http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Holiday'), + ('31','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Ninth grade'), + ('35','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Tenth grade'), + ('530','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester'), + ('2','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics'), + ('19','http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Fifth grade'), + ('10','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science'), + ('1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period'), + ('1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent'), + ('1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular'), + ('1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific'), + ('950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom'), + ('1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students'), + ('1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX'), + ('1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students'), + ('1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus'), + ('1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator'), + ('1233','uri://ed-fi.org/PopulationServedDescriptor','Special Education Students') + ) + AS Source(DescriptorId, Namespace, CodeValue) + ON Target.DescriptorId = Source.DescriptorId + WHEN NOT MATCHED BY TARGET + THEN INSERT + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, Id, + EffectiveBeginDate, EffectiveEndDate, LastModifiedDate, CreateDate) + VALUES + (Source.DescriptorId, Source.Namespace, Source.CodeValue, Source.CodeValue, Source.CodeValue, null, newid(), + '2000-01-01','3000-01-01', getdate(), getdate()) + OUTPUT $action, inserted.*; + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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'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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND Schoolyear=2011 and entrydate='2011-02-21')); + + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + 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.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-02' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-02','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-16','C71B7B6F-ACB0-46BE-A2CC-C98C0CC3CD58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-16' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-16','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-16' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-15','E7242123-3085-419C-8C1D-DC5738FC6AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-15' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-15','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-15' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-10','BE8BB56E-505C-4011-872F-B559E19351A6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-10' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-10','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-10' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530174','King Elementary School',NULL,NULL,'A0309A7C-26BD-4602-9F7C-6C83F1223CA2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530174')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530174','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530174')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530174_2012','867530174','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D494D8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2012' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2012-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38C16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2012-05-02' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2012-05-02','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530022_2012','867530022','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0D2CA3E8-D8D8-46D5-B952-C4144E7CE4E8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530022_2012' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2012-05-02','EDC5E2E9-0431-41CC-95E5-635657D166AA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2012-05-02' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2012-05-02','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + + 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 TOP 1'867530011','LENR31','English Iii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DE1F9933-2F1E-4C49-9F66-F664E9DAEA78','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= 'LENR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 TOP 1'LENR31','867530011','2012','English Iii (1 Unit)',NULL,'LENR31','867530011','24DA02E6-2081-4E2E-A399-BA382CAF82A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','206',NULL,NULL,'2CC51551-0168-4199-B043-6C04C431D2A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '206' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','LENR31','2012','1',NULL,NULL,'1.000','EF5AA153-B644-4A98-9147-4C58A56D99D4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4508','867530011','206','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '4508' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100071861',NULL,'Torrie','P','Marshall',NULL,NULL,'1994-06-04',NULL,NULL,NULL,NULL,'200488','914E3B59-86B4-4EC0-A738-CEE7732CE3CD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071861')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','A9ACCD38-5CBA-4C74-988B-0668782E65B0',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='A9ACCD38-5CBA-4C74-988B-0668782E65B0')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'545' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '545')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530062','Alvarado Middle School',NULL,NULL,'EC112FBA-E671-412E-9BC8-55C35B33B062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530062')); + + 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 TOP 1'867530062','LENR07','English Language Arts And Reading, Gr 7','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6D904BBE-E6BA-4AE1-904D-9C18A80387D2','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= 'LENR07' AND EducationOrganizationId= '867530062')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530062','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530062')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','4A397178-40A3-4191-8213-B15B80A422D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530062' 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 TOP 1'LENR07','867530062','2012','English Language Arts, Grade 7',NULL,'LENR07','867530062','A7291000-B3D9-4766-9DC9-75D9BCD64DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530062','114',NULL,NULL,'5AE1D163-1817-4052-A4E3-0CCD694DC436','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530062')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530062','LENR07','2012','1',NULL,NULL,'0.000','4F584355-8FDD-44BA-97A4-62E333B17CD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4396','867530062','114','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SectionIdentifier= '4396' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100075987',NULL,'Randall','K','Austin',NULL,NULL,'1998-06-12','Lubbock',NULL,NULL,NULL,'202218','F3E90F7F-90C3-41DE-B994-5C5A8810E123','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075987')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-02','LENR07','867530062','2012','4396','Traditional-Spring Semester','100075987','P-In school suspension',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F0972B54-4CCA-4587-9F06-2887D8CEAA8F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F0972B54-4CCA-4587-9F06-2887D8CEAA8F')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530011','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9D406716-D0E3-4500-BD8E-8CE6430F0979','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= 'YBIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530011','2012','Business Information Management',NULL,'YBIR11','867530011','FFED20B1-3098-44D2-9D2D-6163DFAFD8D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','107A',NULL,NULL,'A1EF9136-975E-4305-BE7E-5BBCA450CD9B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107A' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','YBIR11','2012','1',NULL,NULL,'1.000','1E52A342-9C5F-452B-BA82-F76FAA5A242E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18267','867530011','107A','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18267' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','YBIR11','867530011','2012','18267','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4FCC7D50-BAA7-4E84-8C81-27E476CE47D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='4FCC7D50-BAA7-4E84-8C81-27E476CE47D6')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + 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 TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','0AF2F009-3848-448C-8014-009FF62B826F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18938','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18938' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','QAGR40','867530011','2012','18938','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F')); + + 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 TOP 1'867530011','YAIR11','Interior Design','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C57FC015-E9B3-4CB4-802B-98BB0F357FC4','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= 'YAIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YAIR11','867530011','2012','Interior Design',NULL,'YAIR11','867530011','C2A55CE4-A256-47A0-83FD-5184DB3C4422','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','113',NULL,NULL,'6B10093E-5D61-4F94-9B3D-CD253FF9D9C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','YAIR11','2012','1',NULL,NULL,'1.000','58801B52-B52E-4412-908A-A5CB06F5D01B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19515','867530011','113','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19515' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','YAIR11','867530011','2012','19515','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5')); + + 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 TOP 1'867530011','YPNR11','Lifetime Nutrition and Wellness','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4B112C63-C7F2-4120-BCB2-4D0428DF8C84','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= 'YPNR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YPNR11','867530011','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530011','385B25B1-7A77-4978-AE9B-8CA5467E70D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','YPNR11','2012','1',NULL,NULL,'1.000','E7192AC8-433E-4E66-8315-16E89B1C86B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19524','867530011','113','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19524' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-02','YPNR11','867530011','2012','19524','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','CA33C9D4-276E-475A-AC47-08588DDC6429',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='CA33C9D4-276E-475A-AC47-08588DDC6429')); + + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530011','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'E9894DFF-6207-4F56-AA72-5AAC5D349144','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','8496','32845E12-8DF5-44BB-9326-9704CA374BEC','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='32845E12-8DF5-44BB-9326-9704CA374BEC')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'2706','867530011','2011-11-14','12:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'7876B001-D923-445C-8FD1-B060753EF16B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '2706' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2706','9E6C9BCA-FDE6-4A59-8625-25880A8B96EA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='9E6C9BCA-FDE6-4A59-8625-25880A8B96EA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100057336',NULL,'Thanh','C','Vasquez',NULL,NULL,'1992-06-03','Lubbock',NULL,NULL,NULL,'194792','D294ADC9-C71F-4534-963E-43D6DA1CBCCF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100057336')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','8496','64CBFCDC-D065-4875-99EF-EF1DFFB84DA0','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='64CBFCDC-D065-4875-99EF-EF1DFFB84DA0')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100057336','867530011','2706','CE4DAD6D-ED57-464D-8985-991C94270F5F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='CE4DAD6D-ED57-464D-8985-991C94270F5F')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530022','2011-12-05','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'5B747786-34BF-43E2-AF69-CB3E62BA515D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100014881',NULL,'Cecilia','D','Begay',NULL,NULL,'1989-06-05','Lubbock',NULL,NULL,NULL,'189889','989B461B-45DD-4947-B310-51229E2068FC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','1064','5B39FFB7-9441-4F0A-AA03-4C251295F4A3','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='5B39FFB7-9441-4F0A-AA03-4C251295F4A3')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'138' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '138')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530007 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=8496)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','8496','034543D8-1D92-4622-B636-8A542198E006','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011 AND IncidentIdentifier=8496)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'780' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '780')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1200','867530011','2011-10-11','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'A3A21A69-6C53-40AB-9B7E-0C97447BADE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1200' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1200','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier=1200)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1615','867530007','2011-10-12','00:00:00.0000000',NULL,NULL,'Washburn, Steven',NULL,NULL,NULL,NULL,'94DE1068-D3F7-4DA5-B7A1-87A7E20225F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1615' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','1615','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier=1615)); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1064','867530011','2011-10-03','08:00:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'C4695F83-08A8-42F1-984D-BCD37111C2E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 1064)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530022 AND IncidentIdentifier = 8496 AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530022')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 8496)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','8496','1B3C4FE4-8F1F-4921-A94A-70167E424862','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530022 AND IncidentIdentifier = 8496)); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'7485','867530011','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90991DB0-460C-421F-AB15-3228610D5B92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '7485' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530011','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = 7485)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','7485','9B398892-C4F6-446A-BE65-B0925B923A44','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530011 AND IncidentIdentifier = 7485)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'729' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100026948 AND SchoolId=867530023 AND EntryDate='2011-08-22')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-05-20','90C557E4-2D4F-4365-9E09-64FC3EED500C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-05-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'683' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '683')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-05-20','683','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2011-08-20','EDC7141A-C9C7-4CDF-BDD5-D2A83C89FE13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2011-08-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2011-08-20','683','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2011-08-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT TOP 1'726' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '726')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'600090441',NULL,'Jack','K','Harmine',NULL,NULL,'2001-04-03',NULL,NULL,NULL,NULL,'600090441','9B52A7B8-BE87-48D3-8B4D-EE5269029188','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '600090441')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'600090441','628530001',NULL,'2011-08-07','31',NULL,NULL,NULL,'2011-11-06','726',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8C391698-D64D-43AC-89DB-E4D56A365ED9','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=600090441 AND SchoolId=628530001 AND EntryDate='2011-08-07')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2012-02-21','24',NULL,NULL,NULL,'2013-02-21',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE04','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2013-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B36B3E0D-E46A-449E-AE9B-DF629912EB8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2013-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2011-02-21')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100014881 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022',NULL,'2012-02-21','24',NULL,NULL,NULL,'2013-02-21',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','A5BE92DB-EA7F-40CA-B61E-A31FB8835A92','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530022 AND EntryDate='2012-02-21')); + + 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 TOP 1'867530011','QENR11','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480B','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= 'QENR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'530' 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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18131','867530011','111','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18131' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10100494','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'5952EDA8-830B-42C4-B3ED-D52DB6931930','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18131','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931930')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','10100494','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F079','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-20' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-20','683','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2011-08-22','E962026B-6DE3-475B-8380-A3621AC45A06','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2011-08-22' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2011-08-22','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2011-08-22' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','T01','6ADE0EB1-1136-4DF4-8700-8B7DE99BA599','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName = 'T01' AND Schoolid = '867530022')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','105',NULL,NULL,'0572DE93-B143-4938-991D-34141DAAA4FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE SchoolId=867530022 and ClassroomIdentificationCode='105')); + + 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 TOP 1'867530022','QENR11','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4292064B-6416-47CE-A6BF-A9E48C257085','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= 'QENR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530022','2012','English I (1 Unit)',NULL,'QENR11','867530022','497496E4-0599-4451-9849-60FEB5C78DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1104',NULL,NULL,'AB49842C-6E32-4AEE-9A27-CEE1A9962BA4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1104' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','96B5B65C-85E0-46AF-824F-E08916B771AF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9622','867530022','1104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='96B5B65C-85E0-46AF-824F-E08916B771AF')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','QENR11','2012','1',NULL,NULL,'1.000','B1554264-310C-4683-9D9D-60CBBEA60AEE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','0',NULL,'1265CDAF-E98F-4B27-A276-96DF8A738F83','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F83')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2011','English I (1 Unit)',NULL,'QENR11','867530011','9C9371A3-5E01-4D30-BDFA-61E992148370','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'584B75F4-2A60-4B9A-B3FD-177049CF5086','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='584B75F4-2A60-4B9A-B3FD-177049CF5086')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100079802',NULL,'Luke','O','Johnston',NULL,NULL,'1996-07-18',NULL,NULL,NULL,NULL,'204030','5CE8E0EE-28FF-4ACB-836F-ABA7BE665A9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100079802')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011',NULL,'2012-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','39F3E4DB-CEDD-4662-B088-BDA6FEA350F7','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='39F3E4DB-CEDD-4662-B088-BDA6FEA350F7')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2012','2011-09-26','2011-11-28','1',NULL,'430E04C4-AC44-44EF-8ED2-A3CA0A05318B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='430E04C4-AC44-44EF-8ED2-A3CA0A05318B')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId = '867530011' AND SchoolYear = '2012' AND TermDescriptorId = '530')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='39066D32-88AA-4A9F-8285-CD6344BE405D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='95669A96-EFA6-4855-AF4B-E616288BF2A2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'8E3482C5-6FA7-4611-9E2E-E81E1EA290E2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8E3482C5-6FA7-4611-9E2E-E81E1EA290E2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'2C1F53CF-789F-4C50-B9BF-F46F3C785DDA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2C1F53CF-789F-4C50-B9BF-F46F3C785DDA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'1043A9EA-2AC5-467D-B557-48DF0C208417','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1043A9EA-2AC5-467D-B557-48DF0C208417')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530022','XSMP41','SEP MTH 4','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'80A9A802-64C3-410B-93FF-72ED72E19B8C','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= 'XSMP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','61E88EE1-69CE-451E-A7D6-37EC260A1710','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1405',NULL,NULL,'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1233' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1233')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','752D67A4-580D-43E2-B7F0-54DC4E2A6331','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','0946DADD-EAA1-40C4-B68A-A472165A4DCA',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='0946DADD-EAA1-40C4-B68A-A472165A4DCA')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9E86C992-EA0D-47BB-99F9-DC844BEDEE6E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9E86C992-EA0D-47BB-99F9-DC844BEDEE6E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','712E26B4-C6D8-4577-A4C2-04198D566307',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='712E26B4-C6D8-4577-A4C2-04198D566307')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5D3BEA60-F30E-4527-A3F7-C08F07594850',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5D3BEA60-F30E-4527-A3F7-C08F07594850')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-16','QENR11','867530011','2012','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EE7E75B4-F076-4C40-A124-35AD4830A0F8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EE7E75B4-F076-4C40-A124-35AD4830A0F8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E78E391A-6FFF-4217-804B-2F4761DF5F21',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E78E391A-6FFF-4217-804B-2F4761DF5F21')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B9',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7E819588-D81E-4D5F-B672-922A2D9F159A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='7E819588-D81E-4D5F-B672-922A2D9F159A')); + + 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 TOP 1'867530011','XLSK41','FUNCT COM SK 12','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0A3B72C8-24F5-4254-830D-5B0FB91C3B40','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= 'XLSK41' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLSK41','867530011','2012','FUNCT COM SK 12',NULL,'XLSK41','867530011','3342778F-F57A-425D-B0F3-4BE3D29327BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='FFE62040-17BF-499B-894B-4FAA55853BF9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','XLSK41','2012','2011-09-15','2011-09-15','1',NULL,'F958E086-C827-4D75-B41E-53288CE6B69A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='F958E086-C827-4D75-B41E-53288CE6B69A')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100070882',NULL,'Matthew',NULL,'Barnes',NULL,NULL,'1999-08-07',NULL,NULL,NULL,NULL,'200099','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A06BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174',NULL,'2011-08-22','19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D4C9405E-7C08-43FE-BDE9-1102EA64FD0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FD0E')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530174','2011-11-03','8BDAC34D-99EE-46F1-92A4-206F003FF4E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-03' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530174','2011-11-03','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530167','Mt. Gleason Elementary School',NULL,NULL,'64ACB96B-7081-4E4B-9CB2-C33134D9F255','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530167')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530167','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530167')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530167_2012','867530167','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','98E7F1CB-4567-40D8-95BA-2751BBA4E062',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530167_2012' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530167','2011-11-03','6DA040F0-4854-402A-8147-15941A60436C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530167_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530167_2012' AND Date= '2011-11-03' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530167','2011-11-03','686','Sep 18 2015 11:34AM','867530167_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530167 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530163','James Lick Elementary School',NULL,NULL,'1E86182B-6478-413D-9106-5DD842298B97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530163')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530163','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530163')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530163_2012','867530163','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0FF0BBBD-738C-4249-AA09-E374E8E8EC3B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530163_2012' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530163','2011-11-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530163_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530163_2012' AND Date= '2011-11-03' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530163','2011-11-03','686','Sep 18 2015 11:34AM','867530163_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530163 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530174','2012','530','Traditional','2011-08-22','2011-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810A54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','544',NULL,'2735F816-C327-47FA-AFC2-A03218661968','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=544)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','545','A-Parent contact','C4E41C67-4D6E-4923-909D-4E0518B79982','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=545)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'546' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '546')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','546','Excused','DBCB3701-03BB-45FE-9A28-F19C2E2228DF','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='DBCB3701-03BB-45FE-9A28-F19C2E2228DF')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100070882','867530174','2012','2011-11-03','547','Late','C07501E9-BC3C-4A5F-B8D6-20E23381D6F4','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C07501E9-BC3C-4A5F-B8D6-20E23381D6F4')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140270',NULL,'Melody','C','Reese',NULL,NULL,'2006-07-04','Lubbock',NULL,NULL,NULL,'235621','BFAD0CA4-9A97-4EF3-A505-D5AE651F215B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140270')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100140270','867530174','2012','2011-11-03','547',NULL,'020241AC-E9C4-473C-A6E4-97AD01A74140','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='020241AC-E9C4-473C-A6E4-97AD01A74140')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2012-05-20','545','Abs','2518F909-C36C-4A52-8560-AC1150AEC2B6','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='2518F909-C36C-4A52-8560-AC1150AEC2B6')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','2012','2012-05-20','544','Abs','246CD054-7DE4-4F38-AB4B-844B2DB52E27','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB52E27')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100079802','867530011','2012','2012-05-20','544','Abs','EC1B7463-89B1-41A3-BF5F-1544F1B37A34','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC1B7463-89B1-41A3-BF5F-1544F1B37A34')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2012-05-20','544','Abs','C15388A3-297B-4721-8F08-3D71BEE71B68','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C15388A3-297B-4721-8F08-3D71BEE71B68')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2012','2012-06-01','544','Abs','C6A8A994-C7B9-423F-9E59-C6F247712EBC','Jun 1 2012 12:00AM','Jun 1 2012 12:00AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C6A8A994-C7B9-423F-9E59-C6F247712EBC')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530167','2012','530','Traditional','2011-08-22','2011-12-20','82','087799AD-49F9-4C7D-AB36-3D7E5ADBB727','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530167' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100082146',NULL,'Bianca','B','Jessup',NULL,NULL,'2001-11-27',NULL,NULL,NULL,NULL,'204888','6384E2D4-EB0A-40FC-9E5C-1D36D5B36255','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082146')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100082146','867530167','2012','2011-11-03','547',NULL,'EC927F76-8441-4099-A95F-5E8D992BD9EA','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC927F76-8441-4099-A95F-5E8D992BD9EA')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530163','2012','530','Traditional','2011-08-22','2011-12-20','82','E0DFF2A5-0791-4176-B13D-FA4A64C1B523','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530163' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100091085',NULL,'Joe','M','Arribas',NULL,NULL,'2000-05-24','Lubbock',NULL,NULL,NULL,'209514','1F87B2A8-F667-4B84-AF8A-8223F4FF107D','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100091085')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT TOP 1'100091085','867530163','2012','2011-11-03','545','A-Absent excused','54D85A58-E0EC-41E5-AD99-028C6FBCC07A','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='54D85A58-E0EC-41E5-AD99-028C6FBCC07A')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3976C','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3976C')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='B07D591A-1EAB-497E-8570-188EF07323BA')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='5DE62337-788B-4F8A-9146-540E5FFC673F')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530022','B05','CD2D4337-E615-48EC-B873-D8D568668CDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='CD2D4337-E615-48EC-B873-D8D568668CDF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530022','2011-12-05','8D4193FE-07C8-4CD3-8A7D-B306A53F7A02','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2011-12-05' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530022','2011-12-05','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2011-12-05' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2011-11-03','2011-12-20','0',NULL,'9A91EAB2-7C14-486B-A87F-D402916864B6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9A91EAB2-7C14-486B-A87F-D402916864B6')); + + 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 TOP 1'867530022','XSTP41','VOC 4 SE','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'85D52DBF-B05B-447B-890C-16F06DA0864B','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= 'XSTP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSTP41','867530022','2012','BASIC VOC 12',NULL,'XSTP41','867530022','50921FB7-5DB0-41F5-8277-F1B0B35433A0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSTP41','2012','1',NULL,NULL,'1.000','5D20FD7D-4634-444B-AB77-4A57206BFC53','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14753','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14753' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSTP41','2012','2011-08-22','2011-12-20','1',NULL,'8559F681-F3A8-4AA5-A3BC-F2FB15565AE5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','14753','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8559F681-F3A8-4AA5-A3BC-F2FB15565AE5')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','B9DDDABF-3AEF-4505-A339-B3E4E7707895','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','XSMP41','2012','1',NULL,NULL,'1.000','A15ED7AA-EFD5-423D-B832-0D9FC1A92693','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100014881','867530022','XSMP41','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230731','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230731')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100041249','867530022','XSMP41','2012','2011-11-03','2011-12-20','1',NULL,'9E2F52C5-0CB7-48EC-B4EC-380786F97E02','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9E2F52C5-0CB7-48EC-B4EC-380786F97E02')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79AF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79AF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','AC4A45FC-0773-46FD-BA29-DE3267B75932',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='AC4A45FC-0773-46FD-BA29-DE3267B75932')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530022','SCMR31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7F1862F0-1B69-4F08-BAB2-390A38A9CFD3','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= 'SCMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'SCMR31','867530022','2012','Chemistry (1 Unit)',NULL,'SCMR31','867530022','D05298E6-2A89-4EE3-A5CA-5C2581E53B90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1501',NULL,NULL,'5688B86B-0341-4C9C-9241-99E976764BC3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1501' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','SCMR31','2012','1',NULL,NULL,'1.000','18E750EC-BD6E-4F42-B3CC-0BAFE41F2B13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11579','867530022','1501','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '11579' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6F149507-917C-45CA-832D-ED407B37920A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6F149507-917C-45CA-832D-ED407B37920A')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D4462F87-3340-43FD-B81C-E19CE2AA432E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D4462F87-3340-43FD-B81C-E19CE2AA432E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E661DC4E-D254-4718-A8A5-48D8F23BF469',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E661DC4E-D254-4718-A8A5-48D8F23BF469')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530022','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = 1064)); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530022','1064','443DCCE2-134C-4491-A1AA-E8FA2D10D8E8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='443DCCE2-134C-4491-A1AA-E8FA2D10D8E8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EBC735CD-0794-4EFD-A448-A35E3F730678',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EBC735CD-0794-4EFD-A448-A35E3F730678')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9865382E-F8AE-4756-AB9A-0B2C0ADBABA7',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9865382E-F8AE-4756-AB9A-0B2C0ADBABA7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','71ECE7A9-7240-43F5-8D02-2DEF36F563C3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='71ECE7A9-7240-43F5-8D02-2DEF36F563C3')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','124784BA-5674-4DBD-999C-87B143463EFF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='124784BA-5674-4DBD-999C-87B143463EFF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100055074','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6462C746-2EF3-4C16-9390-096DDB4228D5',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6462C746-2EF3-4C16-9390-096DDB4228D5')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2121-01-01','1AE131B4-559E-4695-AD14-C46D257B4994','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2121-01-01' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2121-01-01','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2121-01-01' = CalendarDateCalendarEvent.Date)); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2121-01-01','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D7D517D3-546E-494E-B170-E11EBE67C9D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D7D517D3-546E-494E-B170-E11EBE67C9D6')); + -- + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100039441',NULL,'Camille','C','Medeiros',NULL,NULL,'1993-07-05','Lubbock',NULL,NULL,NULL,'190237','C2739CC1-3A8E-491D-82DA-504732572C53','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039441'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100039441','867530022',2012,'2011-08-22','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','C58B7CBF-13C8-4F65-B6D7-8EFA0E881FAB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100039441 AND SchoolId=867530022 AND EntryDate='2011-08-22')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','EFFA17BD-8925-4416-BF4D-EAF677BD1D3B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR11','2012','1',NULL,NULL,'1.000','DA8F59D0-525C-4982-B3C0-9DAFBED1EB71','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','951','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '951' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'545','2012-05-04','ARTR11','867530022','2012','951','Traditional-Spring Semester','100039441','A-Parent contact',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F432A708-D253-4469-9188-278E8DDB431F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE ID='F432A708-D253-4469-9188-278E8DDB431F')); + + 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 TOP 1'867530022','ARTR21','Art Ii Drawing (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4DF03F19-E9FB-49B2-8AB2-523A98472D17','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= 'ARTR21' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR21','867530022','2012','Art Ii Drawing (1 Unit)',NULL,'ARTR21','867530022','92E309AE-9BE3-4865-878B-D8DAEC0252E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1003',NULL,NULL,'5A309B34-C117-4404-A737-EBB16D437E91','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1003' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR21','2012','1',NULL,NULL,'1.000','DFD881C1-93B2-46D2-89BF-58C37F447049','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','981-2','867530022','1003','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '981-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100039441','867530022','ARTR21','2012','2011-08-22','2011-08-29','0',NULL,'A545A93F-B1AC-4D0B-8475-7343F55BB8FB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','981-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE ID='A545A93F-B1AC-4D0B-8475-7343F55BB8FB')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'546','2012-05-02','ARTR21','867530022', 2012,'981-2','Traditional','100039441','',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9A17166E-6DAD-406E-B711-510F4D37CCAF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE ID='9A17166E-6DAD-406E-B711-510F4D37CCAF')); + ---20210914 + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530063','Anderson Middle School',NULL,NULL,'CE1E1BFE-9735-4C59-9FA6-9E1669A573D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530063')); + 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 TOP 1'867530063','ZADV07','Other Secondary Subject','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'555122C8-8DA1-4674-A489-6E1D631E9D08','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= 'ZADV07' AND EducationOrganizationId= '867530063')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530063','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530063')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530063','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','EA00E202-289F-4A8C-9A29-64976621EB75','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530063' 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 TOP 1'ZADV07','867530063','2012','Other Secondary Subject',NULL,'ZADV07','867530063','E7E0BAEA-9EB8-435B-9949-85772AE19C56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530063','110',NULL,NULL,'045F6E7E-B746-4ECE-A13B-1EB51891FA39','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '110' AND SchoolId= '867530063')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530063','ZADV07','2012','1',NULL,NULL,'0.000','D4CA7F0A-1DCC-4ED7-A97D-6BF21E5502F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','15766','867530063','110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SectionIdentifier= '15766' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140531',NULL,'Larry','Z','Nall',NULL,NULL,'1999-05-18','Plainview',NULL,NULL,NULL,'236165','504C03FA-C6CD-45A6-930E-66F66416B846','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140531'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO EDFI.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2012-05-25','ZADV07','867530063','2012','15766','Traditional-Spring Semester','100140531',NULL,NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','8A2068D8-EC7B-4A3A-8BE1-32B230587D3A',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAttendanceEvent WHERE ID='8A2068D8-EC7B-4A3A-8BE1-32B230587D3A')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100140531','867530063','ZADV07','2012','2012-01-19','2012-05-25','1',NULL,'1D27B1D6-995D-4D6D-B7B1-3AEBBE68EBA8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15766','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE ID='1D27B1D6-995D-4D6D-B7B1-3AEBBE68EBA8')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'34','uri://ed-fi.org/GradeLevelDescriptor','Seventh grade','Seventh grade','Seventh grade',NULL,NULL,NULL,'1102B6E1-10B1-4042-BA3C-923A9C9C5E51','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '34'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'34' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '34')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100140531','867530063',NULL,'2012-01-19','34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3669C0C2-3D03-4BC4-A324-70CA0400DF5E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE ID='3669C0C2-3D03-4BC4-A324-70CA0400DF5E')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530063_2012','867530063','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','30C85F0E-F2CD-465D-8085-FE6BFE97A5BB',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530063_2012' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530063','2012-05-25','AC0B089F-F304-4057-A817-FE30DAE96463','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530063_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530063_2012' AND Date= '2012-05-25' AND SchoolId= '867530063' AND 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530063','2012-05-25','686','Sep 18 2015 11:34AM','867530063_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530063' AND Date='2012-05-25')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530063','209',NULL,NULL,'E316DC00-F53F-48A6-8FCE-DCAC9379B0B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530063')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530063','ZADV07','2012','1',NULL,NULL,'0.000','2F7D75A7-32F6-4DC5-9401-79604E848369','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','15765','867530063','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SectionIdentifier= '15765' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100088895',NULL,'Phillip','E','Spratt',NULL,NULL,'1998-01-09','Lubbock',NULL,NULL,NULL,'208452','8C4B51A8-6ED7-492D-BBDA-DC06F5E082D5','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100088895'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO EDFI.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'547','2012-05-08','ZADV07','867530063','2012','15765','Traditional-Spring Semester','100088895',NULL,NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5AA202A2-9734-4B43-95D3-7E3E18553463',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAttendanceEvent WHERE ID='5AA202A2-9734-4B43-95D3-7E3E18553463')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100088895','867530063','ZADV07','2012','2012-01-04','2012-05-25','0',NULL,'09766AA1-8339-41FD-8FA9-F68DD5FA36D5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15765','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE ID='09766AA1-8339-41FD-8FA9-F68DD5FA36D5')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100088895','867530063',NULL,'2011-08-31','34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8E2DBB10-48D7-4976-9EBA-12A137C10E1F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE ID='8E2DBB10-48D7-4976-9EBA-12A137C10E1F')); + INSERT INTO EDFI.[DisciplineIncident](IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'7485','867530063','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'F504B00A-6397-46F9-B8F2-6A9931EDEC76','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.[DisciplineIncident] WHERE SchoolId='867530063' AND IncidentIdentifier='7485')); + INSERT INTO EDFI.[DisciplineIncidentBehavior](SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530063','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.[DisciplineIncidentBehavior] WHERE SchoolId='867530063' AND BehaviorDescriptorId='138' AND IncidentIdentifier='7485')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530063','2012-01-01','4790193B-CE45-4ACF-83CA-C02109112E8F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530063_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530063_2012' AND Date= '2012-01-01' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530063','2012-01-01','683','Sep 18 2015 11:34AM','867530063_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530063' AND Date='2012-01-01')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','6135CF5F-F037-4408-888B-D505B1C87128','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE id='6135CF5F-F037-4408-888B-D505B1C87128')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE id='70218923-F2A8-4E90-9143-40D2E899ED60')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530011','2012-05-25','37226510-C303-4194-8039-E0874521592B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-25' AND SchoolId= '867530011' AND 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530011','2012-05-25','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530011' AND Date='2012-05-25')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530007_2012','867530007','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','256935B4-9E6F-4687-8A4F-B150711A970E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530007_2012' AND SchoolId= '867530007' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530007','2012-05-25','5DA89319-FA44-4209-B62F-671D25B4C15D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530007_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530007_2012' AND Date= '2012-05-25' AND SchoolId= '867530007' AND SchoolYear= '2012')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530007','2012-05-25','686','Sep 18 2015 11:34AM','867530007_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530007' AND Date='2012-05-25')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus','On campus','On campus',NULL,NULL,NULL,'8E849C4A-5B64-456F-80C8-DB3D8F65687B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1049'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1133','867530007','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'892E5F88-25B2-437E-8D10-AFF5CC17D19D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1133' AND SchoolId= '867530007')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator','Perpetrator','Perpetrator',NULL,NULL,NULL,'2932E49D-A673-4BF1-A99E-391039AB1093','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1460'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + INSERT INTO EDFI.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007','1133','B713226A-545A-4A65-A03B-6A3C4A6F0C19','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentDisciplineIncidentAssociation WHERE id='B713226A-545A-4A65-A03B-6A3C4A6F0C19')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'1133','867530007','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'892E5F88-25B2-437E-8D10-AFF5CC17D19D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE id='892E5F88-25B2-437E-8D10-AFF5CC17D19D')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'140','uri://ed-fi.org/BehaviorDescriptor','04','School Code of Conduct','School Code of Conduct',NULL,NULL,NULL,'FF2FE3B8-CC06-4F2A-8ABA-AEFDDF02D5FF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '140'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530007','1133','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530007' AND IncidentIdentifier='1133')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus','On campus','On campus',NULL,NULL,NULL,'8E849C4A-5B64-456F-80C8-DB3D8F65687B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1049'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT TOP 1'1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530063','Anderson Middle School',NULL,NULL,'CE1E1BFE-9735-4C59-9FA6-9E1669A573D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530063')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530063','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530063')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE id='17E60BE1-F547-4BB2-9D4C-4E2251E78FEA')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530063')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100140531',NULL,'Larry','Z','Nall',NULL,NULL,'1999-05-18','Plainview',NULL,NULL,NULL,'236165','504C03FA-C6CD-45A6-930E-66F66416B846','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140531'));SET IDENTITY_INSERT edfi.Student 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'1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator','Perpetrator','Perpetrator',NULL,NULL,NULL,'2932E49D-A673-4BF1-A99E-391039AB1093','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1460'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT TOP 1'1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + INSERT INTO EDFI.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT TOP 1'100140531','867530063','8496','17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentDisciplineIncidentAssociation WHERE id='17E60BE1-F547-4BB2-9D4C-4E2251E78FEA')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'140','uri://ed-fi.org/BehaviorDescriptor','04','School Code of Conduct','School Code of Conduct',NULL,NULL,NULL,'FF2FE3B8-CC06-4F2A-8ABA-AEFDDF02D5FF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '140'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT TOP 1'140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530069','Washington Middle School',NULL,NULL,'85127CE8-0EDA-43D2-A160-D853210EAB4A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530069')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530069','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530069')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530069','2012-05-25','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'40E49A94-FEE3-4395-8C9A-172B55B5EEAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530069')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530069','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530069' AND IncidentIdentifier='8496')); + --- + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530069','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530069' AND IncidentIdentifier='8496')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530069','2012-05-25','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'40E49A94-FEE3-4395-8C9A-172B55B5EEAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530069')); + + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT TOP 1'867530063','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530063' AND IncidentIdentifier='8496')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT TOP 1'8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'6CC5AC8D-CB62-4FD4-A718-6E4D2D7C480E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530063')); + --- + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2012','530','Traditional-TestCase','2011-08-22','2011-12-20','82','7042C256-F4EA-4842-AF15-91B76B6692E8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-TestCase')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','56BA9AFF-86CB-4AB9-9488-DA0A5182EFFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-TestCase',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-TestCase')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR11','2012','1',NULL,NULL,'1.000','CF9365AF-90E6-4DDE-B398-F747922D6F0B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-TestCase','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-TestCase')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'9435E0F8-2286-45AA-BC27-1D0CF4B54DA6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-TestCase',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE id='9435E0F8-2286-45AA-BC27-1D0CF4B54DA6')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_3/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_3/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..94ebad44 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/MSSQL/v_3_3/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_StudentEarlyWarningFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + DateKey + varchar + + + IsInstructionalDay + int + + + IsEnrolled + int + + + IsPresentSchool + int + + + IsAbsentFromSchoolExcused + int + + + IsAbsentFromSchoolUnexcused + int + + + IsTardyToSchool + int + + + IsPresentHomeroom + int + + + IsAbsentFromHomeroomExcused + int + + + IsAbsentFromHomeroomUnexcused + int + + + IsTardyToHomeroom + int + + + IsPresentAnyClass + int + + + IsAbsentFromAnyClassExcused + int + + + IsAbsentFromAnyClassUnexcused + int + + + IsTardyToAnyClass + int + + + CountByDayOfStateOffenses + int + + + CountByDayOfConductOffenses + int + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_2/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_3/0000_StudentEarlyWarningFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_3/0000_StudentEarlyWarningFact_Data_Load.xml new file mode 100644 index 00000000..0c8bedfc --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_3/0000_StudentEarlyWarningFact_Data_Load.xml @@ -0,0 +1,774 @@ + + + Any + + WITH SOURCE (DescriptorId, Namespace, CodeValue) AS (VALUES + (775,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','FullPrice'), + (686,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Instructional day'), + (687,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Make-up day'), + (545,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Excused Absence'), + (544,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Unexcused Absence'), + (547,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','Tardy'), + (546,'http://www.ed-fi.org/Descriptor/AttendanceEventCategoryDescriptor.xml','In Attendance'), + (24,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Eleventh grade'), + (535,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester'), + (778,'http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free'), + (18,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other'), + (13,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies'), + (110,'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml','Limited'), + (138,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','State Offense'), + (780,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','Other'), + (140,'http://www.ed-fi.org/Descriptor/BehaviorDescriptor.xml','School Code of Conduct'), + (729,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Withdrawn'), + (726,'http://www.ed-fi.org/Descriptor/ExitWithdrawTypeDescriptor.xml','Other'), + (38,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Twelfth grade'), + (683,'http://www.ed-fi.org/Descriptor/CalendarEventDescriptor.xml','Holiday'), + (31,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Ninth grade'), + (35,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Tenth grade'), + (530,'http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester'), + (2,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics'), + (19,'http://www.ed-fi.org/Descriptor/GradeLevelDescriptor.xml','Fifth grade'), + (10,'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science'), + (1601,'uri://ed-fi.org/GradeTypeDescriptor','Grading Period'), + (1086,'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent'), + (1695,'uri://ed-fi.org/SchoolTypeDescriptor','Regular'), + (1148,'uri://ed-fi.org/CalendarTypeDescriptor','Student Specific'), + (950,'uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom'), + (1232,'uri://ed-fi.org/PopulationServedDescriptor','Regular Students'), + (1451,'uri://ed-fi.org/StateAbbreviationDescriptor','TX'), + (1225,'uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students'), + (1049,'uri://ed-fi.org/IncidentLocationDescriptor','On campus'), + (1460,'uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator'), + (1233,'uri://ed-fi.org/PopulationServedDescriptor','Special Education Students') + ) + INSERT INTO edfi.Descriptor (DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, Id, + EffectiveBeginDate, EffectiveEndDate, LastModifiedDate, CreateDate) + SELECT Source.DescriptorId, Source.Namespace, Source.CodeValue, Source.CodeValue, Source.CodeValue, null, gen_random_uuid(), + '2000-01-01','3000-01-01', Now(), Now() FROM SOURCE + ON CONFLICT DO NOTHING; + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND Schoolyear=2011 and entrydate='2011-02-21')); + + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT '1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-02','E7D710ED-BEDB-4532-9C60-7D645F280D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-02' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-02','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-16','C71B7B6F-ACB0-46BE-A2CC-C98C0CC3CD58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-16' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-16','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-16' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-15','E7242123-3085-419C-8C1D-DC5738FC6AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-15' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-15','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-15' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-10','BE8BB56E-505C-4011-872F-B559E19351A6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-10' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-10','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-10' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530174','King Elementary School',NULL,NULL,'A0309A7C-26BD-4602-9F7C-6C83F1223CA2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530174')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530174','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530174')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530174_2012','867530174','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','9A2A1288-EFCA-468E-8BF1-39D705D494D8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530174_2012' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530174','2012-05-02','1F7200AA-5B96-4A79-B97E-F9DF7BD38C16','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2012-05-02' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530174','2012-05-02','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530022_2012','867530022','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0D2CA3E8-D8D8-46D5-B952-C4144E7CE4E8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530022_2012' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530022','2012-05-02','EDC5E2E9-0431-41CC-95E5-635657D166AA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2012-05-02' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530022','2012-05-02','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2012-05-02' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + + 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 '867530011','LENR31','English Iii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DE1F9933-2F1E-4C49-9F66-F664E9DAEA78','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= 'LENR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 'LENR31','867530011','2012','English Iii (1 Unit)',NULL,'LENR31','867530011','24DA02E6-2081-4E2E-A399-BA382CAF82A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','206',NULL,NULL,'2CC51551-0168-4199-B043-6C04C431D2A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '206' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','LENR31','2012','1',NULL,NULL,'1.000','EF5AA153-B644-4A98-9147-4C58A56D99D4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4508','867530011','206','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '4508' AND SessionName= 'Traditional-Spring Semester')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100071861',NULL,'Torrie','P','Marshall',NULL,NULL,'1994-06-04',NULL,NULL,NULL,NULL,'200488','914E3B59-86B4-4EC0-A738-CEE7732CE3CD','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100071861')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-02','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','A9ACCD38-5CBA-4C74-988B-0668782E65B0',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='A9ACCD38-5CBA-4C74-988B-0668782E65B0')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '545' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '545')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530062','Alvarado Middle School',NULL,NULL,'EC112FBA-E671-412E-9BC8-55C35B33B062','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530062')); + + 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 '867530062','LENR07','English Language Arts And Reading, Gr 7','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6D904BBE-E6BA-4AE1-904D-9C18A80387D2','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= 'LENR07' AND EducationOrganizationId= '867530062')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530062','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530062')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530062','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','4A397178-40A3-4191-8213-B15B80A422D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530062' 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 'LENR07','867530062','2012','English Language Arts, Grade 7',NULL,'LENR07','867530062','A7291000-B3D9-4766-9DC9-75D9BCD64DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530062','114',NULL,NULL,'5AE1D163-1817-4052-A4E3-0CCD694DC436','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '114' AND SchoolId= '867530062')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530062','LENR07','2012','1',NULL,NULL,'0.000','4F584355-8FDD-44BA-97A4-62E333B17CD2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4396','867530062','114','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR07' AND SchoolId= '867530062' AND SchoolYear= '2012' AND SectionIdentifier= '4396' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100075987',NULL,'Randall','K','Austin',NULL,NULL,'1998-06-12','Lubbock',NULL,NULL,NULL,'202218','F3E90F7F-90C3-41DE-B994-5C5A8810E123','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100075987')); + + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-02','LENR07','867530062','2012','4396','Traditional-Spring Semester','100075987','P-In school suspension',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F0972B54-4CCA-4587-9F06-2887D8CEAA8F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F0972B54-4CCA-4587-9F06-2887D8CEAA8F')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 '867530011','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9D406716-D0E3-4500-BD8E-8CE6430F0979','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= 'YBIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YBIR11','867530011','2012','Business Information Management',NULL,'YBIR11','867530011','FFED20B1-3098-44D2-9D2D-6163DFAFD8D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','107A',NULL,NULL,'A1EF9136-975E-4305-BE7E-5BBCA450CD9B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107A' AND SchoolId= '867530011')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','YBIR11','2012','1',NULL,NULL,'1.000','1E52A342-9C5F-452B-BA82-F76FAA5A242E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18267','867530011','107A','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18267' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-02','YBIR11','867530011','2012','18267','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4FCC7D50-BAA7-4E84-8C81-27E476CE47D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='4FCC7D50-BAA7-4E84-8C81-27E476CE47D6')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + 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 '867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'0.500','0AF2F009-3848-448C-8014-009FF62B826F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18938','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18938' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-02','QAGR40','867530011','2012','18938','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5797D8D7-E2F6-40AB-8EA5-AD10A94AC41F')); + + 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 '867530011','YAIR11','Interior Design','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C57FC015-E9B3-4CB4-802B-98BB0F357FC4','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= 'YAIR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YAIR11','867530011','2012','Interior Design',NULL,'YAIR11','867530011','C2A55CE4-A256-47A0-83FD-5184DB3C4422','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','113',NULL,NULL,'6B10093E-5D61-4F94-9B3D-CD253FF9D9C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '113' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','YAIR11','2012','1',NULL,NULL,'1.000','58801B52-B52E-4412-908A-A5CB06F5D01B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19515','867530011','113','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YAIR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19515' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-02','YAIR11','867530011','2012','19515','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='01A9302D-B08A-47CB-B4A1-DE67BEBEEBF5')); + + 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 '867530011','YPNR11','Lifetime Nutrition and Wellness','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4B112C63-C7F2-4120-BCB2-4D0428DF8C84','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= 'YPNR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YPNR11','867530011','2012','Lifetime Nutrition and Wellness',NULL,'YPNR11','867530011','385B25B1-7A77-4978-AE9B-8CA5467E70D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','YPNR11','2012','1',NULL,NULL,'1.000','E7192AC8-433E-4E66-8315-16E89B1C86B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19524','867530011','113','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YPNR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '19524' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-02','YPNR11','867530011','2012','19524','Traditional-Spring Semester','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','CA33C9D4-276E-475A-AC47-08588DDC6429',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='CA33C9D4-276E-475A-AC47-08588DDC6429')); + + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT '1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530011','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'E9894DFF-6207-4F56-AA72-5AAC5D349144','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT '1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530011','8496','32845E12-8DF5-44BB-9326-9704CA374BEC','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='32845E12-8DF5-44BB-9326-9704CA374BEC')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '2706','867530011','2011-11-14','12:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'7876B001-D923-445C-8FD1-B060753EF16B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '2706' AND SchoolId= '867530011')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530011','2706','9E6C9BCA-FDE6-4A59-8625-25880A8B96EA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='9E6C9BCA-FDE6-4A59-8625-25880A8B96EA')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100057336',NULL,'Thanh','C','Vasquez',NULL,NULL,'1992-06-03','Lubbock',NULL,NULL,NULL,'194792','D294ADC9-C71F-4534-963E-43D6DA1CBCCF','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100057336')); + + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100057336','867530011','8496','64CBFCDC-D065-4875-99EF-EF1DFFB84DA0','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='64CBFCDC-D065-4875-99EF-EF1DFFB84DA0')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100057336','867530011','2706','CE4DAD6D-ED57-464D-8985-991C94270F5F','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='CE4DAD6D-ED57-464D-8985-991C94270F5F')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1064','867530022','2011-12-05','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'5B747786-34BF-43E2-AF69-CB3E62BA515D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530022')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100014881',NULL,'Cecilia','D','Begay',NULL,NULL,'1989-06-05','Lubbock',NULL,NULL,NULL,'189889','989B461B-45DD-4947-B310-51229E2068FC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100014881','867530022','1064','5B39FFB7-9441-4F0A-AA03-4C251295F4A3','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='5B39FFB7-9441-4F0A-AA03-4C251295F4A3')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '138' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '138')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier='8496')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530007 AND IncidentIdentifier = '8496' AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530007','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'99CE6943-E77F-4643-87A5-55CFF0267BE2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530007','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier='8496')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '10100494','867530011','8496','034543D8-1D92-4622-B636-8A542198E006','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011 AND IncidentIdentifier='8496')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '780' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '780')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1200','867530011','2011-10-11','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'A3A21A69-6C53-40AB-9B7E-0C97447BADE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1200' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','1200','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530011 AND IncidentIdentifier='1200')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1615','867530007','2011-10-12','00:00:00.0000000',NULL,NULL,'Washburn, Steven',NULL,NULL,NULL,NULL,'94DE1068-D3F7-4DA5-B7A1-87A7E20225F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1615' AND SchoolId= '867530007')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530007','1615','780',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE SchoolId=867530007 AND IncidentIdentifier='1615')); + + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1064','867530011','2011-10-03','08:00:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'C4695F83-08A8-42F1-984D-BCD37111C2E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1064' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = '1064')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE SchoolId = 867530022 AND IncidentIdentifier = '8496' AND IncidentDate = '2012-05-02')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530022','2012-05-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90CF91AE-4ACC-46D0-A177-8A59BB8959C4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530022')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530022','8496','138','Aggravated Robbery','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = '8496')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530022','8496','1B3C4FE4-8F1F-4921-A94A-70167E424862','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530022 AND IncidentIdentifier = '8496')); + + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '7485','867530011','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'90991DB0-460C-421F-AB15-3228610D5B92','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '7485' AND SchoolId= '867530011')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530011','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530011 AND incidentidentifier = '7485')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530011','7485','9B398892-C4F6-446A-BE65-B0925B923A44','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE StudentUSI = 100055074 AND SchoolId = 867530011 AND IncidentIdentifier = '7485')); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT '729' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100026948 AND SchoolId=867530023 AND EntryDate='2011-08-22')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2012-05-20','90C557E4-2D4F-4365-9E09-64FC3EED500C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-05-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '683' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '683')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2012-05-20','683','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2011-08-20','EDC7141A-C9C7-4CDF-BDD5-D2A83C89FE13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2011-08-20' AND SchoolId= '867530023' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2011-08-20','683','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530023 AND '2011-08-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId)(SELECT '726' WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '726')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE 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.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '600090441',NULL,'Jack','K','Harmine',NULL,NULL,'2001-04-03',NULL,NULL,NULL,NULL,'600090441','9B52A7B8-BE87-48D3-8B4D-EE5269029188','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '600090441')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '600090441','628530001',NULL,'2011-08-07','31',NULL,NULL,NULL,'2011-11-06','726',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8C391698-D64D-43AC-89DB-E4D56A365ED9','May 2 2016 2:05PM','May 2 2016 2:05PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=600090441 AND SchoolId=628530001 AND EntryDate='2011-08-07')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2012','2012-02-21','24',NULL,NULL,NULL,'2013-02-21',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','41E71353-5B2D-40FC-9DB3-BC58AF23CE04','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2012-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2012','2013-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B36B3E0D-E46A-449E-AE9B-DF629912EB8D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2013-02-21')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530011 AND EntryDate='2011-02-21')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100014881 AND SchoolId=867530011)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530022',NULL,'2012-02-21','24',NULL,NULL,NULL,'2013-02-21',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','A5BE92DB-EA7F-40CA-B61E-A31FB8835A92','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100055074 AND SchoolId=867530022 AND EntryDate='2012-02-21')); + + 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 '867530011','QENR11','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D5A69065-FD06-4F65-AF26-CEEE0BBF480B','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= 'QENR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','111',NULL,NULL,'958A23F1-0099-4FD7-AACC-420C5BF2937C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '111' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2012','1',NULL,NULL,'1.000','71677A9A-31C7-4139-BDDF-8D73B9B6355C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18131','867530011','111','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18131' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10100494','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'5952EDA8-830B-42C4-B3ED-D52DB6931930','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18131','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='5952EDA8-830B-42C4-B3ED-D52DB6931930')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','105',NULL,NULL,'AEA986DF-4A45-4DFB-B92D-815F7EBDFDBE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '105' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2012','1',NULL,NULL,'1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','QENR11','867530011','2012','9561','Traditional','10100494','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='F3BF5DE9-8A5A-4D51-AC5A-0DFD55EB0256')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-20','CC92A7E5-DDAC-47D8-8C46-AD148A91F079','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-20' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-20','683','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2012-05-20' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2011-08-22','E962026B-6DE3-475B-8380-A3621AC45A06','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2011-08-22' AND SchoolId= '867530011' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2011-08-22','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2011-08-22' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530022','T01','6ADE0EB1-1136-4DF4-8700-8B7DE99BA599','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName = 'T01' AND Schoolid = '867530022')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','105',NULL,NULL,'0572DE93-B143-4938-991D-34141DAAA4FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE SchoolId=867530022 and ClassroomIdentificationCode='105')); + + 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 '867530022','QENR11','English I (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4292064B-6416-47CE-A6BF-A9E48C257085','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= 'QENR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530022','2012','English I (1 Unit)',NULL,'QENR11','867530022','497496E4-0599-4451-9849-60FEB5C78DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1104',NULL,NULL,'AB49842C-6E32-4AEE-9A27-CEE1A9962BA4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1104' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','QENR11','2012','1',NULL,NULL,'1.000','96B5B65C-85E0-46AF-824F-E08916B771AF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9622','867530022','1104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='96B5B65C-85E0-46AF-824F-E08916B771AF')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','QENR11','2012','1',NULL,NULL,'1.000','B1554264-310C-4683-9D9D-60CBBEA60AEE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100055074','867530022','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='6F8C69FA-9EB8-4C43-A2E0-3F4F16106E12')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','0',NULL,'1265CDAF-E98F-4B27-A276-96DF8A738F83','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1265CDAF-E98F-4B27-A276-96DF8A738F83')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530011','2011','English I (1 Unit)',NULL,'QENR11','867530011','9C9371A3-5E01-4D30-BDFA-61E992148370','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100055074','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'584B75F4-2A60-4B9A-B3FD-177049CF5086','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='584B75F4-2A60-4B9A-B3FD-177049CF5086')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100079802',NULL,'Luke','O','Johnston',NULL,NULL,'1996-07-18',NULL,NULL,NULL,NULL,'204030','5CE8E0EE-28FF-4ACB-836F-ABA7BE665A9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100079802')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100079802','867530011',NULL,'2012-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','39F3E4DB-CEDD-4662-B088-BDA6FEA350F7','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='39F3E4DB-CEDD-4662-B088-BDA6FEA350F7')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100079802','867530011','QENR11','2012','2011-09-26','2011-11-28','1',NULL,'430E04C4-AC44-44EF-8ED2-A3CA0A05318B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='430E04C4-AC44-44EF-8ED2-A3CA0A05318B')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId = '867530011' AND SchoolYear = '2012' AND TermDescriptorId = '530')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','39066D32-88AA-4A9F-8285-CD6344BE405D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id='39066D32-88AA-4A9F-8285-CD6344BE405D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2012','1',NULL,NULL,'1.000','5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='5CA25F52-D7D4-478D-B7F8-9DC9E3E9CE80')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2011','1',NULL,NULL,'1.000','95669A96-EFA6-4855-AF4B-E616288BF2A2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='95669A96-EFA6-4855-AF4B-E616288BF2A2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100079802','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'8E3482C5-6FA7-4611-9E2E-E81E1EA290E2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8E3482C5-6FA7-4611-9E2E-E81E1EA290E2')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530011','QENR11','2011','2011-09-15','2011-09-15','1',NULL,'2C1F53CF-789F-4C50-B9BF-F46F3C785DDA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2C1F53CF-789F-4C50-B9BF-F46F3C785DDA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'1043A9EA-2AC5-467D-B557-48DF0C208417','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1043A9EA-2AC5-467D-B557-48DF0C208417')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 '867530022','XSMP41','SEP MTH 4','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'80A9A802-64C3-410B-93FF-72ED72E19B8C','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= 'XSMP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','61E88EE1-69CE-451E-A7D6-37EC260A1710','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1405',NULL,NULL,'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1233' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1233')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','XSMP41','2012','1',NULL,NULL,'1.000','752D67A4-580D-43E2-B7F0-54DC4E2A6331','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','0946DADD-EAA1-40C4-B68A-A472165A4DCA',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='0946DADD-EAA1-40C4-B68A-A472165A4DCA')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9E86C992-EA0D-47BB-99F9-DC844BEDEE6E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9E86C992-EA0D-47BB-99F9-DC844BEDEE6E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','712E26B4-C6D8-4577-A4C2-04198D566307',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='712E26B4-C6D8-4577-A4C2-04198D566307')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100079802','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='1A9EF91A-ABCD-4F1B-8B02-2A560BE1A8CE')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-02-05','QENR11','867530011','2011','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5D3BEA60-F30E-4527-A3F7-C08F07594850',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='5D3BEA60-F30E-4527-A3F7-C08F07594850')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-16','QENR11','867530011','2012','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EE7E75B4-F076-4C40-A124-35AD4830A0F8',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EE7E75B4-F076-4C40-A124-35AD4830A0F8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E78E391A-6FFF-4217-804B-2F4761DF5F21',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E78E391A-6FFF-4217-804B-2F4761DF5F21')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-20','QENR11','867530022','2012','9561','Traditional','100055074','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','428E8DD5-127F-476C-8DF8-91A3F72AC9B9',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='428E8DD5-127F-476C-8DF8-91A3F72AC9B9')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100079802','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7E819588-D81E-4D5F-B672-922A2D9F159A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='7E819588-D81E-4D5F-B672-922A2D9F159A')); + + 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 '867530011','XLSK41','FUNCT COM SK 12','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0A3B72C8-24F5-4254-830D-5B0FB91C3B40','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= 'XLSK41' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLSK41','867530011','2012','FUNCT COM SK 12',NULL,'XLSK41','867530011','3342778F-F57A-425D-B0F3-4BE3D29327BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='FFE62040-17BF-499B-894B-4FAA55853BF9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','XLSK41','2012','1',NULL,NULL,'0.000','FFE62040-17BF-499B-894B-4FAA55853BF9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLSK41' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100055074','867530011','XLSK41','2012','2011-09-15','2011-09-15','1',NULL,'F958E086-C827-4D75-B41E-53288CE6B69A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='F958E086-C827-4D75-B41E-53288CE6B69A')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '19' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '19')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100070882',NULL,'Matthew',NULL,'Barnes',NULL,NULL,'1999-08-07',NULL,NULL,NULL,NULL,'200099','75E7B8A6-0ABA-48C9-9F6A-1EB80A8A06BA','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100070882')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100070882','867530174',NULL,'2011-08-22','19',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D4C9405E-7C08-43FE-BDE9-1102EA64FD0E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='D4C9405E-7C08-43FE-BDE9-1102EA64FD0E')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530174','2011-11-03','8BDAC34D-99EE-46F1-92A4-206F003FF4E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530174_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530174_2012' AND Date= '2011-11-03' AND SchoolId= '867530174' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530174','2011-11-03','686','Sep 18 2015 11:34AM','867530174_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530174 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530167','Mt. Gleason Elementary School',NULL,NULL,'64ACB96B-7081-4E4B-9CB2-C33134D9F255','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530167')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530167','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530167')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530167_2012','867530167','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','98E7F1CB-4567-40D8-95BA-2751BBA4E062',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530167_2012' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530167','2011-11-03','6DA040F0-4854-402A-8147-15941A60436C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530167_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530167_2012' AND Date= '2011-11-03' AND SchoolId= '867530167' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530167','2011-11-03','686','Sep 18 2015 11:34AM','867530167_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530167 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530163','James Lick Elementary School',NULL,NULL,'1E86182B-6478-413D-9106-5DD842298B97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530163')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530163','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530163')); + + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530163_2012','867530163','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','0FF0BBBD-738C-4249-AA09-E374E8E8EC3B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530163_2012' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530163','2011-11-03','CD1275BE-4758-48B7-90C4-55D2A50FB0C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530163_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530163_2012' AND Date= '2011-11-03' AND SchoolId= '867530163' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530163','2011-11-03','686','Sep 18 2015 11:34AM','867530163_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530163 AND '2011-11-03' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530174','2012','530','Traditional','2011-08-22','2011-12-20','82','E1DD1C3F-58E1-4A5F-82F4-D10894810A54','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530174' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','544',NULL,'2735F816-C327-47FA-AFC2-A03218661968','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=544)); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','545','A-Parent contact','C4E41C67-4D6E-4923-909D-4E0518B79982','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE StudentUSI=100070882 AND SchoolId=867530174 AND EventDate='2011-11-03' AND AttendanceEventCategoryDescriptorId=545)); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '546' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '546')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','546','Excused','DBCB3701-03BB-45FE-9A28-F19C2E2228DF','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='DBCB3701-03BB-45FE-9A28-F19C2E2228DF')); + + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100070882','867530174','2012','2011-11-03','547','Late','C07501E9-BC3C-4A5F-B8D6-20E23381D6F4','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C07501E9-BC3C-4A5F-B8D6-20E23381D6F4')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100140270',NULL,'Melody','C','Reese',NULL,NULL,'2006-07-04','Lubbock',NULL,NULL,NULL,'235621','BFAD0CA4-9A97-4EF3-A505-D5AE651F215B','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140270')); + + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100140270','867530174','2012','2011-11-03','547',NULL,'020241AC-E9C4-473C-A6E4-97AD01A74140','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='020241AC-E9C4-473C-A6E4-97AD01A74140')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100055074','867530011','2012','2012-05-20','545','Abs','2518F909-C36C-4A52-8560-AC1150AEC2B6','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='2518F909-C36C-4A52-8560-AC1150AEC2B6')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100055074','867530022','2012','2012-05-20','544','Abs','246CD054-7DE4-4F38-AB4B-844B2DB52E27','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='246CD054-7DE4-4F38-AB4B-844B2DB52E27')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100079802','867530011','2012','2012-05-20','544','Abs','EC1B7463-89B1-41A3-BF5F-1544F1B37A34','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC1B7463-89B1-41A3-BF5F-1544F1B37A34')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100055074','867530011','2011','2012-05-20','544','Abs','C15388A3-297B-4721-8F08-3D71BEE71B68','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C15388A3-297B-4721-8F08-3D71BEE71B68')); + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100055074','867530011','2012','2012-06-01','544','Abs','C6A8A994-C7B9-423F-9E59-C6F247712EBC','Jun 1 2012 12:00AM','Jun 1 2012 12:00AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='C6A8A994-C7B9-423F-9E59-C6F247712EBC')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530167','2012','530','Traditional','2011-08-22','2011-12-20','82','087799AD-49F9-4C7D-AB36-3D7E5ADBB727','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530167' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100082146',NULL,'Bianca','B','Jessup',NULL,NULL,'2001-11-27',NULL,NULL,NULL,NULL,'204888','6384E2D4-EB0A-40FC-9E5C-1D36D5B36255','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100082146')); + + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100082146','867530167','2012','2011-11-03','547',NULL,'EC927F76-8441-4099-A95F-5E8D992BD9EA','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='EC927F76-8441-4099-A95F-5E8D992BD9EA')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530163','2012','530','Traditional','2011-08-22','2011-12-20','82','E0DFF2A5-0791-4176-B13D-FA4A64C1B523','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530163' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100091085',NULL,'Joe','M','Arribas',NULL,NULL,'2000-05-24','Lubbock',NULL,NULL,NULL,'209514','1F87B2A8-F667-4B84-AF8A-8223F4FF107D','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100091085')); + + + INSERT INTO edfi.StudentSchoolAttendanceEvent(StudentUSI,SchoolId,SchoolYear,EventDate,AttendanceEventCategoryDescriptorId,AttendanceEventReason,Id,LastModifiedDate,CreateDate,EventDuration,SessionName,EducationalEnvironmentDescriptorId,Discriminator)(SELECT '100091085','867530163','2012','2011-11-03','545','A-Absent excused','54D85A58-E0EC-41E5-AD99-028C6FBCC07A','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM',NULL,'Traditional',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAttendanceEvent WHERE id='54D85A58-E0EC-41E5-AD99-028C6FBCC07A')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100014881','867530022',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E3976C','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='AEA4CD3C-ECD8-428B-AE72-F48F60E3976C')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100014881','867530011',NULL,'2011-10-01','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'631','2013','B07D591A-1EAB-497E-8570-188EF07323BA','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='B07D591A-1EAB-497E-8570-188EF07323BA')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100041249',NULL,'Melinda','Q','Oconner',NULL,NULL,'1993-06-02','Lockney',NULL,NULL,NULL,'190421','33D214B1-7954-4F41-B6B2-EFBFAE12FF54','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100041249')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100041249','867530022',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','5DE62337-788B-4F8A-9146-540E5FFC673F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='5DE62337-788B-4F8A-9146-540E5FFC673F')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530022','B05','CD2D4337-E615-48EC-B873-D8D568668CDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id='CD2D4337-E615-48EC-B873-D8D568668CDF')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530022','2011-12-05','8D4193FE-07C8-4CD3-8A7D-B306A53F7A02','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530022_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530022_2012' AND Date= '2011-12-05' AND SchoolId= '867530022' AND SchoolYear= '2012')); + + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530022','2011-12-05','686','Sep 18 2015 11:34AM','867530022_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530022 AND '2011-12-05' = CalendarDateCalendarEvent.Date)); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530022','XSMP41','2012','2011-11-03','2011-12-20','0',NULL,'9A91EAB2-7C14-486B-A87F-D402916864B6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9A91EAB2-7C14-486B-A87F-D402916864B6')); + + 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 '867530022','XSTP41','VOC 4 SE','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'85D52DBF-B05B-447B-890C-16F06DA0864B','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= 'XSTP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSTP41','867530022','2012','BASIC VOC 12',NULL,'XSTP41','867530022','50921FB7-5DB0-41F5-8277-F1B0B35433A0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','XSTP41','2012','1',NULL,NULL,'1.000','5D20FD7D-4634-444B-AB77-4A57206BFC53','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14753','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSTP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14753' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530022','XSTP41','2012','2011-08-22','2011-12-20','1',NULL,'8559F681-F3A8-4AA5-A3BC-F2FB15565AE5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','14753','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8559F681-F3A8-4AA5-A3BC-F2FB15565AE5')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 'XSMP41','867530022','2012','BASIC MATH 12',NULL,'XSMP41','867530022','B9DDDABF-3AEF-4505-A339-B3E4E7707895','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','XSMP41','2012','1',NULL,NULL,'1.000','A15ED7AA-EFD5-423D-B832-0D9FC1A92693','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','19463','867530022','1405','1233',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSMP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '19463' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100014881','867530022','XSMP41','2012','2012-01-04','2012-05-25','0',NULL,'7C5EBDDB-5E95-4131-A40A-7DB837230731','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7C5EBDDB-5E95-4131-A40A-7DB837230731')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100041249','867530022','XSMP41','2012','2011-11-03','2011-12-20','1',NULL,'9E2F52C5-0CB7-48EC-B4EC-380786F97E02','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','19463','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='9E2F52C5-0CB7-48EC-B4EC-380786F97E02')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '546','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','02F5A602-4A65-4C4F-A8B9-137A6E8A79AF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='02F5A602-4A65-4C4F-A8B9-137A6E8A79AF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='ACDF4EC0-2B2C-46C6-8C88-B3BEF7227515')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2011-12-05','XSMP41','867530022','2012','19463','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','AC4A45FC-0773-46FD-BA29-DE3267B75932',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='AC4A45FC-0773-46FD-BA29-DE3267B75932')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 '867530022','SCMR31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7F1862F0-1B69-4F08-BAB2-390A38A9CFD3','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= 'SCMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'SCMR31','867530022','2012','Chemistry (1 Unit)',NULL,'SCMR31','867530022','D05298E6-2A89-4EE3-A5CA-5C2581E53B90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1501',NULL,NULL,'5688B86B-0341-4C9C-9241-99E976764BC3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1501' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','SCMR31','2012','1',NULL,NULL,'1.000','18E750EC-BD6E-4F42-B3CC-0BAFE41F2B13','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11579','867530022','1501','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '11579' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6F149507-917C-45CA-832D-ED407B37920A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6F149507-917C-45CA-832D-ED407B37920A')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D4462F87-3340-43FD-B81C-E19CE2AA432E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D4462F87-3340-43FD-B81C-E19CE2AA432E')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2011-12-05','SCMR31','867530022','2012','11579','Traditional','100041249','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','E661DC4E-D254-4718-A8A5-48D8F23BF469',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='E661DC4E-D254-4718-A8A5-48D8F23BF469')); + + INSERT INTO edfi.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530022','1064','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncidentBehavior WHERE DisciplineIncidentBehavior.SchoolId = 867530022 AND incidentidentifier = '1064')); + + INSERT INTO edfi.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100055074','867530022','1064','443DCCE2-134C-4491-A1AA-E8FA2D10D8E8','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentDisciplineIncidentAssociation WHERE id='443DCCE2-134C-4491-A1AA-E8FA2D10D8E8')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '546','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Tardy',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','EBC735CD-0794-4EFD-A448-A35E3F730678',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='EBC735CD-0794-4EFD-A448-A35E3F730678')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9865382E-F8AE-4756-AB9A-0B2C0ADBABA7',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='9865382E-F8AE-4756-AB9A-0B2C0ADBABA7')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Parent-note',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','71ECE7A9-7240-43F5-8D02-2DEF36F563C3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='71ECE7A9-7240-43F5-8D02-2DEF36F563C3')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2011-12-05','XSTP41','867530022','2012','14753','Traditional','100014881','Late',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','124784BA-5674-4DBD-999C-87B143463EFF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='124784BA-5674-4DBD-999C-87B143463EFF')); + + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-20','QENR11','867530011','2012','9561','Traditional','100055074','Excused Absence',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6462C746-2EF3-4C16-9390-096DDB4228D5',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='6462C746-2EF3-4C16-9390-096DDB4228D5')); + + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2121-01-01','1AE131B4-559E-4695-AD14-C46D257B4994','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2121-01-01' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2121-01-01','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE SchoolId = 867530011 AND '2121-01-01' = CalendarDateCalendarEvent.Date)); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2121-01-01','LENR31','867530011','2012','4508','Traditional-Spring Semester','100071861','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','D7D517D3-546E-494E-B170-E11EBE67C9D6',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE id='D7D517D3-546E-494E-B170-E11EBE67C9D6')); + -- + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100039441',NULL,'Camille','C','Medeiros',NULL,NULL,'1993-07-05','Lubbock',NULL,NULL,NULL,'190237','C2739CC1-3A8E-491D-82DA-504732572C53','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039441')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100039441','867530022',2012,'2011-08-22','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','C58B7CBF-13C8-4F65-B6D7-8EFA0E881FAB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100039441 AND SchoolId=867530022 AND EntryDate='2011-08-22')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 '867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','EFFA17BD-8925-4416-BF4D-EAF677BD1D3B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','ARTR11','2012','1',NULL,NULL,'1.000','DA8F59D0-525C-4982-B3C0-9DAFBED1EB71','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','951','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '951' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '545','2012-05-04','ARTR11','867530022','2012','951','Traditional-Spring Semester','100039441','A-Parent contact',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','F432A708-D253-4469-9188-278E8DDB431F',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE ID='F432A708-D253-4469-9188-278E8DDB431F')); + + 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 '867530022','ARTR21','Art Ii Drawing (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'4DF03F19-E9FB-49B2-8AB2-523A98472D17','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= 'ARTR21' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ARTR21','867530022','2012','Art Ii Drawing (1 Unit)',NULL,'ARTR21','867530022','92E309AE-9BE3-4865-878B-D8DAEC0252E9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1003',NULL,NULL,'5A309B34-C117-4404-A737-EBB16D437E91','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1003' AND SchoolId= '867530022')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','ARTR21','2012','1',NULL,NULL,'1.000','DFD881C1-93B2-46D2-89BF-58C37F447049','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','981-2','867530022','1003','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '981-2' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100039441','867530022','ARTR21','2012','2011-08-22','2011-08-29','0',NULL,'A545A93F-B1AC-4D0B-8475-7343F55BB8FB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','981-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE ID='A545A93F-B1AC-4D0B-8475-7343F55BB8FB')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '546','2012-05-02','ARTR21','867530022', 2012,'981-2','Traditional','100039441','',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9A17166E-6DAD-406E-B711-510F4D37CCAF',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE ID='9A17166E-6DAD-406E-B711-510F4D37CCAF')); + ---20210914 + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '547' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '547')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '18','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530063','Anderson Middle School',NULL,NULL,'CE1E1BFE-9735-4C59-9FA6-9E1669A573D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530063')); + 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 '867530063','ZADV07','Other Secondary Subject','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'555122C8-8DA1-4674-A489-6E1D631E9D08','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= 'ZADV07' AND EducationOrganizationId= '867530063')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530063','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530063')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530063','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','EA00E202-289F-4A8C-9A29-64976621EB75','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530063' 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 'ZADV07','867530063','2012','Other Secondary Subject',NULL,'ZADV07','867530063','E7E0BAEA-9EB8-435B-9949-85772AE19C56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530063','110',NULL,NULL,'045F6E7E-B746-4ECE-A13B-1EB51891FA39','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '110' AND SchoolId= '867530063')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530063','ZADV07','2012','1',NULL,NULL,'0.000','D4CA7F0A-1DCC-4ED7-A97D-6BF21E5502F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','15766','867530063','110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SectionIdentifier= '15766' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100140531',NULL,'Larry','Z','Nall',NULL,NULL,'1999-05-18','Plainview',NULL,NULL,NULL,'236165','504C03FA-C6CD-45A6-930E-66F66416B846','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140531')); + INSERT INTO EDFI.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2012-05-25','ZADV07','867530063','2012','15766','Traditional-Spring Semester','100140531',NULL,NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','8A2068D8-EC7B-4A3A-8BE1-32B230587D3A',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAttendanceEvent WHERE ID='8A2068D8-EC7B-4A3A-8BE1-32B230587D3A')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100140531','867530063','ZADV07','2012','2012-01-19','2012-05-25','1',NULL,'1D27B1D6-995D-4D6D-B7B1-3AEBBE68EBA8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15766','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE ID='1D27B1D6-995D-4D6D-B7B1-3AEBBE68EBA8')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '34','uri://ed-fi.org/GradeLevelDescriptor','Seventh grade','Seventh grade','Seventh grade',NULL,NULL,NULL,'1102B6E1-10B1-4042-BA3C-923A9C9C5E51','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '34')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '34' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '34')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100140531','867530063',NULL,'2012-01-19','34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3669C0C2-3D03-4BC4-A324-70CA0400DF5E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE ID='3669C0C2-3D03-4BC4-A324-70CA0400DF5E')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT '1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530063_2012','867530063','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','30C85F0E-F2CD-465D-8085-FE6BFE97A5BB',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530063_2012' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530063','2012-05-25','AC0B089F-F304-4057-A817-FE30DAE96463','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530063_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530063_2012' AND Date= '2012-05-25' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530063','2012-05-25','686','Sep 18 2015 11:34AM','867530063_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530063' AND Date='2012-05-25')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530063','209',NULL,NULL,'E316DC00-F53F-48A6-8FCE-DCAC9379B0B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530063')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530063','ZADV07','2012','1',NULL,NULL,'0.000','2F7D75A7-32F6-4DC5-9401-79604E848369','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','15765','867530063','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ZADV07' AND SchoolId= '867530063' AND SchoolYear= '2012' AND SectionIdentifier= '15765' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100088895',NULL,'Phillip','E','Spratt',NULL,NULL,'1998-01-09','Lubbock',NULL,NULL,NULL,'208452','8C4B51A8-6ED7-492D-BBDA-DC06F5E082D5','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100088895')); + INSERT INTO EDFI.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '547','2012-05-08','ZADV07','867530063','2012','15765','Traditional-Spring Semester','100088895',NULL,NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','5AA202A2-9734-4B43-95D3-7E3E18553463',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAttendanceEvent WHERE ID='5AA202A2-9734-4B43-95D3-7E3E18553463')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100088895','867530063','ZADV07','2012','2012-01-04','2012-05-25','0',NULL,'09766AA1-8339-41FD-8FA9-F68DD5FA36D5','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15765','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE ID='09766AA1-8339-41FD-8FA9-F68DD5FA36D5')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100088895','867530063',NULL,'2011-08-31','34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8E2DBB10-48D7-4976-9EBA-12A137C10E1F','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE ID='8E2DBB10-48D7-4976-9EBA-12A137C10E1F')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '7485','867530063','2012-04-02','11:30:00.0000000',NULL,NULL,'Holmes, Duke',NULL,NULL,NULL,NULL,'F504B00A-6397-46F9-B8F2-6A9931EDEC76','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE SchoolId='867530063' AND IncidentIdentifier='7485')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530063','7485','138','Aggravated Assault of a Teacher','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530063' AND BehaviorDescriptorId='138' AND IncidentIdentifier='7485')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530063','2012-01-01','4790193B-CE45-4ACF-83CA-C02109112E8F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530063_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530063_2012' AND Date= '2012-01-01' AND SchoolId= '867530063' AND SchoolYear= '2012')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530063','2012-01-01','683','Sep 18 2015 11:34AM','867530063_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530063' AND Date='2012-01-01')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100005230','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','6135CF5F-F037-4408-888B-D505B1C87128','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE id='6135CF5F-F037-4408-888B-D505B1C87128')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO EDFI.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSchoolAssociation WHERE id='70218923-F2A8-4E90-9143-40D2E899ED60')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT '1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','CB6D8BBA-6841-4F10-87C4-49D0B107157A',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530011_2012' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530011','2012-05-25','37226510-C303-4194-8039-E0874521592B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530011_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530011_2012' AND Date= '2012-05-25' AND SchoolId= '867530011' AND SchoolYear= '2012')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530011','2012-05-25','686','Sep 18 2015 11:34AM','867530011_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530011' AND Date='2012-05-25')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530007_2012','867530007','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','256935B4-9E6F-4687-8A4F-B150711A970E',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530007_2012' AND SchoolId= '867530007' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530007','2012-05-25','5DA89319-FA44-4209-B62F-671D25B4C15D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530007_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530007_2012' AND Date= '2012-05-25' AND SchoolId= '867530007' AND SchoolYear= '2012')); + INSERT INTO EDFI.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530007','2012-05-25','686','Sep 18 2015 11:34AM','867530007_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM EDFI.CalendarDateCalendarEvent WHERE SchoolId='867530007' AND Date='2012-05-25')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus','On campus','On campus',NULL,NULL,NULL,'8E849C4A-5B64-456F-80C8-DB3D8F65687B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1049')); + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT '1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1133','867530007','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'892E5F88-25B2-437E-8D10-AFF5CC17D19D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '1133' AND SchoolId= '867530007')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator','Perpetrator','Perpetrator',NULL,NULL,NULL,'2932E49D-A673-4BF1-A99E-391039AB1093','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1460')); + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT '1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + INSERT INTO EDFI.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100005230','867530007','1133','B713226A-545A-4A65-A03B-6A3C4A6F0C19','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentDisciplineIncidentAssociation WHERE id='B713226A-545A-4A65-A03B-6A3C4A6F0C19')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '1133','867530007','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'892E5F88-25B2-437E-8D10-AFF5CC17D19D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE id='892E5F88-25B2-437E-8D10-AFF5CC17D19D')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '140','uri://ed-fi.org/BehaviorDescriptor','04','School Code of Conduct','School Code of Conduct',NULL,NULL,NULL,'FF2FE3B8-CC06-4F2A-8ABA-AEFDDF02D5FF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '140')); + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530007','1133','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530007' AND IncidentIdentifier='1133')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1049','uri://ed-fi.org/IncidentLocationDescriptor','On campus','On campus','On campus',NULL,NULL,NULL,'8E849C4A-5B64-456F-80C8-DB3D8F65687B','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1049')); + INSERT INTO edfi.IncidentLocationDescriptor(IncidentLocationDescriptorId)(SELECT '1049' WHERE NOT EXISTS(SELECT 1 FROM edfi.IncidentLocationDescriptor WHERE IncidentLocationDescriptorId= '1049')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530063','Anderson Middle School',NULL,NULL,'CE1E1BFE-9735-4C59-9FA6-9E1669A573D2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530063')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530063','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530063')); + INSERT INTO EDFI.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncident WHERE id='17E60BE1-F547-4BB2-9D4C-4E2251E78FEA')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Valensuela, Javier',NULL,NULL,NULL,NULL,'17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530063')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100140531',NULL,'Larry','Z','Nall',NULL,NULL,'1999-05-18','Plainview',NULL,NULL,NULL,'236165','504C03FA-C6CD-45A6-930E-66F66416B846','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100140531')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1460','uri://ed-fi.org/StudentParticipationCodeDescriptor','Perpetrator','Perpetrator','Perpetrator',NULL,NULL,NULL,'2932E49D-A673-4BF1-A99E-391039AB1093','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1460')); + INSERT INTO edfi.StudentParticipationCodeDescriptor(StudentParticipationCodeDescriptorId)(SELECT '1460' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentParticipationCodeDescriptor WHERE StudentParticipationCodeDescriptorId= '1460')); + INSERT INTO EDFI.StudentDisciplineIncidentAssociation(StudentUSI,SchoolId,IncidentIdentifier,Id,LastModifiedDate,CreateDate,StudentParticipationCodeDescriptorId,Discriminator)(SELECT '100140531','867530063','8496','17E60BE1-F547-4BB2-9D4C-4E2251E78FEA','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM','1460',NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentDisciplineIncidentAssociation WHERE id='17E60BE1-F547-4BB2-9D4C-4E2251E78FEA')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '140','uri://ed-fi.org/BehaviorDescriptor','04','School Code of Conduct','School Code of Conduct',NULL,NULL,NULL,'FF2FE3B8-CC06-4F2A-8ABA-AEFDDF02D5FF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '140')); + INSERT INTO edfi.BehaviorDescriptor(BehaviorDescriptorId)(SELECT '140' WHERE NOT EXISTS(SELECT 1 FROM edfi.BehaviorDescriptor WHERE BehaviorDescriptorId= '140')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530069','Washington Middle School',NULL,NULL,'85127CE8-0EDA-43D2-A160-D853210EAB4A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530069')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530069','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530069')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530069','2012-05-25','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'40E49A94-FEE3-4395-8C9A-172B55B5EEAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530069')); + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530069','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530069' AND IncidentIdentifier='8496')); + --- + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530069','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530069' AND IncidentIdentifier='8496')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530069','2012-05-25','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'40E49A94-FEE3-4395-8C9A-172B55B5EEAF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530069')); + + INSERT INTO EDFI.DisciplineIncidentBehavior(SchoolId,IncidentIdentifier,BehaviorDescriptorId,BehaviorDetailedDescription,CreateDate)(SELECT '867530063','8496','140',NULL,'Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM EDFI.DisciplineIncidentBehavior WHERE SchoolId='867530063' AND IncidentIdentifier='8496')); + INSERT INTO edfi.DisciplineIncident(IncidentIdentifier,SchoolId,IncidentDate,IncidentTime,IncidentDescription,ReporterDescriptionDescriptorId,ReporterName,ReportedToLawEnforcement,CaseNumber,IncidentCost,StaffUSI,Id,LastModifiedDate,CreateDate,IncidentLocationDescriptorId,Discriminator)(SELECT '8496','867530063','2012-05-02','00:00:00.0000000',NULL,NULL,'Loafman, Casey',NULL,NULL,NULL,NULL,'6CC5AC8D-CB62-4FD4-A718-6E4D2D7C480E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1049',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineIncident WHERE IncidentIdentifier= '8496' AND SchoolId= '867530063')); + --- + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','2012','530','Traditional-TestCase','2011-08-22','2011-12-20','82','7042C256-F4EA-4842-AF15-91B76B6692E8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-TestCase')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR11','867530011','2012','English I (1 Unit)',NULL,'QENR11','867530011','56BA9AFF-86CB-4AB9-9488-DA0A5182EFFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-TestCase',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-TestCase')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR11','2012','1',NULL,NULL,'1.000','CF9365AF-90E6-4DDE-B398-F747922D6F0B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-TestCase','9561','867530011','105','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9561' AND SessionName= 'Traditional-TestCase')); + INSERT INTO EDFI.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100055074','867530011','QENR11','2012','2011-09-15','2011-09-15','1',NULL,'9435E0F8-2286-45AA-BC27-1D0CF4B54DA6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9561','Traditional-TestCase',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM EDFI.StudentSectionAssociation WHERE id='9435E0F8-2286-45AA-BC27-1D0CF4B54DA6')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_3/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_3/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..ae109b5d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentEarlyWarningFact/PostgreSQL/v_3_3/0001_StudentEarlyWarningFact_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_studentearlywarningfact' + ORDER BY ORDINAL_POSITION ASC; + + + studentkey + character varying + + + schoolkey + character varying + + + datekey + text + + + isinstructionalday + integer + + + isenrolled + integer + + + ispresentschool + integer + + + isabsentfromschoolexcused + integer + + + isabsentfromschoolunexcused + integer + + + istardytoschool + integer + + + ispresenthomeroom + integer + + + isabsentfromhomeroomexcused + integer + + + isabsentfromhomeroomunexcused + integer + + + istardytohomeroom + integer + + + ispresentanyclass + integer + + + isabsentfromanyclassexcused + integer + + + isabsentfromanyclassunexcused + integer + + + istardytoanyclass + integer + + + countbydayofstateoffenses + integer + + + countbydayofconductoffenses + integer + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/0001_StudentHistoryDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_1/0001_StudentHistoryDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/0001_StudentHistoryDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_1/0001_StudentHistoryDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_2/0000_StudentHistoryDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_2/0000_StudentHistoryDim_Data_Load.xml new file mode 100644 index 00000000..18ff3102 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_2/0000_StudentHistoryDim_Data_Load.xml @@ -0,0 +1,204 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE Descriptorid='38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorid='38')); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO EDFI.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1604' WHERE NOT EXISTS(SELECT 1 FROM EDFI.GradeTypeDescriptor WHERE GradeTypeDescriptorId=1604)); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + 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 TOP 1'867530023','SCMH31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E0381191-1874-432C-97FA-BFBB7124BE28','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= 'SCMH31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530023','2012','530','Traditional','2011-08-22','2011-12-20','82','9DA05239-8B99-4071-A52D-0C9CEB4BC72C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'SCMH31','867530023','2012','Chemistry (1 Unit)',NULL,'SCMH31','867530023','2E4E2F15-D901-439A-9D4B-B1AEB5B80906','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','165',NULL,NULL,'048BAC48-3095-4378-925E-9C1CF91A242F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '165' AND SchoolId= '867530023')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','SCMH31','2012','1',NULL,NULL,'1.000','F01BB0FC-02E1-4EB3-BD7F-D2E76A52462C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11537','867530023','165','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '11537' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100124678',NULL,'Monica','P','Wentz',NULL,NULL,'1996-05-25',NULL,NULL,NULL,NULL,'224082','D3755F56-2871-488C-B702-94D975167CFB','Nov 19 2020 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100124678'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-09-08','SCMH31','867530023','2012','11537','Traditional','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','651C1114-B17E-441F-940F-85821DA64A65',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2011-09-08' AND LocalCourseCode='SCMH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='11537' AND SessionName='Traditional' AND StudentUSI='100124678')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + INSERT INTO edfi.studentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023',NULL,'2011-08-22','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','0FE563CD-986F-41D3-9EB3-2D5D1469F9D2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.studentSchoolAssociation WHERE StudentUSI='100124678' and SchoolId='867530023')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + 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 TOP 1'867530023','TWHH11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9197A725-A3C6-443B-8DC8-94D58E4607D4','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= 'TWHH11' AND EducationOrganizationId= '867530023')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530023','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','E3814792-1715-4BE4-8948-0D73CB1E0156','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530023' 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 TOP 1'TWHH11','867530023','2012','World History Studies (1 Unit)',NULL,'TWHH11','867530023','77DF1842-335A-403E-AD25-5633921AFD2C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','227',NULL,NULL,'21CE9308-582E-4EBB-B04C-9178E9ED1B1C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '227' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','TWHH11','2012','1',NULL,NULL,'1.000','FEB7B3DD-9E01-4CE7-A0B3-15ACE0A8D647','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','13111','867530023','227','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '13111' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-02-15','TWHH11','867530023','2012','13111','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2C555018-188D-4EB3-93C5-A47209884C21',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-02-15' AND LocalCourseCode='TWHH11' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='13111' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530023','NCMR21','Music Ii Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'89FB05D0-751C-4DE2-87F4-8EA5D3617397','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= 'NCMR21' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'NCMR21','867530023','2012','Music Ii Choir (1 Unit)',NULL,'NCMR21','867530023','20B8F62E-5C44-4159-9A5A-E33625647F8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','104',NULL,NULL,'250E2CE9-FA7F-47BD-B0A1-F4FD09D4E638','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '104' AND SchoolId= '867530023')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','NCMR21','2012','1',NULL,NULL,'1.000','5BFF74A5-A1B1-44A8-9F9A-E13426A92CCB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','7370','867530023','104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '7370' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-02-15','NCMR21','867530023','2012','7370','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','C266C8BC-1424-4E59-8817-0D455F0AB977',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-02-15' AND LocalCourseCode='NCMR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='7370' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + 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 TOP 1'867530023','FSAH31','Lang O/T Eng Lvl Iii (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8939C6DD-A499-4EB9-BDEA-CAFD0B3D8BB0','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= 'FSAH31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSAH31','867530023','2012','Lang O/T Eng Lvl Iii (1 Unit) - Spanish',NULL,'FSAH31','867530023','4BDB654A-C95F-49C6-8E76-A0705C7EB563','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','160',NULL,NULL,'AA55B884-37EC-4881-A450-89434FE2C3E3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '160' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','FSAH31','2012','1',NULL,NULL,'1.000','77971411-3933-4F2B-94B0-93E5904E825F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','3174','867530023','160','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-02-15','FSAH31','867530023','2012','3174','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ED6A698F-0B3D-4DE1-B6CF-35EE737D3507',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-02-15' AND LocalCourseCode='FSAH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='3174' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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 TOP 1'867530023','LJOR21','Journalism (1/2-1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8F8F6FBF-306B-49EC-8447-55B00B2E9BB7','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= 'LJOR21' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LJOR21','867530023','2012','Journalism (1/2-1 Unit)',NULL,'LJOR21','867530023','1036C89C-DE74-4482-9294-78E15936D324','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LJOR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','137',NULL,NULL,'F2167865-C0DF-4295-803B-1819119D77EF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '137' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','LJOR21','2012','1',NULL,NULL,'1.000','E0814A0F-8925-44CC-8C24-FCA7244D28AE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4892','867530023','137','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LJOR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '4892' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-01-30','LJOR21','867530023','2012','4892','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6741EFC0-ADBF-479A-AD8E-D41B6CB35FC3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-01-30' AND LocalCourseCode='LJOR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='4892' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-01-30','9A7F548D-F465-480B-909D-C19CD61E7210','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-01-30' AND SchoolId= '867530023' AND 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-01-30','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-01-30')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-02-09','D9A529E9-923A-49D4-8A79-A7A397B39846','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-02-09' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-02-09','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-02-09')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-02-15','1CF3436B-CC0F-4EB9-8C8E-B14B1C061AB5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-02-15' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-02-15','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-02-15')); + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'31','AttendanceEvent.Absence','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '31'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'31','544','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=31 and DescriptorId=544)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545'));SET IDENTITY_INSERT edfi.Descriptor OFF; + /*INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'31','545','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=31 and DescriptorId=545)); + SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'12','AttendanceEvent.ExcusedAbsence','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '12'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'12','545','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=12 and DescriptorId=545)); + SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'13','AttendanceEvent.UnexcusedAbsence','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '13'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'13','544','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=13 and DescriptorId=544)); + */SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'14','AttendanceEvent.Tardy','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '14'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'14','547','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=14 and DescriptorId=547)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'546','uri://ed-fi.org/AttendanceEventCategoryDescriptor','In Attendance','In Attendance','In Attendance',NULL,NULL,NULL,'850CEF64-657F-4D41-9CD1-0495CC3314DE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '546'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'15','AttendanceEvent.Present','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '15'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'15','546','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=15 and DescriptorId=546)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'16','CalendarEvent.InstructionalDay','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '16'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'16','687','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=16 and DescriptorId=687)); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'16','686','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=16 and DescriptorId=686)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=686));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'683','uri://ed-fi.org/CalendarEventDescriptor','Holiday','Holiday','Holiday',NULL,NULL,NULL,'CD8737F9-EAB9-4154-82EE-EEA007B9F3EA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=683));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','TWHH11','2012','2012-01-04','2012-05-25','1',NULL,'B522CEA7-5C0F-419E-8A35-F20C659A4B2D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','13111','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='TWHH11' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='13111' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','NCMR21','2012','2012-01-04','2012-05-25','0',NULL,'9EC9FD78-E0D7-41A3-9043-38612B3BCCFB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7370','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='NCMR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='7370' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','FSAH31','2012','2012-01-04','2012-05-25','0',NULL,'0BDA9200-6E73-405B-B00B-97640DDCA11A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','3174','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='FSAH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='3174' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','LJOR21','2012','2012-01-04','2012-05-25','0',NULL,'6BA039D3-85E8-42ED-8F13-CA6A53D6F054','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4892','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='LJOR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='4892' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + + --- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1601' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1601')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'54','uri://ed-fi.org/GradingPeriodDescriptor','First Six Weeks','First Six Weeks','First Six Weeks',NULL,NULL,NULL,'ABE1098D-9723-48ED-AA29-BEF3E458FC5E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '54'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'54' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '54')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530023','2011-08-22','29','2011-09-30','1','1ACF5F77-DEC0-46DA-BA7B-575C3610FAA7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSAH31','867530023','2012','Lang O/T Eng Lvl Iii (1 Unit) - Spanish',NULL,'FSAH31','867530023','8F645457-78F7-41AA-90A5-1880679DFFD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','FSAH31','2012','1',NULL,NULL,'1.000','51F98B20-4C96-4FA2-AB29-70BDB7802DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3174','867530023','160','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','FSAH31','2012','2011-08-22','2011-12-20','0',NULL,'412E744F-4CA5-41D4-AC59-AA865C17006D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','3174','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional' AND StudentUSI= '100124678')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100124678','867530023','FSAH31','2012','2011-08-22','B','82.00',NULL,'B79642B7-56ED-4B58-8927-B6664B526165','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='B79642B7-56ED-4B58-8927-B6664B526165')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'63','uri://ed-fi.org/GradingPeriodDescriptor','Second Six Weeks','Second Six Weeks','Second Six Weeks',NULL,NULL,NULL,'B98A3A8D-DF4E-4FA7-8FFC-97B0765C96F0','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '63'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'63' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '63')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'63','867530023','2011-10-03','24','2011-11-04','1','753CB326-51B2-4455-889D-E2F309FF4944','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '63' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'63','100124678','867530023','FSAH31','2012','2011-08-22','B','82.00',NULL,'E6B22BCA-4D4D-4327-A209-C45F7F8DF0B3','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='E6B22BCA-4D4D-4327-A209-C45F7F8DF0B3')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'68','uri://ed-fi.org/GradingPeriodDescriptor','Third Six Weeks','Third Six Weeks','Third Six Weeks',NULL,NULL,NULL,'326969AF-C028-4817-B590-D0B1A074E54C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '68'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'68' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '68')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'68','867530023','2011-11-07','29','2011-12-20','1','566374B5-4FE6-485D-93A2-34287FE970F3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '68' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'68','100124678','867530023','FSAH31','2012','2011-08-22','C','76.00',NULL,'59D37DF5-1D0B-45AC-84F0-0461A2E64984','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='59D37DF5-1D0B-45AC-84F0-0461A2E64984')); + -- + -- SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'32','GradeType.Semester','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=32));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'33','GradeType.Final','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=33));SET IDENTITY_INSERT analytics_config.DescriptorConstant 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'1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'32','GradeType.Semester','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '32'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'32','1604','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=32 AND DescriptorId=1604)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1600','uri://ed-fi.org/GradeTypeDescriptor','Final','Final','Final',NULL,NULL,NULL,'4F208B5F-040E-4D49-AB1C-505D9C553E67','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1600'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'33','GradeType.Final','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '33'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'33','1600','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=33 AND DescriptorId=1600)); + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'19','GradeType.GradingPeriod','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=19));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'19','GradeType.GradingPeriod','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '19'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'19','1601','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=19 AND DescriptorId=1601)); + + -- + 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 TOP 1'867530023','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AE93C897-C8C4-40DF-A9DD-F5182C68A29B','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= 'AJFR31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'AJFR31','867530023','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530023','C63BC648-1820-4834-AE8C-53FA2F448A80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','259',NULL,NULL,'6468D4DD-4334-46CA-BF55-01352088688F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '259' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','AJFR31','2012','1',NULL,NULL,'1.000','28CC4A0C-49D3-45D7-B69C-8920FDD332F2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','26','867530023','259','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063353',NULL,'Trinidad','O','Mcclinton',NULL,NULL,'1994-11-21',NULL,NULL,NULL,NULL,'197174','D3CF66BD-409A-4A7E-ABCF-77E368AC3662','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063353'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100063353','867530023','AJFR31','2012','2011-08-22','2011-12-20','0',NULL,'F3DC8F2A-BDCB-4EDF-AE12-CD79BCAE49AC','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','26','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional' AND StudentUSI= '100063353')); + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100063353','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'C4634B11-1406-4751-A47F-FDB48883A6F5','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE id='C4634B11-1406-4751-A47F-FDB48883A6F5')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063159',NULL,'Paxton','D','Sampson',NULL,NULL,'1994-06-11',NULL,NULL,NULL,NULL,'197049','38904548-2D8F-4DB3-9662-E0070DB1B4CC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063159'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100063159','867530023','AJFR31','2012','2011-08-22','2011-12-20','0',NULL,'529DEE61-E878-4DCF-8352-063364388ADF','Sep 18 2020 11:47AM','Sep 18 2015 11:47AM','26','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional' AND StudentUSI= '100063159')); + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100063159','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'BF763E09-3392-4177-B31B-FFE29CE6AC14','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE id='BF763E09-3392-4177-B31B-FFE29CE6AC14')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063159','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','EB335C5F-19AF-4971-831D-273C21BA9113','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530023' AND StudentUSI='100063159')); + --School + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'132682038','Grand Oaks High School NT54','GOHS NT54',NULL,'7C27C862-72C6-46D3-BB0F-94E5F38322DC','Dec 14 2018 1:08PM','Dec 14 2018 1:08PM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '132682038')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'528530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '528530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'132682038','528530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE Schoolid='132682038')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063159','132682038',NULL,'2009-08-22','38',NULL,NULL,NULL,'2011-07-07',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','BD726835-74E3-4F62-9C75-1B7E00F12251','Sep 18 2016 11:47AM','Sep 18 2016 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='132682038' AND StudentUSI='100063159')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT TOP 1'940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'36321','100124678','2011-12-09','2.00','2.00',NULL,'867530023',NULL,'FF003CDC-71B9-4EC0-8C21-8B3632695424','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '36321' AND DisciplineDate= '2011-12-09' AND StudentUSI= '100124678')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'625','uri://ed-fi.org/DisciplineDescriptor','Other','Other','Other',NULL,NULL,NULL,'2F25AC98-67CF-4D71-8EB8-7BB4D1ECCF23','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '625'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'625' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '625')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100124678','36321','2011-12-09','625','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100124678' + AND DisciplineActionIdentifier='36321' + AND DisciplineDate='2011-12-09' + AND DisciplineDescriptorId='625' + )); + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530068','2011-08-22','29','2011-09-30','1','5BC61B0A-6455-46EE-8EE8-BF48E3E45968','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2012')); + 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 TOP 1'867530068','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8D4C96E1-5768-4506-8CFB-DE4F7B1741E4','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= 'ACER08' AND EducationOrganizationId= '867530068')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','9A6DB0F3-2F28-4953-9D11-3EBAAFC230B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','107',NULL,NULL,'3192FE88-7579-4413-BF39-00314A4B30F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530068')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','ACER08','2012','1',NULL,NULL,'0.000','159AC833-F3DE-404B-BD74-08F5DC5F8ACF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100083091',NULL,'Sallie','R','Wentz',NULL,NULL,'1997-02-21','Lubbock',NULL,NULL,NULL,'205414','71AC4AED-CF72-40B6-8D58-0CC9B3AAB374','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100083091'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100083091','867530068','ACER08','2012','2011-08-22','2011-12-02','1',NULL,'81DCFB76-E2D3-4458-A119-E594FBB873DD','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100083091')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100083091','867530068','ACER08','2012','2011-08-22',NULL,'92.00',NULL,'49D64EB6-0B1A-4E5D-891C-CDA20BAC9E8C','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='49D64EB6-0B1A-4E5D-891C-CDA20BAC9E8C')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'21','uri://ed-fi.org/GradeLevelDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'A94CADDB-1E3A-4710-A09A-2D91077317C4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '21'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'21' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '21')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100083091','867530068',NULL,'2011-08-22','21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2E6CC946-4266-4BDE-8722-DDDE9CEB3884','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE studentusi='100083091' AND SchoolId='867530068')); + + --grade summary empty + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063353','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','BD726835-74E3-4F62-9C75-1B7E00F12252','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530023' AND StudentUSI='100063353')); + DELETE FROM edfi.Grade WHERE StudentUSI = 100063353 + + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'63','100063159','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'24407350-4AB3-49D7-9983-460EB50B3008','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1601',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE ID='24407350-4AB3-49D7-9983-460EB50B3008')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100063353','867530068','ACER08','2012','2011-08-22','2011-12-02','1',NULL,'3BC31AC7-D1E3-488F-AA89-C73B9962171E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100063353')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100063353','867530068','ACER08','2012','2011-08-22',NULL,'92.00',NULL,'23600A75-441D-4292-9FDF-9E20A525DFFF','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='23600A75-441D-4292-9FDF-9E20A525DFFF')); + -- + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2011','2010-2011',0,'35998726-7F43-4DC6-8583-C7F549F49D4C','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,Discriminator)(SELECT TOP 1'867530068','2011','530','Traditional','2011-08-22','2011-12-20','82','CDB7D2E5-3913-4F05-AC96-FEF4ABB3BE4B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530068','2011','Art, Grade 8',NULL,'ACER08','867530068','715E8636-6188-4BD8-8C67-67EAD7D21B44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + 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 TOP 1'867530023','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'91621451-62D4-49E2-AFA5-8D5595DFD8AA','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= 'ACER08' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530023','2012','Art, Grade 8',NULL,'ACER08','867530023','C991478F-34ED-4E24-90C2-2A60664A8A2A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530068','2011-08-22','29','2011-09-30','2','9FD2E5E8-614A-474C-97A7-85D758536F80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '2' AND SchoolId= '867530068' AND SchoolYear= '2012')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530068','2011-08-22','29','2011-09-30','1','4F624D59-9733-424A-B095-B2624E5EC7E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2011',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2011')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063159','867530068',NULL,'2008-08-22','38',NULL,NULL,NULL,'2012-07-07',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','99BE2A4F-B015-4629-B746-C9F7C047F360','Sep 18 2014 11:47AM','Sep 18 2014 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530068' AND StudentUSI='100063159')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_2/0001_StudentHistoryDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_2/0001_StudentHistoryDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..b7b49f3b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_2/0001_StudentHistoryDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentHistoryDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + StudentSchoolKey + nvarchar + + + GradeSummary + varchar + + + CurrentSchoolKey + varchar + + + AttendanceRate + decimal + + + ReferralsAndSuspensions + int + + + EnrollmentHistory + varchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_3/0000_StudentHistoryDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_3/0000_StudentHistoryDim_Data_Load.xml new file mode 100644 index 00000000..18ff3102 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_3/0000_StudentHistoryDim_Data_Load.xml @@ -0,0 +1,204 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE Descriptorid='38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorid='38')); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO EDFI.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1604' WHERE NOT EXISTS(SELECT 1 FROM EDFI.GradeTypeDescriptor WHERE GradeTypeDescriptorId=1604)); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT TOP 1'544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + 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 TOP 1'867530023','SCMH31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E0381191-1874-432C-97FA-BFBB7124BE28','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= 'SCMH31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530023','2012','530','Traditional','2011-08-22','2011-12-20','82','9DA05239-8B99-4071-A52D-0C9CEB4BC72C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'SCMH31','867530023','2012','Chemistry (1 Unit)',NULL,'SCMH31','867530023','2E4E2F15-D901-439A-9D4B-B1AEB5B80906','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','165',NULL,NULL,'048BAC48-3095-4378-925E-9C1CF91A242F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '165' AND SchoolId= '867530023')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','SCMH31','2012','1',NULL,NULL,'1.000','F01BB0FC-02E1-4EB3-BD7F-D2E76A52462C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11537','867530023','165','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '11537' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100124678',NULL,'Monica','P','Wentz',NULL,NULL,'1996-05-25',NULL,NULL,NULL,NULL,'224082','D3755F56-2871-488C-B702-94D975167CFB','Nov 19 2020 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100124678'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2011-09-08','SCMH31','867530023','2012','11537','Traditional','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','651C1114-B17E-441F-940F-85821DA64A65',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2011-09-08' AND LocalCourseCode='SCMH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='11537' AND SessionName='Traditional' AND StudentUSI='100124678')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + INSERT INTO edfi.studentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023',NULL,'2011-08-22','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','0FE563CD-986F-41D3-9EB3-2D5D1469F9D2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.studentSchoolAssociation WHERE StudentUSI='100124678' and SchoolId='867530023')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + 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 TOP 1'867530023','TWHH11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9197A725-A3C6-443B-8DC8-94D58E4607D4','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= 'TWHH11' AND EducationOrganizationId= '867530023')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530023','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','E3814792-1715-4BE4-8948-0D73CB1E0156','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530023' 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 TOP 1'TWHH11','867530023','2012','World History Studies (1 Unit)',NULL,'TWHH11','867530023','77DF1842-335A-403E-AD25-5633921AFD2C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','227',NULL,NULL,'21CE9308-582E-4EBB-B04C-9178E9ED1B1C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '227' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','TWHH11','2012','1',NULL,NULL,'1.000','FEB7B3DD-9E01-4CE7-A0B3-15ACE0A8D647','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','13111','867530023','227','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '13111' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-02-15','TWHH11','867530023','2012','13111','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2C555018-188D-4EB3-93C5-A47209884C21',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-02-15' AND LocalCourseCode='TWHH11' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='13111' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530023','NCMR21','Music Ii Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'89FB05D0-751C-4DE2-87F4-8EA5D3617397','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= 'NCMR21' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'NCMR21','867530023','2012','Music Ii Choir (1 Unit)',NULL,'NCMR21','867530023','20B8F62E-5C44-4159-9A5A-E33625647F8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','104',NULL,NULL,'250E2CE9-FA7F-47BD-B0A1-F4FD09D4E638','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '104' AND SchoolId= '867530023')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','NCMR21','2012','1',NULL,NULL,'1.000','5BFF74A5-A1B1-44A8-9F9A-E13426A92CCB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','7370','867530023','104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '7370' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-02-15','NCMR21','867530023','2012','7370','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','C266C8BC-1424-4E59-8817-0D455F0AB977',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-02-15' AND LocalCourseCode='NCMR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='7370' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + 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 TOP 1'867530023','FSAH31','Lang O/T Eng Lvl Iii (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8939C6DD-A499-4EB9-BDEA-CAFD0B3D8BB0','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= 'FSAH31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSAH31','867530023','2012','Lang O/T Eng Lvl Iii (1 Unit) - Spanish',NULL,'FSAH31','867530023','4BDB654A-C95F-49C6-8E76-A0705C7EB563','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','160',NULL,NULL,'AA55B884-37EC-4881-A450-89434FE2C3E3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '160' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','FSAH31','2012','1',NULL,NULL,'1.000','77971411-3933-4F2B-94B0-93E5904E825F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','3174','867530023','160','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-02-15','FSAH31','867530023','2012','3174','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ED6A698F-0B3D-4DE1-B6CF-35EE737D3507',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-02-15' AND LocalCourseCode='FSAH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='3174' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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 TOP 1'867530023','LJOR21','Journalism (1/2-1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8F8F6FBF-306B-49EC-8447-55B00B2E9BB7','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= 'LJOR21' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LJOR21','867530023','2012','Journalism (1/2-1 Unit)',NULL,'LJOR21','867530023','1036C89C-DE74-4482-9294-78E15936D324','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LJOR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','137',NULL,NULL,'F2167865-C0DF-4295-803B-1819119D77EF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '137' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','LJOR21','2012','1',NULL,NULL,'1.000','E0814A0F-8925-44CC-8C24-FCA7244D28AE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4892','867530023','137','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LJOR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '4892' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'544','2012-01-30','LJOR21','867530023','2012','4892','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6741EFC0-ADBF-479A-AD8E-D41B6CB35FC3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE [AttendanceEventCategoryDescriptorId]=544 AND EventDate='2012-01-30' AND LocalCourseCode='LJOR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='4892' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT TOP 1'1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-01-30','9A7F548D-F465-480B-909D-C19CD61E7210','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-01-30' AND SchoolId= '867530023' AND 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'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT TOP 1'686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-01-30','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-01-30')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-02-09','D9A529E9-923A-49D4-8A79-A7A397B39846','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-02-09' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-02-09','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-02-09')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT TOP 1'867530023','2012-02-15','1CF3436B-CC0F-4EB9-8C8E-B14B1C061AB5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-02-15' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT TOP 1'867530023','2012-02-15','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-02-15')); + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'31','AttendanceEvent.Absence','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '31'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'31','544','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=31 and DescriptorId=544)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545'));SET IDENTITY_INSERT edfi.Descriptor OFF; + /*INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'31','545','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=31 and DescriptorId=545)); + SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'12','AttendanceEvent.ExcusedAbsence','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '12'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'12','545','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=12 and DescriptorId=545)); + SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'13','AttendanceEvent.UnexcusedAbsence','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '13'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'13','544','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=13 and DescriptorId=544)); + */SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'14','AttendanceEvent.Tardy','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '14'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'14','547','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=14 and DescriptorId=547)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'546','uri://ed-fi.org/AttendanceEventCategoryDescriptor','In Attendance','In Attendance','In Attendance',NULL,NULL,NULL,'850CEF64-657F-4D41-9CD1-0495CC3314DE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '546'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'15','AttendanceEvent.Present','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '15'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'15','546','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=15 and DescriptorId=546)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'16','CalendarEvent.InstructionalDay','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '16'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'16','687','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=16 and DescriptorId=687)); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'16','686','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=16 and DescriptorId=686)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=686));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'683','uri://ed-fi.org/CalendarEventDescriptor','Holiday','Holiday','Holiday',NULL,NULL,NULL,'CD8737F9-EAB9-4154-82EE-EEA007B9F3EA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=683));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','TWHH11','2012','2012-01-04','2012-05-25','1',NULL,'B522CEA7-5C0F-419E-8A35-F20C659A4B2D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','13111','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='TWHH11' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='13111' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','NCMR21','2012','2012-01-04','2012-05-25','0',NULL,'9EC9FD78-E0D7-41A3-9043-38612B3BCCFB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7370','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='NCMR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='7370' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','FSAH31','2012','2012-01-04','2012-05-25','0',NULL,'0BDA9200-6E73-405B-B00B-97640DDCA11A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','3174','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='FSAH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='3174' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','LJOR21','2012','2012-01-04','2012-05-25','0',NULL,'6BA039D3-85E8-42ED-8F13-CA6A53D6F054','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4892','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='LJOR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='4892' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + + --- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1601' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1601')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'54','uri://ed-fi.org/GradingPeriodDescriptor','First Six Weeks','First Six Weeks','First Six Weeks',NULL,NULL,NULL,'ABE1098D-9723-48ED-AA29-BEF3E458FC5E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '54'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'54' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '54')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530023','2011-08-22','29','2011-09-30','1','1ACF5F77-DEC0-46DA-BA7B-575C3610FAA7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSAH31','867530023','2012','Lang O/T Eng Lvl Iii (1 Unit) - Spanish',NULL,'FSAH31','867530023','8F645457-78F7-41AA-90A5-1880679DFFD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','FSAH31','2012','1',NULL,NULL,'1.000','51F98B20-4C96-4FA2-AB29-70BDB7802DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3174','867530023','160','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100124678','867530023','FSAH31','2012','2011-08-22','2011-12-20','0',NULL,'412E744F-4CA5-41D4-AC59-AA865C17006D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','3174','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional' AND StudentUSI= '100124678')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100124678','867530023','FSAH31','2012','2011-08-22','B','82.00',NULL,'B79642B7-56ED-4B58-8927-B6664B526165','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='B79642B7-56ED-4B58-8927-B6664B526165')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'63','uri://ed-fi.org/GradingPeriodDescriptor','Second Six Weeks','Second Six Weeks','Second Six Weeks',NULL,NULL,NULL,'B98A3A8D-DF4E-4FA7-8FFC-97B0765C96F0','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '63'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'63' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '63')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'63','867530023','2011-10-03','24','2011-11-04','1','753CB326-51B2-4455-889D-E2F309FF4944','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '63' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'63','100124678','867530023','FSAH31','2012','2011-08-22','B','82.00',NULL,'E6B22BCA-4D4D-4327-A209-C45F7F8DF0B3','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='E6B22BCA-4D4D-4327-A209-C45F7F8DF0B3')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'68','uri://ed-fi.org/GradingPeriodDescriptor','Third Six Weeks','Third Six Weeks','Third Six Weeks',NULL,NULL,NULL,'326969AF-C028-4817-B590-D0B1A074E54C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '68'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'68' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '68')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'68','867530023','2011-11-07','29','2011-12-20','1','566374B5-4FE6-485D-93A2-34287FE970F3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '68' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'68','100124678','867530023','FSAH31','2012','2011-08-22','C','76.00',NULL,'59D37DF5-1D0B-45AC-84F0-0461A2E64984','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='59D37DF5-1D0B-45AC-84F0-0461A2E64984')); + -- + -- SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'32','GradeType.Semester','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=32));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'33','GradeType.Final','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=33));SET IDENTITY_INSERT analytics_config.DescriptorConstant 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'1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'32','GradeType.Semester','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '32'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'32','1604','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=32 AND DescriptorId=1604)); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1600','uri://ed-fi.org/GradeTypeDescriptor','Final','Final','Final',NULL,NULL,NULL,'4F208B5F-040E-4D49-AB1C-505D9C553E67','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1600'));SET IDENTITY_INSERT edfi.Descriptor OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'33','GradeType.Final','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '33'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'33','1600','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=33 AND DescriptorId=1600)); + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'19','GradeType.GradingPeriod','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=19));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --SET IDENTITY_INSERT analytics_config.DescriptorConstant ON;INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT TOP 1'19','GradeType.GradingPeriod','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '19'));SET IDENTITY_INSERT analytics_config.DescriptorConstant OFF; + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT TOP 1'19','1601','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=19 AND DescriptorId=1601)); + + -- + 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 TOP 1'867530023','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AE93C897-C8C4-40DF-A9DD-F5182C68A29B','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= 'AJFR31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'AJFR31','867530023','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530023','C63BC648-1820-4834-AE8C-53FA2F448A80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530023','259',NULL,NULL,'6468D4DD-4334-46CA-BF55-01352088688F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '259' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530023','AJFR31','2012','1',NULL,NULL,'1.000','28CC4A0C-49D3-45D7-B69C-8920FDD332F2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','26','867530023','259','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063353',NULL,'Trinidad','O','Mcclinton',NULL,NULL,'1994-11-21',NULL,NULL,NULL,NULL,'197174','D3CF66BD-409A-4A7E-ABCF-77E368AC3662','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063353'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100063353','867530023','AJFR31','2012','2011-08-22','2011-12-20','0',NULL,'F3DC8F2A-BDCB-4EDF-AE12-CD79BCAE49AC','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','26','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional' AND StudentUSI= '100063353')); + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100063353','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'C4634B11-1406-4751-A47F-FDB48883A6F5','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE id='C4634B11-1406-4751-A47F-FDB48883A6F5')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063159',NULL,'Paxton','D','Sampson',NULL,NULL,'1994-06-11',NULL,NULL,NULL,NULL,'197049','38904548-2D8F-4DB3-9662-E0070DB1B4CC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063159'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100063159','867530023','AJFR31','2012','2011-08-22','2011-12-20','0',NULL,'529DEE61-E878-4DCF-8352-063364388ADF','Sep 18 2020 11:47AM','Sep 18 2015 11:47AM','26','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional' AND StudentUSI= '100063159')); + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100063159','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'BF763E09-3392-4177-B31B-FFE29CE6AC14','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE id='BF763E09-3392-4177-B31B-FFE29CE6AC14')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063159','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','EB335C5F-19AF-4971-831D-273C21BA9113','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530023' AND StudentUSI='100063159')); + --School + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'132682038','Grand Oaks High School NT54','GOHS NT54',NULL,'7C27C862-72C6-46D3-BB0F-94E5F38322DC','Dec 14 2018 1:08PM','Dec 14 2018 1:08PM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '132682038')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'528530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '528530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'132682038','528530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE Schoolid='132682038')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063159','132682038',NULL,'2009-08-22','38',NULL,NULL,NULL,'2011-07-07',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','BD726835-74E3-4F62-9C75-1B7E00F12251','Sep 18 2016 11:47AM','Sep 18 2016 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='132682038' AND StudentUSI='100063159')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT TOP 1'940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT TOP 1'36321','100124678','2011-12-09','2.00','2.00',NULL,'867530023',NULL,'FF003CDC-71B9-4EC0-8C21-8B3632695424','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '36321' AND DisciplineDate= '2011-12-09' AND StudentUSI= '100124678')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'625','uri://ed-fi.org/DisciplineDescriptor','Other','Other','Other',NULL,NULL,NULL,'2F25AC98-67CF-4D71-8EB8-7BB4D1ECCF23','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '625'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT TOP 1'625' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '625')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT TOP 1'100124678','36321','2011-12-09','625','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100124678' + AND DisciplineActionIdentifier='36321' + AND DisciplineDate='2011-12-09' + AND DisciplineDescriptorId='625' + )); + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530068','2011-08-22','29','2011-09-30','1','5BC61B0A-6455-46EE-8EE8-BF48E3E45968','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2012')); + 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 TOP 1'867530068','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8D4C96E1-5768-4506-8CFB-DE4F7B1741E4','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= 'ACER08' AND EducationOrganizationId= '867530068')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','9A6DB0F3-2F28-4953-9D11-3EBAAFC230B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','107',NULL,NULL,'3192FE88-7579-4413-BF39-00314A4B30F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530068')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','ACER08','2012','1',NULL,NULL,'0.000','159AC833-F3DE-404B-BD74-08F5DC5F8ACF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100083091',NULL,'Sallie','R','Wentz',NULL,NULL,'1997-02-21','Lubbock',NULL,NULL,NULL,'205414','71AC4AED-CF72-40B6-8D58-0CC9B3AAB374','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100083091'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100083091','867530068','ACER08','2012','2011-08-22','2011-12-02','1',NULL,'81DCFB76-E2D3-4458-A119-E594FBB873DD','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100083091')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100083091','867530068','ACER08','2012','2011-08-22',NULL,'92.00',NULL,'49D64EB6-0B1A-4E5D-891C-CDA20BAC9E8C','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='49D64EB6-0B1A-4E5D-891C-CDA20BAC9E8C')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'21','uri://ed-fi.org/GradeLevelDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'A94CADDB-1E3A-4710-A09A-2D91077317C4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '21'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'21' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '21')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100083091','867530068',NULL,'2011-08-22','21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2E6CC946-4266-4BDE-8722-DDDE9CEB3884','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE studentusi='100083091' AND SchoolId='867530068')); + + --grade summary empty + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063353','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','BD726835-74E3-4F62-9C75-1B7E00F12252','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530023' AND StudentUSI='100063353')); + DELETE FROM edfi.Grade WHERE StudentUSI = 100063353 + + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'63','100063159','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'24407350-4AB3-49D7-9983-460EB50B3008','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1601',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE ID='24407350-4AB3-49D7-9983-460EB50B3008')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100063353','867530068','ACER08','2012','2011-08-22','2011-12-02','1',NULL,'3BC31AC7-D1E3-488F-AA89-C73B9962171E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100063353')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'54','100063353','867530068','ACER08','2012','2011-08-22',NULL,'92.00',NULL,'23600A75-441D-4292-9FDF-9E20A525DFFF','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='23600A75-441D-4292-9FDF-9E20A525DFFF')); + -- + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2011','2010-2011',0,'35998726-7F43-4DC6-8583-C7F549F49D4C','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,Discriminator)(SELECT TOP 1'867530068','2011','530','Traditional','2011-08-22','2011-12-20','82','CDB7D2E5-3913-4F05-AC96-FEF4ABB3BE4B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530068','2011','Art, Grade 8',NULL,'ACER08','867530068','715E8636-6188-4BD8-8C67-67EAD7D21B44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + 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 TOP 1'867530023','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'91621451-62D4-49E2-AFA5-8D5595DFD8AA','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= 'ACER08' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530023','2012','Art, Grade 8',NULL,'ACER08','867530023','C991478F-34ED-4E24-90C2-2A60664A8A2A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530068','2011-08-22','29','2011-09-30','2','9FD2E5E8-614A-474C-97A7-85D758536F80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '2' AND SchoolId= '867530068' AND SchoolYear= '2012')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'54','867530068','2011-08-22','29','2011-09-30','1','4F624D59-9733-424A-B095-B2624E5EC7E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2011',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2011')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063159','867530068',NULL,'2008-08-22','38',NULL,NULL,NULL,'2012-07-07',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','99BE2A4F-B015-4629-B746-C9F7C047F360','Sep 18 2014 11:47AM','Sep 18 2014 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530068' AND StudentUSI='100063159')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_3/0001_StudentHistoryDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_3/0001_StudentHistoryDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..b7b49f3b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/MSSQL/v_3_3/0001_StudentHistoryDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentHistoryDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + StudentSchoolKey + nvarchar + + + GradeSummary + varchar + + + CurrentSchoolKey + varchar + + + AttendanceRate + decimal + + + ReferralsAndSuspensions + int + + + EnrollmentHistory + varchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/0001_StudentHistoryDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_2/0001_StudentHistoryDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/0001_StudentHistoryDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_2/0001_StudentHistoryDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_3/0000_StudentHistoryDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_3/0000_StudentHistoryDim_Data_Load.xml new file mode 100644 index 00000000..46736ade --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_3/0000_StudentHistoryDim_Data_Load.xml @@ -0,0 +1,204 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE Descriptorid='38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorid='38')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604')); + INSERT INTO EDFI.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT '1604' WHERE NOT EXISTS(SELECT 1 FROM EDFI.GradeTypeDescriptor WHERE GradeTypeDescriptorId=1604)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.AttendanceEventCategoryDescriptor(AttendanceEventCategoryDescriptorId)(SELECT '544' WHERE NOT EXISTS(SELECT 1 FROM edfi.AttendanceEventCategoryDescriptor WHERE AttendanceEventCategoryDescriptorId= '544')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '10','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + 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 '867530023','SCMH31','Chemistry (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E0381191-1874-432C-97FA-BFBB7124BE28','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= 'SCMH31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530023','2012','530','Traditional','2011-08-22','2011-12-20','82','9DA05239-8B99-4071-A52D-0C9CEB4BC72C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'SCMH31','867530023','2012','Chemistry (1 Unit)',NULL,'SCMH31','867530023','2E4E2F15-D901-439A-9D4B-B1AEB5B80906','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'SCMH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530023','165',NULL,NULL,'048BAC48-3095-4378-925E-9C1CF91A242F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '165' AND SchoolId= '867530023')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','SCMH31','2012','1',NULL,NULL,'1.000','F01BB0FC-02E1-4EB3-BD7F-D2E76A52462C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','11537','867530023','165','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'SCMH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '11537' AND SessionName= 'Traditional')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100124678',NULL,'Monica','P','Wentz',NULL,NULL,'1996-05-25',NULL,NULL,NULL,NULL,'224082','D3755F56-2871-488C-B702-94D975167CFB','Nov 19 2020 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100124678')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2011-09-08','SCMH31','867530023','2012','11537','Traditional','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','651C1114-B17E-441F-940F-85821DA64A65',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE AttendanceEventCategoryDescriptorId=544 AND EventDate='2011-09-08' AND LocalCourseCode='SCMH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='11537' AND SessionName='Traditional' AND StudentUSI='100124678')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '35' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + INSERT INTO edfi.studentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100124678','867530023',NULL,'2011-08-22','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','0FE563CD-986F-41D3-9EB3-2D5D1469F9D2','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.studentSchoolAssociation WHERE StudentUSI='100124678' and SchoolId='867530023')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '13','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + 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 '867530023','TWHH11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9197A725-A3C6-443B-8DC8-94D58E4607D4','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= 'TWHH11' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530023','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','E3814792-1715-4BE4-8948-0D73CB1E0156','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530023' 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 'TWHH11','867530023','2012','World History Studies (1 Unit)',NULL,'TWHH11','867530023','77DF1842-335A-403E-AD25-5633921AFD2C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530023','227',NULL,NULL,'21CE9308-582E-4EBB-B04C-9178E9ED1B1C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '227' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','TWHH11','2012','1',NULL,NULL,'1.000','FEB7B3DD-9E01-4CE7-A0B3-15ACE0A8D647','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','13111','867530023','227','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'TWHH11' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '13111' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-02-15','TWHH11','867530023','2012','13111','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2C555018-188D-4EB3-93C5-A47209884C21',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE AttendanceEventCategoryDescriptorId=544 AND EventDate='2012-02-15' AND LocalCourseCode='TWHH11' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='13111' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 '867530023','NCMR21','Music Ii Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'89FB05D0-751C-4DE2-87F4-8EA5D3617397','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= 'NCMR21' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'NCMR21','867530023','2012','Music Ii Choir (1 Unit)',NULL,'NCMR21','867530023','20B8F62E-5C44-4159-9A5A-E33625647F8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530023','104',NULL,NULL,'250E2CE9-FA7F-47BD-B0A1-F4FD09D4E638','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '104' AND SchoolId= '867530023')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','NCMR21','2012','1',NULL,NULL,'1.000','5BFF74A5-A1B1-44A8-9F9A-E13426A92CCB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','7370','867530023','104','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '7370' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-02-15','NCMR21','867530023','2012','7370','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','C266C8BC-1424-4E59-8817-0D455F0AB977',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE AttendanceEventCategoryDescriptorId=544 AND EventDate='2012-02-15' AND LocalCourseCode='NCMR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='7370' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '14','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + 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 '867530023','FSAH31','Lang O/T Eng Lvl Iii (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8939C6DD-A499-4EB9-BDEA-CAFD0B3D8BB0','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= 'FSAH31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'FSAH31','867530023','2012','Lang O/T Eng Lvl Iii (1 Unit) - Spanish',NULL,'FSAH31','867530023','4BDB654A-C95F-49C6-8E76-A0705C7EB563','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530023','160',NULL,NULL,'AA55B884-37EC-4881-A450-89434FE2C3E3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '160' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','FSAH31','2012','1',NULL,NULL,'1.000','77971411-3933-4F2B-94B0-93E5904E825F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','3174','867530023','160','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-02-15','FSAH31','867530023','2012','3174','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','ED6A698F-0B3D-4DE1-B6CF-35EE737D3507',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE AttendanceEventCategoryDescriptorId=544 AND EventDate='2012-02-15' AND LocalCourseCode='FSAH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='3174' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + 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 '867530023','LJOR21','Journalism (1/2-1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8F8F6FBF-306B-49EC-8447-55B00B2E9BB7','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= 'LJOR21' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'LJOR21','867530023','2012','Journalism (1/2-1 Unit)',NULL,'LJOR21','867530023','1036C89C-DE74-4482-9294-78E15936D324','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LJOR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530023','137',NULL,NULL,'F2167865-C0DF-4295-803B-1819119D77EF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '137' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','LJOR21','2012','1',NULL,NULL,'1.000','E0814A0F-8925-44CC-8C24-FCA7244D28AE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4892','867530023','137','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LJOR21' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '4892' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.StudentSectionAttendanceEvent(AttendanceEventCategoryDescriptorId,EventDate,LocalCourseCode,SchoolId,SchoolYear,SectionIdentifier,SessionName,StudentUSI,AttendanceEventReason,EducationalEnvironmentDescriptorId,EventDuration,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '544','2012-01-30','LJOR21','867530023','2012','4892','Traditional-Spring Semester','100124678','A-Absent',NULL,NULL,'Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','6741EFC0-ADBF-479A-AD8E-D41B6CB35FC3',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAttendanceEvent WHERE AttendanceEventCategoryDescriptorId=544 AND EventDate='2012-01-30' AND LocalCourseCode='LJOR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='4892' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + INSERT INTO edfi.CalendarTypeDescriptor(CalendarTypeDescriptorId)(SELECT '1148' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + INSERT INTO edfi.Calendar(CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '867530023_2012','867530023','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','2E0A467E-818E-4A55-B642-0CA0ABC7D70B',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode= '867530023_2012' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2012-01-30','9A7F548D-F465-480B-909D-C19CD61E7210','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-01-30' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.CalendarEventDescriptor(CalendarEventDescriptorId)(SELECT '686' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarEventDescriptor WHERE CalendarEventDescriptorId= '686')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2012-01-30','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-01-30')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2012-02-09','D9A529E9-923A-49D4-8A79-A7A397B39846','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-02-09' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2012-02-09','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-02-09')); + INSERT INTO edfi.CalendarDate(SchoolId,Date,Id,LastModifiedDate,CreateDate,CalendarCode,SchoolYear,Discriminator)(SELECT '867530023','2012-02-15','1CF3436B-CC0F-4EB9-8C8E-B14B1C061AB5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','867530023_2012','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDate WHERE CalendarCode= '867530023_2012' AND Date= '2012-02-15' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CalendarDateCalendarEvent(SchoolId,Date,CalendarEventDescriptorId,CreateDate,CalendarCode,SchoolYear)(SELECT '867530023','2012-02-15','686','Sep 18 2015 11:34AM','867530023_2012','2012' WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarDateCalendarEvent WHERE CalendarCode='867530023_2012' and Date='2012-02-15')); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '31','AttendanceEvent.Absence','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '31')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '31','544','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=31 and DescriptorId=544)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + /*INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '31','545','Apr 29 2020 9:48AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=31 and DescriptorId=545)); + INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '12','AttendanceEvent.ExcusedAbsence','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '12')); + INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '12','545','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=12 and DescriptorId=545)); + INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '13','AttendanceEvent.UnexcusedAbsence','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '13')); + INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '13','544','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=13 and DescriptorId=544)); + */INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '14','AttendanceEvent.Tardy','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '14')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '14','547','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=14 and DescriptorId=547)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '546','uri://ed-fi.org/AttendanceEventCategoryDescriptor','In Attendance','In Attendance','In Attendance',NULL,NULL,NULL,'850CEF64-657F-4D41-9CD1-0495CC3314DE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '546')); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '15','AttendanceEvent.Present','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '15')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '15','546','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=15 and DescriptorId=546)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '16','CalendarEvent.InstructionalDay','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '16')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '16','687','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=16 and DescriptorId=687)); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '16','686','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=16 and DescriptorId=686)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=686)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '683','uri://ed-fi.org/CalendarEventDescriptor','Holiday','Holiday','Holiday',NULL,NULL,NULL,'CD8737F9-EAB9-4154-82EE-EEA007B9F3EA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId=683)); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100124678','867530023','TWHH11','2012','2012-01-04','2012-05-25','1',NULL,'B522CEA7-5C0F-419E-8A35-F20C659A4B2D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','13111','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='TWHH11' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='13111' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100124678','867530023','NCMR21','2012','2012-01-04','2012-05-25','0',NULL,'9EC9FD78-E0D7-41A3-9043-38612B3BCCFB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','7370','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='NCMR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='7370' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100124678','867530023','FSAH31','2012','2012-01-04','2012-05-25','0',NULL,'0BDA9200-6E73-405B-B00B-97640DDCA11A','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','3174','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='FSAH31' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='3174' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100124678','867530023','LJOR21','2012','2012-01-04','2012-05-25','0',NULL,'6BA039D3-85E8-42ED-8F13-CA6A53D6F054','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4892','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate='2012-01-04' AND LocalCourseCode='LJOR21' AND SchoolId='867530023' AND SchoolYear='2012' AND SectionIdentifier='4892' AND SessionName='Traditional-Spring Semester' AND StudentUSI='100124678')); + + --- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT '1601' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1601')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '54','uri://ed-fi.org/GradingPeriodDescriptor','First Six Weeks','First Six Weeks','First Six Weeks',NULL,NULL,NULL,'ABE1098D-9723-48ED-AA29-BEF3E458FC5E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '54')); + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT '54' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '54')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '54','867530023','2011-08-22','29','2011-09-30','1','1ACF5F77-DEC0-46DA-BA7B-575C3610FAA7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'FSAH31','867530023','2012','Lang O/T Eng Lvl Iii (1 Unit) - Spanish',NULL,'FSAH31','867530023','8F645457-78F7-41AA-90A5-1880679DFFD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','FSAH31','2012','1',NULL,NULL,'1.000','51F98B20-4C96-4FA2-AB29-70BDB7802DB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3174','867530023','160','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100124678','867530023','FSAH31','2012','2011-08-22','2011-12-20','0',NULL,'412E744F-4CA5-41D4-AC59-AA865C17006D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','3174','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'FSAH31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '3174' AND SessionName= 'Traditional' AND StudentUSI= '100124678')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '54','100124678','867530023','FSAH31','2012','2011-08-22','B','82.00',NULL,'B79642B7-56ED-4B58-8927-B6664B526165','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='B79642B7-56ED-4B58-8927-B6664B526165')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '63','uri://ed-fi.org/GradingPeriodDescriptor','Second Six Weeks','Second Six Weeks','Second Six Weeks',NULL,NULL,NULL,'B98A3A8D-DF4E-4FA7-8FFC-97B0765C96F0','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '63')); + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT '63' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '63')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '63','867530023','2011-10-03','24','2011-11-04','1','753CB326-51B2-4455-889D-E2F309FF4944','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '63' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '63','100124678','867530023','FSAH31','2012','2011-08-22','B','82.00',NULL,'E6B22BCA-4D4D-4327-A209-C45F7F8DF0B3','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='E6B22BCA-4D4D-4327-A209-C45F7F8DF0B3')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '68','uri://ed-fi.org/GradingPeriodDescriptor','Third Six Weeks','Third Six Weeks','Third Six Weeks',NULL,NULL,NULL,'326969AF-C028-4817-B590-D0B1A074E54C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '68')); + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT '68' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '68')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '68','867530023','2011-11-07','29','2011-12-20','1','566374B5-4FE6-485D-93A2-34287FE970F3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '68' AND PeriodSequence= '1' AND SchoolId= '867530023' AND SchoolYear= '2012')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '68','100124678','867530023','FSAH31','2012','2011-08-22','C','76.00',NULL,'59D37DF5-1D0B-45AC-84F0-0461A2E64984','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','3174','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='59D37DF5-1D0B-45AC-84F0-0461A2E64984')); + -- + -- INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '32','GradeType.Semester','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=32)); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '33','GradeType.Final','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=33)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604')); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '32','GradeType.Semester','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '32')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '32','1604','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=32 AND DescriptorId=1604)); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1600','uri://ed-fi.org/GradeTypeDescriptor','Final','Final','Final',NULL,NULL,NULL,'4F208B5F-040E-4D49-AB1C-505D9C553E67','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1600')); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '33','GradeType.Final','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '33')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '33','1600','Apr 9 2021 9:54AM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=33 AND DescriptorId=1600)); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '19','GradeType.GradingPeriod','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId=19)); + --INSERT INTO analytics_config.DescriptorConstant(DescriptorConstantId,ConstantName,CreateDate)(SELECT '19','GradeType.GradingPeriod','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorConstant WHERE DescriptorConstantId= '19')); + --INSERT INTO analytics_config.DescriptorMap(DescriptorConstantId,DescriptorId,CreateDate)(SELECT '19','1601','Mar 20 2020 2:25PM' WHERE NOT EXISTS(SELECT 1 FROM analytics_config.DescriptorMap WHERE DescriptorConstantId=19 AND DescriptorId=1601)); + + -- + 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 '867530023','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AE93C897-C8C4-40DF-A9DD-F5182C68A29B','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= 'AJFR31' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'AJFR31','867530023','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530023','C63BC648-1820-4834-AE8C-53FA2F448A80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530023','259',NULL,NULL,'6468D4DD-4334-46CA-BF55-01352088688F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '259' AND SchoolId= '867530023')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530023','AJFR31','2012','1',NULL,NULL,'1.000','28CC4A0C-49D3-45D7-B69C-8920FDD332F2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','26','867530023','259','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100063353',NULL,'Trinidad','O','Mcclinton',NULL,NULL,'1994-11-21',NULL,NULL,NULL,NULL,'197174','D3CF66BD-409A-4A7E-ABCF-77E368AC3662','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063353')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100063353','867530023','AJFR31','2012','2011-08-22','2011-12-20','0',NULL,'F3DC8F2A-BDCB-4EDF-AE12-CD79BCAE49AC','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','26','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional' AND StudentUSI= '100063353')); + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '54','100063353','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'C4634B11-1406-4751-A47F-FDB48883A6F5','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE id='C4634B11-1406-4751-A47F-FDB48883A6F5')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100063159',NULL,'Paxton','D','Sampson',NULL,NULL,'1994-06-11',NULL,NULL,NULL,NULL,'197049','38904548-2D8F-4DB3-9662-E0070DB1B4CC','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063159')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100063159','867530023','AJFR31','2012','2011-08-22','2011-12-20','0',NULL,'529DEE61-E878-4DCF-8352-063364388ADF','Sep 18 2020 11:47AM','Sep 18 2015 11:47AM','26','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SectionIdentifier= '26' AND SessionName= 'Traditional' AND StudentUSI= '100063159')); + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '54','100063159','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'BF763E09-3392-4177-B31B-FFE29CE6AC14','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE id='BF763E09-3392-4177-B31B-FFE29CE6AC14')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063159','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','EB335C5F-19AF-4971-831D-273C21BA9113','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530023' AND StudentUSI='100063159')); + --School + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '132682038','Grand Oaks High School NT54','GOHS NT54',NULL,'7C27C862-72C6-46D3-BB0F-94E5F38322DC','Dec 14 2018 1:08PM','Dec 14 2018 1:08PM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '132682038')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '528530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '528530')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '132682038','528530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE Schoolid='132682038')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063159','132682038',NULL,'2009-08-22','38',NULL,NULL,NULL,'2011-07-07',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','BD726835-74E3-4F62-9C75-1B7E00F12251','Sep 18 2016 11:47AM','Sep 18 2016 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='132682038' AND StudentUSI='100063159')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '940','uri://ed-fi.org/DisciplineActionLengthDifferenceReasonDescriptor','No Difference','No Difference','No Difference',NULL,NULL,NULL,'55E8F600-9246-452B-BB34-E4DA93F09B23','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '940')); + INSERT INTO edfi.DisciplineActionLengthDifferenceReasonDescriptor(DisciplineActionLengthDifferenceReasonDescriptorId)(SELECT '940' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionLengthDifferenceReasonDescriptor WHERE DisciplineActionLengthDifferenceReasonDescriptorId= '940')); + INSERT INTO edfi.DisciplineAction(DisciplineActionIdentifier,StudentUSI,DisciplineDate,DisciplineActionLength,ActualDisciplineActionLength,RelatedToZeroTolerancePolicy,ResponsibilitySchoolId,AssignmentSchoolId,Id,LastModifiedDate,CreateDate,ReceivedEducationServicesDuringExpulsion,IEPPlacementMeetingIndicator,DisciplineActionLengthDifferenceReasonDescriptorId,Discriminator)(SELECT '36321','100124678','2011-12-09','2.00','2.00',NULL,'867530023',NULL,'FF003CDC-71B9-4EC0-8C21-8B3632695424','Sep 18 2015 11:51AM','Sep 18 2015 11:51AM',NULL,NULL,'940',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineAction WHERE DisciplineActionIdentifier= '36321' AND DisciplineDate= '2011-12-09' AND StudentUSI= '100124678')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '625','uri://ed-fi.org/DisciplineDescriptor','Other','Other','Other',NULL,NULL,NULL,'2F25AC98-67CF-4D71-8EB8-7BB4D1ECCF23','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '625')); + INSERT INTO edfi.DisciplineDescriptor(DisciplineDescriptorId)(SELECT '625' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineDescriptor WHERE DisciplineDescriptorId= '625')); + INSERT INTO edfi.DisciplineActionDiscipline(StudentUSI,DisciplineActionIdentifier,DisciplineDate,DisciplineDescriptorId,CreateDate)(SELECT '100124678','36321','2011-12-09','625','Sep 18 2015 11:51AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisciplineActionDiscipline WHERE StudentUSI='100124678' + AND DisciplineActionIdentifier='36321' + AND DisciplineDate='2011-12-09' + AND DisciplineDescriptorId='625' + )); + -- + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '54','867530068','2011-08-22','29','2011-09-30','1','5BC61B0A-6455-46EE-8EE8-BF48E3E45968','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2012')); + 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 '867530068','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8D4C96E1-5768-4506-8CFB-DE4F7B1741E4','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= 'ACER08' AND EducationOrganizationId= '867530068')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','9A6DB0F3-2F28-4953-9D11-3EBAAFC230B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530068','107',NULL,NULL,'3192FE88-7579-4413-BF39-00314A4B30F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530068')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530068','ACER08','2012','1',NULL,NULL,'0.000','159AC833-F3DE-404B-BD74-08F5DC5F8ACF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100083091',NULL,'Sallie','R','Wentz',NULL,NULL,'1997-02-21','Lubbock',NULL,NULL,NULL,'205414','71AC4AED-CF72-40B6-8D58-0CC9B3AAB374','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100083091')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100083091','867530068','ACER08','2012','2011-08-22','2011-12-02','1',NULL,'81DCFB76-E2D3-4458-A119-E594FBB873DD','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100083091')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '54','100083091','867530068','ACER08','2012','2011-08-22',NULL,'92.00',NULL,'49D64EB6-0B1A-4E5D-891C-CDA20BAC9E8C','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='49D64EB6-0B1A-4E5D-891C-CDA20BAC9E8C')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '21','uri://ed-fi.org/GradeLevelDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'A94CADDB-1E3A-4710-A09A-2D91077317C4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '21')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '21' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '21')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100083091','867530068',NULL,'2011-08-22','21',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2E6CC946-4266-4BDE-8722-DDDE9CEB3884','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE studentusi='100083091' AND SchoolId='867530068')); + + --grade summary empty + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063353','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','BD726835-74E3-4F62-9C75-1B7E00F12252','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530023' AND StudentUSI='100063353')); + DELETE FROM edfi.Grade WHERE StudentUSI = 100063353; + + INSERT INTO edfi.grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '63','100063159','867530023','AJFR31','2012','2011-08-22','A','100.00',NULL,'24407350-4AB3-49D7-9983-460EB50B3008','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','26','Traditional','1','2012',NULL,'1601',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.grade WHERE ID='24407350-4AB3-49D7-9983-460EB50B3008')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100063353','867530068','ACER08','2012','2011-08-22','2011-12-02','1',NULL,'3BC31AC7-D1E3-488F-AA89-C73B9962171E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100063353')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '54','100063353','867530068','ACER08','2012','2011-08-22',NULL,'92.00',NULL,'23600A75-441D-4292-9FDF-9E20A525DFFF','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE id='23600A75-441D-4292-9FDF-9E20A525DFFF')); + -- + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '2011','2010-2011',false,'35998726-7F43-4DC6-8583-C7F549F49D4C','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,Discriminator)(SELECT '867530068','2011','530','Traditional','2011-08-22','2011-12-20','82','CDB7D2E5-3913-4F05-AC96-FEF4ABB3BE4B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER08','867530068','2011','Art, Grade 8',NULL,'ACER08','867530068','715E8636-6188-4BD8-8C67-67EAD7D21B44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + 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 '867530023','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'91621451-62D4-49E2-AFA5-8D5595DFD8AA','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= 'ACER08' AND EducationOrganizationId= '867530023')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER08','867530023','2012','Art, Grade 8',NULL,'ACER08','867530023','C991478F-34ED-4E24-90C2-2A60664A8A2A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530023' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '54','867530068','2011-08-22','29','2011-09-30','2','9FD2E5E8-614A-474C-97A7-85D758536F80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '2' AND SchoolId= '867530068' AND SchoolYear= '2012')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '54','867530068','2011-08-22','29','2011-09-30','1','4F624D59-9733-424A-B095-B2624E5EC7E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2011',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '54' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2011')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063159','867530068',NULL,'2008-08-22','38',NULL,NULL,NULL,'2012-07-07',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','99BE2A4F-B015-4629-B746-C9F7C047F360','Sep 18 2014 11:47AM','Sep 18 2014 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE SchoolId='867530068' AND StudentUSI='100063159')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_3/0001_StudentHistoryDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_3/0001_StudentHistoryDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..ff84055d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentHistoryDim/PostgreSQL/v_3_3/0001_StudentHistoryDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_studenthistorydim' + ORDER BY ORDINAL_POSITION ASC; + + + studentkey + character varying + + + studentschoolkey + text + + + gradesummary + text + + + currentschoolkey + character varying + + + attendancerate + numeric + + + referralsandsuspensions + bigint + + + enrollmenthistory + text + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_2/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_2/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml new file mode 100644 index 00000000..973f7900 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_2/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml @@ -0,0 +1,436 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530020',NULL,'2012-02-08','38',NULL,NULL,NULL,DATEADD(MONTH,12,GETDATE()),NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','30075B74-59A1-4246-A497-B514D9841DD3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' AND Schoolid='867530020')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT TOP 1'110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student 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'632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,'867530','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011 AND SchoolId='867530011')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId)(SELECT TOP 1'1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504',NULL,NULL,NULL,'9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT TOP 1'937' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'746','uri://ed-fi.org/DisabilityDescriptor','AUT','AUT','Autism',NULL,NULL,NULL,'8F265E6C-CDE0-47B6-B882-F272DD670BDB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '746')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT TOP 1'746' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '746')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1577','uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor','By health care provider','By health care provider','By health care provider',NULL,NULL,NULL,'A50E66A0-0D27-4415-9C61-BA55D176E155','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1577')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDeterminationSourceTypeDescriptor WHERE DisabilityDeterminationSourceTypeDescriptorId= '1577')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','628530','100055074','Mar 3 2020 2:06PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=746)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'936','uri://ed-fi.org/DisabilityDesignationDescriptor','Other','Other','Other',NULL,NULL,NULL,'90043F45-4257-4319-BC45-DD7B983259C5','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '936')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT TOP 1'936' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '936')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'748','uri://ed-fi.org/DisabilityDescriptor','ID','ID','Intellectual Disability',NULL,NULL,NULL,'B4BDE656-FB7C-47AC-BD51-60ABBBFE8DFE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '748')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT TOP 1'748' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '748')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '748' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'748','628530','100055074','Mar 3 2020 2:06PM','936' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','867530','100020850','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '748' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'748','867530','100020850','Mar 3 2020 2:06PM','936' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','867530','100020850','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=748)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language',NULL,NULL,NULL,'CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT TOP 1'1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'471','uri://ed-fi.org/LanguageDescriptor','Korean','Korean','Korean',NULL,NULL,NULL,'F55914CC-9C9E-4F18-92D2-63E59A186A8B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '471')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'471' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '471')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','471','100055074','Mar 4 2020 9:52AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1080','uri://ed-fi.org/LanguageUseDescriptor','Native language','Native language','Native language',NULL,NULL,NULL,'093F778D-34E0-4FD4-A81F-4C415B0FB80C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1080')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT TOP 1'1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1080')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'473','uri://ed-fi.org/LanguageDescriptor','Kimbundu','Kimbundu','Kimbundu',NULL,NULL,NULL,'67EA396C-6BA1-4D6E-8E16-58B30F72153E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '473')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'473' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '473')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','473','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '473' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','473','100055074','Mar 4 2020 9:51AM','1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND LanguageDescriptorId=473 AND LanguageUseDescriptorId=1080)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','473','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '473' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','473','100020850','Mar 4 2020 9:51AM','1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND LanguageDescriptorId=473 AND LanguageUseDescriptorId=1080)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian',NULL,NULL,NULL,'0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100055074','Mar 4 2020 2:11PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND RaceDescriptorId=1283)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1286','uri://ed-fi.org/RaceDescriptor','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander',NULL,NULL,NULL,'0E3B30C1-4513-4761-B83B-21F19CFFB41C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1286')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1286')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100055074','Mar 4 2020 2:11PM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND RaceDescriptorId=1286)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100020850','Mar 4 2020 2:12PM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND RaceDescriptorId=1286)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak',NULL,NULL,NULL,'4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT TOP 1'2280' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2280')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100055074','2280','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2285','uri://ed-fi.org/TribalAffiliationDescriptor','Akiachak','Akiachak','Akiachak Native Community',NULL,NULL,NULL,'A6F7F3B1-75DA-43CB-92E7-5FC8AC09AE76','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2285')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT TOP 1'2285' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2285')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100055074','2285','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND TribalAffiliationDescriptorId=2285)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100020850','2285','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND TribalAffiliationDescriptorId=2285)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant',NULL,NULL,NULL,'3150327C-6466-40BF-B940-2D8763EAA694','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'660' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '660')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'664','uri://ed-fi.org/StudentCharacteristicDescriptor','Neglected or Delinquent','Neglected or Delinquent','Neglected or Delinquent',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD88','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '664')); + 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'662','uri://ed-fi.org/StudentCharacteristicDescriptor','Homeless','Homeless','Homeless',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD89','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '662')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'662' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '662')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'669','uri://ed-fi.org/StudentCharacteristicDescriptor','Refugee','Refugee','Refugee',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD90','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '669')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'669' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '669')); + -- + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'664' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '664')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','662','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '662' AND StudentUSI= '100055074')); + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','669','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '669' AND StudentUSI= '100055074')); + -- + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','662','100055074',null,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=662)); + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','669','100055074','2110-12-12','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=669)); + -- + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'661','uri://ed-fi.org/StudentCharacteristicDescriptor','Asylee','Asylee','Asylee',NULL,NULL,NULL,'BA2F13EF-275B-4AF0-B4B0-8BED0194CE3E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '661')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'661' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '661')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','661','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','661','100055074',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','528530','882FA1D8-DC7D-460B-868A-806C319DB522','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='528530' AND studentUSI='100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','528530','882FA1D8-DC7D-460B-868A-806C319DB522','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '528530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'528530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='528530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'528530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '528530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','528530','661','100055074',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='528530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','661','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','661','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','661','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=661)); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007',NULL,'2010-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','CB55ECF2-D908-4FCB-88D7-D341B7684EEA','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND EntryDate='2010-01-25')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','7ABF7264-6AB4-4C45-9816-7AC53DCA94E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='628530' AND studentUSI='100020850')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SCHOOLID='628530')); + + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','628530','2011',NULL,'26.000',NULL,'1B7EA089-AE1E-431D-8FF0-51190E5C9AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '628530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-02-08',NULL,NULL,NULL,NULL,NULL,'628530','633','2011','DA1D2833-0A47-49D1-AEFE-EF6FE35A029E','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' and Schoolid='628530')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','01BFD1DE-9B7C-4611-BEDF-467A07217361','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','628530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100005230','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100005230','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_2/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_2/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..d193dd17 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_2/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentLocalEducationAgencyDemographicsBridge' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolDemographicBridgeKey + nvarchar + + + StudentLocalEducationAgencyKey + varchar + + + DemographicKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_3/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_3/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml new file mode 100644 index 00000000..973f7900 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_3/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml @@ -0,0 +1,436 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530020',NULL,'2012-02-08','38',NULL,NULL,NULL,DATEADD(MONTH,12,GETDATE()),NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','30075B74-59A1-4246-A497-B514D9841DD3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' AND Schoolid='867530020')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT TOP 1'110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + 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')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student 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'632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,'867530','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011 AND SchoolId='867530011')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId)(SELECT TOP 1'1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504',NULL,NULL,NULL,'9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT TOP 1'937' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'746','uri://ed-fi.org/DisabilityDescriptor','AUT','AUT','Autism',NULL,NULL,NULL,'8F265E6C-CDE0-47B6-B882-F272DD670BDB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '746')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT TOP 1'746' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '746')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1577','uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor','By health care provider','By health care provider','By health care provider',NULL,NULL,NULL,'A50E66A0-0D27-4415-9C61-BA55D176E155','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1577')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDeterminationSourceTypeDescriptor WHERE DisabilityDeterminationSourceTypeDescriptorId= '1577')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','628530','100055074','Mar 3 2020 2:06PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=746)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'936','uri://ed-fi.org/DisabilityDesignationDescriptor','Other','Other','Other',NULL,NULL,NULL,'90043F45-4257-4319-BC45-DD7B983259C5','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '936')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT TOP 1'936' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '936')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'748','uri://ed-fi.org/DisabilityDescriptor','ID','ID','Intellectual Disability',NULL,NULL,NULL,'B4BDE656-FB7C-47AC-BD51-60ABBBFE8DFE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '748')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT TOP 1'748' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '748')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '748' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'748','628530','100055074','Mar 3 2020 2:06PM','936' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','867530','100020850','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '748' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'748','867530','100020850','Mar 3 2020 2:06PM','936' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'748','867530','100020850','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=748)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language',NULL,NULL,NULL,'CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT TOP 1'1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'471','uri://ed-fi.org/LanguageDescriptor','Korean','Korean','Korean',NULL,NULL,NULL,'F55914CC-9C9E-4F18-92D2-63E59A186A8B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '471')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'471' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '471')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','471','100055074','Mar 4 2020 9:52AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1080','uri://ed-fi.org/LanguageUseDescriptor','Native language','Native language','Native language',NULL,NULL,NULL,'093F778D-34E0-4FD4-A81F-4C415B0FB80C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1080')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT TOP 1'1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1080')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'473','uri://ed-fi.org/LanguageDescriptor','Kimbundu','Kimbundu','Kimbundu',NULL,NULL,NULL,'67EA396C-6BA1-4D6E-8E16-58B30F72153E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '473')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'473' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '473')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','473','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '473' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','473','100055074','Mar 4 2020 9:51AM','1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND LanguageDescriptorId=473 AND LanguageUseDescriptorId=1080)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','473','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '473' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','473','100020850','Mar 4 2020 9:51AM','1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND LanguageDescriptorId=473 AND LanguageUseDescriptorId=1080)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian',NULL,NULL,NULL,'0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100055074','Mar 4 2020 2:11PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND RaceDescriptorId=1283)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1286','uri://ed-fi.org/RaceDescriptor','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander',NULL,NULL,NULL,'0E3B30C1-4513-4761-B83B-21F19CFFB41C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1286')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1286')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100055074','Mar 4 2020 2:11PM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND RaceDescriptorId=1286)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100020850','Mar 4 2020 2:12PM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND RaceDescriptorId=1286)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak',NULL,NULL,NULL,'4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT TOP 1'2280' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2280')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100055074','2280','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2285','uri://ed-fi.org/TribalAffiliationDescriptor','Akiachak','Akiachak','Akiachak Native Community',NULL,NULL,NULL,'A6F7F3B1-75DA-43CB-92E7-5FC8AC09AE76','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2285')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT TOP 1'2285' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2285')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100055074','2285','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND TribalAffiliationDescriptorId=2285)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100020850','2285','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND TribalAffiliationDescriptorId=2285)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant',NULL,NULL,NULL,'3150327C-6466-40BF-B940-2D8763EAA694','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'660' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '660')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'664','uri://ed-fi.org/StudentCharacteristicDescriptor','Neglected or Delinquent','Neglected or Delinquent','Neglected or Delinquent',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD88','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '664')); + 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'662','uri://ed-fi.org/StudentCharacteristicDescriptor','Homeless','Homeless','Homeless',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD89','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '662')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'662' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '662')); + -- + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'669','uri://ed-fi.org/StudentCharacteristicDescriptor','Refugee','Refugee','Refugee',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD90','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '669')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'669' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '669')); + -- + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'664' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '664')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','662','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '662' AND StudentUSI= '100055074')); + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','669','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '669' AND StudentUSI= '100055074')); + -- + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','662','100055074',null,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=662)); + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','669','100055074','2110-12-12','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=669)); + -- + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'661','uri://ed-fi.org/StudentCharacteristicDescriptor','Asylee','Asylee','Asylee',NULL,NULL,NULL,'BA2F13EF-275B-4AF0-B4B0-8BED0194CE3E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '661')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'661' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '661')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','661','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','661','100055074',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','528530','882FA1D8-DC7D-460B-868A-806C319DB522','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='528530' AND studentUSI='100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','528530','882FA1D8-DC7D-460B-868A-806C319DB522','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '528530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'528530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='528530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'528530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '528530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','528530','661','100055074',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='528530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','661','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','661','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','661','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=661)); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007',NULL,'2010-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','CB55ECF2-D908-4FCB-88D7-D341B7684EEA','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND EntryDate='2010-01-25')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','7ABF7264-6AB4-4C45-9816-7AC53DCA94E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='628530' AND studentUSI='100020850')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SCHOOLID='628530')); + + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','628530','2011',NULL,'26.000',NULL,'1B7EA089-AE1E-431D-8FF0-51190E5C9AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '628530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-02-08',NULL,NULL,NULL,NULL,NULL,'628530','633','2011','DA1D2833-0A47-49D1-AEFE-EF6FE35A029E','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' and Schoolid='628530')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','01BFD1DE-9B7C-4611-BEDF-467A07217361','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','628530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100005230','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100005230','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_3/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_3/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..d193dd17 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/MSSQL/v_3_3/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentLocalEducationAgencyDemographicsBridge' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolDemographicBridgeKey + nvarchar + + + StudentLocalEducationAgencyKey + varchar + + + DemographicKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/PostgreSQL/v_3_3/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/PostgreSQL/v_3_3/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml new file mode 100644 index 00000000..28f0eb1b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/PostgreSQL/v_3_3/0000_StudentLocalEducationAgencyDemographicsBridge_Data_Load.xml @@ -0,0 +1,376 @@ + + + Any + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530011')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100020850','867530020',NULL,'2012-02-08','38',NULL,NULL,NULL,CURRENT_DATE + INTERVAL '12 month',NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','30075B74-59A1-4246-A497-B514D9841DD3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' AND Schoolid='867530020')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT '110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,'867530','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011 AND SchoolId='867530011')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId)(SELECT '1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + 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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '628530','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504',NULL,NULL,NULL,'9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT '937' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '746','uri://ed-fi.org/DisabilityDescriptor','AUT','AUT','Autism',NULL,NULL,NULL,'8F265E6C-CDE0-47B6-B882-F272DD670BDB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '746')); + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT '746' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '746')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1577','uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor','By health care provider','By health care provider','By health care provider',NULL,NULL,NULL,'A50E66A0-0D27-4415-9C61-BA55D176E155','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1577')); + + INSERT INTO edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId)(SELECT '1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDeterminationSourceTypeDescriptor WHERE DisabilityDeterminationSourceTypeDescriptorId= '1577')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','628530','100055074','Mar 3 2020 2:06PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '936','uri://ed-fi.org/DisabilityDesignationDescriptor','Other','Other','Other',NULL,NULL,NULL,'90043F45-4257-4319-BC45-DD7B983259C5','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '936')); + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT '936' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '936')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '748','uri://ed-fi.org/DisabilityDescriptor','ID','ID','Intellectual Disability',NULL,NULL,NULL,'B4BDE656-FB7C-47AC-BD51-60ABBBFE8DFE','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '748')); + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT '748' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '748')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '748','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '748' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '748','628530','100055074','Mar 3 2020 2:06PM','936' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '748','867530','100020850','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '748' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '748','867530','100020850','Mar 3 2020 2:06PM','936' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '748','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '748','867530','100020850','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND DisabilityDescriptorId=748)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language',NULL,NULL,NULL,'CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT '1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '471','uri://ed-fi.org/LanguageDescriptor','Korean','Korean','Korean',NULL,NULL,NULL,'F55914CC-9C9E-4F18-92D2-63E59A186A8B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '471')); + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT '471' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '471')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '628530','471','100055074','Mar 4 2020 9:52AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1080','uri://ed-fi.org/LanguageUseDescriptor','Native language','Native language','Native language',NULL,NULL,NULL,'093F778D-34E0-4FD4-A81F-4C415B0FB80C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1080')); + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT '1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1080')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '473','uri://ed-fi.org/LanguageDescriptor','Kimbundu','Kimbundu','Kimbundu',NULL,NULL,NULL,'67EA396C-6BA1-4D6E-8E16-58B30F72153E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '473')); + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT '473' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '473')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '628530','473','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '473' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '628530','473','100055074','Mar 4 2020 9:51AM','1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND LanguageDescriptorId=473 AND LanguageUseDescriptorId=1080)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','473','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '473' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','473','100020850','Mar 4 2020 9:51AM','1080' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND LanguageDescriptorId=473 AND LanguageUseDescriptorId=1080)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian',NULL,NULL,NULL,'0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT '1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '628530','100055074','Mar 4 2020 2:11PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1286','uri://ed-fi.org/RaceDescriptor','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander','Native Hawaiian - Pacific Islander',NULL,NULL,NULL,'0E3B30C1-4513-4761-B83B-21F19CFFB41C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1286')); + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT '1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1286')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '628530','100055074','Mar 4 2020 2:11PM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND RaceDescriptorId=1286)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100020850','Mar 4 2020 2:12PM','1286' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND RaceDescriptorId=1286)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak',NULL,NULL,NULL,'4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT '2280' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2280')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '628530','100055074','2280','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2285','uri://ed-fi.org/TribalAffiliationDescriptor','Akiachak','Akiachak','Akiachak Native Community',NULL,NULL,NULL,'A6F7F3B1-75DA-43CB-92E7-5FC8AC09AE76','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2285')); + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT '2285' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2285')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '628530','100055074','2285','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND StudentUSI='100055074' AND TribalAffiliationDescriptorId=2285)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100020850','2285','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND StudentUSI='100020850' AND TribalAffiliationDescriptorId=2285)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant',NULL,NULL,NULL,'3150327C-6466-40BF-B940-2D8763EAA694','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '660' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '660')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '664','uri://ed-fi.org/StudentCharacteristicDescriptor','Neglected or Delinquent','Neglected or Delinquent','Neglected or Delinquent',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD88','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '664')); + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '664' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '664')); + + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '662','uri://ed-fi.org/StudentCharacteristicDescriptor','Homeless','Homeless','Homeless',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD89','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '662')); + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '662' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '662')); + -- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '669','uri://ed-fi.org/StudentCharacteristicDescriptor','Refugee','Refugee','Refugee',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD90','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '669')); + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '669' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '669')); + -- + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100020850')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','662','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '662' AND StudentUSI= '100055074')); + -- + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','669','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '669' AND StudentUSI= '100055074')); + -- + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','628530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + -- + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','662','100055074',null,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=662)); + -- + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','669','100055074','2110-12-12','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=669)); + -- + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','628530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + 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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '661','uri://ed-fi.org/StudentCharacteristicDescriptor','Asylee','Asylee','Asylee',NULL,NULL,NULL,'BA2F13EF-275B-4AF0-B4B0-8BED0194CE3E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '661')); + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '661' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '661')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','661','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','628530','661','100055074',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '528530','Kingston ISD',NULL,NULL,'8F269870-093C-4C8F-A9E9-3CBBBF851743','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '528530')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','528530','882FA1D8-DC7D-460B-868A-806C319DB522','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='528530' AND studentUSI='100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','528530','882FA1D8-DC7D-460B-868A-806C319DB522','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '528530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '528530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='528530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '528530','661','100055074',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '528530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','528530','661','100055074',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='528530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','661','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','661','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '661' AND StudentUSI= '100005230')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','661','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=661)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530007',NULL,'2010-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','CB55ECF2-D908-4FCB-88D7-D341B7684EEA','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND EntryDate='2010-01-25')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','628530','7ABF7264-6AB4-4C45-9816-7AC53DCA94E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='628530' AND studentUSI='100020850')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '628530','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SCHOOLID='628530')); + + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '633','628530','2011',NULL,'26.000',NULL,'1B7EA089-AE1E-431D-8FF0-51190E5C9AE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '628530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100020850','628530',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-02-08',NULL,NULL,NULL,NULL,NULL,'628530','633','2011','DA1D2833-0A47-49D1-AEFE-EF6FE35A029E','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' and Schoolid='628530')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','628530','01BFD1DE-9B7C-4611-BEDF-467A07217361','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '628530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','628530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','628530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '628530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '628530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '628530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '628530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','628530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='628530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530','2011','100005230','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530','100005230','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100005230',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/PostgreSQL/v_3_3/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/PostgreSQL/v_3_3/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..9b3e6323 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDemographicsBridge/PostgreSQL/v_3_3/0001_StudentLocalEducationAgencyDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'studentlocaleducationagencydemographicsbridge' + ORDER BY ORDINAL_POSITION ASC; + + + studentschooldemographicbridgekey + text + + + studentlocaleducationagencykey + text + + + demographickey + text + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_2/0000_StudentLocalEducationAgencyDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_2/0000_StudentLocalEducationAgencyDim_Data_Load.xml new file mode 100644 index 00000000..757609be --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_2/0000_StudentLocalEducationAgencyDim_Data_Load.xml @@ -0,0 +1,189 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + DECLARE @schoolId1 int = 867530011; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @schoolId1,'Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId1)); + + DECLARE @districtId int = 867530; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @districtId,'Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @districtId)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1 @districtId,NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= @districtId)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1 @schoolId1,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId1)); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi1 INT = 100005230; + DECLARE @studentUniqueId1 NVARCHAR(32) = '189871'; + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,@studentUniqueId1,'AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi1)); + SET IDENTITY_INSERT edfi.Student 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'632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'632',@districtId,'2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= @districtId AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@schoolId1,NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@districtId,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = @studentUsi1)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@districtId,'F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@districtId AND studentUSI=@studentUsi1)); + + DECLARE @schoolId2 int = 867530020; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @schoolId2,'Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId2)); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1 @schoolId2,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId2)); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi2 INT = 100020850; + DECLARE @studentUniqueId2 NVARCHAR(32) = '189919'; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,@studentUniqueId2,'32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI = @studentUsi2)); + SET IDENTITY_INSERT edfi.Student OFF; + + DECLARE @districtId2 int = 628530; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @districtId2,'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= @districtId2)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'635','uri://ed-fi.org/GraduationPlanTypeDescriptor','Minimum','Minimum','Minimum',NULL,NULL,NULL,'74EF6B6E-6063-4E15-BFC8-D5D4F281F437','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '635')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'635' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '635')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2013','2012-2013','1','1EA4FC18-04FF-464A-A336-52FCA7869C9E','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'635',@districtId2,'2013',NULL,'24.000',NULL,'9FDA0B51-E1E0-4552-AA63-D10131432593','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.graduationplan WHERE id='9FDA0B51-E1E0-4552-AA63-D10131432593')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@schoolId2,NULL,'2012-02-08','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@districtId2,'635','2013','30075B74-59A1-4246-A497-B514D9841DD3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = '30075B74-59A1-4246-A497-B514D9841DD3')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT TOP 1'110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@districtId,'A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@districtId AND studentUSI=@studentUsi2)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + 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')); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi3 INT = 100055074; + DECLARE @studentUniqueId3 NVARCHAR(32) = '193964'; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,@studentUniqueId3,'5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi3)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,@schoolId1,'2011','2011-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@districtId,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,@districtId,'F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@districtId AND studentUSI=@studentUsi3)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @districtId2,'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= @districtId2)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,@districtId2,'980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE id='980FDED8-7809-4C60-A567-04EE73631333')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1 @districtId2,NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyid=@districtId2)); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633',@districtId,'2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= @districtId AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + DECLARE @schoolId3 INT = 867530007; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @schoolId3,'Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId3)); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1 @schoolId3,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId3)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@schoolId3,NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-02-08',NULL,NULL,NULL,NULL,NULL,@districtId,'633','2011','1AA6BF78-02F0-4000-B655-661A47D9E79F','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='1AA6BF78-02F0-4000-B655-661A47D9E79F')); + + ----- + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055100','Dave','P','Smith','1994-08-25','Lubbock','193910','5EED229F-2181-4221-9AC1-D977E6314F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055100')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT TOP 1'100055100','867530011','2011','2011-02-21','24','867530','E0F327DA-A70A-49C8-998C-7388423A55A9','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-02-21' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055100' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,SexDescriptorId) + (SELECT TOP 1'100055100','628530','980FDED8-7809-4C60-A567-04EE73631334','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE id='980FDED8-7809-4C60-A567-04EE73631334')); + + -- Data for Digital Access testing + + -- Add SEOA entry for @schoolId1,@studentUsi1 matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@schoolId1,'F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Dec 14 2018 2:34PM','Dec 14 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@schoolId1 AND studentUSI=@studentUsi1)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- @studentUsi1 happy path + (@districtId,@studentUsi1,'InternetAccessInResidence','Yes'), + (@districtId,@studentUsi1,'InternetAccessTypeInResidence','ResidentialBroadband'), + (@districtId,@studentUsi1,'InternetPerformance','Yes - No issues'), + (@districtId,@studentUsi1,'DigitalDevice','Chromebook'), + (@districtId,@studentUsi1,'DeviceAccess','School Provided - Dedicated'), + + -- These extra records should be ignored by the view because + -- they are associated with the School, not the District + (@schoolId1,@studentUsi1,'InternetAccessInResidence','Yes__'), + (@schoolId1,@studentUsi1,'InternetAccessTypeInResidence','ResidentialBroadband__'), + (@schoolId1,@studentUsi1,'InternetPerformance','Yes - No issues__'), + (@schoolId1,@studentUsi1,'DigitalDevice','Chromebook__'), + (@schoolId1,@studentUsi1,'DeviceAccess','School Provided - Dedicated__'), + + -- This record is for a different student + (@districtId,@studentUsi2,'DeviceAccess','School Provided - DedicatedX'); + + -- @studentUsi3 is in @districtId but has no indicator records + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_2/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_2/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..81e47f0f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_2/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml @@ -0,0 +1,74 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentLocalEducationAgencyDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentLocalEducationAgencyKey + nvarchar + + + StudentKey + nvarchar + + + LocalEducationAgencyKey + varchar + + + StudentFirstName + nvarchar + + + StudentMiddleName + nvarchar + + + StudentLastName + nvarchar + + + LimitedEnglishProficiency + nvarchar + + + IsHispanic + int + + + Sex + nvarchar + + + InternetAccessInResidence + nvarchar + + + InternetAccessTypeInResidence + nvarchar + + + InternetPerformance + nvarchar + + + DigitalDevice + nvarchar + + + DeviceAccess + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_3/0000_StudentLocalEducationAgencyDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_3/0000_StudentLocalEducationAgencyDim_Data_Load.xml new file mode 100644 index 00000000..757609be --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_3/0000_StudentLocalEducationAgencyDim_Data_Load.xml @@ -0,0 +1,189 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + DECLARE @schoolId1 int = 867530011; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @schoolId1,'Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId1)); + + DECLARE @districtId int = 867530; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @districtId,'Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @districtId)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1 @districtId,NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= @districtId)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1 @schoolId1,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId1)); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi1 INT = 100005230; + DECLARE @studentUniqueId1 NVARCHAR(32) = '189871'; + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,@studentUniqueId1,'AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi1)); + SET IDENTITY_INSERT edfi.Student 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'632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'632',@districtId,'2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= @districtId AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@schoolId1,NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@districtId,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = @studentUsi1)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@districtId,'F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@districtId AND studentUSI=@studentUsi1)); + + DECLARE @schoolId2 int = 867530020; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @schoolId2,'Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId2)); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1 @schoolId2,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId2)); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi2 INT = 100020850; + DECLARE @studentUniqueId2 NVARCHAR(32) = '189919'; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,@studentUniqueId2,'32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI = @studentUsi2)); + SET IDENTITY_INSERT edfi.Student OFF; + + DECLARE @districtId2 int = 628530; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @districtId2,'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= @districtId2)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'635','uri://ed-fi.org/GraduationPlanTypeDescriptor','Minimum','Minimum','Minimum',NULL,NULL,NULL,'74EF6B6E-6063-4E15-BFC8-D5D4F281F437','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '635')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'635' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '635')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2013','2012-2013','1','1EA4FC18-04FF-464A-A336-52FCA7869C9E','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'635',@districtId2,'2013',NULL,'24.000',NULL,'9FDA0B51-E1E0-4552-AA63-D10131432593','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.graduationplan WHERE id='9FDA0B51-E1E0-4552-AA63-D10131432593')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@schoolId2,NULL,'2012-02-08','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@districtId2,'635','2013','30075B74-59A1-4246-A497-B514D9841DD3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = '30075B74-59A1-4246-A497-B514D9841DD3')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT TOP 1'110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@districtId,'A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@districtId AND studentUSI=@studentUsi2)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + 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')); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi3 INT = 100055074; + DECLARE @studentUniqueId3 NVARCHAR(32) = '193964'; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,@studentUniqueId3,'5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi3)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,@schoolId1,'2011','2011-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,@districtId,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,@districtId,'F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@districtId AND studentUSI=@studentUsi3)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @districtId2,'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= @districtId2)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi3,@districtId2,'980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE id='980FDED8-7809-4C60-A567-04EE73631333')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1 @districtId2,NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyid=@districtId2)); + + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633',@districtId,'2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= @districtId AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + DECLARE @schoolId3 INT = 867530007; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1 @schoolId3,'Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId3)); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1 @schoolId3,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId3)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@schoolId3,NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-02-08',NULL,NULL,NULL,NULL,NULL,@districtId,'633','2011','1AA6BF78-02F0-4000-B655-661A47D9E79F','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='1AA6BF78-02F0-4000-B655-661A47D9E79F')); + + ----- + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100055100','Dave','P','Smith','1994-08-25','Lubbock','193910','5EED229F-2181-4221-9AC1-D977E6314F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055100')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT TOP 1'100055100','867530011','2011','2011-02-21','24','867530','E0F327DA-A70A-49C8-998C-7388423A55A9','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-02-21' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055100' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,SexDescriptorId) + (SELECT TOP 1'100055100','628530','980FDED8-7809-4C60-A567-04EE73631334','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE id='980FDED8-7809-4C60-A567-04EE73631334')); + + -- Data for Digital Access testing + + -- Add SEOA entry for @schoolId1,@studentUsi1 matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@schoolId1,'F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Dec 14 2018 2:34PM','Dec 14 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@schoolId1 AND studentUSI=@studentUsi1)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- @studentUsi1 happy path + (@districtId,@studentUsi1,'InternetAccessInResidence','Yes'), + (@districtId,@studentUsi1,'InternetAccessTypeInResidence','ResidentialBroadband'), + (@districtId,@studentUsi1,'InternetPerformance','Yes - No issues'), + (@districtId,@studentUsi1,'DigitalDevice','Chromebook'), + (@districtId,@studentUsi1,'DeviceAccess','School Provided - Dedicated'), + + -- These extra records should be ignored by the view because + -- they are associated with the School, not the District + (@schoolId1,@studentUsi1,'InternetAccessInResidence','Yes__'), + (@schoolId1,@studentUsi1,'InternetAccessTypeInResidence','ResidentialBroadband__'), + (@schoolId1,@studentUsi1,'InternetPerformance','Yes - No issues__'), + (@schoolId1,@studentUsi1,'DigitalDevice','Chromebook__'), + (@schoolId1,@studentUsi1,'DeviceAccess','School Provided - Dedicated__'), + + -- This record is for a different student + (@districtId,@studentUsi2,'DeviceAccess','School Provided - DedicatedX'); + + -- @studentUsi3 is in @districtId but has no indicator records + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_3/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_3/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..81e47f0f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/MSSQL/v_3_3/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml @@ -0,0 +1,74 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentLocalEducationAgencyDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentLocalEducationAgencyKey + nvarchar + + + StudentKey + nvarchar + + + LocalEducationAgencyKey + varchar + + + StudentFirstName + nvarchar + + + StudentMiddleName + nvarchar + + + StudentLastName + nvarchar + + + LimitedEnglishProficiency + nvarchar + + + IsHispanic + int + + + Sex + nvarchar + + + InternetAccessInResidence + nvarchar + + + InternetAccessTypeInResidence + nvarchar + + + InternetPerformance + nvarchar + + + DigitalDevice + nvarchar + + + DeviceAccess + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/PostgreSQL/v_3_3/0000_StudentLocalEducationAgencyDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/PostgreSQL/v_3_3/0000_StudentLocalEducationAgencyDim_Data_Load.xml new file mode 100644 index 00000000..c7972a37 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/PostgreSQL/v_3_3/0000_StudentLocalEducationAgencyDim_Data_Load.xml @@ -0,0 +1,153 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '632','uri://ed-fi.org/GraduationPlanTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'2571F0D0-A08F-40CD-A6BC-0E26B0ADDAB4','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '632')); + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '632' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '632')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '632','867530','2012',NULL,'26.000',NULL,'4D772E50-9572-40FA-9135-FBD866ADFEE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '632' AND GraduationSchoolYear= '2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + + 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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '635','uri://ed-fi.org/GraduationPlanTypeDescriptor','Minimum','Minimum','Minimum',NULL,NULL,NULL,'74EF6B6E-6063-4E15-BFC8-D5D4F281F437','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '635')); + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '635' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '635')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '2013','2012-2013','1','1EA4FC18-04FF-464A-A336-52FCA7869C9E','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '635','628530','2013',NULL,'24.000',NULL,'9FDA0B51-E1E0-4552-AA63-D10131432593','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.graduationplan WHERE id='9FDA0B51-E1E0-4552-AA63-D10131432593')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100020850','867530020',NULL,'2012-02-08','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'628530','635','2013','30075B74-59A1-4246-A497-B514D9841DD3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = '30075B74-59A1-4246-A497-B514D9841DD3')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT '110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + 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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE id='980FDED8-7809-4C60-A567-04EE73631333')); + + 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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + + INSERT INTO edfi.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100020850','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,'2012-02-08',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','1AA6BF78-02F0-4000-B655-661A47D9E79F','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='1AA6BF78-02F0-4000-B655-661A47D9E79F')); + + ----- + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100055100','Dave','P','Smith','1994-08-25','Lubbock','193910','5EED229F-2181-4221-9AC1-D977E6314F98','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055100')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT '100055100','867530011','2011','2011-02-21','24','867530','E0F327DA-A70A-49C8-998C-7388423A55A9','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-02-21' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055100' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,SexDescriptorId) + (SELECT '100055100','628530','980FDED8-7809-4C60-A567-04EE73631334','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE id='980FDED8-7809-4C60-A567-04EE73631334')); + + -- Data for Digital Access testing + + -- Add SEOA entry for '867530011','100005230' matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530011','F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Dec 14 2018 2:34PM','Dec 14 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- '100005230' happy path + ('867530','100005230','InternetAccessInResidence','Yes'), + ('867530','100005230','InternetAccessTypeInResidence','ResidentialBroadband'), + ('867530','100005230','InternetPerformance','Yes - No issues'), + ('867530','100005230','DigitalDevice','Chromebook'), + ('867530','100005230','DeviceAccess','School Provided - Dedicated'), + + -- These extra records should be ignored by the view because + -- they are associated with the School, not the District + ('867530011','100005230','InternetAccessInResidence','Yes__'), + ('867530011','100005230','InternetAccessTypeInResidence','ResidentialBroadband__'), + ('867530011','100005230','InternetPerformance','Yes - No issues__'), + ('867530011','100005230','DigitalDevice','Chromebook__'), + ('867530011','100005230','DeviceAccess','School Provided - Dedicated__'), + + -- This record is for a different student + ('867530','100020850','DeviceAccess','School Provided - DedicatedX'); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/PostgreSQL/v_3_3/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/PostgreSQL/v_3_3/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..951006c8 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentLocalEducationAgencyDim/PostgreSQL/v_3_3/0001_StudentLocalEducationAgencyDim_should_match_column_dictionary.xml @@ -0,0 +1,75 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'studentlocaleducationagencydim' + ORDER BY ORDINAL_POSITION ASC; + + + studentlocaleducationagencykey + text + + + studentkey + character varying + + + localeducationagencykey + character varying + + + studentfirstname + character varying + + + studentmiddlename + character varying + + + studentlastname + character varying + + + limitedenglishproficiency + character varying + + + ishispanic + boolean + + + sex + character varying + + + internetaccessinresidence + character varying + + + internetaccesstypeinresidence + character varying + + + internetperformance + character varying + + + digitaldevice + character varying + + + deviceaccess + character varying + + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/0001_StudentProgramCohortDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_1/0001_StudentProgramCohortDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/0001_StudentProgramCohortDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_1/0001_StudentProgramCohortDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_2/0000_StudentProgramCohortDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_2/0000_StudentProgramCohortDim_Data_Load.xml new file mode 100644 index 00000000..887e4441 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_2/0000_StudentProgramCohortDim_Data_Load.xml @@ -0,0 +1,591 @@ + + + Any + + --###### 189889-867530022-Cohort Program 1-1666-867530-867530-20060814-CI-1000 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530','Glendale ISD','9CC29A49-637C-4882-A7DB-99AD87690100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1666','uri://ed-fi.org/ProgramTypeDescriptor','Cohort Program 1','Cohort Program 1','Cohort Program 1','3A180521-456F-4884-979C-EE83F4B52381','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1666')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1666' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867530','Cohort Program 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Cohort Program 1' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','Cecilia','D','Begay','1989-06-05','Lubbock','189889','989B461B-45DD-4947-B310-51229E206100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-14','867530','867530','Cohort Program 1','1666','100014881','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154100','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867530 and ProgramEducationOrganizationId = 867530 and ProgramName = 'Cohort Program 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014881)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-14',867530,867530,'Cohort Program 1','1666','100014881'); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1515','uri://ed-fi.org/CohortTypeDescriptor','Academic Intervention','Academic Intervention','Academic Intervention','3A180521-456F-4884-979C-EE83F4B52382','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1515')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortTypeDescriptor (CohortTypeDescriptorId) + VALUES ('1515'); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade','70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530022','Hollywood High School','032A4662-74DA-448B-B881-C88B82DAD100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152950','ESC Region 17','03DE6F94-316A-4B06-8C67-2C8748DCA100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent','0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867530','152950','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530022','867530' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','867530022','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014881 and SchoolId = 867530022)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1000',867530,'Cohort description 01',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52100'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1000',867530,867530,'Cohort Program 1',1666,GETDATE()); + + --###### 189890-867530023-Cohort Program 2-1666-867531-867531-20060815-CI-1001 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867531','Glendale ISE','9CC29A49-637C-4882-A7DB-99AD87690101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867531')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Cohort Program 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Cohort Program 2' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','Boot','D','Smith','1989-06-05','Lubbock','189890','989B461B-45DD-4947-B310-51229E206101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Cohort Program 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154101','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Cohort Program 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867531,867531,'Cohort Program 2','1666','100014882'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530023','Hollywood High School 2','032A4662-74DA-448B-B881-C88B82DAD101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152951','ESC Region 18','03DE6F94-316A-4B06-8C67-2C8748DCA101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152951')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152951',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867531','152951','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530023','867531' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','867530023','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014882 and SchoolId = 867530023)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1001',867531,'Cohort description 02',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52101'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1001',867531,867531,'Cohort Program 2',1666,GETDATE()); + + -- CohortIdentifier + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1002',867531,'Cohort description 02',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52102'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1002',867531,867531,'Cohort Program 2',1666,GETDATE()); + + --/ CohortIdentifier + + -- EducationOrganizationId + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867532','Glendale ISF','9CC29A49-637C-4882-A7DB-99AD87690102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867532')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867532','Cohort Program 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867532' AND ProgramName= 'Cohort Program 2' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1001',867532,'Cohort description 02',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52103'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1001',867532,867532,'Cohort Program 2',1666,GETDATE()); + + --/ EducationOrganizationId + + --###### 189891-867530024-Cohort Program 3-1666-867533-867533-20060815-CI-1004 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867533','Glendale ISG','9CC29A49-637C-4882-A7DB-99AD87690103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867533')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867533','Cohort Program 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 3' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014883','Dave','D','Johnson','1989-06-05','Lubbock','189891','989B461B-45DD-4947-B310-51229E206102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014883')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867533','867533','Cohort Program 3','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154102','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867533 and ProgramEducationOrganizationId = 867533 and ProgramName = 'Cohort Program 3' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867533,867533,'Cohort Program 3','1666','100014883'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530024','Hollywood High School 4','032A4662-74DA-448B-B881-C88B82DAD102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152952','ESC Region 19','03DE6F94-316A-4B06-8C67-2C8748DCA102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152952')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152952',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152952')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867533','152952','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867533')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530024','867533' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530024')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014883','867530024','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39102','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014883 and SchoolId = 867530024)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1004',867533,'Cohort description 03',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52104'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 3',1666,GETDATE()); + + -- Program + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867533','Cohort Program 4','E078EB62-CDB6-40B3-ADDD-C37C34D5D104','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 4' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 4',1666,GETDATE()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867533','867533','Cohort Program 4','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154103','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867533 and ProgramEducationOrganizationId = 867533 and ProgramName = 'Cohort Program 4' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867533,867533,'Cohort Program 4','1666','100014883'); + + --/ Program + + -- ProgramTypeDescriptorId + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1667','uri://ed-fi.org/ProgramTypeDescriptor','Cohort Program Other','Cohort Program Other','Cohort Program Other','3A180521-456F-4884-979C-EE83F4B52383','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1667')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1667' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867533','Cohort Program 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 3' AND ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 3',1667,GETDATE()); + + --/ ProgramTypeDescriptorId + + + --###### 189894-867530027-Cohort Program 6-1666-867536-867536-20060815-CI-1007 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867536','Glendale ISH','9CC29A49-637C-4882-A7DB-99AD87690106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867536')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867536','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867536' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014886','Carl','D','Thomsom','1989-06-05','Lubbock','189894','989B461B-45DD-4947-B310-51229E206105','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014886')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154105','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867536,867536,'Cohort Program 6','1666','100014886'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530027','Hollywood High School 7','032A4662-74DA-448B-B881-C88B82DAD105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530027')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152955','ESC Region 20','03DE6F94-316A-4B06-8C67-2C8748DCA105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152955')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152955',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152955')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867536','152955','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867536')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530027','867536' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530027')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014886','867530027','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39105','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014886 and SchoolId = 867530027)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1007',867536,'Cohort description 06',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52107'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867536,867536,'Cohort Program 6',1666,GETDATE()); + + -- BeginDate + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-16','867536','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154106','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-16' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ BeginDate + + -- EducationOrganizationId + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867537','Glendale ISI','9CC29A49-637C-4882-A7DB-99AD87690107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867537')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867537','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867537' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1007',867537,'Cohort description 06',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52108'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867537,867536,'Cohort Program 6',1666,GETDATE()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867537','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154107','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867537 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ EducationOrganizationId + + -- ProgramEducationOrganizationId + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867537','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154108','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867537 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ ProgramEducationOrganizationId + + -- ProgramTypeDescriptorId + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867536','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867536' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867536,867536,'Cohort Program 6',1667,GETDATE()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867536','Cohort Program 6','1667','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154110','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1667 and StudentUSI = 100014886)); + + --/ ProgramTypeDescriptorId + + -- StudentUSI + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014887','AMY','D','Name','1989-06-05','Lubbock','189895','989B461B-45DD-4947-B310-51229E206106','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014887')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867536','Cohort Program 6','1666','100014887','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154111','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014887)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014887','867530027','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39106','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014887 and SchoolId = 867530027)); + + --/ StudentUSI + + --###### 189896-867530028-Cohort Program 8-1666-867538-867538-20060815-CI-1009 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867538','Glendale ISJ','9CC29A49-637C-4882-A7DB-99AD87690108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867538')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867538','Cohort Program 8','E078EB62-CDB6-40B3-ADDD-C37C34D5D108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867538' AND ProgramName= 'Cohort Program 8' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014888','Nene','D','Smith','1989-06-05','Lubbock','189896','989B461B-45DD-4947-B310-51229E206107','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014888')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867538','867538','Cohort Program 8','1666','100014888','Sep 18 2015 11:53AM','Sep 18 2019 11:53AM','BD76D484-3CB3-4A67-B020-E47407154109','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867538 and ProgramEducationOrganizationId = 867538 and ProgramName = 'Cohort Program 8' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014888)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867538,867538,'Cohort Program 8','1666','100014888'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530028','Hollywood High School 8','032A4662-74DA-448B-B881-C88B82DAD106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530028')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152956','ESC Region 21','03DE6F94-316A-4B06-8C67-2C8748DCA106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152956')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152956',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152956')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867538','152956','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867539')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530028','867538' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530028')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014888','867530028','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39107','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014888 and SchoolId = 867530028)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1009',867538,'Cohort description 07',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52109'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1009',867538,867538,'Cohort Program 8',1666,GETDATE()); + + + --###### 189896-867530028-Cohort Program 8-1666-867538-867538-20060815-CI-1009 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867539','Glendale ISK','9CC29A49-637C-4882-A7DB-99AD87690109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867539')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867539','Cohort Program 9','E078EB62-CDB6-40B3-ADDD-C37C34D5D110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867539' AND ProgramName= 'Cohort Program 9' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014889','Trim','D','Smith','1989-06-05','Lubbock','189899','989B461B-45DD-4947-B310-51229E206109','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014889')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867539','867539','Cohort Program 9','1666','100014889','Sep 18 2015 11:53AM','Sep 18 2019 11:53AM','BD76D484-3CB3-4A67-B020-E47407154112','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867539 and ProgramEducationOrganizationId = 867539 and ProgramName = 'Cohort Program 9' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014889)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867539,867539,'Cohort Program 9','1666','100014889'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530029','Hollywood High School 9','032A4662-74DA-448B-B881-C88B82DAD108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530029')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152958','ESC Region 22','03DE6F94-316A-4B06-8C67-2C8748DCA108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152958')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152958',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152958')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867539','152956','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867539')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530029','867539' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530029')); + + /*INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,ExitWithdrawDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014889','867530029','2011-10-01','38','631','2013',DATEADD(day, 1, GETDATE()),'AEA4CD3C-ECD8-428B-AE72-F48F60E39109','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014889 and SchoolId = 867530029));*/ + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,ExitWithdrawDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014889','867530029','2011-10-01','38','631','2013','2121-12-31','AEA4CD3C-ECD8-428B-AE72-F48F60E39109','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014889 and SchoolId = 867530029)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1010',867539,'Cohort description 10',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52110'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1010',867539,867539,'Cohort Program 9',1666,GETDATE()); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_2/0001_StudentProgramCohortDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_2/0001_StudentProgramCohortDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..548a44ea --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_2/0001_StudentProgramCohortDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentProgramCohortDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentProgramCohortKey + nvarchar + + + StudentSchoolProgramKey + nvarchar + + + StudentSchoolKey + nvarchar + + + EntryGradeLevelDescriptor + nvarchar + + + CohortTypeDescriptor + nvarchar + + + CohortDescription + nvarchar + + + ProgramName + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_3/0000_StudentProgramCohortDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_3/0000_StudentProgramCohortDim_Data_Load.xml new file mode 100644 index 00000000..887e4441 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_3/0000_StudentProgramCohortDim_Data_Load.xml @@ -0,0 +1,591 @@ + + + Any + + --###### 189889-867530022-Cohort Program 1-1666-867530-867530-20060814-CI-1000 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530','Glendale ISD','9CC29A49-637C-4882-A7DB-99AD87690100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1666','uri://ed-fi.org/ProgramTypeDescriptor','Cohort Program 1','Cohort Program 1','Cohort Program 1','3A180521-456F-4884-979C-EE83F4B52381','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1666')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1666' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867530','Cohort Program 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Cohort Program 1' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','Cecilia','D','Begay','1989-06-05','Lubbock','189889','989B461B-45DD-4947-B310-51229E206100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-14','867530','867530','Cohort Program 1','1666','100014881','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154100','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867530 and ProgramEducationOrganizationId = 867530 and ProgramName = 'Cohort Program 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014881)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-14',867530,867530,'Cohort Program 1','1666','100014881'); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1515','uri://ed-fi.org/CohortTypeDescriptor','Academic Intervention','Academic Intervention','Academic Intervention','3A180521-456F-4884-979C-EE83F4B52382','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1515')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortTypeDescriptor (CohortTypeDescriptorId) + VALUES ('1515'); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade','70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530022','Hollywood High School','032A4662-74DA-448B-B881-C88B82DAD100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152950','ESC Region 17','03DE6F94-316A-4B06-8C67-2C8748DCA100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent','0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867530','152950','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530022','867530' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','867530022','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014881 and SchoolId = 867530022)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1000',867530,'Cohort description 01',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52100'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1000',867530,867530,'Cohort Program 1',1666,GETDATE()); + + --###### 189890-867530023-Cohort Program 2-1666-867531-867531-20060815-CI-1001 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867531','Glendale ISE','9CC29A49-637C-4882-A7DB-99AD87690101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867531')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Cohort Program 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Cohort Program 2' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','Boot','D','Smith','1989-06-05','Lubbock','189890','989B461B-45DD-4947-B310-51229E206101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Cohort Program 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154101','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Cohort Program 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867531,867531,'Cohort Program 2','1666','100014882'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530023','Hollywood High School 2','032A4662-74DA-448B-B881-C88B82DAD101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152951','ESC Region 18','03DE6F94-316A-4B06-8C67-2C8748DCA101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152951')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152951',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867531','152951','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530023','867531' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','867530023','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014882 and SchoolId = 867530023)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1001',867531,'Cohort description 02',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52101'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1001',867531,867531,'Cohort Program 2',1666,GETDATE()); + + -- CohortIdentifier + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1002',867531,'Cohort description 02',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52102'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1002',867531,867531,'Cohort Program 2',1666,GETDATE()); + + --/ CohortIdentifier + + -- EducationOrganizationId + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867532','Glendale ISF','9CC29A49-637C-4882-A7DB-99AD87690102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867532')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867532','Cohort Program 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867532' AND ProgramName= 'Cohort Program 2' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1001',867532,'Cohort description 02',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52103'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1001',867532,867532,'Cohort Program 2',1666,GETDATE()); + + --/ EducationOrganizationId + + --###### 189891-867530024-Cohort Program 3-1666-867533-867533-20060815-CI-1004 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867533','Glendale ISG','9CC29A49-637C-4882-A7DB-99AD87690103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867533')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867533','Cohort Program 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 3' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014883','Dave','D','Johnson','1989-06-05','Lubbock','189891','989B461B-45DD-4947-B310-51229E206102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014883')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867533','867533','Cohort Program 3','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154102','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867533 and ProgramEducationOrganizationId = 867533 and ProgramName = 'Cohort Program 3' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867533,867533,'Cohort Program 3','1666','100014883'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530024','Hollywood High School 4','032A4662-74DA-448B-B881-C88B82DAD102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152952','ESC Region 19','03DE6F94-316A-4B06-8C67-2C8748DCA102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152952')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152952',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152952')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867533','152952','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867533')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530024','867533' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530024')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014883','867530024','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39102','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014883 and SchoolId = 867530024)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1004',867533,'Cohort description 03',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52104'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 3',1666,GETDATE()); + + -- Program + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867533','Cohort Program 4','E078EB62-CDB6-40B3-ADDD-C37C34D5D104','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 4' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 4',1666,GETDATE()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867533','867533','Cohort Program 4','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154103','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867533 and ProgramEducationOrganizationId = 867533 and ProgramName = 'Cohort Program 4' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867533,867533,'Cohort Program 4','1666','100014883'); + + --/ Program + + -- ProgramTypeDescriptorId + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1667','uri://ed-fi.org/ProgramTypeDescriptor','Cohort Program Other','Cohort Program Other','Cohort Program Other','3A180521-456F-4884-979C-EE83F4B52383','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1667')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1667' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867533','Cohort Program 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 3' AND ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 3',1667,GETDATE()); + + --/ ProgramTypeDescriptorId + + + --###### 189894-867530027-Cohort Program 6-1666-867536-867536-20060815-CI-1007 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867536','Glendale ISH','9CC29A49-637C-4882-A7DB-99AD87690106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867536')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867536','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867536' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014886','Carl','D','Thomsom','1989-06-05','Lubbock','189894','989B461B-45DD-4947-B310-51229E206105','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014886')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154105','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867536,867536,'Cohort Program 6','1666','100014886'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530027','Hollywood High School 7','032A4662-74DA-448B-B881-C88B82DAD105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530027')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152955','ESC Region 20','03DE6F94-316A-4B06-8C67-2C8748DCA105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152955')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152955',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152955')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867536','152955','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867536')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530027','867536' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530027')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014886','867530027','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39105','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014886 and SchoolId = 867530027)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1007',867536,'Cohort description 06',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52107'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867536,867536,'Cohort Program 6',1666,GETDATE()); + + -- BeginDate + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-16','867536','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154106','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-16' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ BeginDate + + -- EducationOrganizationId + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867537','Glendale ISI','9CC29A49-637C-4882-A7DB-99AD87690107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867537')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867537','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867537' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1007',867537,'Cohort description 06',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52108'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867537,867536,'Cohort Program 6',1666,GETDATE()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867537','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154107','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867537 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ EducationOrganizationId + + -- ProgramEducationOrganizationId + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867537','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154108','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867537 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ ProgramEducationOrganizationId + + -- ProgramTypeDescriptorId + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867536','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867536' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867536,867536,'Cohort Program 6',1667,GETDATE()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867536','Cohort Program 6','1667','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154110','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1667 and StudentUSI = 100014886)); + + --/ ProgramTypeDescriptorId + + -- StudentUSI + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014887','AMY','D','Name','1989-06-05','Lubbock','189895','989B461B-45DD-4947-B310-51229E206106','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014887')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867536','867536','Cohort Program 6','1666','100014887','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154111','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014887)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014887','867530027','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39106','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014887 and SchoolId = 867530027)); + + --/ StudentUSI + + --###### 189896-867530028-Cohort Program 8-1666-867538-867538-20060815-CI-1009 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867538','Glendale ISJ','9CC29A49-637C-4882-A7DB-99AD87690108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867538')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867538','Cohort Program 8','E078EB62-CDB6-40B3-ADDD-C37C34D5D108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867538' AND ProgramName= 'Cohort Program 8' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014888','Nene','D','Smith','1989-06-05','Lubbock','189896','989B461B-45DD-4947-B310-51229E206107','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014888')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867538','867538','Cohort Program 8','1666','100014888','Sep 18 2015 11:53AM','Sep 18 2019 11:53AM','BD76D484-3CB3-4A67-B020-E47407154109','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867538 and ProgramEducationOrganizationId = 867538 and ProgramName = 'Cohort Program 8' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014888)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867538,867538,'Cohort Program 8','1666','100014888'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530028','Hollywood High School 8','032A4662-74DA-448B-B881-C88B82DAD106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530028')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152956','ESC Region 21','03DE6F94-316A-4B06-8C67-2C8748DCA106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152956')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152956',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152956')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867538','152956','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867539')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530028','867538' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530028')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014888','867530028','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39107','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014888 and SchoolId = 867530028)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1009',867538,'Cohort description 07',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52109'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1009',867538,867538,'Cohort Program 8',1666,GETDATE()); + + + --###### 189896-867530028-Cohort Program 8-1666-867538-867538-20060815-CI-1009 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867539','Glendale ISK','9CC29A49-637C-4882-A7DB-99AD87690109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867539')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867539','Cohort Program 9','E078EB62-CDB6-40B3-ADDD-C37C34D5D110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867539' AND ProgramName= 'Cohort Program 9' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014889','Trim','D','Smith','1989-06-05','Lubbock','189899','989B461B-45DD-4947-B310-51229E206109','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014889')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867539','867539','Cohort Program 9','1666','100014889','Sep 18 2015 11:53AM','Sep 18 2019 11:53AM','BD76D484-3CB3-4A67-B020-E47407154112','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867539 and ProgramEducationOrganizationId = 867539 and ProgramName = 'Cohort Program 9' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014889)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867539,867539,'Cohort Program 9','1666','100014889'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530029','Hollywood High School 9','032A4662-74DA-448B-B881-C88B82DAD108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530029')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152958','ESC Region 22','03DE6F94-316A-4B06-8C67-2C8748DCA108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152958')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152958',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152958')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867539','152956','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867539')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530029','867539' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530029')); + + /*INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,ExitWithdrawDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014889','867530029','2011-10-01','38','631','2013',DATEADD(day, 1, GETDATE()),'AEA4CD3C-ECD8-428B-AE72-F48F60E39109','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014889 and SchoolId = 867530029));*/ + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,ExitWithdrawDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014889','867530029','2011-10-01','38','631','2013','2121-12-31','AEA4CD3C-ECD8-428B-AE72-F48F60E39109','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014889 and SchoolId = 867530029)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1010',867539,'Cohort description 10',1515,GETDATE(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52110'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1010',867539,867539,'Cohort Program 9',1666,GETDATE()); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_3/0001_StudentProgramCohortDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_3/0001_StudentProgramCohortDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..548a44ea --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/MSSQL/v_3_3/0001_StudentProgramCohortDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentProgramCohortDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentProgramCohortKey + nvarchar + + + StudentSchoolProgramKey + nvarchar + + + StudentSchoolKey + nvarchar + + + EntryGradeLevelDescriptor + nvarchar + + + CohortTypeDescriptor + nvarchar + + + CohortDescription + nvarchar + + + ProgramName + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/0001_StudentProgramCohortDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_2/0001_StudentProgramCohortDim_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/0001_StudentProgramCohortDim_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_2/0001_StudentProgramCohortDim_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_3/0000_StudentProgramCohortDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_3/0000_StudentProgramCohortDim_Data_Load.xml new file mode 100644 index 00000000..698fb390 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_3/0000_StudentProgramCohortDim_Data_Load.xml @@ -0,0 +1,591 @@ + + + Any + + --###### 189889-867530022-Cohort Program 1-1666-867530-867530-20060814-CI-1000 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530','Glendale ISD','9CC29A49-637C-4882-A7DB-99AD87690100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1666','uri://ed-fi.org/ProgramTypeDescriptor','Cohort Program 1','Cohort Program 1','Cohort Program 1','3A180521-456F-4884-979C-EE83F4B52381','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1666')); + + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT '1666' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867530','Cohort Program 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Cohort Program 1' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014881','Cecilia','D','Begay','1989-06-05','Lubbock','189889','989B461B-45DD-4947-B310-51229E206100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-14','867530','867530','Cohort Program 1','1666','100014881','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154100','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867530 and ProgramEducationOrganizationId = 867530 and ProgramName = 'Cohort Program 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014881)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-14',867530,867530,'Cohort Program 1','1666','100014881'); + + + INSERT INTO edfi.Descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1515','uri://ed-fi.org/CohortTypeDescriptor','Academic Intervention','Academic Intervention','Academic Intervention','3A180521-456F-4884-979C-EE83F4B52382','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1515')); + + + INSERT INTO edfi.CohortTypeDescriptor (CohortTypeDescriptorId) + VALUES ('1515'); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade','70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530022','Hollywood High School','032A4662-74DA-448B-B881-C88B82DAD100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152950','ESC Region 17','03DE6F94-316A-4B06-8C67-2C8748DCA100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent','0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT '1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867530','152950','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530022','867530' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014881','867530022','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014881 and SchoolId = 867530022)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1000',867530,'Cohort description 01',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52100'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1000',867530,867530,'Cohort Program 1',1666,Now()); + + --###### 189890-867530023-Cohort Program 2-1666-867531-867531-20060815-CI-1001 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867531','Glendale ISE','9CC29A49-637C-4882-A7DB-99AD87690101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867531')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867531','Cohort Program 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Cohort Program 2' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014882','Boot','D','Smith','1989-06-05','Lubbock','189890','989B461B-45DD-4947-B310-51229E206101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014882')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867531','867531','Cohort Program 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154101','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Cohort Program 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867531,867531,'Cohort Program 2','1666','100014882'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530023','Hollywood High School 2','032A4662-74DA-448B-B881-C88B82DAD101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152951','ESC Region 18','03DE6F94-316A-4B06-8C67-2C8748DCA101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152951')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152951',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867531','152951','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530023','867531' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014882','867530023','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014882 and SchoolId = 867530023)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1001',867531,'Cohort description 02',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52101'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1001',867531,867531,'Cohort Program 2',1666,Now()); + + -- CohortIdentifier + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1002',867531,'Cohort description 02',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52102'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1002',867531,867531,'Cohort Program 2',1666,Now()); + + --/ CohortIdentifier + + -- EducationOrganizationId + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867532','Glendale ISF','9CC29A49-637C-4882-A7DB-99AD87690102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867532')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867532','Cohort Program 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867532' AND ProgramName= 'Cohort Program 2' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1001',867532,'Cohort description 02',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52103'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1001',867532,867532,'Cohort Program 2',1666,Now()); + + --/ EducationOrganizationId + + --###### 189891-867530024-Cohort Program 3-1666-867533-867533-20060815-CI-1004 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867533','Glendale ISG','9CC29A49-637C-4882-A7DB-99AD87690103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867533')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867533','Cohort Program 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 3' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014883','Dave','D','Johnson','1989-06-05','Lubbock','189891','989B461B-45DD-4947-B310-51229E206102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014883')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867533','867533','Cohort Program 3','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154102','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867533 and ProgramEducationOrganizationId = 867533 and ProgramName = 'Cohort Program 3' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867533,867533,'Cohort Program 3','1666','100014883'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530024','Hollywood High School 4','032A4662-74DA-448B-B881-C88B82DAD102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152952','ESC Region 19','03DE6F94-316A-4B06-8C67-2C8748DCA102','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152952')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152952',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152952')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867533','152952','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867533')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530024','867533' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530024')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014883','867530024','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39102','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014883 and SchoolId = 867530024)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1004',867533,'Cohort description 03',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52104'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 3',1666,Now()); + + -- Program + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867533','Cohort Program 4','E078EB62-CDB6-40B3-ADDD-C37C34D5D104','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 4' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 4',1666,Now()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867533','867533','Cohort Program 4','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154103','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867533 and ProgramEducationOrganizationId = 867533 and ProgramName = 'Cohort Program 4' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867533,867533,'Cohort Program 4','1666','100014883'); + + --/ Program + + -- ProgramTypeDescriptorId + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1667','uri://ed-fi.org/ProgramTypeDescriptor','Cohort Program Other','Cohort Program Other','Cohort Program Other','3A180521-456F-4884-979C-EE83F4B52383','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1667')); + + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT '1667' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867533','Cohort Program 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867533' AND ProgramName= 'Cohort Program 3' AND ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1004',867533,867533,'Cohort Program 3',1667,Now()); + + --/ ProgramTypeDescriptorId + + + --###### 189894-867530027-Cohort Program 6-1666-867536-867536-20060815-CI-1007 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867536','Glendale ISH','9CC29A49-637C-4882-A7DB-99AD87690106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867536')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867536','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867536' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014886','Carl','D','Thomsom','1989-06-05','Lubbock','189894','989B461B-45DD-4947-B310-51229E206105','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014886')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867536','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154105','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867536,867536,'Cohort Program 6','1666','100014886'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530027','Hollywood High School 7','032A4662-74DA-448B-B881-C88B82DAD105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530027')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152955','ESC Region 20','03DE6F94-316A-4B06-8C67-2C8748DCA105','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152955')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152955',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152955')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867536','152955','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867536')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530027','867536' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530027')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014886','867530027','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39105','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014886 and SchoolId = 867530027)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1007',867536,'Cohort description 06',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52107'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867536,867536,'Cohort Program 6',1666,Now()); + + -- BeginDate + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-16','867536','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154106','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-16' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ BeginDate + + -- EducationOrganizationId + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867537','Glendale ISI','9CC29A49-637C-4882-A7DB-99AD87690107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867537')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867537','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867537' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1007',867537,'Cohort description 06',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52108'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867537,867536,'Cohort Program 6',1666,Now()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867537','867536','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154107','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867537 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ EducationOrganizationId + + -- ProgramEducationOrganizationId + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867536','867537','Cohort Program 6','1666','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154108','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867537 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014886)); + + --/ ProgramEducationOrganizationId + + -- ProgramTypeDescriptorId + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867536','Cohort Program 6','E078EB62-CDB6-40B3-ADDD-C37C34D5D109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867536' AND ProgramName= 'Cohort Program 6' AND ProgramTypeDescriptorId= '1667')); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1007',867536,867536,'Cohort Program 6',1667,Now()); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867536','867536','Cohort Program 6','1667','100014886','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154110','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1667 and StudentUSI = 100014886)); + + --/ ProgramTypeDescriptorId + + -- StudentUSI + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014887','AMY','D','Name','1989-06-05','Lubbock','189895','989B461B-45DD-4947-B310-51229E206106','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014887')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867536','867536','Cohort Program 6','1666','100014887','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154111','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867536 and ProgramEducationOrganizationId = 867536 and ProgramName = 'Cohort Program 6' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014887)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014887','867530027','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39106','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014887 and SchoolId = 867530027)); + + --/ StudentUSI + + --###### 189896-867530028-Cohort Program 8-1666-867538-867538-20060815-CI-1009 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867538','Glendale ISJ','9CC29A49-637C-4882-A7DB-99AD87690108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867538')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867538','Cohort Program 8','E078EB62-CDB6-40B3-ADDD-C37C34D5D108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867538' AND ProgramName= 'Cohort Program 8' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014888','Nene','D','Smith','1989-06-05','Lubbock','189896','989B461B-45DD-4947-B310-51229E206107','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014888')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867538','867538','Cohort Program 8','1666','100014888','Sep 18 2015 11:53AM','Sep 18 2019 11:53AM','BD76D484-3CB3-4A67-B020-E47407154109','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867538 and ProgramEducationOrganizationId = 867538 and ProgramName = 'Cohort Program 8' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014888)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867538,867538,'Cohort Program 8','1666','100014888'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530028','Hollywood High School 8','032A4662-74DA-448B-B881-C88B82DAD106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530028')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152956','ESC Region 21','03DE6F94-316A-4B06-8C67-2C8748DCA106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152956')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152956',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152956')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867538','152956','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867539')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530028','867538' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530028')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014888','867530028','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39107','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014888 and SchoolId = 867530028)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1009',867538,'Cohort description 07',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52109'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1009',867538,867538,'Cohort Program 8',1666,Now()); + + + --###### 189896-867530028-Cohort Program 8-1666-867538-867538-20060815-CI-1009 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867539','Glendale ISK','9CC29A49-637C-4882-A7DB-99AD87690109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867539')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867539','Cohort Program 9','E078EB62-CDB6-40B3-ADDD-C37C34D5D110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867539' AND ProgramName= 'Cohort Program 9' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014889','Trim','D','Smith','1989-06-05','Lubbock','189899','989B461B-45DD-4947-B310-51229E206109','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014889')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867539','867539','Cohort Program 9','1666','100014889','Sep 18 2015 11:53AM','Sep 18 2019 11:53AM','BD76D484-3CB3-4A67-B020-E47407154112','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867539 and ProgramEducationOrganizationId = 867539 and ProgramName = 'Cohort Program 9' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014889)); + + INSERT INTO edfi.StudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES + ('2006-08-15',867539,867539,'Cohort Program 9','1666','100014889'); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530029','Hollywood High School 9','032A4662-74DA-448B-B881-C88B82DAD108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530029')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152958','ESC Region 22','03DE6F94-316A-4B06-8C67-2C8748DCA108','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152958')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152958',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152958')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867539','152956','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867539')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530029','867539' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530029')); + + /*INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,ExitWithdrawDate,Id,LastModifiedDate,CreateDate) + (SELECT '100014889','867530029','2011-10-01','38','631','2013',DATEADD(day, 1, Now()),'AEA4CD3C-ECD8-428B-AE72-F48F60E39109','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014889 and SchoolId = 867530029));*/ + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,ExitWithdrawDate,Id,LastModifiedDate,CreateDate) + (SELECT '100014889','867530029','2011-10-01','38','631','2013','2121-12-31','AEA4CD3C-ECD8-428B-AE72-F48F60E39109','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014889 and SchoolId = 867530029)); + + INSERT INTO edfi.Cohort( + CohortIdentifier,EducationOrganizationId,CohortDescription,CohortTypeDescriptorId,CreateDate,LastModifiedDate,Id) + VALUES + ('CI-1010',867539,'Cohort description 10',1515,Now(),'Dec 13 2018 2:31PM','3A180521-456F-4884-97AA-EE83F4B52110'); + + INSERT INTO edfi.CohortProgram + (CohortIdentifier,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,CreateDate) + VALUES + ('CI-1010',867539,867539,'Cohort Program 9',1666,Now()); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_3/0001_StudentProgramCohortDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_3/0001_StudentProgramCohortDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..7a3c884e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramCohortDim/PostgreSQL/v_3_3/0001_StudentProgramCohortDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_studentprogramcohortdim' + ORDER BY ORDINAL_POSITION ASC; + + + studentprogramcohortkey + text + + + studentschoolprogramkey + text + + + studentschoolkey + text + + + entrygradeleveldescriptor + character varying + + + cohorttypedescriptor + character varying + + + cohortdescription + character varying + + + programname + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/MSSQL/v_3_3/0000_StudentProgramDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/MSSQL/v_3_3/0000_StudentProgramDim_Data_Load.xml new file mode 100644 index 00000000..b2959448 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/MSSQL/v_3_3/0000_StudentProgramDim_Data_Load.xml @@ -0,0 +1,90 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1684','uri://ed-fi.org/ProgramTypeDescriptor','Special Education','Special Education','Special Education',NULL,NULL,NULL,'49044D1E-E943-4FE8-A494-6FE25F4C9F10','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1684'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT TOP 1'1684' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1684')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT TOP 1'867530','Special Education',NULL,'E078EB62-CDB6-40B3-ADDD-C37C34D5D1F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1684',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1684')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1469','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'041DE3E3-CE81-4BEE-A84D-9A73A96469FD','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1469'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1469' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1469')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100021874',NULL,'Samantha','R','Lombardi',NULL,NULL,'1990-08-16','Lubbock',NULL,NULL,NULL,'190009','52118D49-61B3-4485-A6DD-280AB0A49E9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1469',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100021874'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'2006-08-14','867530','867530','Special Education','1684','100021874',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','DB919F42-5332-4834-A033-15DBEB8EA3C6','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2006-08-14' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1684' AND StudentUSI= '100021874')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT TOP 1'100021874','867530','Special Education','867530','2006-08-14','1684' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100021874' AND ProgramEducationOrganizationId = '867530' AND ProgramTypeDescriptorId='1684')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1104','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'36EEB565-311E-44EA-A57B-E01CAB5D60D1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1104'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1713','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'442D2657-95BD-4707-BA25-F3B6F64729E1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1713'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1713' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1713')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1713',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100021874','867530020',NULL,'2012-03-09','38',NULL,NULL,NULL,'2050-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','798C9BDF-768A-433E-82AA-9E657EAD4C82','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100021874' AND SchoolId = '867530020')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) (SELECT TOP 1'778530','Mesa ISD',NULL,NULL,'F1137D82-3490-4FC9-BD4D-F06F5C9E66C0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778530')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT TOP 1'778530','Special Education',NULL,'472923F4-E0AE-4F07-925E-5D7253F9B278','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1684',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '778530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1684')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1637','uri://ed-fi.org/ProgramTypeDescriptor','Bilingual','Bilingual','Bilingual',NULL,NULL,NULL,'B8B43E4B-9056-4189-A3A1-037610CEC597','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1637'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT TOP 1'1637' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT TOP 1'778530','Bilingual',NULL,'FF71E59B-41EB-4DB2-999B-987AC37513B2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '778530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1682','uri://ed-fi.org/ProgramTypeDescriptor','Section 504 Placement','Section 504 Placement','Section 504 Placement',NULL,NULL,NULL,'75F1781E-EC04-4640-8798-F13EB06B46B4','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1682'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT TOP 1'1682' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1682')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT TOP 1'778530','Section 504 Placement',NULL,'AEA3B510-849C-47E6-87D3-FC7502B1144C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1682',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '778530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1682')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT TOP 1'867530','Special Education',NULL,'C4C225E0-147B-47B1-9175-30A0334FDC48','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT TOP 1'867530','Gifted and Talented',NULL,'DEE06296-F9AE-4C23-A876-E23BA56E72BD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT TOP 1'867530','Section 504 Placement',NULL,'B7382F8B-A046-43BF-B3BE-370A830A540E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1637')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT TOP 1'867530','Section 504 Placement',NULL,'2785C957-6B77-4E35-8DBE-AFB143E42DCF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1682',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1682')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100039988',NULL,'Jennifer','H','Knoll',NULL,NULL,'1993-03-20',NULL,NULL,NULL,NULL,'190257','B264F600-7D33-42B6-847E-991B4B7B4E87','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039988'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'2011-08-22','867530','867530','Section 504 Placement','1682','100039988',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','3E373247-8ECB-417B-B6E0-D74BC5795476','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2011-08-22' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1682' AND StudentUSI= '100039988')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT TOP 1'100039988','867530','Section 504 Placement','867530','2011-08-22','1682' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100039988' AND ProgramEducationOrganizationId = '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1104','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'36EEB565-311E-44EA-A57B-E01CAB5D60D1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1104'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1713','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'442D2657-95BD-4707-BA25-F3B6F64729E1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1713'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1713' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1713')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1713',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100039988','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','02D49D56-9990-44F6-88CB-259BAEF5AC8D','Sep 18 2020 11:47AM','Sep 18 2020 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100039988' AND SchoolId = '867530023')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT TOP 1'867530','Bilingual',NULL,'F8129EA2-6128-4A10-B459-3D3DF0405A1E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100023237',NULL,'Sarah','S','Sturgill',NULL,NULL,'1990-11-01',NULL,NULL,NULL,NULL,'190020','2370E663-A3FA-410E-B0FE-223932724067','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100023237'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'2010-08-10','867530','867530','Bilingual','1637','100023237',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','20167BE9-AF3B-422D-B4CE-F264777886C3','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2010-08-10' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637' AND StudentUSI= '100023237')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT TOP 1'100023237','867530','Bilingual','867530','2010-08-10','1637' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100023237' and ProgramName='Bilingual')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1639','uri://ed-fi.org/ProgramTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'312846FA-3EEB-4443-BFEA-08BA1791856B','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1639'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT TOP 1'1639' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1639')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT TOP 1'867530','Career and Technical Education',NULL,'EB2DC334-02E2-4E23-9D05-9BF0901C72FF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1639',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Career and Technical Education' AND ProgramTypeDescriptorId= '1639')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'2010-08-10','867530','867530','Career and Technical Education','1639','100023237',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','84050606-C63B-49AD-93CA-89D2110D2805','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2010-08-10' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Career and Technical Education' AND ProgramTypeDescriptorId= '1639' AND StudentUSI= '100023237')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT TOP 1'100023237','867530','Career and Technical Education','867530','2010-08-10','1639' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100023237' and ProgramName='Career and Technical Education')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1655','uri://ed-fi.org/ProgramTypeDescriptor','Gifted and Talented','Gifted and Talented','Gifted and Talented',NULL,NULL,NULL,'E5DD66AB-B7DF-4DCD-9876-1EB0620CDA1B','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1655'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT TOP 1'1655' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1655')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT TOP 1'867530','Gifted and Talented',NULL,'AE744752-1E28-4E76-A31C-358F5C50FC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1655',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1655')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'2010-08-10','867530','867530','Gifted and Talented','1655','100023237',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','5AE58855-F67E-4887-B948-3EF6DF525E72','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2010-08-10' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1655' AND StudentUSI= '100023237')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT TOP 1'100023237','867530','Gifted and Talented','867530','2010-08-10','1655' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100023237' and ProgramName='Gifted and Talented')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1104','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'36EEB565-311E-44EA-A57B-E01CAB5D60D1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1104'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1713','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'442D2657-95BD-4707-BA25-F3B6F64729E1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1713'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1713' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1713')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1713',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100023237','867530023',NULL,'2011-12-20','38',NULL,NULL,NULL,'2015-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','47FD0243-ED97-443C-BF7A-86F150278482','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100023237' AND SchoolId = '867530023')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT TOP 1'867530','Bilingual',NULL,'4F6D19F3-6E18-4E33-AD0B-A06F5D67F1A8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1682',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1682')); + + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT TOP 1'2006-08-14','867530','867530','Bilingual','1637','100021874',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','D98EA46D-AC69-4BBB-947B-B2D49ECB67E9','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2006-08-14' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637' AND StudentUSI= '100021874')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT TOP 1'100021874','867530','Bilingual','867530','2006-08-14','1637' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100021874' AND ProgramEducationOrganizationId = '867530' and ProgramTypeDescriptorId='1637')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/MSSQL/v_3_3/0001_StudentProgramDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/MSSQL/v_3_3/0001_StudentProgramDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..48659269 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/MSSQL/v_3_3/0001_StudentProgramDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentProgramDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolProgramKey + nvarchar + + + BeginDateKey + nvarchar + + + EducationOrganizationId + int + + + ProgramName + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + int + + + StudentSchoolKey + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/PostgreSQL/v_3_3/0000_StudentProgramDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/PostgreSQL/v_3_3/0000_StudentProgramDim_Data_Load.xml new file mode 100644 index 00000000..15c2268f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/PostgreSQL/v_3_3/0000_StudentProgramDim_Data_Load.xml @@ -0,0 +1,90 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1684','uri://ed-fi.org/ProgramTypeDescriptor','Special Education','Special Education','Special Education',NULL,NULL,NULL,'49044D1E-E943-4FE8-A494-6FE25F4C9F10','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1684')); + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT '1684' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1684')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT '867530','Special Education',NULL,'E078EB62-CDB6-40B3-ADDD-C37C34D5D1F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1684',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1684')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1469','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'041DE3E3-CE81-4BEE-A84D-9A73A96469FD','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1469')); + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1469' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1469')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100021874',NULL,'Samantha','R','Lombardi',NULL,NULL,'1990-08-16','Lubbock',NULL,NULL,NULL,'190009','52118D49-61B3-4485-A6DD-280AB0A49E9C','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1469',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100021874')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '2006-08-14','867530','867530','Special Education','1684','100021874',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','DB919F42-5332-4834-A033-15DBEB8EA3C6','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2006-08-14' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1684' AND StudentUSI= '100021874')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT '100021874','867530','Special Education','867530','2006-08-14','1684' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100021874' AND ProgramEducationOrganizationId = '867530' AND ProgramTypeDescriptorId='1684')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1104','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'36EEB565-311E-44EA-A57B-E01CAB5D60D1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1713','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'442D2657-95BD-4707-BA25-F3B6F64729E1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1713')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1713' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1713')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1713',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100021874','867530020',NULL,'2012-03-09','38',NULL,NULL,NULL,'2050-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','798C9BDF-768A-433E-82AA-9E657EAD4C82','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100021874' AND SchoolId = '867530020')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) (SELECT '778530','Mesa ISD',NULL,NULL,'F1137D82-3490-4FC9-BD4D-F06F5C9E66C0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '778530')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT '778530','Special Education',NULL,'472923F4-E0AE-4F07-925E-5D7253F9B278','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1684',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '778530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1684')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1637','uri://ed-fi.org/ProgramTypeDescriptor','Bilingual','Bilingual','Bilingual',NULL,NULL,NULL,'B8B43E4B-9056-4189-A3A1-037610CEC597','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1637')); + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT '1637' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT '778530','Bilingual',NULL,'FF71E59B-41EB-4DB2-999B-987AC37513B2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '778530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1682','uri://ed-fi.org/ProgramTypeDescriptor','Section 504 Placement','Section 504 Placement','Section 504 Placement',NULL,NULL,NULL,'75F1781E-EC04-4640-8798-F13EB06B46B4','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1682')); + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT '1682' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1682')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT '778530','Section 504 Placement',NULL,'AEA3B510-849C-47E6-87D3-FC7502B1144C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1682',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '778530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1682')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT '867530','Special Education',NULL,'C4C225E0-147B-47B1-9175-30A0334FDC48','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Special Education' AND ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT '867530','Gifted and Talented',NULL,'DEE06296-F9AE-4C23-A876-E23BA56E72BD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) (SELECT '867530','Section 504 Placement',NULL,'B7382F8B-A046-43BF-B3BE-370A830A540E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1637')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT '867530','Section 504 Placement',NULL,'2785C957-6B77-4E35-8DBE-AFB143E42DCF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1682',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1682')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100039988',NULL,'Jennifer','H','Knoll',NULL,NULL,'1993-03-20',NULL,NULL,NULL,NULL,'190257','B264F600-7D33-42B6-847E-991B4B7B4E87','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100039988')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '2011-08-22','867530','867530','Section 504 Placement','1682','100039988',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','3E373247-8ECB-417B-B6E0-D74BC5795476','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2011-08-22' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Section 504 Placement' AND ProgramTypeDescriptorId= '1682' AND StudentUSI= '100039988')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT '100039988','867530','Section 504 Placement','867530','2011-08-22','1682' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100039988' AND ProgramEducationOrganizationId = '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1104','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'36EEB565-311E-44EA-A57B-E01CAB5D60D1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1713','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'442D2657-95BD-4707-BA25-F3B6F64729E1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1713')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1713' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1713')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1713',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100039988','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','02D49D56-9990-44F6-88CB-259BAEF5AC8D','Sep 18 2020 11:47AM','Sep 18 2020 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100039988' AND SchoolId = '867530023')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT '867530','Bilingual',NULL,'F8129EA2-6128-4A10-B459-3D3DF0405A1E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1637',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100023237',NULL,'Sarah','S','Sturgill',NULL,NULL,'1990-11-01',NULL,NULL,NULL,NULL,'190020','2370E663-A3FA-410E-B0FE-223932724067','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100023237')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '2010-08-10','867530','867530','Bilingual','1637','100023237',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','20167BE9-AF3B-422D-B4CE-F264777886C3','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2010-08-10' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637' AND StudentUSI= '100023237')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT '100023237','867530','Bilingual','867530','2010-08-10','1637' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100023237' and ProgramName='Bilingual')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1639','uri://ed-fi.org/ProgramTypeDescriptor','Career and Technical Education','Career and Technical Education','Career and Technical Education',NULL,NULL,NULL,'312846FA-3EEB-4443-BFEA-08BA1791856B','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1639')); + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT '1639' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1639')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT '867530','Career and Technical Education',NULL,'EB2DC334-02E2-4E23-9D05-9BF0901C72FF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1639',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Career and Technical Education' AND ProgramTypeDescriptorId= '1639')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '2010-08-10','867530','867530','Career and Technical Education','1639','100023237',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','84050606-C63B-49AD-93CA-89D2110D2805','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2010-08-10' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Career and Technical Education' AND ProgramTypeDescriptorId= '1639' AND StudentUSI= '100023237')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT '100023237','867530','Career and Technical Education','867530','2010-08-10','1639' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100023237' and ProgramName='Career and Technical Education')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1655','uri://ed-fi.org/ProgramTypeDescriptor','Gifted and Talented','Gifted and Talented','Gifted and Talented',NULL,NULL,NULL,'E5DD66AB-B7DF-4DCD-9876-1EB0620CDA1B','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1655')); + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId)(SELECT '1655' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1655')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT '867530','Gifted and Talented',NULL,'AE744752-1E28-4E76-A31C-358F5C50FC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1655',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1655')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '2010-08-10','867530','867530','Gifted and Talented','1655','100023237',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','5AE58855-F67E-4887-B948-3EF6DF525E72','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2010-08-10' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1655' AND StudentUSI= '100023237')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT '100023237','867530','Gifted and Talented','867530','2010-08-10','1655' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100023237' and ProgramName='Gifted and Talented')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1104','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'36EEB565-311E-44EA-A57B-E01CAB5D60D1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1104')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1104' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1713','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'442D2657-95BD-4707-BA25-F3B6F64729E1','Dec 15 2018 12:37PM','Dec 15 2018 12:37PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1713')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1713' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1713')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1713',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100023237','867530023',NULL,'2011-12-20','38',NULL,NULL,NULL,'2015-01-01',NULL,NULL,NULL,NULL,NULL,NULL,'635','2013','47FD0243-ED97-443C-BF7A-86F150278482','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100023237' AND SchoolId = '867530023')); + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator)(SELECT '867530','Bilingual',NULL,'4F6D19F3-6E18-4E33-AD0B-A06F5D67F1A8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1682',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1682')); + + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator)(SELECT '2006-08-14','867530','867530','Bilingual','1637','100021874',NULL,NULL,NULL,'Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','D98EA46D-AC69-4BBB-947B-B2D49ECB67E9','edfi.StudentProgramAssociation' WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate= '2006-08-14' AND EducationOrganizationId= '867530' AND ProgramEducationOrganizationId= '867530' AND ProgramName= 'Bilingual' AND ProgramTypeDescriptorId= '1637' AND StudentUSI= '100021874')); + INSERT INTO edfi.StudentProgramAssociation(StudentUSI,EducationOrganizationId,ProgramName,ProgramEducationOrganizationId,BeginDate,ProgramTypeDescriptorId)(SELECT '100021874','867530','Bilingual','867530','2006-08-14','1637' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentProgramAssociation WHERE StudentUSI = '100021874' AND ProgramEducationOrganizationId = '867530' and ProgramTypeDescriptorId='1637')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/PostgreSQL/v_3_3/0001_StudentProgramDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/PostgreSQL/v_3_3/0001_StudentProgramDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..8863f4a7 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentProgramDim/PostgreSQL/v_3_3/0001_StudentProgramDim_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'studentprogramdim' + ORDER BY ORDINAL_POSITION ASC; + + + studentschoolprogramkey + text + + + begindatekey + text + + + educationorganizationid + integer + + + programname + character varying + + + studentkey + character varying + + + schoolkey + integer + + + studentschoolkey + text + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_1/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_1/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..2bd5e7f0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_1/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSchoolDemographicsBridge' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolDemographicBridgeKey + nvarchar + + + StudentSchoolKey + nvarchar + + + DemographicKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_2/0000_StudentSchoolDemographicsBridge_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_2/0000_StudentSchoolDemographicsBridge_Data_Load.xml new file mode 100644 index 00000000..ccea2a45 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_2/0000_StudentSchoolDemographicsBridge_Data_Load.xml @@ -0,0 +1,343 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','6135CF5F-F037-4408-888B-D505B1C87128','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,DATEADD(MONTH, 12, GETDATE()),NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530011')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','8D7E82B8-6B74-488C-9931-71A4D99376EE','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT TOP 1'110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','1AA6BF78-02F0-4000-B655-661A47D9E79F','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' and Schoolid='867530007')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId)(SELECT TOP 1'1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'746','uri://ed-fi.org/DisabilityDescriptor','AUT','AUT','Autism',NULL,NULL,NULL,'8F265E6C-CDE0-47B6-B882-F272DD670BDB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '746')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT TOP 1'746' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '746')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1577','uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor','By health care provider','By health care provider','By health care provider',NULL,NULL,NULL,'A50E66A0-0D27-4415-9C61-BA55D176E155','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1577')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDeterminationSourceTypeDescriptor WHERE DisabilityDeterminationSourceTypeDescriptorId= '1577')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504',NULL,NULL,NULL,'9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT TOP 1'937' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100005230','Mar 3 2020 2:02PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','628530','100055074','Mar 3 2020 2:06PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'471','uri://ed-fi.org/LanguageDescriptor','Korean','Korean','Korean',NULL,NULL,NULL,'F55914CC-9C9E-4F18-92D2-63E59A186A8B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '471')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'471' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '471')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language',NULL,NULL,NULL,'CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT TOP 1'1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','471','100055074','Mar 4 2020 9:52AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian',NULL,NULL,NULL,'0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100055074','Mar 4 2020 2:11PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak',NULL,NULL,NULL,'4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT TOP 1'2280' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2280')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100055074','2280','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant',NULL,NULL,NULL,'3150327C-6466-40BF-B940-2D8763EAA694','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'660' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '660')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'664','uri://ed-fi.org/StudentCharacteristicDescriptor','Neglected or Delinquent','Neglected or Delinquent','Neglected or Delinquent',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD88','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '664')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'664' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '664')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007',NULL,'2010-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','CB55ECF2-D908-4FCB-88D7-D341B7684EEA','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND EntryDate='2010-01-25')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011','C127D320-1727-44BC-8CC0-D1E8E940D1EA','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','516B3EC0-85A2-4D84-9EEA-A5948A1C0141','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='628530' AND studentUSI='100020850')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007','2CD6DF87-AD80-4235-B16D-BF356027C0B7','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','1D931303-E106-4AE5-9F53-8E5E2CC16EE5','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007','7F9AF357-73E8-4F5E-823E-735E3539414A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','658C5D6F-4289-4ED3-8E87-4AAB30C00154','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530011' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530011','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','E41009ED-AFAE-4451-9133-C518F12AE9FC','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100020850')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007','74E3106E-DD08-4158-9875-72309AEE6B5B','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','DB1209CA-D2C3-4515-B147-189E8FEB5D48','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530011' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530011','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007','95E3BBD5-F7A8-4529-8DB5-646D7EC6E033','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530007','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530007','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530011','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530011' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530011','100005230','Mar 3 2020 2:02PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530007','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530007','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530011','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530007','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530011','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530011' AND LanguageDescriptorId= '471' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530011','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530007','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530007' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530007','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530011','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530007','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530011','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530007','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530011','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530011','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530011' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530011','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530007' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530007','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530007' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530007','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530011','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530007','100005230','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530007','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530007','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','660','100005230',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530007','660','100005230',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..2bd5e7f0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSchoolDemographicsBridge' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolDemographicBridgeKey + nvarchar + + + StudentSchoolKey + nvarchar + + + DemographicKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_3/0000_StudentSchoolDemographicsBridge_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_3/0000_StudentSchoolDemographicsBridge_Data_Load.xml new file mode 100644 index 00000000..ccea2a45 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_3/0000_StudentSchoolDemographicsBridge_Data_Load.xml @@ -0,0 +1,343 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT TOP 1'633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + + 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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','6135CF5F-F037-4408-888B-D505B1C87128','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,DATEADD(MONTH, 12, GETDATE()),NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530011')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','8D7E82B8-6B74-488C-9931-71A4D99376EE','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT TOP 1'110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','1AA6BF78-02F0-4000-B655-661A47D9E79F','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' and Schoolid='867530007')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId)(SELECT TOP 1'1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'746','uri://ed-fi.org/DisabilityDescriptor','AUT','AUT','Autism',NULL,NULL,NULL,'8F265E6C-CDE0-47B6-B882-F272DD670BDB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '746')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT TOP 1'746' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '746')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1577','uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor','By health care provider','By health care provider','By health care provider',NULL,NULL,NULL,'A50E66A0-0D27-4415-9C61-BA55D176E155','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1577')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDeterminationSourceTypeDescriptor WHERE DisabilityDeterminationSourceTypeDescriptorId= '1577')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504',NULL,NULL,NULL,'9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT TOP 1'937' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100005230','Mar 3 2020 2:02PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','628530','100055074','Mar 3 2020 2:06PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'471','uri://ed-fi.org/LanguageDescriptor','Korean','Korean','Korean',NULL,NULL,NULL,'F55914CC-9C9E-4F18-92D2-63E59A186A8B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '471')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT TOP 1'471' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '471')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language',NULL,NULL,NULL,'CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT TOP 1'1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'628530','471','100055074','Mar 4 2020 9:52AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian',NULL,NULL,NULL,'0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT TOP 1'1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'628530','100055074','Mar 4 2020 2:11PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak',NULL,NULL,NULL,'4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT TOP 1'2280' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2280')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'628530','100055074','2280','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant',NULL,NULL,NULL,'3150327C-6466-40BF-B940-2D8763EAA694','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'660' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '660')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'664','uri://ed-fi.org/StudentCharacteristicDescriptor','Neglected or Delinquent','Neglected or Delinquent','Neglected or Delinquent',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD88','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '664')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT TOP 1'664' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '664')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','628530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007',NULL,'2010-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','CB55ECF2-D908-4FCB-88D7-D341B7684EEA','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND EntryDate='2010-01-25')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530011','C127D320-1727-44BC-8CC0-D1E8E940D1EA','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','516B3EC0-85A2-4D84-9EEA-A5948A1C0141','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='628530' AND studentUSI='100020850')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007','2CD6DF87-AD80-4235-B16D-BF356027C0B7','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','1D931303-E106-4AE5-9F53-8E5E2CC16EE5','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007','7F9AF357-73E8-4F5E-823E-735E3539414A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','658C5D6F-4289-4ED3-8E87-4AAB30C00154','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530011' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530011','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100020850','628530','E41009ED-AFAE-4451-9133-C518F12AE9FC','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100020850')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'628530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530007','74E3106E-DD08-4158-9875-72309AEE6B5B','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100055074','867530011','DB1209CA-D2C3-4515-B147-189E8FEB5D48','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530011' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530011','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'100005230','867530007','95E3BBD5-F7A8-4529-8DB5-646D7EC6E033','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530007','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530007','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530011','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530011' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530011','100005230','Mar 3 2020 2:02PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT TOP 1'746','867530007','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530007','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530011','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530007','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530011','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530011' AND LanguageDescriptorId= '471' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530011','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT TOP 1'867530007','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530007' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT TOP 1'867530007','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530011','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530007','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530011','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530007','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530011','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530011','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530011' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530011','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530007' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530007','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530007' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530007','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530011','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT TOP 1'867530007','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT TOP 1'746','867530007','100005230','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT TOP 1'867530007','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT TOP 1'867530007','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT TOP 1'867530007','660','100005230',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT TOP 1'2019-07-01','867530007','660','100005230',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristicPeriod WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_3/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_3/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..2bd5e7f0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/MSSQL/v_3_3/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSchoolDemographicsBridge' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolDemographicBridgeKey + nvarchar + + + StudentSchoolKey + nvarchar + + + DemographicKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_2/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_3/0000_StudentSchoolDemographicsBridge_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_3/0000_StudentSchoolDemographicsBridge_Data_Load.xml new file mode 100644 index 00000000..0d8c59c9 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_3/0000_StudentSchoolDemographicsBridge_Data_Load.xml @@ -0,0 +1,340 @@ + + + Any + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '633','uri://ed-fi.org/GraduationPlanTypeDescriptor','Recommended','Recommended','Recommended',NULL,NULL,NULL,'5D69E035-B8E2-4908-8A0E-8D86CE3CB41C','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '633')); + + + INSERT INTO edfi.GraduationPlanTypeDescriptor(GraduationPlanTypeDescriptorId)(SELECT '633' WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlanTypeDescriptor WHERE GraduationPlanTypeDescriptorId= '633')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GraduationPlan(GraduationPlanTypeDescriptorId,EducationOrganizationId,GraduationSchoolYear,IndividualPlan,TotalRequiredCredits,TotalRequiredCreditConversion,Id,LastModifiedDate,CreateDate,TotalRequiredCreditTypeDescriptorId,Discriminator)(SELECT '633','867530','2011',NULL,'26.000',NULL,'5B4EDAEC-A478-4C2F-81C8-8E8B894D577E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GraduationPlan WHERE EducationOrganizationId= '867530' AND GraduationPlanTypeDescriptorId= '633' AND GraduationSchoolYear= '2011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530007','867530',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100005230',NULL,'Joe',NULL,'Higgins',NULL,NULL,'1981-03-23',NULL,NULL,NULL,NULL,'189871','AE08E6BE-7BC1-45D7-A1B9-6F258F792618','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100005230')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100005230','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','6135CF5F-F037-4408-888B-D505B1C87128','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530007')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100005230','867530011',NULL,'2012-01-25','38',NULL,NULL,NULL,(CURRENT_DATE + INTERVAL '1 year'),NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','70218923-F2A8-4E90-9143-40D2E899ED60','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100005230' AND SchoolId='867530011')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100055074',NULL,'Adrian','P','Selby',NULL,NULL,'1994-08-25','Lubbock',NULL,NULL,NULL,'193964','5EED229F-2181-4221-9AC1-D977E6314F97','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100055074')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','8D7E82B8-6B74-488C-9931-71A4D99376EE','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100005230')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId)(SELECT '110' WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100020850',NULL,'Deeanna','M','Haight',NULL,NULL,'1989-07-19',NULL,NULL,NULL,NULL,'189919','32C24FB8-E425-453B-B476-E014BB2F1528','Feb 28 2020 12:25PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100020850')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100020850','867530007',NULL,'2012-01-25','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'867530','633','2011','1AA6BF78-02F0-4000-B655-661A47D9E79F','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100020850' and Schoolid='867530007')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530011','2011','2011-02-21','24',NULL,NULL,NULL,'2012-02-01',NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','E0F327DA-A70A-49C8-998C-7388423A55A8','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = '100055074' AND SchoolYear=2011)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1526','uri://ed-fi.org/CohortYearTypeDescriptor','Eighth grade','Eighth grade','Eighth grade',NULL,NULL,NULL,'42AFEE58-752A-42E7-9816-B07EC1238FD2','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1526')); + + + INSERT INTO edfi.CohortYearTypeDescriptor(CohortYearTypeDescriptorId)(SELECT '1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.CohortYearTypeDescriptor WHERE CohortYearTypeDescriptorId= '1526')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530','F64EDB34-08E1-4541-9D07-643A401B9E6A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','867530','A47304D7-7193-46C7-8B60-12727F2CCCAE','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + + 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.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','628530','980FDED8-7809-4C60-A567-04EE73631333','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '628530','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '746','uri://ed-fi.org/DisabilityDescriptor','AUT','AUT','Autism',NULL,NULL,NULL,'8F265E6C-CDE0-47B6-B882-F272DD670BDB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '746')); + + + INSERT INTO edfi.DisabilityDescriptor(DisabilityDescriptorId)(SELECT '746' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDescriptor WHERE DisabilityDescriptorId= '746')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1577','uri://ed-fi.org/DisabilityDeterminationSourceTypeDescriptor','By health care provider','By health care provider','By health care provider',NULL,NULL,NULL,'A50E66A0-0D27-4415-9C61-BA55D176E155','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1577')); + + + INSERT INTO edfi.DisabilityDeterminationSourceTypeDescriptor(DisabilityDeterminationSourceTypeDescriptorId)(SELECT '1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDeterminationSourceTypeDescriptor WHERE DisabilityDeterminationSourceTypeDescriptorId= '1577')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530','F4BE501E-CAA5-4355-AF68-B04EEFB648E1','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '937','uri://ed-fi.org/DisabilityDesignationDescriptor','Section 504','Section 504','Section 504',NULL,NULL,NULL,'9AAEC12D-24E1-4553-8AE3-B096C24CF52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '937')); + + + INSERT INTO edfi.DisabilityDesignationDescriptor(DisabilityDesignationDescriptorId)(SELECT '937' WHERE NOT EXISTS(SELECT 1 FROM edfi.DisabilityDesignationDescriptor WHERE DisabilityDesignationDescriptorId= '937')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530','100005230','Mar 3 2020 2:02PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100020850','Disability diagnosis','1','Mar 3 2020 9:55AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530','100020850','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','628530','100055074','Disability diagnosis','1','Mar 3 2020 10:19AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '628530' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','628530','100055074','Mar 3 2020 2:06PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '471','uri://ed-fi.org/LanguageDescriptor','Korean','Korean','Korean',NULL,NULL,NULL,'F55914CC-9C9E-4F18-92D2-63E59A186A8B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '471')); + + + INSERT INTO edfi.LanguageDescriptor(LanguageDescriptorId)(SELECT '471' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageDescriptor WHERE LanguageDescriptorId= '471')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1078','uri://ed-fi.org/LanguageUseDescriptor','Dominant language','Dominant language','Dominant language',NULL,NULL,NULL,'CCF976D9-3070-4B7D-BF64-C385D98CB608','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1078')); + + + INSERT INTO edfi.LanguageUseDescriptor(LanguageUseDescriptorId)(SELECT '1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.LanguageUseDescriptor WHERE LanguageUseDescriptorId= '1078')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100005230')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100020850','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100020850')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','471','100020850','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '628530','471','100055074','Mar 3 2020 3:28PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '628530' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '628530','471','100055074','Mar 4 2020 9:52AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1283','uri://ed-fi.org/RaceDescriptor','Asian','Asian','Asian',NULL,NULL,NULL,'0504C0AD-5D12-445D-BF86-247457E9AF2E','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1283')); + + + INSERT INTO edfi.RaceDescriptor(RaceDescriptorId)(SELECT '1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.RaceDescriptor WHERE RaceDescriptorId= '1283')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100020850','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '628530','100055074','Mar 4 2020 2:11PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2280','uri://ed-fi.org/TribalAffiliationDescriptor','Afognak','Afognak','Native Village of Afognak',NULL,NULL,NULL,'4F4AEE09-86CC-4AAB-9D3D-707525281399','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2280')); + + + INSERT INTO edfi.TribalAffiliationDescriptor(TribalAffiliationDescriptorId)(SELECT '2280' WHERE NOT EXISTS(SELECT 1 FROM edfi.TribalAffiliationDescriptor WHERE TribalAffiliationDescriptorId= '2280')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100020850','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '628530','100055074','2280','Mar 5 2020 9:58AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '660','uri://ed-fi.org/StudentCharacteristicDescriptor','Migrant','Migrant','Migrant',NULL,NULL,NULL,'3150327C-6466-40BF-B940-2D8763EAA694','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '660')); + + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '660' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '660')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '664','uri://ed-fi.org/StudentCharacteristicDescriptor','Neglected or Delinquent','Neglected or Delinquent','Neglected or Delinquent',NULL,NULL,NULL,'8BE79A08-F0EC-4B49-BD6E-738D84D1CD88','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '664')); + + + INSERT INTO edfi.StudentCharacteristicDescriptor(StudentCharacteristicDescriptorId)(SELECT '664' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentCharacteristicDescriptor WHERE StudentCharacteristicDescriptorId= '664')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100020850',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100020850')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100020850',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100020850' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','628530','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '628530','664','100055074','','Mar 11 2020 6:50AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '628530' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','628530','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='628530' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100055074','867530007',NULL,'2010-01-25','38',NULL,NULL,NULL,'2012-01-25',NULL,NULL,NULL,NULL,NULL,'867530','633','2011','CB55ECF2-D908-4FCB-88D7-D341B7684EEA','Feb 28 2020 12:25PM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE EducationOrganizationId='867530' AND studentUSI='100055074' AND EntryDate='2010-01-25')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530011','C127D320-1727-44BC-8CC0-D1E8E940D1EA','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','628530','516B3EC0-85A2-4D84-9EEA-A5948A1C0141','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='628530' AND studentUSI='100020850')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530007','2CD6DF87-AD80-4235-B16D-BF356027C0B7','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530011','1D931303-E106-4AE5-9F53-8E5E2CC16EE5','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530007','7F9AF357-73E8-4F5E-823E-735E3539414A','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530007','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530011','658C5D6F-4289-4ED3-8E87-4AAB30C00154','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530011' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530011','2011','100055074','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100020850','628530','E41009ED-AFAE-4451-9133-C518F12AE9FC','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100020850.png','1','110',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '628530' AND StudentUSI= '100020850')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '628530','2011','100020850','Mar 2 2020 11:24AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='628530' AND SchoolYear='2011' AND StudentUSI='100020850' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530007','74E3106E-DD08-4158-9875-72309AEE6B5B','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530007','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100055074','867530011','DB1209CA-D2C3-4515-B147-189E8FEB5D48','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM','100055074.png','1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530011' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530011','2011','100055074','Mar 2 2020 11:36AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100055074' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '100005230','867530007','95E3BBD5-F7A8-4529-8DB5-646D7EC6E033','Dec 13 2018 2:34PM','Dec 13 2018 2:34PM',NULL,NULL,NULL,NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530007' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530007','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530007','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530011','100005230','Disability diagnosis','1','Mar 3 2020 9:54AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530011' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530011','100005230','Mar 3 2020 2:02PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisability(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,DisabilityDiagnosis,OrderOfDisability,CreateDate,DisabilityDeterminationSourceTypeDescriptorId)(SELECT '746','867530007','100055074','Disability diagnosis','1','Mar 3 2020 9:58AM','1577' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisability WHERE DisabilityDescriptorId= '746' AND EducationOrganizationId= '867530007' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530007','100055074','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530011','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND LanguageDescriptorId=471)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530007','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND LanguageDescriptorId=471)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530011','471','100005230','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530011' AND LanguageDescriptorId= '471' AND StudentUSI= '100005230')); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530011','471','100005230','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguage(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate)(SELECT '867530007','471','100055074','Mar 3 2020 3:27PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguage WHERE EducationOrganizationId= '867530007' AND LanguageDescriptorId= '471' AND StudentUSI= '100055074')); + INSERT INTO edfi.StudentEducationOrganizationAssociationLanguageUse(EducationOrganizationId,LanguageDescriptorId,StudentUSI,CreateDate,LanguageUseDescriptorId)(SELECT '867530007','471','100055074','Mar 4 2020 9:51AM','1078' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationLanguageUse WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND LanguageDescriptorId=471 AND LanguageUseDescriptorId=1078)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530011','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530007','100055074','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530011','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530007','100055074','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530011','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530007','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530007','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530011','660','100005230',NULL,'Mar 5 2020 4:25PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530011' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100005230')); + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530011','660','100005230',NULL,'Mar 11 2020 7:01AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530011' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530007','660','100055074',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530007' AND StudentCharacteristicDescriptorId= '660' AND StudentUSI= '100055074')); + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530007','660','100055074',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530007','664','100055074','','Mar 11 2020 6:49AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId= '867530007' AND StudentCharacteristicDescriptorId= '664' AND StudentUSI= '100055074')); + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530007','664','100055074','2019-12-20','Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530007' AND studentUSI='100055074' AND StudentCharacteristicDescriptorId=664)); + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530011','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530011' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationCohortYear(EducationOrganizationId,SchoolYear,StudentUSI,CreateDate,CohortYearTypeDescriptorId)(SELECT '867530007','2011','100005230','Mar 2 2020 11:07AM','1526' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationCohortYear WHERE EducationOrganizationId='867530007' AND SchoolYear='2011' AND StudentUSI='100005230' AND CohortYearTypeDescriptorId=1526)); + INSERT INTO edfi.StudentEducationOrganizationAssociationDisabilityDesignation(DisabilityDescriptorId,EducationOrganizationId,StudentUSI,CreateDate,DisabilityDesignationDescriptorId)(SELECT '746','867530007','100005230','Mar 3 2020 2:05PM','937' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationDisabilityDesignation WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND DisabilityDescriptorId=746)); + INSERT INTO edfi.StudentEducationOrganizationAssociationRace(EducationOrganizationId,StudentUSI,CreateDate,RaceDescriptorId)(SELECT '867530007','100005230','Mar 4 2020 2:12PM','1283' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationRace WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND RaceDescriptorId=1283)); + INSERT INTO edfi.StudentEducationOrganizationAssociationTribalAffiliation(EducationOrganizationId,StudentUSI,TribalAffiliationDescriptorId,CreateDate)(SELECT '867530007','100005230','2280','Mar 5 2020 9:57AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationTribalAffiliation WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND TribalAffiliationDescriptorId=2280)); + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentCharacteristic(EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,DesignatedBy,CreateDate)(SELECT '867530007','660','100005230',NULL,'Mar 5 2020 4:26PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociationStudentCharacteristic WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + INSERT INTO edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf(BeginDate,EducationOrganizationId,StudentCharacteristicDescriptorId,StudentUSI,EndDate,CreateDate)(SELECT '2019-07-01','867530007','660','100005230',NULL,'Mar 11 2020 7:04AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.studenteducationorganizationassociationstudentcharacteri_a18fcf WHERE EducationOrganizationId='867530007' AND studentUSI='100005230' AND StudentCharacteristicDescriptorId=660)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_3/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_3/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml new file mode 100644 index 00000000..e64b2000 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDemographicsBridge/PostgreSQL/v_3_3/0001_StudentSchoolDemographicsBridge_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'studentschooldemographicsbridge' + ORDER BY ORDINAL_POSITION ASC; + + + studentschooldemographicbridgekey + text + + + studentschoolkey + text + + + demographickey + text + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/189854_should_have_InternetAccessInResidence.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/189854_should_have_InternetAccessInResidence.xml index 12d2d219..62b4d6fc 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/189854_should_have_InternetAccessInResidence.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/189854_should_have_InternetAccessInResidence.xml @@ -12,4 +12,4 @@ 1 - \ No newline at end of file + diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml new file mode 100644 index 00000000..c6b8b1da --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml @@ -0,0 +1,502 @@ + + + Any + + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT TOP 1'1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT TOP 1'1166' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT TOP 1 + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '2011','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2012','2012-2013','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','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'32','uri://ed-fi.org/GradeLevelDescriptor','Second grade','Second grade','Second grade',NULL,NULL,NULL,'3728D8A3-2C3D-4BAE-98DF-7B55B92982E7','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '32')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'32' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '32')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530188','Olive Elementary School',NULL,NULL,'4C2A15D8-0244-491D-9963-13A91B0E5888','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + DECLARE @districtId int = 867530; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1 @districtId,'Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @districtId)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1 @districtId,NULL,'152950',NULL,NULL,'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= @districtId)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId) + (SELECT TOP 1'1695' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530188',@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi3 INT = 100019485; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,NULL,'Ty','J','Arenas',NULL,NULL,'2004-02-09',NULL,NULL,NULL,NULL,'189914','71782D5B-A947-4E53-B1BA-D059864A6F7C','Nov 18 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi3)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530188_2011','867530188','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530188_2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,'867530188',2011,'2011-11-30','32',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'99BC9D1B-FE6E-4191-A7B8-B13BE8AF586E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530188_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100019485 AND SchoolId=867530188)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,'867530188','C9C47308-8E94-4DDA-B8E9-04FB9B962B61','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B61')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT TOP 1'1330' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); + + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId) + (SELECT TOP 1'1500' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId) + (SELECT TOP 1'1451' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT TOP 1'1701' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'35' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + DECLARE @schoolId1 int = 867530011; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1 @schoolId1,'Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId1)); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1 @schoolId1,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId1)); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi1 INT = 10100494; + DECLARE @studentUniqueId1 NVARCHAR(32) = '189854'; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi1,NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,@studentUniqueId1,'1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 9 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi1)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530011_2011',@schoolId1,'2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C82',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi1,@schoolId1,NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT TOP 1'1338' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId) + (SELECT TOP 1'1586' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi2 INT = 10133197; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi2,NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi2)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi2,@schoolId1,2011,'2011-08-23','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B19E4479-9AEA-4873-8B8E-721484CC16EE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011)); + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT TOP 1'1704' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'38' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1'100050862',NULL,'Bobby',NULL,'Valverde',NULL,NULL,'1989-02-28','Fort Worth, Tx.',NULL,NULL,NULL,'192452','9FD780FB-0C5B-4B21-B37A-DB3FE18AF7A8','Nov 19 2010 4:00PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100050862')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530011_2012',@schoolId1,'2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C83',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530011_2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'100050862',@schoolId1,2012,'2012-01-23','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','EA0183EC-06D5-4BC9-94AB-ECF73A13B6AB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2012',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100050862 AND SchoolId = 867530011)); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT TOP 1'1700' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'729','uri://ed-fi.org/ExitWithdrawTypeDescriptor','Withdrawn','Withdrawn','Withdrawn',NULL,NULL,NULL,'73089407-3597-40B0-A8F9-486D345B4520','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '729')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId) + (SELECT TOP 1'729' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530023',@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1'100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='C6DA292F-0B36-4D14-B031-0B1443C9CFE6')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi1,@districtId,'C9C47308-8E94-4DDA-B8E9-04FB9B962B6F','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B6F')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT TOP 1'1165' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT TOP 1'1395' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi2,@districtId,'EBAD1C5E-9561-4C34-86E8-84142B5F281A','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='EBAD1C5E-9561-4C34-86E8-84142B5F281A')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,@districtId,'81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='81D10830-D623-4E67-A0B5-7411A3A4750C')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId) + (SELECT TOP 1'110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1'100050862',@districtId,'25DC7742-3EAC-4224-82FE-FEE46A3CFE5D','Nov 19 2015 4:09PM','Dec 13 2018 2:34PM',NULL,'1','110',NULL,'1395',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='25DC7742-3EAC-4224-82FE-FEE46A3CFE5D')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'658','uri://ed-fi.org/StudentCharacteristicDescriptor','Displaced Homemaker','Displaced Homemaker','Displaced Homemaker',NULL,NULL,NULL,'EF4166FF-9231-4763-B33C-D61D013A835E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '658')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,@districtId,'81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= @districtId AND StudentUSI= @studentUsi3)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1645','uri://ed-fi.org/ProgramTypeDescriptor','Independent Study','Independent Study','Independent Study',NULL,NULL,NULL,'8A83999E-FA09-43E9-AA95-D0117185E396','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1645')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1645' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1 @districtId,'Gifted and Talented',NULL,'CE507AAA-DC8E-4EF9-B186-B015728A3724','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1645',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= @districtId AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2000-09-20',@districtId,@districtId,'Gifted and Talented','1645',@studentUsi3,NULL,NULL,NULL,'Sep 18 2014 11:53AM','Sep 18 2015 11:53AM','B13E52B7-B874-4E1C-8D11-F9AE508511AC','edfi.StudentSchoolFoodServiceProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE Id='B13E52B7-B874-4E1C-8D11-F9AE508511AC')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530020',@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1'100033704',NULL,'Jozie','O','Thompson',NULL,NULL,'1992-08-28',NULL,NULL,NULL,NULL,'190031','C748DA78-8B06-424A-AEFF-56AAED2415BE','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033704')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'100033704','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-10-26','729',NULL,NULL,NULL,NULL,NULL,'635','2013','7057A759-F9F1-416D-8248-BD83D00CD055','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530020)); + + --- + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530021','Beverly Hills High School 21','56888B72-8AF0-4741-B6BC-90950E29A277','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530021',@districtId + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033705','Dave','J','Thompson','1992-08-28','190032','C748DA78-8B06-424A-AEFF-56AAED241100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033705')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033705','867530021','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530021)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT TOP 1'100033705','867530021','81D10830-D623-4E67-A0B5-7411A3A47100','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033705')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033706','David','J2','Thompson','1992-08-28','190033','C748DA78-8B06-424A-AEFF-56AAED241101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033706')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT TOP 1'100033706','867530021','81D10830-D623-4E67-A0B5-7411A3A47101','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033706')); + + --- + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530022','Beverly Hills High School 22','56888B72-8AF0-4741-B6BC-90950E29A100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530022',@districtId + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033707','John','J','Thompson','1992-08-28','190034','C748DA78-8B06-424A-AEFF-56AAED241102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033707')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT TOP 1'100033707','867530022','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-10-26' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033707 AND SchoolId=867530022)); + + -- Data for Digital Access testing + + -- Add SEOA entry for @schoolId1,@studentUsi1 matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@schoolId1,'F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@schoolId1 AND studentUSI=@studentUsi1)); + + -- Add SEOA entry for @schoolId1,@studentUsi2 matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@schoolId1,'F4BE601E-CAA5-4355-AFF8-B04EEFB648E1','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@schoolId1 AND studentUSI=@studentUsi2)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- @studentUsi1 happy path + (@schoolId1,@studentUsi1,'InternetAccessInResidence','Yes'), + (@schoolId1,@studentUsi1,'InternetAccessTypeInResidence','ResidentialBroadband'), + (@schoolId1,@studentUsi1,'InternetPerformance','Yes - No issues'), + (@schoolId1,@studentUsi1,'DigitalDevice','Chromebook'), + (@schoolId1,@studentUsi1,'DeviceAccess','School Provided - Dedicated'), + + -- These extra records should be ignored by the view because + -- they are associated with the District, not the School + (@districtId,@studentUsi1,'InternetAccessInResidence','Yes__'), + (@districtId,@studentUsi1,'InternetAccessTypeInResidence','ResidentialBroadband__'), + (@districtId,@studentUsi1,'InternetPerformance','Yes - No issues__'), + (@districtId,@studentUsi1,'DigitalDevice','Chromebook__'), + (@districtId,@studentUsi1,'DeviceAccess','School Provided - Dedicated__'), + + -- This record is for a different student + (@schoolId1,@studentUsi2,'DeviceAccess','School Provided - DedicatedX') + + -- @studentUsi3 is in @schoolId1 but has no indicator records + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_2/0001_StudentSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_2/0001_StudentSchoolDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..429ca6a7 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_2/0001_StudentSchoolDim_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSchoolDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + SchoolYear + varchar + + + StudentFirstName + nvarchar + + + StudentMiddleName + nvarchar + + + StudentLastName + nvarchar + + + BirthDate + date + + + EnrollmentDateKey + nvarchar + + + GradeLevel + nvarchar + + + LimitedEnglishProficiency + nvarchar + + + IsHispanic + bit + + + Sex + nvarchar + + + InternetAccessInResidence + nvarchar + + + InternetAccessTypeInResidence + nvarchar + + + InternetPerformance + nvarchar + + + DigitalDevice + nvarchar + + + DeviceAccess + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_3/0000_StudentSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_3/0000_StudentSchoolDim_Data_Load.xml new file mode 100644 index 00000000..da825e37 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_3/0000_StudentSchoolDim_Data_Load.xml @@ -0,0 +1,502 @@ + + + Any + + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT TOP 1'1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT TOP 1'1166' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT TOP 1 + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT TOP 1 + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '2011','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2012','2012-2013','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','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'32','uri://ed-fi.org/GradeLevelDescriptor','Second grade','Second grade','Second grade',NULL,NULL,NULL,'3728D8A3-2C3D-4BAE-98DF-7B55B92982E7','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '32')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'32' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '32')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530188','Olive Elementary School',NULL,NULL,'4C2A15D8-0244-491D-9963-13A91B0E5888','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + DECLARE @districtId int = 867530; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1 @districtId,'Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @districtId)); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1 @districtId,NULL,'152950',NULL,NULL,'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= @districtId)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId) + (SELECT TOP 1'1695' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530188',@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi3 INT = 100019485; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,NULL,'Ty','J','Arenas',NULL,NULL,'2004-02-09',NULL,NULL,NULL,NULL,'189914','71782D5B-A947-4E53-B1BA-D059864A6F7C','Nov 18 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi3)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530188_2011','867530188','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530188_2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,'867530188',2011,'2011-11-30','32',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'99BC9D1B-FE6E-4191-A7B8-B13BE8AF586E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530188_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100019485 AND SchoolId=867530188)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,'867530188','C9C47308-8E94-4DDA-B8E9-04FB9B962B61','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B61')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT TOP 1'1330' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); + + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId) + (SELECT TOP 1'1500' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId) + (SELECT TOP 1'1451' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT TOP 1'1701' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'35' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + DECLARE @schoolId1 int = 867530011; + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1 @schoolId1,'Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= @schoolId1)); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1 @schoolId1,@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= @schoolId1)); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi1 INT = 10100494; + DECLARE @studentUniqueId1 NVARCHAR(32) = '189854'; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi1,NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,@studentUniqueId1,'1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 9 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi1)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530011_2011',@schoolId1,'2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C82',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi1,@schoolId1,NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT TOP 1'1338' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId) + (SELECT TOP 1'1586' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + SET IDENTITY_INSERT edfi.Student ON; + DECLARE @studentUsi2 INT = 10133197; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi2,NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= @studentUsi2)); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi2,@schoolId1,2011,'2011-08-23','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B19E4479-9AEA-4873-8B8E-721484CC16EE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011)); + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT TOP 1'1704' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'38' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1'100050862',NULL,'Bobby',NULL,'Valverde',NULL,NULL,'1989-02-28','Fort Worth, Tx.',NULL,NULL,NULL,'192452','9FD780FB-0C5B-4B21-B37A-DB3FE18AF7A8','Nov 19 2010 4:00PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100050862')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'867530011_2012',@schoolId1,'2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C83',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530011_2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'100050862',@schoolId1,2012,'2012-01-23','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','EA0183EC-06D5-4BC9-94AB-ECF73A13B6AB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2012',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100050862 AND SchoolId = 867530011)); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT TOP 1'1700' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'729','uri://ed-fi.org/ExitWithdrawTypeDescriptor','Withdrawn','Withdrawn','Withdrawn',NULL,NULL,NULL,'73089407-3597-40B0-A8F9-486D345B4520','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '729')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId) + (SELECT TOP 1'729' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530023',@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1'100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='C6DA292F-0B36-4D14-B031-0B1443C9CFE6')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi1,@districtId,'C9C47308-8E94-4DDA-B8E9-04FB9B962B6F','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B6F')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT TOP 1'1165' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT TOP 1'1395' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi2,@districtId,'EBAD1C5E-9561-4C34-86E8-84142B5F281A','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='EBAD1C5E-9561-4C34-86E8-84142B5F281A')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,@districtId,'81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='81D10830-D623-4E67-A0B5-7411A3A4750C')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId) + (SELECT TOP 1'110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1'100050862',@districtId,'25DC7742-3EAC-4224-82FE-FEE46A3CFE5D','Nov 19 2015 4:09PM','Dec 13 2018 2:34PM',NULL,'1','110',NULL,'1395',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='25DC7742-3EAC-4224-82FE-FEE46A3CFE5D')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'658','uri://ed-fi.org/StudentCharacteristicDescriptor','Displaced Homemaker','Displaced Homemaker','Displaced Homemaker',NULL,NULL,NULL,'EF4166FF-9231-4763-B33C-D61D013A835E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '658')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT TOP 1 @studentUsi3,@districtId,'81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= @districtId AND StudentUSI= @studentUsi3)); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1645','uri://ed-fi.org/ProgramTypeDescriptor','Independent Study','Independent Study','Independent Study',NULL,NULL,NULL,'8A83999E-FA09-43E9-AA95-D0117185E396','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1645')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1645' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1 @districtId,'Gifted and Talented',NULL,'CE507AAA-DC8E-4EF9-B186-B015728A3724','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1645',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= @districtId AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2000-09-20',@districtId,@districtId,'Gifted and Talented','1645',@studentUsi3,NULL,NULL,NULL,'Sep 18 2014 11:53AM','Sep 18 2015 11:53AM','B13E52B7-B874-4E1C-8D11-F9AE508511AC','edfi.StudentSchoolFoodServiceProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE Id='B13E52B7-B874-4E1C-8D11-F9AE508511AC')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT TOP 1'867530020',@districtId,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT TOP 1'100033704',NULL,'Jozie','O','Thompson',NULL,NULL,'1992-08-28',NULL,NULL,NULL,NULL,'190031','C748DA78-8B06-424A-AEFF-56AAED2415BE','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033704')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT TOP 1'100033704','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-10-26','729',NULL,NULL,NULL,NULL,NULL,'635','2013','7057A759-F9F1-416D-8248-BD83D00CD055','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530020)); + + --- + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530021','Beverly Hills High School 21','56888B72-8AF0-4741-B6BC-90950E29A277','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530021',@districtId + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033705','Dave','J','Thompson','1992-08-28','190032','C748DA78-8B06-424A-AEFF-56AAED241100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033705')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033705','867530021','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530021)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT TOP 1'100033705','867530021','81D10830-D623-4E67-A0B5-7411A3A47100','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033705')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033706','David','J2','Thompson','1992-08-28','190033','C748DA78-8B06-424A-AEFF-56AAED241101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033706')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT TOP 1'100033706','867530021','81D10830-D623-4E67-A0B5-7411A3A47101','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033706')); + + --- + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530022','Beverly Hills High School 22','56888B72-8AF0-4741-B6BC-90950E29A100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530022',@districtId + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100033707','John','J','Thompson','1992-08-28','190034','C748DA78-8B06-424A-AEFF-56AAED241102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033707')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT TOP 1'100033707','867530022','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-10-26' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033707 AND SchoolId=867530022)); + + -- Data for Digital Access testing + + -- Add SEOA entry for @schoolId1,@studentUsi1 matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi1,@schoolId1,'F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@schoolId1 AND studentUSI=@studentUsi1)); + + -- Add SEOA entry for @schoolId1,@studentUsi2 matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1 @studentUsi2,@schoolId1,'F4BE601E-CAA5-4355-AFF8-B04EEFB648E1','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId=@schoolId1 AND studentUSI=@studentUsi2)); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- @studentUsi1 happy path + (@schoolId1,@studentUsi1,'Internet Access In Residence','Yes'), + (@schoolId1,@studentUsi1,'Internet Access Type In Residence','ResidentialBroadband'), + (@schoolId1,@studentUsi1,'Internet Performance In Residence','Yes - No issues'), + (@schoolId1,@studentUsi1,'Digital Device','Chromebook'), + (@schoolId1,@studentUsi1,'Device Access','School Provided - Dedicated'), + + -- These extra records should be ignored by the view because + -- they are associated with the District, not the School + (@districtId,@studentUsi1,'Internet Access In Residence','Yes__'), + (@districtId,@studentUsi1,'Internet Access Type In Residence','ResidentialBroadband__'), + (@districtId,@studentUsi1,'Internet Performance In Residence','Yes - No issues__'), + (@districtId,@studentUsi1,'Digital Device','Chromebook__'), + (@districtId,@studentUsi1,'Device Access','School Provided - Dedicated__'), + + -- This record is for a different student + (@schoolId1,@studentUsi2,'Device Access','School Provided - DedicatedX') + + -- @studentUsi3 is in @schoolId1 but has no indicator records + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_3/0001_StudentSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_3/0001_StudentSchoolDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..429ca6a7 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/MSSQL/v_3_3/0001_StudentSchoolDim_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSchoolDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + SchoolYear + varchar + + + StudentFirstName + nvarchar + + + StudentMiddleName + nvarchar + + + StudentLastName + nvarchar + + + BirthDate + date + + + EnrollmentDateKey + nvarchar + + + GradeLevel + nvarchar + + + LimitedEnglishProficiency + nvarchar + + + IsHispanic + bit + + + Sex + nvarchar + + + InternetAccessInResidence + nvarchar + + + InternetAccessTypeInResidence + nvarchar + + + InternetPerformance + nvarchar + + + DigitalDevice + nvarchar + + + DeviceAccess + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml index e24d9be1..e544e907 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_2/0000_StudentSchoolDim_Data_Load.xml @@ -3,442 +3,442 @@ Any - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); - - INSERT INTO edfi.SexDescriptor(SexDescriptorId) - (SELECT '1396' - WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); - - INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) - (SELECT '1166' - WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); - - INSERT INTO edfi.Descriptor( - DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - ( - SELECT - '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); - - INSERT INTO edfi.CalendarTypeDescriptor( - CalendarTypeDescriptorId) - (SELECT - '1148' - WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); - - INSERT INTO edfi.SchoolYearType( - SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) - (SELECT - '2011','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 - '2012','2012-2013','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2012')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '32','uri://ed-fi.org/GradeLevelDescriptor','Second grade','Second grade','Second grade',NULL,NULL,NULL,'3728D8A3-2C3D-4BAE-98DF-7B55B92982E7','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '32')); - - INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) - (SELECT '32' - WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '32')); - - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) - (SELECT '867530188','Olive Elementary School',NULL,NULL,'4C2A15D8-0244-491D-9963-13A91B0E5888','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); - - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) - (SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); - - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) - (SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); - - INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) - (SELECT '152950',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); - - INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) - (SELECT '1086' - WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); - - INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId) - (SELECT '867530',NULL,'152950',NULL,NULL,'1086' - WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); - - INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId) - (SELECT '1695' - WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); - - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) - (SELECT '867530188','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); - - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) - (SELECT '100019485',NULL,'Ty','J','Arenas',NULL,NULL,'2004-02-09',NULL,NULL,NULL,NULL,'189914','71782D5B-A947-4E53-B1BA-D059864A6F7C','Nov 18 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100019485')); - - INSERT INTO edfi.Calendar( - CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) - (SELECT '867530188_2011','867530188','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530188_2011')); - - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) - (SELECT '100019485','867530188',2011,'2011-11-30','32',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'99BC9D1B-FE6E-4191-A7B8-B13BE8AF586E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530188_2011',NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100019485 AND SchoolId=867530188)); - - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) - (SELECT '100019485','867530188','C9C47308-8E94-4DDA-B8E9-04FB9B962B61','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B61')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330')); - - INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) - (SELECT '1330' - WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); - - INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId) - (SELECT '1500' - WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); - - INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId) - (SELECT '1451' - WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); - - INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) - (SELECT '1701' - WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); - - INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) - (SELECT '35' - WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); - - - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) - (SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); - - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) - (SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); - - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) - (SELECT '10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 9 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); - - INSERT INTO edfi.Calendar( - CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) - (SELECT '867530011_2011','867530011','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C82',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT '1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT '1166' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '2011','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2012','2012-2013','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2012')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '32','uri://ed-fi.org/GradeLevelDescriptor','Second grade','Second grade','Second grade',NULL,NULL,NULL,'3728D8A3-2C3D-4BAE-98DF-7B55B92982E7','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '32')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '32' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '32')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530188','Olive Elementary School',NULL,NULL,'4C2A15D8-0244-491D-9963-13A91B0E5888','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152950',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT '1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867530',NULL,'152950',NULL,NULL,'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId) + (SELECT '1695' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530188','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100019485',NULL,'Ty','J','Arenas',NULL,NULL,'2004-02-09',NULL,NULL,NULL,NULL,'189914','71782D5B-A947-4E53-B1BA-D059864A6F7C','Nov 18 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100019485')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530188_2011','867530188','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530188_2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100019485','867530188',2011,'2011-11-30','32',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'99BC9D1B-FE6E-4191-A7B8-B13BE8AF586E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530188_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100019485 AND SchoolId=867530188)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100019485','867530188','C9C47308-8E94-4DDA-B8E9-04FB9B962B61','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B61')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330')); + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT '1330' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); + + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId) + (SELECT '1500' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId) + (SELECT '1451' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT '1701' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '35' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 9 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530011_2011','867530011','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C82',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) - (SELECT '10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); - INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) - (SELECT '1338' - WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT '1338' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); - INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId) - (SELECT '1586' - WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId) + (SELECT '1586' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) - (SELECT '10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) - (SELECT '10133197','867530011',2011,'2011-08-23','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B19E4479-9AEA-4873-8B8E-721484CC16EE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011)); - INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) - (SELECT '1704' - WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); - - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); - - INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) - (SELECT '38' - WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); - - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) - (SELECT '100050862',NULL,'Bobby',NULL,'Valverde',NULL,NULL,'1989-02-28','Fort Worth, Tx.',NULL,NULL,NULL,'192452','9FD780FB-0C5B-4B21-B37A-DB3FE18AF7A8','Nov 19 2010 4:00PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100050862')); - - INSERT INTO edfi.Calendar( - CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) - (SELECT '867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C83',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530011_2012')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '10133197','867530011',2011,'2011-08-23','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B19E4479-9AEA-4873-8B8E-721484CC16EE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011)); + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT '1704' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '38' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100050862',NULL,'Bobby',NULL,'Valverde',NULL,NULL,'1989-02-28','Fort Worth, Tx.',NULL,NULL,NULL,'192452','9FD780FB-0C5B-4B21-B37A-DB3FE18AF7A8','Nov 19 2010 4:00PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100050862')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C83',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530011_2012')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) - (SELECT '100050862','867530011',2012,'2012-01-23','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','EA0183EC-06D5-4BC9-94AB-ECF73A13B6AB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2012',NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100050862 AND SchoolId = 867530011)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100050862','867530011',2012,'2012-01-23','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','EA0183EC-06D5-4BC9-94AB-ECF73A13B6AB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2012',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100050862 AND SchoolId = 867530011)); - INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) - (SELECT '1700' - WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT '1700' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '729','uri://ed-fi.org/ExitWithdrawTypeDescriptor','Withdrawn','Withdrawn','Withdrawn',NULL,NULL,NULL,'73089407-3597-40B0-A8F9-486D345B4520','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '729')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '729','uri://ed-fi.org/ExitWithdrawTypeDescriptor','Withdrawn','Withdrawn','Withdrawn',NULL,NULL,NULL,'73089407-3597-40B0-A8F9-486D345B4520','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '729')); - INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId) - (SELECT '729' - WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId) + (SELECT '729' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) - (SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) - (SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) - (SELECT '100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) - (SELECT '100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='C6DA292F-0B36-4D14-B031-0B1443C9CFE6')); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='C6DA292F-0B36-4D14-B031-0B1443C9CFE6')); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) - (SELECT '10100494','867530','C9C47308-8E94-4DDA-B8E9-04FB9B962B6F','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B6F')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '10100494','867530','C9C47308-8E94-4DDA-B8E9-04FB9B962B6F','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B6F')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); - - INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) - (SELECT '1165' - WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT '1165' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); - INSERT INTO edfi.SexDescriptor(SexDescriptorId) - (SELECT '1395' - WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT '1395' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) - (SELECT '10133197','867530','EBAD1C5E-9561-4C34-86E8-84142B5F281A','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='EBAD1C5E-9561-4C34-86E8-84142B5F281A')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '10133197','867530','EBAD1C5E-9561-4C34-86E8-84142B5F281A','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='EBAD1C5E-9561-4C34-86E8-84142B5F281A')); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) - (SELECT '100019485','867530','81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='81D10830-D623-4E67-A0B5-7411A3A4750C')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100019485','867530','81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='81D10830-D623-4E67-A0B5-7411A3A4750C')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); - INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId) - (SELECT '110' - WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId) + (SELECT '110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) - (SELECT '100050862','867530','25DC7742-3EAC-4224-82FE-FEE46A3CFE5D','Nov 19 2015 4:09PM','Dec 13 2018 2:34PM',NULL,'1','110',NULL,'1395',NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='25DC7742-3EAC-4224-82FE-FEE46A3CFE5D')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100050862','867530','25DC7742-3EAC-4224-82FE-FEE46A3CFE5D','Nov 19 2015 4:09PM','Dec 13 2018 2:34PM',NULL,'1','110',NULL,'1395',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='25DC7742-3EAC-4224-82FE-FEE46A3CFE5D')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '658','uri://ed-fi.org/StudentCharacteristicDescriptor','Displaced Homemaker','Displaced Homemaker','Displaced Homemaker',NULL,NULL,NULL,'EF4166FF-9231-4763-B33C-D61D013A835E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '658')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '658','uri://ed-fi.org/StudentCharacteristicDescriptor','Displaced Homemaker','Displaced Homemaker','Displaced Homemaker',NULL,NULL,NULL,'EF4166FF-9231-4763-B33C-D61D013A835E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '658')); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) - (SELECT '100019485','867530','81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100019485')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100019485','867530','81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100019485')); - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) - (SELECT '1645','uri://ed-fi.org/ProgramTypeDescriptor','Independent Study','Independent Study','Independent Study',NULL,NULL,NULL,'8A83999E-FA09-43E9-AA95-D0117185E396','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1645')); - - INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) - (SELECT '1645' - WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1645')); - - INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) - (SELECT '867530','Gifted and Talented',NULL,'CE507AAA-DC8E-4EF9-B186-B015728A3724','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1645',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1645')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1645','uri://ed-fi.org/ProgramTypeDescriptor','Independent Study','Independent Study','Independent Study',NULL,NULL,NULL,'8A83999E-FA09-43E9-AA95-D0117185E396','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1645')); + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT '1645' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867530','Gifted and Talented',NULL,'CE507AAA-DC8E-4EF9-B186-B015728A3724','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1645',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1645')); - INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator) - (SELECT '2000-09-20','867530','867530','Gifted and Talented','1645','100019485',NULL,NULL,NULL,'Sep 18 2014 11:53AM','Sep 18 2015 11:53AM','B13E52B7-B874-4E1C-8D11-F9AE508511AC','edfi.StudentSchoolFoodServiceProgramAssociation' - WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE Id='B13E52B7-B874-4E1C-8D11-F9AE508511AC')); + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2000-09-20','867530','867530','Gifted and Talented','1645','100019485',NULL,NULL,NULL,'Sep 18 2014 11:53AM','Sep 18 2015 11:53AM','B13E52B7-B874-4E1C-8D11-F9AE508511AC','edfi.StudentSchoolFoodServiceProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE Id='B13E52B7-B874-4E1C-8D11-F9AE508511AC')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) - (SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) - (SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) - (SELECT '100033704',NULL,'Jozie','O','Thompson',NULL,NULL,'1992-08-28',NULL,NULL,NULL,NULL,'190031','C748DA78-8B06-424A-AEFF-56AAED2415BE','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033704')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100033704',NULL,'Jozie','O','Thompson',NULL,NULL,'1992-08-28',NULL,NULL,NULL,NULL,'190031','C748DA78-8B06-424A-AEFF-56AAED2415BE','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033704')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) - (SELECT '100033704','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-10-26','729',NULL,NULL,NULL,NULL,NULL,'635','2013','7057A759-F9F1-416D-8248-BD83D00CD055','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530020)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100033704','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-10-26','729',NULL,NULL,NULL,NULL,NULL,'635','2013','7057A759-F9F1-416D-8248-BD83D00CD055','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530020)); - --- + --- - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) - (SELECT '867530021','Beverly Hills High School 21','56888B72-8AF0-4741-B6BC-90950E29A277','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530021','Beverly Hills High School 21','56888B72-8AF0-4741-B6BC-90950E29A277','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) - (SELECT '867530021','867530' - WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT '867530021','867530' + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); - INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) - (SELECT '100033705','Dave','J','Thompson','1992-08-28','190032','C748DA78-8B06-424A-AEFF-56AAED241100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033705')); + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100033705','Dave','J','Thompson','1992-08-28','190032','C748DA78-8B06-424A-AEFF-56AAED241100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033705')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) - (SELECT '100033705','867530021','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530021)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '100033705','867530021','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530021)); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) - (SELECT '100033705','867530021','81D10830-D623-4E67-A0B5-7411A3A47100','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033705')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT '100033705','867530021','81D10830-D623-4E67-A0B5-7411A3A47100','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033705')); - INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) - (SELECT '100033706','David','J2','Thompson','1992-08-28','190033','C748DA78-8B06-424A-AEFF-56AAED241101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033706')); + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100033706','David','J2','Thompson','1992-08-28','190033','C748DA78-8B06-424A-AEFF-56AAED241101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033706')); - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) - (SELECT '100033706','867530021','81D10830-D623-4E67-A0B5-7411A3A47101','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033706')); + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT '100033706','867530021','81D10830-D623-4E67-A0B5-7411A3A47101','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033706')); - --- + --- - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) - (SELECT '867530022','Beverly Hills High School 22','56888B72-8AF0-4741-B6BC-90950E29A100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' - WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530022','Beverly Hills High School 22','56888B72-8AF0-4741-B6BC-90950E29A100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) - (SELECT '867530022','867530' - WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT '867530022','867530' + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); - INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) - (SELECT '100033707','John','J','Thompson','1992-08-28','190034','C748DA78-8B06-424A-AEFF-56AAED241102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' - WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033707')); + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100033707','John','J','Thompson','1992-08-28','190034','C748DA78-8B06-424A-AEFF-56AAED241102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033707')); - INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) - (SELECT '100033707','867530022','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-10-26' - WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033707 AND SchoolId=867530022)); + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT '100033707','867530022','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-10-26' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033707 AND SchoolId=867530022)); - -- Data for Digital Access testing + -- Data for Digital Access testing - -- Add SEOA entry for '867530011','10100494' matching StudentSchoolAssociation - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '10100494','867530011','F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='10100494')); + -- Add SEOA entry for '867530011','10100494' matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '10100494','867530011','F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='10100494')); - -- Add SEOA entry for '867530011','10133197' matching StudentSchoolAssociation - INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '10133197','867530011','F4BE601E-CAA5-4355-AFF8-B04EEFB648E1','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='10133197')); + -- Add SEOA entry for '867530011','10133197' matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '10133197','867530011','F4BE601E-CAA5-4355-AFF8-B04EEFB648E1','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='10133197')); - INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator - (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) - VALUES - -- '10100494' happy path - ('867530011','10100494','InternetAccessInResidence','Yes'), - ('867530011','10100494','InternetAccessTypeInResidence','ResidentialBroadband'), - ('867530011','10100494','InternetPerformance','Yes - No issues'), - ('867530011','10100494','DigitalDevice','Chromebook'), - ('867530011','10100494','DeviceAccess','School Provided - Dedicated'), + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- '10100494' happy path + ('867530011','10100494','InternetAccessInResidence','Yes'), + ('867530011','10100494','InternetAccessTypeInResidence','ResidentialBroadband'), + ('867530011','10100494','InternetPerformance','Yes - No issues'), + ('867530011','10100494','DigitalDevice','Chromebook'), + ('867530011','10100494','DeviceAccess','School Provided - Dedicated'), - -- These extra records should be ignored by the view because - -- they are associated with the District, not the School - ('867530','10100494','InternetAccessInResidence','Yes__'), - ('867530','10100494','InternetAccessTypeInResidence','ResidentialBroadband__'), - ('867530','10100494','InternetPerformance','Yes - No issues__'), - ('867530','10100494','DigitalDevice','Chromebook__'), - ('867530','10100494','DeviceAccess','School Provided - Dedicated__'), + -- These extra records should be ignored by the view because + -- they are associated with the District, not the School + ('867530','10100494','InternetAccessInResidence','Yes__'), + ('867530','10100494','InternetAccessTypeInResidence','ResidentialBroadband__'), + ('867530','10100494','InternetPerformance','Yes - No issues__'), + ('867530','10100494','DigitalDevice','Chromebook__'), + ('867530','10100494','DeviceAccess','School Provided - Dedicated__'), - -- This record is for a different student - ('867530011','10133197','DeviceAccess','School Provided - DedicatedX') + -- This record is for a different student + ('867530011','10133197','DeviceAccess','School Provided - DedicatedX') - + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_3/0000_StudentSchoolDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_3/0000_StudentSchoolDim_Data_Load.xml new file mode 100644 index 00000000..55efa60e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_3/0000_StudentSchoolDim_Data_Load.xml @@ -0,0 +1,444 @@ + + + Any + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '686','uri://ed-fi.org/CalendarEventDescriptor','Instructional day','Instructional day','Instructional day',NULL,NULL,NULL,'4221482F-154F-4196-BB20-948B5F70AAEC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '686')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '687','uri://ed-fi.org/CalendarEventDescriptor','Make-up day','Make-up day','Make-up day',NULL,NULL,NULL,'391A3FF9-8DA0-44A8-8D26-0C2CD987B352','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '687')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '545','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Excused Absence','Excused Absence','Excused Absence',NULL,NULL,NULL,'5146D87C-DE6F-4870-9EEE-AD6890F7A722','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '545')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '544','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Unexcused Absence','Unexcused Absence','Unexcused Absence',NULL,NULL,NULL,'711C0C86-268F-4C42-BC44-B6FBEBF35DAB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '544')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '547','uri://ed-fi.org/AttendanceEventCategoryDescriptor','Tardy','Tardy','Tardy',NULL,NULL,NULL,'1B39771B-A743-4B06-B5BE-77795E4CA0DB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '547')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1500','uri://ed-fi.org/AddressTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'AB364693-35E1-49A6-A6C0-FF51FAA372F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1500')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1505','uri://ed-fi.org/AddressTypeDescriptor','Physical','Physical','Physical',NULL,NULL,NULL,'B3FBA2D3-794A-4288-8A91-3DEDF43AFD74','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1505')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1502','uri://ed-fi.org/AddressTypeDescriptor','Mailing','Mailing','Mailing',NULL,NULL,NULL,'93E71ED1-83A8-4FAF-8039-D1FD5F846964','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1502')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1510','uri://ed-fi.org/AddressTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'10C37A2D-A7CB-4C2D-9AC1-4CE1691C93F7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1510')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1508','uri://ed-fi.org/AddressTypeDescriptor','Temporary','Temporary','Temporary',NULL,NULL,NULL,'91B50747-86AF-435C-96F4-4F6AA3D8A52A','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1508')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1700','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Home','Home','Home',NULL,NULL,NULL,'8180EBEE-DFA6-4138-8114-E9C14B4E6907','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1700')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1701','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Mobile','Mobile','Mobile',NULL,NULL,NULL,'BA0E57AC-B996-4A6F-BB6E-A2CABDAA9BE7','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1701')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1704','uri://ed-fi.org/TelephoneNumberTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'63B0B009-CF63-4D39-9A8E-4B5997CD8A00','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1704')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1601','uri://ed-fi.org/GradeTypeDescriptor','Grading Period','Grading Period','Grading Period',NULL,NULL,NULL,'B28F1950-0205-4C7C-AB23-C35F9E67D4A8','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT '1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT '1166' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + ( + SELECT + '1148','uri://ed-fi.org/CalendarTypeDescriptor','Student Specific','Student Specific','Student Specific',NULL,NULL,NULL,'23CFFE41-2AA7-4C79-9DB8-285100A4DF5F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1148')); + + INSERT INTO edfi.CalendarTypeDescriptor( + CalendarTypeDescriptorId) + (SELECT + '1148' + WHERE NOT EXISTS(SELECT 1 FROM edfi.CalendarTypeDescriptor WHERE CalendarTypeDescriptorId= '1148')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '2011','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E2','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 + '2012','2012-2013','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E3','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2012')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '32','uri://ed-fi.org/GradeLevelDescriptor','Second grade','Second grade','Second grade',NULL,NULL,NULL,'3728D8A3-2C3D-4BAE-98DF-7B55B92982E7','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '32')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '32' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '32')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530188','Olive Elementary School',NULL,NULL,'4C2A15D8-0244-491D-9963-13A91B0E5888','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152950',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT '1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867530',NULL,'152950',NULL,NULL,'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId) + (SELECT '1695' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530188','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100019485',NULL,'Ty','J','Arenas',NULL,NULL,'2004-02-09',NULL,NULL,NULL,NULL,'189914','71782D5B-A947-4E53-B1BA-D059864A6F7C','Nov 18 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100019485')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530188_2011','867530188','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C81',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530188_2011')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100019485','867530188',2011,'2011-11-30','32',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'99BC9D1B-FE6E-4191-A7B8-B13BE8AF586E','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530188_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100019485 AND SchoolId=867530188)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100019485','867530188','C9C47308-8E94-4DDA-B8E9-04FB9B962B61','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B61')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1330','uri://ed-fi.org/RelationDescriptor','Mother','Mother','Mother',NULL,NULL,NULL,'31F24D12-FBE6-438B-B615-AF569067ACDF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1330')); + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT '1330' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1330')); + + INSERT INTO edfi.AddressTypeDescriptor(AddressTypeDescriptorId) + (SELECT '1500' + WHERE NOT EXISTS(SELECT 1 FROM edfi.AddressTypeDescriptor WHERE AddressTypeDescriptorId= '1500')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId) + (SELECT '1451' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT '1701' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1701')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '35','uri://ed-fi.org/GradeLevelDescriptor','Tenth grade','Tenth grade','Tenth grade',NULL,NULL,NULL,'92C235F5-2634-49EC-AB9F-49CC37C1BECB','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '35')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '35' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '35')); + + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '10100494',NULL,'Toby','K','Garner',NULL,NULL,'1978-09-04',NULL,NULL,NULL,NULL,'189854','1FBB3B53-A219-40FB-8FF9-676659EED948','Nov 9 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10100494')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530011_2011','867530011','2011','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C82',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '628530001_2019')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '10100494','867530011',NULL,'2011-09-20','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','904243FF-1AA7-4891-A489-37521371955D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10100494 AND SchoolId=867530011)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1338','uri://ed-fi.org/RelationDescriptor','Other','Other','Other',NULL,NULL,NULL,'87AAE713-C729-4932-8D72-0129A63B3A63','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1338')); + + INSERT INTO edfi.RelationDescriptor(RelationDescriptorId) + (SELECT '1338' + WHERE NOT EXISTS(SELECT 1 FROM edfi.RelationDescriptor WHERE RelationDescriptorId= '1338')); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId) + (SELECT '1586' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '10133197','867530011',2011,'2011-08-23','35',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','B19E4479-9AEA-4873-8B8E-721484CC16EE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2011',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011)); + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT '1704' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1704')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '38' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100050862',NULL,'Bobby',NULL,'Valverde',NULL,NULL,'1989-02-28','Fort Worth, Tx.',NULL,NULL,NULL,'192452','9FD780FB-0C5B-4B21-B37A-DB3FE18AF7A8','Nov 19 2010 4:00PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100050862')); + + INSERT INTO edfi.Calendar( + CalendarCode,SchoolId,SchoolYear,CalendarTypeDescriptorId,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '867530011_2012','867530011','2012','1148','Dec 13 2018 2:32PM','Dec 13 2018 2:32PM','3E474E61-D78C-4F90-8D89-7BE0DFF67C83',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Calendar WHERE CalendarCode = '867530011_2012')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100050862','867530011',2012,'2012-01-23','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'632','2012','EA0183EC-06D5-4BC9-94AB-ECF73A13B6AB','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','867530011_2012',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100050862 AND SchoolId = 867530011)); + + INSERT INTO edfi.TelephoneNumberTypeDescriptor(TelephoneNumberTypeDescriptorId) + (SELECT '1700' + WHERE NOT EXISTS(SELECT 1 FROM edfi.TelephoneNumberTypeDescriptor WHERE TelephoneNumberTypeDescriptorId= '1700')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '729','uri://ed-fi.org/ExitWithdrawTypeDescriptor','Withdrawn','Withdrawn','Withdrawn',NULL,NULL,NULL,'73089407-3597-40B0-A8F9-486D345B4520','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '729')); + + INSERT INTO edfi.ExitWithdrawTypeDescriptor(ExitWithdrawTypeDescriptorId) + (SELECT '729' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ExitWithdrawTypeDescriptor WHERE ExitWithdrawTypeDescriptorId= '729')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530023','Dorsey High School',NULL,NULL,'630ED5F3-09C7-404B-B0F8-99F608E46D35','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530023','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100026948',NULL,'Ryenell','W','Crawford',NULL,NULL,'1991-04-24','Lubbock',NULL,NULL,NULL,'189936','FCFD1AF8-5F64-4D30-BB1F-34AB6D3D5398','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100026948')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100026948','867530023',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-09-21','729',NULL,NULL,NULL,NULL,NULL,'635','2013','C6DA292F-0B36-4D14-B031-0B1443C9CFE6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id='C6DA292F-0B36-4D14-B031-0B1443C9CFE6')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '10100494','867530','C9C47308-8E94-4DDA-B8E9-04FB9B962B6F','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='C9C47308-8E94-4DDA-B8E9-04FB9B962B6F')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId) + (SELECT '1165' + WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId) + (SELECT '1395' + WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '10133197','867530','EBAD1C5E-9561-4C34-86E8-84142B5F281A','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='EBAD1C5E-9561-4C34-86E8-84142B5F281A')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100019485','867530','81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='81D10830-D623-4E67-A0B5-7411A3A4750C')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '110','uri://ed-fi.org/LimitedEnglishProficiencyDescriptor','Limited','Limited','Limited',NULL,NULL,NULL,'29DF3155-D3B9-4605-B80B-50CC9C3FC6DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor(LimitedEnglishProficiencyDescriptorId) + (SELECT '110' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100050862','867530','25DC7742-3EAC-4224-82FE-FEE46A3CFE5D','Nov 19 2015 4:09PM','Dec 13 2018 2:34PM',NULL,'1','110',NULL,'1395',NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE Id='25DC7742-3EAC-4224-82FE-FEE46A3CFE5D')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '658','uri://ed-fi.org/StudentCharacteristicDescriptor','Displaced Homemaker','Displaced Homemaker','Displaced Homemaker',NULL,NULL,NULL,'EF4166FF-9231-4763-B33C-D61D013A835E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '658')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator) + (SELECT '100019485','867530','81D10830-D623-4E67-A0B5-7411A3A4750C','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'1',NULL,NULL,'1396','1166',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530' AND StudentUSI= '100019485')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT '1645','uri://ed-fi.org/ProgramTypeDescriptor','Independent Study','Independent Study','Independent Study',NULL,NULL,NULL,'8A83999E-FA09-43E9-AA95-D0117185E396','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1645')); + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT '1645' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,ProgramId,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867530','Gifted and Talented',NULL,'CE507AAA-DC8E-4EF9-B186-B015728A3724','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1645',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Gifted and Talented' AND ProgramTypeDescriptorId= '1645')); + + INSERT INTO edfi.GeneralStudentProgramAssociation(BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,EndDate,ReasonExitedDescriptorId,ServedOutsideOfRegularSession,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2000-09-20','867530','867530','Gifted and Talented','1645','100019485',NULL,NULL,NULL,'Sep 18 2014 11:53AM','Sep 18 2015 11:53AM','B13E52B7-B874-4E1C-8D11-F9AE508511AC','edfi.StudentSchoolFoodServiceProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE Id='B13E52B7-B874-4E1C-8D11-F9AE508511AC')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator) + (SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId) + (SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator) + (SELECT '100033704',NULL,'Jozie','O','Thompson',NULL,NULL,'1992-08-28',NULL,NULL,NULL,NULL,'190031','C748DA78-8B06-424A-AEFF-56AAED2415BE','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033704')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator) + (SELECT '100033704','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,'2011-10-26','729',NULL,NULL,NULL,NULL,NULL,'635','2013','7057A759-F9F1-416D-8248-BD83D00CD055','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530020)); + + --- + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530021','Beverly Hills High School 21','56888B72-8AF0-4741-B6BC-90950E29A277','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT '867530021','867530' + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530021')); + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100033705','Dave','J','Thompson','1992-08-28','190032','C748DA78-8B06-424A-AEFF-56AAED241100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033705')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT '100033705','867530021','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033704 AND SchoolId=867530021)); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT '100033705','867530021','81D10830-D623-4E67-A0B5-7411A3A47100','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033705')); + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100033706','David','J2','Thompson','1992-08-28','190033','C748DA78-8B06-424A-AEFF-56AAED241101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033706')); + + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SexDescriptorId) + (SELECT '100033706','867530021','81D10830-D623-4E67-A0B5-7411A3A47101','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM','1396' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId= '867530021' AND StudentUSI= '100033706')); + + --- + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530022','Beverly Hills High School 22','56888B72-8AF0-4741-B6BC-90950E29A100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId) + (SELECT '867530022','867530' + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.Student(StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100033707','John','J','Thompson','1992-08-28','190034','C748DA78-8B06-424A-AEFF-56AAED241102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100033707')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT '100033707','867530022','2011-08-22','38','7057A759-F9F1-416D-8248-BD83D00CD101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2111-10-26' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI=100033707 AND SchoolId=867530022)); + + -- Data for Digital Access testing + + -- Add SEOA entry for '867530011','10100494' matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '10100494','867530011','F4BE601E-CAA5-4355-AF68-B04EEFB648E1','Nov 19 2015 4:14PM','Nov 9 2015 4:14PM',NULL,'1',NULL,NULL,'1396','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='10100494')); + + -- Add SEOA entry for '867530011','10133197' matching StudentSchoolAssociation + INSERT INTO edfi.StudentEducationOrganizationAssociation(StudentUSI,EducationOrganizationId,Id,LastModifiedDate,CreateDate,ProfileThumbnail,HispanicLatinoEthnicity,LimitedEnglishProficiencyDescriptorId,LoginId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '10133197','867530011','F4BE601E-CAA5-4355-AFF8-B04EEFB648E1','Dec 13 2014 2:34PM','Dec 13 2018 2:34PM',NULL,'0',NULL,NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentEducationOrganizationAssociation WHERE EducationOrganizationId='867530011' AND studentUSI='10133197')); + + INSERT INTO edfi.StudentEducationOrganizationAssociationStudentIndicator + (EducationOrganizationId,StudentUSI,IndicatorName,Indicator) + VALUES + -- '10100494' happy path + ('867530011','10100494','Internet Access In Residence','Yes'), + ('867530011','10100494','Internet Access Type In Residence','ResidentialBroadband'), + ('867530011','10100494','Internet Performance In Residence','Yes - No issues'), + ('867530011','10100494','Digital Device','Chromebook'), + ('867530011','10100494','Device Access','School Provided - Dedicated'), + + -- These extra records should be ignored by the view because + -- they are associated with the District, not the School + ('867530','10100494','Internet Access In Residence','Yes__'), + ('867530','10100494','Internet Access Type In Residence','ResidentialBroadband__'), + ('867530','10100494','Internet Performance In Residence','Yes - No issues__'), + ('867530','10100494','Digital Device','Chromebook__'), + ('867530','10100494','Device Access','School Provided - Dedicated__'), + + -- This record is for a different student + ('867530011','10133197','Device Access','School Provided - DedicatedX') + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_3/0001_StudentSchoolDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_3/0001_StudentSchoolDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..50707dd2 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolDim/PostgreSQL/v_3_3/0001_StudentSchoolDim_should_match_column_dictionary.xml @@ -0,0 +1,90 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'studentschooldim' + ORDER BY ORDINAL_POSITION ASC; + + + studentschoolkey + text + + + studentkey + character varying + + + schoolkey + character varying + + + schoolyear + character varying + + + studentfirstname + character varying + + + studentmiddlename + character varying + + + studentlastname + character varying + + + enrollmentdatekey + character varying + + + gradelevel + character varying + + + limitedenglishproficiency + character varying + + + ishispanic + boolean + + + sex + character varying + + + internetaccessinresidence + character varying + + + internetaccesstypeinresidence + character varying + + + internetperformance + character varying + + + digitaldevice + character varying + + + deviceaccess + character varying + + + lastmodifieddate + timestamp without time zone + + + birthdate + date + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_2/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_2/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml new file mode 100644 index 00000000..9ed288fe --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_2/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml @@ -0,0 +1,343 @@ + + + Any + + --###### 189889-867530022-Food Service 1-1666-867530-867530-20060814-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530','Glendale ISD','9CC29A49-637C-4882-A7DB-99AD87690100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1666','uri://ed-fi.org/ProgramTypeDescriptor','Food Service 1','Food Service 1','Food Service 1','3A180521-456F-4884-979C-EE83F4B52381','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1666')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1666' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867530','Food Service 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Food Service 1' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','Cecilia','D','Begay','1989-06-05','Lubbock','189889','989B461B-45DD-4947-B310-51229E206100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-14','867530','867530','Food Service 1','1666','100014881','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154100','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867530 and ProgramEducationOrganizationId = 867530 and ProgramName = 'Food Service 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014881)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-14','867530','867530','Food Service 1','1666',100014881) + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2892','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Free Breakfast','Free Breakfast','Free Breakfast','3A180521-456F-4884-979C-EE83F4B52382','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2892')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolFoodServiceProgramServiceDescriptor (SchoolFoodServiceProgramServiceDescriptorId) + VALUES ('2892'); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-14','867530','867530','Food Service 1','1666','2892',100014881) + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade','70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530022','Hollywood High School','032A4662-74DA-448B-B881-C88B82DAD100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152950','ESC Region 17','03DE6F94-316A-4B06-8C67-2C8748DCA100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent','0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867530','152950','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530022','867530' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','867530022','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014881 and SchoolId = 867530022)); + + --###### 189890-867530023-Food Service 2-1666-867531-867531-20060815-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867531','Glendale ISE','9CC29A49-637C-4882-A7DB-99AD87690101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867531')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','Boot','D','Smith','1989-06-05','Lubbock','189890','989B461B-45DD-4947-B310-51229E206101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154101','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1666','2892',100014882) + + -- Begin Date + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-16','867531','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154102','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-16' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-16','867531','867531','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-16','867531','867531','Food Service 2','1666','2892',100014882) + --/ Begin Date + + -- EducationOrganizationId + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867532','Glendale ISF','9CC29A49-637C-4882-A7DB-99AD87690103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867532')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867532','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867532' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1666')); + -- + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867532','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154103','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867532 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867532','867531','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867532','867531','Food Service 2','1666','2892',100014882) + --/ EducationOrganizationId + + -- ProgramEducationOrganizationId + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867532','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154104','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867532 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867532','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867532','Food Service 2','1666','2892',100014882) + --/ ProgramEducationOrganizationId + + -- Program Name + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Food Service 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D104','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 3' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 3','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154105','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 3' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 3','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 3','1666','2892',100014882) + --/ Program Name + + --ProgramTypeDescriptorId + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1667','uri://ed-fi.org/ProgramTypeDescriptor','Food Service A','Food Service A','Food Service A','3A180521-456F-4884-979C-EE83F4B52383','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1667')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1667' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1667')); + -- + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1667')); + -- + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 2','1667','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154106','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1667 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1667',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1667','2892',100014882) + --/ ProgramTypeDescriptorId + + -- Student USI + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014883','Dave','D','Simpson','1989-06-05','Lubbock','189891','989B461B-45DD-4947-B310-51229E206102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014883')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 2','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154107','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1666',100014883) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1666','2892',100014883) + --/Student USI + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530023','Hollywood High School 2','032A4662-74DA-448B-B881-C88B82DAD101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152951','ESC Region 18','03DE6F94-316A-4B06-8C67-2C8748DCA101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152951')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152951',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867531','152951','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530023','867531' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','867530023','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014882 and SchoolId = 867530023)); + + --###### 189899-867530032-Food Service 1-1666-867535-867535-20060814-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867535','Glendale ISG','9CC29A49-637C-4882-A7DB-99AD87690110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867535')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867535','Food Service 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867535' AND ProgramName= 'Food Service 1' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014891','Casey','D','McCarthy','1989-06-05','Lubbock','189899','989B461B-45DD-4947-B310-51229E206110','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014891')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-14','867535','867535','Food Service 1','1666','100014891','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154110','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867535 and ProgramEducationOrganizationId = 867535 and ProgramName = 'Food Service 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014891)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-14','867535','867535','Food Service 1','1666',100014891) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-14','867535','867535','Food Service 1','1666','2892',100014891) + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530032','Hollywood High School B','032A4662-74DA-448B-B881-C88B82DAD110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530032')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152960','ESC Region 19','03DE6F94-316A-4B06-8C67-2C8748DCA110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152960')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152960',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152960')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867535','152960','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867535')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530032','867535' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530032')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT TOP 1'100014891','867530032','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39110','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',DATEADD(day, 1, GETDATE()) + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014891 and SchoolId = 867530032)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_2/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_2/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..a7c9f8d0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_2/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml @@ -0,0 +1,38 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentSchoolFoodServiceProgramDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolFoodServiceProgramKey + nvarchar + + + StudentSchoolProgramKey + nvarchar + + + StudentSchoolKey + nvarchar + + + ProgramName + nvarchar + + + SchoolFoodServiceProgramServiceDescriptor + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_3/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_3/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml new file mode 100644 index 00000000..9ed288fe --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_3/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml @@ -0,0 +1,343 @@ + + + Any + + --###### 189889-867530022-Food Service 1-1666-867530-867530-20060814-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530','Glendale ISD','9CC29A49-637C-4882-A7DB-99AD87690100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1666','uri://ed-fi.org/ProgramTypeDescriptor','Food Service 1','Food Service 1','Food Service 1','3A180521-456F-4884-979C-EE83F4B52381','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1666')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1666' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867530','Food Service 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Food Service 1' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','Cecilia','D','Begay','1989-06-05','Lubbock','189889','989B461B-45DD-4947-B310-51229E206100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-14','867530','867530','Food Service 1','1666','100014881','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154100','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867530 and ProgramEducationOrganizationId = 867530 and ProgramName = 'Food Service 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014881)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-14','867530','867530','Food Service 1','1666',100014881) + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2892','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Free Breakfast','Free Breakfast','Free Breakfast','3A180521-456F-4884-979C-EE83F4B52382','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2892')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolFoodServiceProgramServiceDescriptor (SchoolFoodServiceProgramServiceDescriptorId) + VALUES ('2892'); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-14','867530','867530','Food Service 1','1666','2892',100014881) + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade','70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530022','Hollywood High School','032A4662-74DA-448B-B881-C88B82DAD100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152950','ESC Region 17','03DE6F94-316A-4B06-8C67-2C8748DCA100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent','0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867530','152950','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530022','867530' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014881','867530022','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014881 and SchoolId = 867530022)); + + --###### 189890-867530023-Food Service 2-1666-867531-867531-20060815-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867531','Glendale ISE','9CC29A49-637C-4882-A7DB-99AD87690101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867531')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','Boot','D','Smith','1989-06-05','Lubbock','189890','989B461B-45DD-4947-B310-51229E206101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014882')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154101','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1666','2892',100014882) + + -- Begin Date + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-16','867531','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154102','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-16' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-16','867531','867531','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-16','867531','867531','Food Service 2','1666','2892',100014882) + --/ Begin Date + + -- EducationOrganizationId + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867532','Glendale ISF','9CC29A49-637C-4882-A7DB-99AD87690103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867532')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867532','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867532' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1666')); + -- + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867532','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154103','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867532 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867532','867531','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867532','867531','Food Service 2','1666','2892',100014882) + --/ EducationOrganizationId + + -- ProgramEducationOrganizationId + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867532','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154104','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867532 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867532','Food Service 2','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867532','Food Service 2','1666','2892',100014882) + --/ ProgramEducationOrganizationId + + -- Program Name + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Food Service 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D104','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 3' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 3','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154105','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 3' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 3','1666',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 3','1666','2892',100014882) + --/ Program Name + + --ProgramTypeDescriptorId + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'1667','uri://ed-fi.org/ProgramTypeDescriptor','Food Service A','Food Service A','Food Service A','3A180521-456F-4884-979C-EE83F4B52383','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1667')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT TOP 1'1667' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1667')); + -- + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867531','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1667')); + -- + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 2','1667','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154106','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1667 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1667',100014882) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1667','2892',100014882) + --/ ProgramTypeDescriptorId + + -- Student USI + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014883','Dave','D','Simpson','1989-06-05','Lubbock','189891','989B461B-45DD-4947-B310-51229E206102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014883')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-15','867531','867531','Food Service 2','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154107','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1666',100014883) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1666','2892',100014883) + --/Student USI + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530023','Hollywood High School 2','032A4662-74DA-448B-B881-C88B82DAD101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152951','ESC Region 18','03DE6F94-316A-4B06-8C67-2C8748DCA101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152951')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152951',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867531','152951','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530023','867531' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014882','867530023','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014882 and SchoolId = 867530023)); + + --###### 189899-867530032-Food Service 1-1666-867535-867535-20060814-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867535','Glendale ISG','9CC29A49-637C-4882-A7DB-99AD87690110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867535')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT TOP 1'867535','Food Service 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867535' AND ProgramName= 'Food Service 1' AND ProgramTypeDescriptorId= '1666')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'100014891','Casey','D','McCarthy','1989-06-05','Lubbock','189899','989B461B-45DD-4947-B310-51229E206110','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014891')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT TOP 1'2006-08-14','867535','867535','Food Service 1','1666','100014891','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154110','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867535 and ProgramEducationOrganizationId = 867535 and ProgramName = 'Food Service 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014891)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-14','867535','867535','Food Service 1','1666',100014891) + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-14','867535','867535','Food Service 1','1666','2892',100014891) + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'867530032','Hollywood High School B','032A4662-74DA-448B-B881-C88B82DAD110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530032')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT TOP 1'152960','ESC Region 19','03DE6F94-316A-4B06-8C67-2C8748DCA110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152960')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1'152960',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152960')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT TOP 1'867535','152960','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867535')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT TOP 1'867530032','867535' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530032')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT TOP 1'100014891','867530032','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39110','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',DATEADD(day, 1, GETDATE()) + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014891 and SchoolId = 867530032)); + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_3/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_3/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..a7c9f8d0 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/MSSQL/v_3_3/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml @@ -0,0 +1,38 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_StudentSchoolFoodServiceProgramDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSchoolFoodServiceProgramKey + nvarchar + + + StudentSchoolProgramKey + nvarchar + + + StudentSchoolKey + nvarchar + + + ProgramName + nvarchar + + + SchoolFoodServiceProgramServiceDescriptor + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/PostgreSQL/v_3_3/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/PostgreSQL/v_3_3/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml new file mode 100644 index 00000000..6d6c1be6 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/PostgreSQL/v_3_3/0000_StudentSchoolFoodServiceProgramDim_Data_Load.xml @@ -0,0 +1,342 @@ + + + Any + + --###### 189889-867530022-Food Service 1-1666-867530-867530-20060814-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530','Glendale ISD','9CC29A49-637C-4882-A7DB-99AD87690100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1666','uri://ed-fi.org/ProgramTypeDescriptor','Food Service 1','Food Service 1','Food Service 1','3A180521-456F-4884-979C-EE83F4B52381','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1666')); + + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT '1666' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867530','Food Service 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867530' AND ProgramName= 'Food Service 1' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014881','Cecilia','D','Begay','1989-06-05','Lubbock','189889','989B461B-45DD-4947-B310-51229E206100','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-14','867530','867530','Food Service 1','1666','100014881','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154100','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867530 and ProgramEducationOrganizationId = 867530 and ProgramName = 'Food Service 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014881)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-14','867530','867530','Food Service 1','1666',100014881); + + + INSERT INTO edfi.Descriptor + (DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '2892','uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor','Free Breakfast','Free Breakfast','Free Breakfast','3A180521-456F-4884-979C-EE83F4B52382','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2892')); + + + INSERT INTO edfi.SchoolFoodServiceProgramServiceDescriptor (SchoolFoodServiceProgramServiceDescriptorId) + VALUES ('2892'); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-14','867530','867530','Food Service 1','1666','2892',100014881); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade','70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId) + (SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530022','Hollywood High School','032A4662-74DA-448B-B881-C88B82DAD100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152950','ESC Region 17','03DE6F94-316A-4B06-8C67-2C8748DCA100','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent','0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId) + (SELECT '1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867530','152950','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530022','867530' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014881','867530022','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39100','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014881 and SchoolId = 867530022)); + + --###### 189890-867530023-Food Service 2-1666-867531-867531-20060815-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867531','Glendale ISE','9CC29A49-637C-4882-A7DB-99AD87690101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867531')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867531','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014882','Boot','D','Smith','1989-06-05','Lubbock','189890','989B461B-45DD-4947-B310-51229E206101','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014882')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867531','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154101','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1666',100014882); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1666','2892',100014882); + + -- Begin Date + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-16','867531','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154102','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-16' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-16','867531','867531','Food Service 2','1666',100014882); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-16','867531','867531','Food Service 2','1666','2892',100014882); + --/ Begin Date + + -- EducationOrganizationId + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867532','Glendale ISF','9CC29A49-637C-4882-A7DB-99AD87690103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867532')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867532','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D103','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867532' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1666')); + -- + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867532','867531','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154103','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867532 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867532','867531','Food Service 2','1666',100014882); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867532','867531','Food Service 2','1666','2892',100014882); + --/ EducationOrganizationId + + -- ProgramEducationOrganizationId + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867531','867532','Food Service 2','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154104','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867532 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867532','Food Service 2','1666',100014882); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867532','Food Service 2','1666','2892',100014882); + --/ ProgramEducationOrganizationId + + -- Program Name + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867531','Food Service 3','E078EB62-CDB6-40B3-ADDD-C37C34D5D104','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 3' AND ProgramTypeDescriptorId= '1666')); + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867531','867531','Food Service 3','1666','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154105','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 3' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 3','1666',100014882); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 3','1666','2892',100014882); + --/ Program Name + + --ProgramTypeDescriptorId + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,Id,LastModifiedDate,CreateDate) + (SELECT '1667','uri://ed-fi.org/ProgramTypeDescriptor','Food Service A','Food Service A','Food Service A','3A180521-456F-4884-979C-EE83F4B52383','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1667')); + + + INSERT INTO edfi.ProgramTypeDescriptor(ProgramTypeDescriptorId) + (SELECT '1667' WHERE NOT EXISTS(SELECT 1 FROM edfi.ProgramTypeDescriptor WHERE ProgramTypeDescriptorId= '1667')); + -- + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867531','Food Service 2','E078EB62-CDB6-40B3-ADDD-C37C34D5D106','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1667',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867531' AND ProgramName= 'Food Service 2' AND ProgramTypeDescriptorId= '1667')); + -- + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867531','867531','Food Service 2','1667','100014882','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154106','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1667 and StudentUSI = 100014882)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1667',100014882); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1667','2892',100014882); + --/ ProgramTypeDescriptorId + + -- Student USI + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014883','Dave','D','Simpson','1989-06-05','Lubbock','189891','989B461B-45DD-4947-B310-51229E206102','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014883')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-15','867531','867531','Food Service 2','1666','100014883','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154107','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-15' and EducationOrganizationId = 867531 and ProgramEducationOrganizationId = 867531 and ProgramName = 'Food Service 2' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014883)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-15','867531','867531','Food Service 2','1666',100014883); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-15','867531','867531','Food Service 2','1666','2892',100014883); + --/Student USI + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530023','Hollywood High School 2','032A4662-74DA-448B-B881-C88B82DAD101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530023')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152951','ESC Region 18','03DE6F94-316A-4B06-8C67-2C8748DCA101','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152951')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152951',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152951')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867531','152951','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867531')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530023','867531' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530023')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT '100014882','867530023','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39101','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014882 and SchoolId = 867530023)); + + --###### 189899-867530032-Food Service 1-1666-867535-867535-20060814-2892 + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867535','Glendale ISG','9CC29A49-637C-4882-A7DB-99AD87690110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.LocalEducationAgency' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867535')); + + INSERT INTO edfi.Program(EducationOrganizationId,ProgramName,Id,LastModifiedDate,CreateDate,ProgramTypeDescriptorId,Discriminator) + (SELECT '867535','Food Service 1','E078EB62-CDB6-40B3-ADDD-C37C34D5D110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','1666',NULL + WHERE NOT EXISTS(SELECT 1 FROM edfi.Program WHERE EducationOrganizationId= '867535' AND ProgramName= 'Food Service 1' AND ProgramTypeDescriptorId= '1666')); + + + INSERT INTO edfi.Student + (StudentUSI,FirstName,MiddleName,LastSurname,BirthDate,BirthCity,StudentUniqueId,Id,LastModifiedDate,CreateDate) + (SELECT '100014891','Casey','D','McCarthy','1989-06-05','Lubbock','189899','989B461B-45DD-4947-B310-51229E206110','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014891')); + + + INSERT INTO edfi.GeneralStudentProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI,CreateDate,LastModifiedDate,Id,Discriminator) + (SELECT '2006-08-14','867535','867535','Food Service 1','1666','100014891','Sep 18 2015 11:53AM','Sep 18 2015 11:53AM','BD76D484-3CB3-4A67-B020-E47407154110','edfi.StudentProgramAssociation' + WHERE NOT EXISTS(SELECT 1 FROM edfi.GeneralStudentProgramAssociation WHERE BeginDate = '2006-08-14' and EducationOrganizationId = 867535 and ProgramEducationOrganizationId = 867535 and ProgramName = 'Food Service 1' and ProgramTypeDescriptorId = 1666 and StudentUSI = 100014891)); + + INSERT INTO edfi.StudentSchoolFoodServiceProgramAssociation + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,StudentUSI) + VALUES ('2006-08-14','867535','867535','Food Service 1','1666',100014891); + + INSERT INTO edfi.studentschoolfoodserviceprogramassociationschoolfoodserv_85a0eb + (BeginDate,EducationOrganizationId,ProgramEducationOrganizationId,ProgramName,ProgramTypeDescriptorId,SchoolFoodServiceProgramServiceDescriptorId,StudentUSI) + VALUES + ('2006-08-14','867535','867535','Food Service 1','1666','2892',100014891); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '867530032','Hollywood High School B','032A4662-74DA-448B-B881-C88B82DAD110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.School' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530032')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate,Discriminator) + (SELECT '152960','ESC Region 19','03DE6F94-316A-4B06-8C67-2C8748DCA110','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','edfi.EducationServiceCenter' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152960')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId) + (SELECT '152960',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152960')); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,EducationServiceCenterId,LocalEducationAgencyCategoryDescriptorId) + (SELECT '867535','152960','1086' + WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867535')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId) + (SELECT '867530032','867535' WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530032')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,EntryDate,EntryGradeLevelDescriptorId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,ExitWithdrawDate) + (SELECT '100014891','867530032','2011-10-01','38','631','2013','AEA4CD3C-ECD8-428B-AE72-F48F60E39110','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','2121-12-31' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE StudentUSI = 100014891 and SchoolId = 867530032)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/PostgreSQL/v_3_3/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/PostgreSQL/v_3_3/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..a1fc7ef9 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSchoolFoodServiceProgramDim/PostgreSQL/v_3_3/0001_StudentSchoolFoodServiceProgramDim_should_match_column_dictionary.xml @@ -0,0 +1,38 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'equity_studentschoolfoodserviceprogramdim' + ORDER BY ORDINAL_POSITION ASC; + + + studentschoolfoodserviceprogramkey + text + + + studentschoolprogramkey + text + + + studentschoolkey + text + + + programname + character varying + + + schoolfoodserviceprogramservicedescriptor + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_2/0000_StudentSectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_2/0000_StudentSectionDim_Data_Load.xml new file mode 100644 index 00000000..96b51051 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_2/0000_StudentSectionDim_Data_Load.xml @@ -0,0 +1,596 @@ + + + Any + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + 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 TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL 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')); + + 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','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','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= 'QBIR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='741922CD-51F6-4D76-B5D1-779980288273')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','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= 'ACER31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER31','867530011','2012','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C886AE90-AE5B-4C52-8199-514E1CD44281')); + + 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 TOP 1'867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','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= 'ARTR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530011','2012','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F8F83759-C1B4-4814-8187-F038569FB4D6')); + + 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 TOP 1'867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','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= 'BCSR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BCSR21','867530011','2012','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F38F91E5-8D0E-4878-B597-C00C3D91FFF6')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + + 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 TOP 1'867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','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= 'FSP78A' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSP78A','867530011','2012','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','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='13E51EA7-C2B2-4514-808F-A335EF57B92A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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 TOP 1'867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','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 id='E4A55D39-C269-44FB-8F04-9028F30A114A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530017','Bunche',NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + + 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 TOP 1'867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','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 id='32AEF233-B3AC-4E85-9610-BB4E1C7B39B8')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + 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 TOP 1'867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','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 id='73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E')); + + 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 TOP 1'867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','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= 'QWHR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QWHR11','867530011','2012','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QWHR11','2012','1',NULL,NULL,'1.000','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21341','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '21341' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QWHR11','2012','2012-01-04','2012-05-25','0',NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','21341','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8072995E-BC62-4EB0-B36E-87FC5800BBFE')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QBIR21','2012','1',NULL,NULL,'1.000','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9315','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9315' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QBIR21','2012','2012-01-04','2012-05-25','0',NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9315','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7FCDD6E7-88A4-4900-8839-25618F28094D')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QAGR40','2012','2012-01-04','2012-05-25','0',NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18940','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='E885EC43-603A-4984-AF5F-DA1198EB6242')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'9' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + 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 TOP 1'867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','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= 'CAFR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C20E55AF-240B-4F3B-A419-12B02520A630')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1993-09-07',NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1B54F0C2-FF81-471B-9D71-7703C2435166')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='3E93E4A7-4601-45ED-9551-C85EEFC4AA24')); + + 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 TOP 1'867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','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= 'LENR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='75BCE349-BE3D-4472-88DC-60ED8227A077')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','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= 'YTAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YTAR11','867530022','2012','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YTAR11','2012','1',NULL,NULL,'1.000','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15583','867530022','AUDITORIUM','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15583' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','YTAR11','2012','2011-08-22','2011-12-20','0',NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15583','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2DD5B2D3-B506-42BA-BB84-315CD190F0E1')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1948-01-01','0','102','36.00',NULL,'1',NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B249A085-39A9-4FDB-AB84-C6705CE9D271')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1976-11-07','1','102','9.00',NULL,'0',NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E31E0EBB-3B66-4379-B816-EB1FAFEEAD24')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'1976-01-28','0','102','1.00',NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='46E208A1-84E2-40B3-B8F7-C4C332CBF528')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='9DD0B659-03AC-4395-A8C1-5B94C8CAE77F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530024','Carter',NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + 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 TOP 1'867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','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 id='E6BC7324-220F-4BC1-84E5-D5965E51FA7A')); + + 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 TOP 1'867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','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 id='267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='858E4B4D-33FA-4366-A6BA-D1C8986DDFC4')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='0AC3BDCE-5116-40D1-B902-A826F3E0F117')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D2F5A8DA-F50C-4971-A382-359CF755B5D3')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1983-02-27','0','102','4.00',NULL,'1',NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7019','867530022','LENR41','2012','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','4575-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FB7CD109-7585-41D5-88E3-B1B1A922FF3B')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='8EE158B4-1046-448D-AC4B-9ED5B45222DA')); + + 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 TOP 1'867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','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= 'CALR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CALR41','867530022','2012','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CALR41','2012','1',NULL,NULL,'0.500','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2217-3','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2217-3' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'1977-04-06','0','102','9.00',NULL,'1',NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'6425','867530022','CALR41','2012','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','2217-3','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='491C8FA4-3128-44F5-B562-994C65B88107')); + + 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 TOP 1'867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','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= 'GYMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'GYMR31','867530022','2012','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','GYMR31','2012','1',NULL,NULL,'0.500','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3350','867530022','AUDITORIUM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3350' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'1965-05-18','0','102','11.00',NULL,'0',NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3192','867530022','GYMR31','2012','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','3350','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='31D9D449-60AD-4439-9B13-A17FE54F1A6C')); + + 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 TOP 1'867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','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= 'AJFR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'AJFR31','867530022','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','AJFR31','2012','1',NULL,NULL,'1.000','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','25','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '25' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1980-05-24','1','102','4.00',NULL,'1',NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','AJFR31','2012','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','25','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='862F5F47-1C7F-469E-BBB7-150B320EC3BD')); + + 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 TOP 1'867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','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= 'ICSC41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ICSC41','867530022','2012','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ICSC41','2012','1',NULL,NULL,'1.000','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3418','867530022','02','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3418' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1972-07-06','0','102','15.00',NULL,'1',NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3803','867530022','ICSC41','2012','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','3418','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='2B0D1D59-4F97-4C91-A670-46818D701E86')); + + 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 TOP 1'867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','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= 'YBIR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14964','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14964' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1977-08-22','0','102','1.00',NULL,'1',NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14964','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3A39B802-C310-4073-92B0-71521419061A')); + + 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 TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR11','2012','1',NULL,NULL,'1.000','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','954','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '954' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','ARTR11','2012','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','954','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='56B79ABE-9D44-46EE-A87A-FCF1024D3BFD')); + + 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 TOP 1'867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','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= 'YMPH11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2580',NULL,'Mark','F','Fronk',NULL,NULL,'1963-04-11','0',NULL,'20.00',NULL,'0',NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='54B76299-8F04-45D8-907F-5135DC8B8CFB')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E')); + + 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 TOP 1'867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','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= 'CAFR21' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR21','867530022','2012','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR21','2012','1',NULL,NULL,'0.500','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2137','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2137' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1AE26CF8-131D-4A45-8582-C8F0A867941D')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E6FDD31D-F087-4410-A62A-62BB4E18854C')); + + 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 TOP 1'867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','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= 'CAFR12' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR12','867530022','2012','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR12','2012','1',NULL,NULL,'0.500','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','20782-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '20782-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR12','2012','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','20782-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='9641D271-C3B8-4FDF-B839-1B28F6FA3BEC')); + + 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 TOP 1'867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','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= 'BPPR10' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21223','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '21223' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','BPPR10','2012','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','21223','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='20071FA7-0526-4C36-9920-9F2F847CF527')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9092','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9092' AND SessionName= 'Traditional')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' 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,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1951-04-17','0','105','32.00',NULL,'0',NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','9092','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B75BF103-8450-466B-AE26-840341313E70')); + + 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 TOP 1'867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','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= 'QENR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9676','867530011','9922','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9676' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9676','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='5AF842D2-5D21-44A3-A25D-1176B18DB58F')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9675','867530011','9921','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9675' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9675','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FA14A3BA-8E29-4F75-9574-A4F61EF2544C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='98693363-4F20-4932-B72D-896CAEC34053')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='BE4FF557-3876-47A8-9454-DAF1AD943CFB')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FE88F203-12C4-4FC9-B348-B2F6422162CD')); + + 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 TOP 1'867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','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= 'YFAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YFAR11','867530022','2012','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YFAR11','2012','1',NULL,NULL,'1.000','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15045-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15045-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YFAR11','2012','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','15045-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1283',NULL,'Saul','F','Elston',NULL,NULL,'1965-02-25','0','105','21.00',NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='11B214C7-D435-4E88-A462-C31797EDCCDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='924D21AB-4D67-4618-A23B-4D23C71EA11D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','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= 'QALR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QALR11','867530011','2012','Algebra I (1 Unit)',NULL,'QALR11','867530011','419D1CFB-BCB9-4161-9868-804575679155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QALR11','2012','1',NULL,NULL,'0.500','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QALR11','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 TOP 1'867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','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= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530010','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','QAGR40','2012','1',NULL,NULL,'0.500','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530010','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530010','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2011','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','7E9A766F-23B5-4CB4-84CF-5CDEB79A5207','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '28C59BC9-5F47-496D-8EBA-99490A36013A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + 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 TOP 1'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 TOP 1'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 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.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')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'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 TOP 1'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')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'628530001','QAGR40','2012','1',NULL,NULL,'0.500','0EE38E0D-93CC-46F5-ABCE-6965D9815310','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','628530001','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','628530001','QAGR40','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','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= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','B3C3DFF1-C5C9-4876-A84E-AA11E7BDC46E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'0B7777A3-FADB-4147-A280-77039E96C119','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id = '0B7777A3-FADB-4147-A280-77039E96C119')); + + 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 TOP 1'867530011','APAR31','Art Iii Painting (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A8C5ED64-1D25-4B34-BAA3-DEC940C99347','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= 'APAR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'APAR31','867530011','2012','Art Iii Painting (1 Unit)',NULL,'APAR31','867530011','1ACA07E6-9D2F-45FE-92EB-3145FB780EE3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','209',NULL,NULL,'26213BA8-7EAB-49B6-AEB5-B33C00F5098C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','APAR31','2012','1',NULL,NULL,'1.000','F1C0DBC1-68E4-40CA-B004-065A3331DAA3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','APAR31','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'A3530906-00BC-4FCF-90E0-7657B28F877E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id='A3530906-00BC-4FCF-90E0-7657B28F877E')); + + 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.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + + UPDATE edfi.Descriptor SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E'; + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_2/0001_StudentSectionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_2/0001_StudentSectionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..9f81ccc4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_2/0001_StudentSectionDim_should_match_column_dictionary.xml @@ -0,0 +1,66 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSectionDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSectionKey + nvarchar + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SectionKey + nvarchar + + + LocalCourseCode + nvarchar + + + Subject + nvarchar + + + CourseTitle + nvarchar + + + TeacherName + nvarchar + + + StudentSectionStartDateKey + nvarchar + + + StudentSectionEndDateKey + nvarchar + + + SchoolKey + varchar + + + SchoolYear + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_3/0000_StudentSectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_3/0000_StudentSectionDim_Data_Load.xml new file mode 100644 index 00000000..96b51051 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_3/0000_StudentSectionDim_Data_Load.xml @@ -0,0 +1,596 @@ + + + Any + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + 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 TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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 TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL 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')); + + 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','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','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= 'QBIR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='741922CD-51F6-4D76-B5D1-779980288273')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','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= 'ACER31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER31','867530011','2012','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C886AE90-AE5B-4C52-8199-514E1CD44281')); + + 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 TOP 1'867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','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= 'ARTR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530011','2012','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F8F83759-C1B4-4814-8187-F038569FB4D6')); + + 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 TOP 1'867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','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= 'BCSR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BCSR21','867530011','2012','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F38F91E5-8D0E-4878-B597-C00C3D91FFF6')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + + 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 TOP 1'867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','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= 'FSP78A' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'FSP78A','867530011','2012','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','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='13E51EA7-C2B2-4514-808F-A335EF57B92A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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 TOP 1'867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','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 id='E4A55D39-C269-44FB-8F04-9028F30A114A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530017','Bunche',NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + + 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 TOP 1'867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','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 id='32AEF233-B3AC-4E85-9610-BB4E1C7B39B8')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + 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 TOP 1'867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','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 id='73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E')); + + 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 TOP 1'867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','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= 'QWHR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QWHR11','867530011','2012','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QWHR11','2012','1',NULL,NULL,'1.000','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21341','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '21341' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QWHR11','2012','2012-01-04','2012-05-25','0',NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','21341','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8072995E-BC62-4EB0-B36E-87FC5800BBFE')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QBIR21','2012','1',NULL,NULL,'1.000','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9315','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9315' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QBIR21','2012','2012-01-04','2012-05-25','0',NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9315','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7FCDD6E7-88A4-4900-8839-25618F28094D')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'10133197','867530011','QAGR40','2012','2012-01-04','2012-05-25','0',NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18940','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='E885EC43-603A-4984-AF5F-DA1198EB6242')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'9' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + 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 TOP 1'867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','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= 'CAFR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C20E55AF-240B-4F3B-A419-12B02520A630')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1993-09-07',NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1B54F0C2-FF81-471B-9D71-7703C2435166')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR41','2012','1',NULL,NULL,'0.500','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='3E93E4A7-4601-45ED-9551-C85EEFC4AA24')); + + 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 TOP 1'867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','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= 'LENR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='75BCE349-BE3D-4472-88DC-60ED8227A077')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 TOP 1'867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','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= 'YTAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YTAR11','867530022','2012','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YTAR11','2012','1',NULL,NULL,'1.000','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15583','867530022','AUDITORIUM','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15583' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','YTAR11','2012','2011-08-22','2011-12-20','0',NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15583','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2DD5B2D3-B506-42BA-BB84-315CD190F0E1')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1948-01-01','0','102','36.00',NULL,'1',NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B249A085-39A9-4FDB-AB84-C6705CE9D271')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1976-11-07','1','102','9.00',NULL,'0',NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E31E0EBB-3B66-4379-B816-EB1FAFEEAD24')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'1976-01-28','0','102','1.00',NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='46E208A1-84E2-40B3-B8F7-C4C332CBF528')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='9DD0B659-03AC-4395-A8C1-5B94C8CAE77F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530024','Carter',NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + 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 TOP 1'867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','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 id='E6BC7324-220F-4BC1-84E5-D5965E51FA7A')); + + 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 TOP 1'867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','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 id='267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='858E4B4D-33FA-4366-A6BA-D1C8986DDFC4')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 TOP 1'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='0AC3BDCE-5116-40D1-B902-A826F3E0F117')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','LENR41','2012','1',NULL,NULL,'1.000','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D2F5A8DA-F50C-4971-A382-359CF755B5D3')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1983-02-27','0','102','4.00',NULL,'1',NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7019','867530022','LENR41','2012','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','4575-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FB7CD109-7585-41D5-88E3-B1B1A922FF3B')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR41','2012','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','17128-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='8EE158B4-1046-448D-AC4B-9ED5B45222DA')); + + 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 TOP 1'867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','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= 'CALR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CALR41','867530022','2012','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CALR41','2012','1',NULL,NULL,'0.500','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2217-3','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2217-3' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'1977-04-06','0','102','9.00',NULL,'1',NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'6425','867530022','CALR41','2012','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','2217-3','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='491C8FA4-3128-44F5-B562-994C65B88107')); + + 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 TOP 1'867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','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= 'GYMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'GYMR31','867530022','2012','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','GYMR31','2012','1',NULL,NULL,'0.500','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3350','867530022','AUDITORIUM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3350' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'1965-05-18','0','102','11.00',NULL,'0',NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3192','867530022','GYMR31','2012','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','3350','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='31D9D449-60AD-4439-9B13-A17FE54F1A6C')); + + 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 TOP 1'867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','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= 'AJFR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'AJFR31','867530022','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','AJFR31','2012','1',NULL,NULL,'1.000','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','25','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '25' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1980-05-24','1','102','4.00',NULL,'1',NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','AJFR31','2012','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','25','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='862F5F47-1C7F-469E-BBB7-150B320EC3BD')); + + 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 TOP 1'867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','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= 'ICSC41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ICSC41','867530022','2012','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ICSC41','2012','1',NULL,NULL,'1.000','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3418','867530022','02','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3418' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1972-07-06','0','102','15.00',NULL,'1',NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'3803','867530022','ICSC41','2012','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','3418','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='2B0D1D59-4F97-4C91-A670-46818D701E86')); + + 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 TOP 1'867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','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= 'YBIR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14964','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14964' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1977-08-22','0','102','1.00',NULL,'1',NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14964','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3A39B802-C310-4073-92B0-71521419061A')); + + 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 TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','ARTR11','2012','1',NULL,NULL,'1.000','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','954','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '954' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'7460','867530022','ARTR11','2012','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','954','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='56B79ABE-9D44-46EE-A87A-FCF1024D3BFD')); + + 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 TOP 1'867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','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= 'YMPH11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional-Spring Semester')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2580',NULL,'Mark','F','Fronk',NULL,NULL,'1963-04-11','0',NULL,'20.00',NULL,'0',NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='54B76299-8F04-45D8-907F-5135DC8B8CFB')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YMPH11','2012','1',NULL,NULL,'2.000','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2580','867530022','YMPH11','2012','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','17614-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E')); + + 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 TOP 1'867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','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= 'CAFR21' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR21','867530022','2012','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR21','2012','1',NULL,NULL,'0.500','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2137','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2137' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4565','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1AE26CF8-131D-4A45-8582-C8F0A867941D')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E6FDD31D-F087-4410-A62A-62BB4E18854C')); + + 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 TOP 1'867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','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= 'CAFR12' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'CAFR12','867530022','2012','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','CAFR12','2012','1',NULL,NULL,'0.500','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','20782-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '20782-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'4235','867530022','CAFR12','2012','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','20782-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='9641D271-C3B8-4FDF-B839-1B28F6FA3BEC')); + + 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 TOP 1'867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','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= 'BPPR10' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21223','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '21223' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'231440','867530022','BPPR10','2012','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','21223','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='20071FA7-0526-4C36-9920-9F2F847CF527')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'0.500','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9092','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9092' AND SessionName= 'Traditional')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' 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,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1951-04-17','0','105','32.00',NULL,'0',NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','9092','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B75BF103-8450-466B-AE26-840341313E70')); + + 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 TOP 1'867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','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= 'QENR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9676','867530011','9922','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9676' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9676','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='5AF842D2-5D21-44A3-A25D-1176B18DB58F')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QENR21','2012','1',NULL,NULL,'1.000','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9675','867530011','9921','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9675' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QENR21','2012','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','9675','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FA14A3BA-8E29-4F75-9574-A4F61EF2544C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='98693363-4F20-4932-B72D-896CAEC34053')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='BE4FF557-3876-47A8-9454-DAF1AD943CFB')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YBIR11','2012','1',NULL,NULL,'1.000','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YBIR11','2012','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','14960','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FE88F203-12C4-4FC9-B348-B2F6422162CD')); + + 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 TOP 1'867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','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= 'YFAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'YFAR11','867530022','2012','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','YFAR11','2012','1',NULL,NULL,'1.000','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15045-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15045-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'144467','867530022','YFAR11','2012','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','15045-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1283',NULL,'Saul','F','Elston',NULL,NULL,'1965-02-25','0','105','21.00',NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='11B214C7-D435-4E88-A462-C31797EDCCDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530022','BPPR10','2012','1',NULL,NULL,'1.000','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1283','867530022','BPPR10','2012','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','1961-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='924D21AB-4D67-4618-A23B-4D23C71EA11D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 TOP 1'867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','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= 'QALR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QALR11','867530011','2012','Algebra I (1 Unit)',NULL,'QALR11','867530011','419D1CFB-BCB9-4161-9868-804575679155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QALR11','2012','1',NULL,NULL,'0.500','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QALR11','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 TOP 1'867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','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= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530010','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','QAGR40','2012','1',NULL,NULL,'0.500','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530010','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530010','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','2011','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','7E9A766F-23B5-4CB4-84CF-5CDEB79A5207','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '28C59BC9-5F47-496D-8EBA-99490A36013A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + 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 TOP 1'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 TOP 1'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 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.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')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'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 TOP 1'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')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'628530001','QAGR40','2012','1',NULL,NULL,'0.500','0EE38E0D-93CC-46F5-ABCE-6965D9815310','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','628530001','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','628530001','QAGR40','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','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= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','QAGR40','2011','1',NULL,NULL,'1.000','B3C3DFF1-C5C9-4876-A84E-AA11E7BDC46E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','QAGR40','2011','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'0B7777A3-FADB-4147-A280-77039E96C119','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id = '0B7777A3-FADB-4147-A280-77039E96C119')); + + 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 TOP 1'867530011','APAR31','Art Iii Painting (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A8C5ED64-1D25-4B34-BAA3-DEC940C99347','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= 'APAR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'APAR31','867530011','2012','Art Iii Painting (1 Unit)',NULL,'APAR31','867530011','1ACA07E6-9D2F-45FE-92EB-3145FB780EE3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530011','209',NULL,NULL,'26213BA8-7EAB-49B6-AEB5-B33C00F5098C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530011','APAR31','2012','1',NULL,NULL,'1.000','F1C0DBC1-68E4-40CA-B004-065A3331DAA3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2377','867530011','APAR31','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'A3530906-00BC-4FCF-90E0-7657B28F877E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id='A3530906-00BC-4FCF-90E0-7657B28F877E')); + + 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.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + + UPDATE edfi.Descriptor SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E'; + + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_3/0001_StudentSectionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_3/0001_StudentSectionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..9f81ccc4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/MSSQL/v_3_3/0001_StudentSectionDim_should_match_column_dictionary.xml @@ -0,0 +1,66 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'StudentSectionDim' + ORDER BY ORDINAL_POSITION ASC; + + + StudentSectionKey + nvarchar + + + StudentSchoolKey + nvarchar + + + StudentKey + nvarchar + + + SectionKey + nvarchar + + + LocalCourseCode + nvarchar + + + Subject + nvarchar + + + CourseTitle + nvarchar + + + TeacherName + nvarchar + + + StudentSectionStartDateKey + nvarchar + + + StudentSectionEndDateKey + nvarchar + + + SchoolKey + varchar + + + SchoolYear + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/PostgreSQL/v_3_3/0000_StudentSectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/PostgreSQL/v_3_3/0000_StudentSectionDim_Data_Load.xml new file mode 100644 index 00000000..bf500557 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/PostgreSQL/v_3_3/0000_StudentSectionDim_Data_Load.xml @@ -0,0 +1,521 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '13','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '13' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + 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 '867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','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= '867530011')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530011','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530011','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' 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','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL 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 '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530011','2011','530','Traditional','2011-08-22','2011-12-20','82','F45ABEBD-6749-495D-9DE7-C1A74F42C01F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '10','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 '867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','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= 'QBIR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='741922CD-51F6-4D76-B5D1-779980288273')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 '867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','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= 'ACER31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER31','867530011','2012','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C886AE90-AE5B-4C52-8199-514E1CD44281')); + + 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 '867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','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= 'ARTR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ARTR11','867530011','2012','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F8F83759-C1B4-4814-8187-F038569FB4D6')); + + 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 '867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','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= 'BCSR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BCSR21','867530011','2012','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='F38F91E5-8D0E-4878-B597-C00C3D91FFF6')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '14','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + + 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 '867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','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= 'FSP78A' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'FSP78A','867530011','2012','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','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='13E51EA7-C2B2-4514-808F-A335EF57B92A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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 '867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','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 id='E4A55D39-C269-44FB-8F04-9028F30A114A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530017','Bunche',NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + + 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 '867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','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 id='32AEF233-B3AC-4E85-9610-BB4E1C7B39B8')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530021','Belmont High School',NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + + 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 '867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','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 id='73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E')); + + 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 '867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','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= 'QWHR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QWHR11','867530011','2012','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QWHR11','2012','1',NULL,NULL,'1.000','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21341','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '21341' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1977-08-11',NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10133197','867530011','QWHR11','2012','2012-01-04','2012-05-25','0',NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','21341','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='8072995E-BC62-4EB0-B36E-87FC5800BBFE')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QBIR21','867530011','2012','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QBIR21','2012','1',NULL,NULL,'1.000','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9315','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9315' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10133197','867530011','QBIR21','2012','2012-01-04','2012-05-25','0',NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','9315','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='7FCDD6E7-88A4-4900-8839-25618F28094D')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','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= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'0.500','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '10133197','867530011','QAGR40','2012','2012-01-04','2012-05-25','0',NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','18940','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='E885EC43-603A-4984-AF5F-DA1198EB6242')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '9','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '9' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530022','Hollywood High School',NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + + 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 '867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','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= 'CAFR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530022','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',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,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='C20E55AF-240B-4F3B-A419-12B02520A630')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR41','867530022','2012','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR41','2012','1',NULL,NULL,'0.500','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1993-09-07',NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='1B54F0C2-FF81-471B-9D71-7703C2435166')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR41','2012','1',NULL,NULL,'0.500','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17128-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17128-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','CAFR41','2012','2011-08-22','2011-12-20','0',NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','17128-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='3E93E4A7-4601-45ED-9551-C85EEFC4AA24')); + + 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 '867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','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= 'LENR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='75BCE349-BE3D-4472-88DC-60ED8227A077')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '18','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + 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 '867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','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= 'YTAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YTAR11','867530022','2012','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1225','uri://ed-fi.org/PopulationServedDescriptor','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students',NULL,NULL,NULL,'699B9075-2E23-4814-806F-429ED1EF804C','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1225')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1225' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1225')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YTAR11','2012','1',NULL,NULL,'1.000','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15583','867530022','AUDITORIUM','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15583' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','YTAR11','2012','2011-08-22','2011-12-20','0',NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','15583','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='2DD5B2D3-B506-42BA-BB84-315CD190F0E1')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '127','uri://ed-fi.org/ClassroomPositionDescriptor','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')); + + INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId)(SELECT '127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '102','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1948-01-01','0','102','36.00',NULL,'1',NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4235','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B249A085-39A9-4FDB-AB84-C6705CE9D271')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1976-11-07','1','102','9.00',NULL,'0',NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4565','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E31E0EBB-3B66-4379-B816-EB1FAFEEAD24')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'1976-01-28','0','102','1.00',NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '231440','867530022','CAFR41','2012','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','17128','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='46E208A1-84E2-40B3-B8F7-C4C332CBF528')); + + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='9DD0B659-03AC-4395-A8C1-5B94C8CAE77F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530024','Carter',NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + + 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 '867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','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 id='E6BC7324-220F-4BC1-84E5-D5965E51FA7A')); + + 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 '867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','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 id='267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2011-08-22','2011-12-20','0',NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='858E4B4D-33FA-4366-A6BA-D1C8986DDFC4')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' 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 'LENR41','867530022','2012','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575-2','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575-2','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='0AC3BDCE-5116-40D1-B902-A826F3E0F117')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','LENR41','2012','1',NULL,NULL,'1.000','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','4575','867530022','2110','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '4575' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100040483','867530022','LENR41','2012','2012-01-04','2012-05-25','0',NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','4575','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='D2F5A8DA-F50C-4971-A382-359CF755B5D3')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1983-02-27','0','102','4.00',NULL,'1',NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '7019','867530022','LENR41','2012','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','4575-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FB7CD109-7585-41D5-88E3-B1B1A922FF3B')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4565','867530022','CAFR41','2012','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','17128-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='8EE158B4-1046-448D-AC4B-9ED5B45222DA')); + + 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 '867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','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= 'CALR41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CALR41','867530022','2012','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CALR41','2012','1',NULL,NULL,'0.500','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2217-3','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2217-3' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'1977-04-06','0','102','9.00',NULL,'1',NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '6425','867530022','CALR41','2012','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','2217-3','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='491C8FA4-3128-44F5-B562-994C65B88107')); + + 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 '867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','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= 'GYMR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'GYMR31','867530022','2012','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','GYMR31','2012','1',NULL,NULL,'0.500','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3350','867530022','AUDITORIUM','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3350' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'1965-05-18','0','102','11.00',NULL,'0',NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '3192','867530022','GYMR31','2012','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','3350','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='31D9D449-60AD-4439-9B13-A17FE54F1A6C')); + + 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 '867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','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= 'AJFR31' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'AJFR31','867530022','2012','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','AJFR31','2012','1',NULL,NULL,'1.000','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','25','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '25' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1980-05-24','1','102','4.00',NULL,'1',NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '7460','867530022','AJFR31','2012','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','25','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='862F5F47-1C7F-469E-BBB7-150B320EC3BD')); + + 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 '867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','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= 'ICSC41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ICSC41','867530022','2012','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1230','uri://ed-fi.org/PopulationServedDescriptor','Honors Students','Honors Students','Honors Students',NULL,NULL,NULL,'85CBB8A1-65A4-4E50-9A6F-0AE646AB8C14','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1230')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1230' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1230')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','ICSC41','2012','1',NULL,NULL,'1.000','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','3418','867530022','02','1230',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '3418' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1972-07-06','0','102','15.00',NULL,'1',NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '3803','867530022','ICSC41','2012','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','3418','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='2B0D1D59-4F97-4C91-A670-46818D701E86')); + + 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 '867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','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= 'YBIR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14964','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14964' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1977-08-22','0','102','1.00',NULL,'1',NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14964','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3A39B802-C310-4073-92B0-71521419061A')); + + 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 '867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','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= 'ARTR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ARTR11','867530022','2012','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','ARTR11','2012','1',NULL,NULL,'1.000','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','954','867530022','1001','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '954' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '7460','867530022','ARTR11','2012','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','954','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='56B79ABE-9D44-46EE-A87A-FCF1024D3BFD')); + + 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 '867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','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= 'YMPH11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YMPH11','2012','1',NULL,NULL,'2.000','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '2580',NULL,'Mark','F','Fronk',NULL,NULL,'1963-04-11','0',NULL,'20.00',NULL,'0',NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2580','867530022','YMPH11','2012','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','17614-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='54B76299-8F04-45D8-907F-5135DC8B8CFB')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YMPH11','867530022','2012','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YMPH11','2012','1',NULL,NULL,'2.000','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','17614-2','867530022','02','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '17614-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2580','867530022','YMPH11','2012','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','17614-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E')); + + 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 '867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','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= 'CAFR21' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR21','867530022','2012','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR21','2012','1',NULL,NULL,'0.500','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','2137','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '2137' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4565','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1AE26CF8-131D-4A45-8582-C8F0A867941D')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4235','867530022','CAFR21','2012','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','2137','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E6FDD31D-F087-4410-A62A-62BB4E18854C')); + + 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 '867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','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= 'CAFR12' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'CAFR12','867530022','2012','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','CAFR12','2012','1',NULL,NULL,'0.500','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','20782-2','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '20782-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '4235','867530022','CAFR12','2012','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','20782-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='9641D271-C3B8-4FDF-B839-1B28F6FA3BEC')); + + 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 '867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','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= 'BPPR10' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','BPPR10','2012','1',NULL,NULL,'1.000','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','21223','867530022','CHAPMAN','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '21223' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '231440','867530022','BPPR10','2012','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','21223','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='20071FA7-0526-4C36-9920-9F2F847CF527')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'0.500','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9092','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9092' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1951-04-17','0','105','32.00',NULL,'0',NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2012','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','9092','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='B75BF103-8450-466B-AE26-840341313E70')); + + 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 '867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','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= 'QENR21' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR21','2012','1',NULL,NULL,'1.000','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','9676','867530011','9922','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9676' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QENR21','2012','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','9676','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='5AF842D2-5D21-44A3-A25D-1176B18DB58F')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QENR21','867530011','2012','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QENR21','2012','1',NULL,NULL,'1.000','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','9675','867530011','9921','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '9675' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QENR21','2012','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','9675','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FA14A3BA-8E29-4F75-9574-A4F61EF2544C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YBIR11','867530022','2012','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14960-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='98693363-4F20-4932-B72D-896CAEC34053')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','14960-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14960-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='BE4FF557-3876-47A8-9454-DAF1AD943CFB')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YBIR11','2012','1',NULL,NULL,'1.000','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14960','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '14960' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YBIR11','2012','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','14960','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='FE88F203-12C4-4FC9-B348-B2F6422162CD')); + + 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 '867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','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= 'YFAR11' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'YFAR11','867530022','2012','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','YFAR11','2012','1',NULL,NULL,'1.000','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','15045-2','867530022','1202','1225',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '15045-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '144467','867530022','YFAR11','2012','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','15045-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'BPPR10','867530022','2012','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','BPPR10','2012','1',NULL,NULL,'1.000','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1283',NULL,'Saul','F','Elston',NULL,NULL,'1965-02-25','0','105','21.00',NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1283','867530022','BPPR10','2012','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','1961-2','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='11B214C7-D435-4E88-A462-C31797EDCCDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530022','BPPR10','2012','1',NULL,NULL,'1.000','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1961-2','867530022','LIBRARY','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SectionIdentifier= '1961-2' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1283','867530022','BPPR10','2012','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','1961-2','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='924D21AB-4D67-4618-A23B-4D23C71EA11D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2012','1',NULL,NULL,'1.000','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2011','1',NULL,NULL,'1.000','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2011','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '2','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '2' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + + 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 '867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','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= 'QALR11' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QALR11','867530011','2012','Algebra I (1 Unit)',NULL,'QALR11','867530011','419D1CFB-BCB9-4161-9868-804575679155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QALR11','2012','1',NULL,NULL,'0.500','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QALR11','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 '867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','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= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530010','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','QAGR40','2012','1',NULL,NULL,'0.500','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18940','867530010','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530010','QAGR40','2012','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','18940','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2012','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','2011','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','7E9A766F-23B5-4CB4-84CF-5CDEB79A5207','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '28C59BC9-5F47-496D-8EBA-99490A36013A')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530001','Lander Middle',NULL,NULL,'4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + 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.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')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '628530001','QAGR40','2012','1',NULL,NULL,'0.500','0EE38E0D-93CC-46F5-ABCE-6965D9815310','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','628530001','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','628530001','QAGR40','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'B02E2B05-87B1-420D-A134-6BFC6FA7D9CA')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','867530011','2011','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','28C59BC9-5F47-496D-8EBA-99490A36013A','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= '867530011' AND SchoolYear= '2011' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','QAGR40','2011','1',NULL,NULL,'1.000','B3C3DFF1-C5C9-4876-A84E-AA11E7BDC46E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','115','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','QAGR40','2011','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'0B7777A3-FADB-4147-A280-77039E96C119','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id = '0B7777A3-FADB-4147-A280-77039E96C119')); + + 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 '867530011','APAR31','Art Iii Painting (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A8C5ED64-1D25-4B34-BAA3-DEC940C99347','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= 'APAR31' AND EducationOrganizationId= '867530011')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'APAR31','867530011','2012','Art Iii Painting (1 Unit)',NULL,'APAR31','867530011','1ACA07E6-9D2F-45FE-92EB-3145FB780EE3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530011','209',NULL,NULL,'26213BA8-7EAB-49B6-AEB5-B33C00F5098C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '209' AND SchoolId= '867530011')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530011','APAR31','2012','1',NULL,NULL,'1.000','F1C0DBC1-68E4-40CA-B004-065A3331DAA3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18940','867530011','209','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'APAR31' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SectionIdentifier= '18940' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2377','867530011','APAR31','2012','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'A3530906-00BC-4FCF-90E0-7657B28F877E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18940','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE Id='A3530906-00BC-4FCF-90E0-7657B28F877E')); + + 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.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + + UPDATE edfi.Descriptor SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E'; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/PostgreSQL/v_3_3/0001_StudentSectionDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/PostgreSQL/v_3_3/0001_StudentSectionDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..7c0ac010 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionDim/PostgreSQL/v_3_3/0001_StudentSectionDim_should_match_column_dictionary.xml @@ -0,0 +1,66 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'studentsectiondim' + ORDER BY ORDINAL_POSITION ASC; + + + studentsectionkey + text + + + studentschoolkey + text + + + studentkey + character varying + + + sectionkey + text + + + localcoursecode + character varying + + + subject + character varying + + + coursetitle + character varying + + + teachername + text + + + studentsectionstartdatekey + text + + + studentsectionenddatekey + text + + + schoolkey + character varying + + + schoolyear + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/0001_StudentSectionGradeFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/0001_StudentSectionGradeFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_1/0001_StudentSectionGradeFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_1/0001_StudentSectionGradeFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..4da697bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_1/0001_StudentSectionGradeFact_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_StudentSectionGradeFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + GradingPeriodKey + nvarchar + + + StudentSectionKey + nvarchar + + + SectionKey + nvarchar + + + NumericGradeEarned + decimal + + + LetterGradeEarned + nvarchar + + + GradeType + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_2/0000_StudentSectionGradeFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_2/0000_StudentSectionGradeFact_Data_Load.xml new file mode 100644 index 00000000..8239fc7b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_2/0000_StudentSectionGradeFact_Data_Load.xml @@ -0,0 +1,1635 @@ + + + Any + + + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + 'http://www.ed-fi.org/Descriptor/GradingPeriodDescriptor.xml', + 'First Six Weeks', + 'First Six Weeks', + 'First Six Weeks', + NULL, + NULL, + NULL, + 'ABE1098D-9723-48ED-AA29-BEF3E458FC5E', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '54')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradingPeriodDescriptor( + GradingPeriodDescriptorId) + (SELECT TOP 1 + '54' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '54')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '1601', + 'uri://ed-fi.org/GradeTypeDescriptor', + 'Grading Period', + 'Grading Period', + 'Grading Period', + NULL, + NULL, + NULL, + 'B28F1950-0205-4C7C-AB23-C35F9E67D4A8', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeTypeDescriptor( + GradeTypeDescriptorId) + ( + SELECT TOP 1 + 1601 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId = 1601) + ); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '152950', + 'ESC Region 17', + NULL, + NULL, + NULL, + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', + 'Sep 18 2015 11:34AM', + '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')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT TOP 1 1086 + WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) + ); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '867530', + NULL, + '1086', + NULL, + '152950', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1695', + 'uri://ed-fi.org/SchoolTypeDescriptor', + 'Regular', + 'Regular', + 'Regular', + NULL, + NULL, + NULL, + 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( + SELECT TOP 1 + 1695 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695)); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530022', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + 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 + '2013', + '2012-2013', + '0', + '1926BB96-BF8C-493A-93BD-A8E60DBC83E2', + 'Jun 19 2015 11:40AM', + 'Jun 19 2015 11:40AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '7F4214CF-7CD7-412E-BECB-09738DFC013F', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' 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')); + + 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) + (SELECT TOP 1 + '10' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeDescriptorId, + MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayDescriptorId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530022', + 'XSNP41', + 'BASIC ENV AW 12', + '1', + '10', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '415AE933-085D-4F72-80B7-56C650A0BA08', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'XSNP41' AND EducationOrganizationId= '867530022')); + + 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) + (SELECT TOP 1 + '530' + 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 + '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.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'Beverly Hills High School', + NULL, + NULL, + NULL, + '56888B72-8AF0-4741-B6BC-90950E29A276', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530020', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.Session( + SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + '2012', + '530', + 'Traditional', + '2011-08-22', + '2011-12-20','82', + '5A3B8E35-D9A0-4BE6-864A-BB435F528198', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,SessionName,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'XSNP41', + '867530022', + '2012', + 'Traditional', + 'BASIC ENV AW 12', + NULL, + 'XSNP41', + '867530022', + NULL, + '012BF83D-4AA9-40D4-8DB7-275C729606E9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSNP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= '530')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '950', + 'uri://ed-fi.org/EducationalEnvironmentDescriptor', + 'Classroom', + 'Classroom', + 'Classroom', + NULL, + NULL, + NULL, + 'C21062A5-542C-4596-B985-17582EC975F4', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 950) ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor( + EducationalEnvironmentDescriptorId) ( + SELECT TOP 1 + 950 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId = 950)); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530022', + '1405', + NULL, + NULL, + 'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1233', + 'uri://ed-fi.org/PopulationServedDescriptor', + 'Special Education Students', + 'Special Education Students', + 'Special Education Students', + NULL, + NULL, + NULL, + '749196AF-A7F5-4A09-9230-9CA0FD21BD68', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1233)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor( + PopulationServedDescriptorId) ( + SELECT TOP 1 + 1233 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId = 1233)); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SessionName,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId, + AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,LocationSchoolId,LocationClassroomIdentificationCode,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530022', + 'XSNP41', + '2012', + '14517', + 'Traditional', + '1', + '950', + NULL, + '1233', + NULL, + NULL, + NULL, + '867530022', + '1405', + '1.00', + 'D080764D-28BB-4824-B498-505FDEEC6F02', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocationClassroomIdentificationCode= '1405' AND LocalCourseCode= 'XSNP41' AND SchoolId= '867530022' AND SchoolYear= '2012' + AND SequenceOfCourse= '1' AND SessionName = 'Traditional' AND SectionIdentifier = '14517')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '110', + 'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml', + 'Limited', + 'Limited', + 'Limited', + NULL, + NULL, + NULL, + '29DF3155-D3B9-4605-B80B-50CC9C3FC6DF', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor( + LimitedEnglishProficiencyDescriptorId) + (SELECT TOP 1 + '110' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1167', + 'uri://ed-fi.org/OldEthnicityDescriptor', + 'White, Not Of Hispanic Origin', + 'White, Not Of Hispanic Origin', + 'White, Not Of Hispanic Origin', + NULL, + NULL, + NULL, + '1882389F-FE1E-40ED-8670-5E3C6DEA4607', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1167)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor( + OldEthnicityDescriptorId) ( + SELECT TOP 1 + 1167 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId = 1167)); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '2892', + 'uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor', + 'Free Breakfast', + 'Free Breakfast', + 'Free Breakfast', + NULL, + NULL, + NULL, + 'D45C8420-62FD-49AE-964D-1D8DCECE30D5', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 2892)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolFoodServiceProgramServiceDescriptor( + SchoolFoodServiceProgramServiceDescriptorId) ( + SELECT TOP 1 + 2892 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolFoodServiceProgramServiceDescriptor WHERE SchoolFoodServiceProgramServiceDescriptorId = 2892)); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1395', + 'uri://ed-fi.org/SexDescriptor', + 'Female', + 'Female', + 'Female', + NULL, + NULL, + NULL, + 'D047F035-5000-456B-A279-6AF1BD20EB6D', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1395)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SexDescriptor( + SexDescriptorId) ( + SELECT TOP 1 + 1395 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId = 1395)); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1451', + 'uri://ed-fi.org/StateAbbreviationDescriptor', + 'TX', + 'TX', + 'TX', + NULL, + NULL, + NULL, + '67A24BD2-B27E-42A1-A508-2D45B49C6617', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1451)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.StateAbbreviationDescriptor( + StateAbbreviationDescriptorId) ( + SELECT TOP 1 + 1451 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId = 1451)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId, + DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100014881', + NULL, + 'Cecilia', + 'D', + 'Begay', + NULL, + NULL, + '1395', + '1989-06-05', + 'Lubbock', + '1451', + NULL, + NULL, + NULL, + NULL, + '189889', + '989B461B-45DD-4947-B310-51229E2068FC', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,SectionIdentifier,SessionName,AttemptStatusDescriptorId, + TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100014881', + '867530022', + 'XSNP41', + '2012', + '2011-08-22', + '2011-11-02', + '0', + NULL, + '14517', + 'Traditional', + NULL, + NULL, + '6779BA84-FD0E-45FC-8BF5-327835579D3C', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'XSNP41' AND SessionName = 'Traditional' + AND SchoolId= '867530022' AND SchoolYear= '2012' AND StudentUSI= '100014881' AND SectionIdentifier = '14517')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,SessionName,GradingPeriodSchoolYear, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100014881', + '867530022', + 'Traditional', + '2012', + 'XSNP41', + '14517', + '1', + '2012', + 'A', + '94.00', + NULL, + 'E079C048-D518-407D-8412-BD6968733E3E', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='E079C048-D518-407D-8412-BD6968733E3E')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1602', + 'uri://ed-fi.org/GradeTypeDescriptor', + 'Mid-Term Grade', + 'Mid-Term Grade', + 'Mid-Term Grade', + NULL, + NULL, + NULL, + 'B180C713-0E07-497E-8A03-66EA1B82234A', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1602)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.GradeTypeDescriptor( + GradeTypeDescriptorId) ( + SELECT TOP 1 + 1602 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId = 1602)); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,SessionName,GradingPeriodSchoolYear, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1602', + NULL, + '100014881', + '867530022', + 'Traditional', + '2012', + 'XSNP41', + '14517', + '1', + '2012', + 'A', + '94.00', + NULL, + '6A8FEB5B-080D-4200-994A-28B4C1DB4CF6', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='6A8FEB5B-080D-4200-994A-28B4C1DB4CF6')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '59', + 'http://www.ed-fi.org/Descriptor/GradingPeriodDescriptor.xml', + 'End of Year', + 'End of Year', + 'End of Year', + NULL, + NULL, + NULL, + '88A27CE8-5624-42ED-9E83-1FAF965364DF', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '59')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradingPeriodDescriptor( + GradingPeriodDescriptorId) + (SELECT TOP 1 + '59' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '59')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '59', + '867530022', + '2011-08-22', + '175', + '2012-05-25', + '1', + '2012', + '468EF2D9-FF78-4200-B2AE-3AEB540573E1', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='468EF2D9-FF78-4200-B2AE-3AEB540573E1')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '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.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530007', + '867530', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530007', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '9E3E8812-C3B1-429B-801B-7D9EC9359AD0', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='9E3E8812-C3B1-429B-801B-7D9EC9359AD0')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2013', + 'BB27B132-CE54-41E8-9C4D-A0A5177EF7DB', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='BB27B132-CE54-41E8-9C4D-A0A5177EF7DB')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '2', + '2012', + 'BB27B132-CE54-41E8-9C4D-A0A5177EF8DB', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='BB27B132-CE54-41E8-9C4D-A0A5177EF8DB')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530020', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + 'D69C9022-AD7B-4D72-BFE7-BB02FA29F5C7', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530020')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'A01', + 'B1B3F2B6-1281-4827-8BE4-343D8BC60169', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A01' AND SchoolId= '867530020')); + + 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', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor( + AcademicSubjectDescriptorId) + (SELECT TOP 1 + '18' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted, + HighSchoolCourseRequirement,CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits, + MaximumAvailableCreditTypeDescriptorId,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'XLTV41', + 'FUNCT VOC 12', + '1', + '18', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '77E4317B-95C7-49D0-9606-44B493D41455', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV41' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'XLTV41', + '867530020', + '2012', + 'FUNCT VOC 12', + NULL, + 'XLTV41', + '867530020', + 'Traditional', + '6E004FB8-D563-4B95-B00F-DB493AEA8730', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV41' AND SchoolId= '867530020' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + '702', + NULL, + NULL, + '22B56E5B-3A76-4472-9095-815D3DFF1F53', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530020')); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,SessionName, + PopulationServedDescriptorId,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'XLTV41', + '2012', + '14142', + '1', + '950', + NULL, + 'Traditional', + '1233', + NULL, + NULL, + NULL, + '1.00', + 'C5D44864-6A22-4D8D-84ED-434933862587', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV41' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '14142')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1166', + 'uri://ed-fi.org/OldEthnicityDescriptor', + 'Hispanic', + 'Hispanic', + 'Hispanic', + NULL, + NULL, + NULL, + '3F337FB4-C428-4B2B-9281-8158BA97B9F0', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1166)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor( + OldEthnicityDescriptorId) ( + SELECT TOP 1 + 1166 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId = 1166)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId,DateEnteredUS, + MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100020850', + NULL, + 'Deeanna', + 'M', + 'Haight', + NULL, + NULL, + '1395', + '1989-07-19', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '189919', + '32C24FB8-E425-453B-B476-E014BB2F1528', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100020850', + '867530020', + 'XLTV41', + '14142', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + NULL, + NULL, + NULL, + 'AF5E4900-37D7-4EC9-A50A-7DAF73C0D322', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'XLTV41' + AND SchoolId= '867530020' AND SchoolYear= '2012' AND StudentUSI= '100020850' AND SectionIdentifier= '14142')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,SessionName, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100020850', + '867530020', + '2012', + 'Traditional', + 'XLTV41', + '14142', + '1', + '2012', + NULL, + '90.00', + NULL, + 'C7D765CC-2FD9-43EA-B115-201EEE385923', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='C7D765CC-2FD9-43EA-B115-201EEE385923')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'A02', + '3BBC94D6-5A23-4A15-B06B-ADB42F867110', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A02' AND SchoolId= '867530020')); + + 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) + (SELECT TOP 1 + '12' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeDescriptorId, + MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'NCMR41', + 'Music Iv Choir (1 Unit)', + '1', + '12', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '89E9EF42-89CB-45B8-8A10-E0ADD3469468', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'NCMR41' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'NCMR41', + '867530020', + '2012', + 'Music Iv Choir (1 Unit)', + NULL, + 'NCMR41', + '867530020', + 'Traditional', + 'F87ECD3C-701E-47F3-BE73-5914F8B1843E', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR41' AND SchoolId= '867530020' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + '108', + NULL, + NULL, + '0A58614A-A9CD-4461-8535-1A5360FC359E', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1232', + 'uri://ed-fi.org/PopulationServedDescriptor', + 'Regular Students', + 'Regular Students', + 'Regular Students', + NULL, + NULL, + NULL, + 'E989F2DD-66C2-47CE-804C-A0E3EE5C7624', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1232)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor( + PopulationServedDescriptorId) ( + SELECT TOP 1 + 1232 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId = 1232)); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse, EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId, + SessionName,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'NCMR41', + '2012', + '7383', + '1', + '950', + NULL, + '1232', + 'Traditional', + NULL, + NULL, + NULL, + '1.00', + 'F6844930-16BB-4CF5-BB1E-6F2A1EABC1F9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR41' AND SchoolId= '867530020' + AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '7383')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity, + BirthStateAbbreviationDescriptorId,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100044935', + NULL, + 'Michelle', + 'X', + 'Trejo', + NULL, + NULL, + '1395', + '1993-11-28', + 'Lubbock', + '1451', + NULL, + NULL, + NULL, + NULL, + '190966', + '45B66EF1-2E81-444C-AC01-9BA36FDCE4C9', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM',NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100044935')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100044935', + '867530020', + 'NCMR41', + '7383', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + '1', + NULL, + NULL, + 'F5D4524E-ED83-4C53-B766-890051FE3F9B', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'NCMR41' + AND SchoolId= '867530020' AND SchoolYear= '2012' AND StudentUSI= '100044935' )); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,GradingPeriodSequence, + SessionName,LocalCourseCode,SectionIdentifier,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100044935', + '867530020', + '2012', + '1', + 'Traditional', + 'NCMR41', + '7383', + '2012', + 'P', + NULL, + NULL, + '2052B8BE-5B0B-439E-8DE7-115E026FC25F', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='2052B8BE-5B0B-439E-8DE7-115E026FC25F')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'Olive Elementary School', + NULL, + NULL, + NULL, + '4C2A15D8-0244-491D-9963-13A91B0E5888', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530188', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530188', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '34227554-0200-4297-B47F-9FBE862326D3', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530188')); + + INSERT INTO edfi.ClassPeriod + (SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'TAR', + '13829E23-354A-438F-8432-05933168EE27', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'TAR' AND SchoolId= '867530188')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits, + MaximumAvailableCreditTypeDescriptorId,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'ART020', + 'Art, Grade 2', + '1', + '12', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '21E088E3-462A-48B7-8765-0F2938FE7B5A', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'ART020' AND EducationOrganizationId= '867530188')); + + INSERT INTO edfi.Session( + SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + '2012', + '530', + 'Traditional', + '2011-08-22', + '2011-12-20', + '82', + 'D4F5B18D-C97D-4F58-84A3-8AE062FF5339', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Session WHERE SchoolId= '867530188' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'ART020', + '867530188', + '2012', + 'Art, Grade 2', + NULL, + 'ART020', + '867530188', + 'Traditional', + '44B1DCDD-2D06-4956-A333-5BBFA4F9EC7F', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ART020' AND SchoolId= '867530188' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + '21', + NULL, + NULL, + '46ABB630-6AF4-423F-93E4-700D1560466D', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '21' AND SchoolId= '867530188')); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse,EducationalEnvironmentDescriptorId,SessionName, + MediumOfInstructionDescriptorId,PopulationServedDescriptorId,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'ART020', + '2012', + '363', + '1', + '950', + 'Traditional', + NULL, + '1232', + NULL, + NULL, + NULL, + '0.00', + '5539D8B7-9DCA-4167-8922-BC107A8D62D2', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ART020' AND SchoolId= '867530188' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '363')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1396', + 'uri://ed-fi.org/SexDescriptor', + 'Male', + 'Male', + 'Male', + NULL, + NULL, + NULL, + '64E51D5B-8249-45FE-8B6D-4347F525B2FB', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1396)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SexDescriptor( + SexDescriptorId) ( + SELECT TOP 1 + 1396 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId = 1396)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId, + DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100019485', + NULL, + 'Ty', + 'J', + 'Arenas', + NULL, + NULL, + '1396', + '2004-02-09', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '189914', + '71782D5B-A947-4E53-B1BA-D059864A6F7C', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100019485')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100019485', + '867530188', + 'ART020', + '363', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + '0', + NULL, + NULL, + '93705E11-BA34-4125-962B-1D2F47BD523D', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ART020' + AND SchoolId= '867530188' AND SchoolYear= '2012' AND StudentUSI= '100019485' AND SectionIdentifier= '363')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,GradingPeriodSequence,SessionName, + LocalCourseCode,SectionIdentifier,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100019485', + '867530188', + '2012', + '1', + 'Traditional', + 'ART020', + '363', + '2012', + 'D', + NULL, + NULL, + '94D4CDA9-C902-4D27-81DE-01683C0BFFA9', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='94D4CDA9-C902-4D27-81DE-01683C0BFFA9')); + ---------------- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1600','uri://ed-fi.org/GradeTypeDescriptor','Final','Final','Final',NULL,NULL,NULL,'4F208B5F-040E-4D49-AB1C-505D9C553E67','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1600'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1600' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1600')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'59','uri://ed-fi.org/GradingPeriodDescriptor','End of Year','End of Year','End of Year',NULL,NULL,NULL,'88A27CE8-5624-42ED-9E83-1FAF965364DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '59'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'59' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '59')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + 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.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'59','867530068','2011-08-22','175','2012-05-25','1','1D0BE116-AB28-486F-BDA8-56E843C205A8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '59' AND PeriodSequence= '1' AND SchoolId= '867530068' AND 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'12','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530068','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8D4C96E1-5768-4506-8CFB-DE4F7B1741E4','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= 'ACER08' AND EducationOrganizationId= '867530068')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530068','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A8DFF608-36BB-4137-AA36-278CFB830BD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' 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 TOP 1'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','27A5F21F-9F9D-4CF7-AA35-7CE701A04837','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','107',NULL,NULL,'3192FE88-7579-4413-BF39-00314A4B30F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530068')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','ACER08','2012','1',NULL,NULL,'0.000','E252B3B6-DACA-4830-A64B-A12BCB4568E1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100078622',NULL,'Justin','A','Camarillo',NULL,NULL,'1997-01-12','Lubbock',NULL,NULL,NULL,'203451','E1C23D05-CAAA-4EB1-9954-78EF6BC038F8','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100078622'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100078622','867530068','ACER08','2012','2012-01-04','2012-05-25','1',NULL,'A5D89F06-0694-4974-B24E-88E9C947900B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2012-01-04' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional-Spring Semester' AND StudentUSI= '100078622')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'59','100078622','867530068','ACER08','2012','2012-01-04',NULL,'90.00',NULL,'18E2B445-9093-46F9-9D10-6D07B542739C','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional-Spring Semester','1','2012',NULL,'1600',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE Id='18E2B445-9093-46F9-9D10-6D07B542739C')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100078622',NULL,'Justin','A','Camarillo',NULL,NULL,'1997-01-12','Lubbock',NULL,NULL,NULL,'203451','E1C23D05-CAAA-4EB1-9954-78EF6BC038F8','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUniqueId='203451'));SET IDENTITY_INSERT edfi.Student 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'1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1604' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1604')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'60','uri://ed-fi.org/GradingPeriodDescriptor','First Semester','First Semester','First Semester',NULL,NULL,NULL,'95B5EB9C-FFC1-4EBB-B5A2-87EFD10628B6','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '60'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'60' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '60')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'60','867530068','2011-08-22','82','2011-12-20','1','C8B4D6D9-D1BD-4BDD-ADDF-12D3561501F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '60' AND PeriodSequence= '1' AND SchoolId= '867530068' AND 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','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','9A6DB0F3-2F28-4953-9D11-3EBAAFC230B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','ACER08','2012','1',NULL,NULL,'0.000','159AC833-F3DE-404B-BD74-08F5DC5F8ACF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100083479',NULL,'Timothy','J','Pellum',NULL,NULL,'1997-11-21','Lubbock',NULL,NULL,NULL,'205689','1730E5EB-AC8D-497A-A6AE-230D37C1F5F9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100083479'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100083479','867530068','ACER08','2012','2011-08-22','2011-12-20','1',NULL,'D6F99342-3B09-4D34-A726-1388B7122E7D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100083479')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'60','100083479','867530068','ACER08','2012','2011-08-22',NULL,'79.00',NULL,'95FF5252-69CB-43E8-91DD-CB60AF3659E1','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE Id='95FF5252-69CB-43E8-91DD-CB60AF3659E1')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100083479',NULL,'Timothy','J','Pellum',NULL,NULL,'1997-11-21','Lubbock',NULL,NULL,NULL,'205689','1730E5EB-AC8D-497A-A6AE-230D37C1F5F9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUniqueId='205689'));SET IDENTITY_INSERT edfi.Student OFF; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..4da697bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_StudentSectionGradeFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + GradingPeriodKey + nvarchar + + + StudentSectionKey + nvarchar + + + SectionKey + nvarchar + + + NumericGradeEarned + decimal + + + LetterGradeEarned + nvarchar + + + GradeType + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_3/0000_StudentSectionGradeFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_3/0000_StudentSectionGradeFact_Data_Load.xml new file mode 100644 index 00000000..8239fc7b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_3/0000_StudentSectionGradeFact_Data_Load.xml @@ -0,0 +1,1635 @@ + + + Any + + + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + 'http://www.ed-fi.org/Descriptor/GradingPeriodDescriptor.xml', + 'First Six Weeks', + 'First Six Weeks', + 'First Six Weeks', + NULL, + NULL, + NULL, + 'ABE1098D-9723-48ED-AA29-BEF3E458FC5E', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '54')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradingPeriodDescriptor( + GradingPeriodDescriptorId) + (SELECT TOP 1 + '54' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '54')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '1601', + 'uri://ed-fi.org/GradeTypeDescriptor', + 'Grading Period', + 'Grading Period', + 'Grading Period', + NULL, + NULL, + NULL, + 'B28F1950-0205-4C7C-AB23-C35F9E67D4A8', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeTypeDescriptor( + GradeTypeDescriptorId) + ( + SELECT TOP 1 + 1601 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId = 1601) + ); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '152950', + 'ESC Region 17', + NULL, + NULL, + NULL, + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', + 'Sep 18 2015 11:34AM', + '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')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT TOP 1 + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086) + ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT TOP 1 1086 + WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) + ); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT TOP 1 + '867530', + NULL, + '1086', + NULL, + '152950', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1695', + 'uri://ed-fi.org/SchoolTypeDescriptor', + 'Regular', + 'Regular', + 'Regular', + NULL, + NULL, + NULL, + 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( + SELECT TOP 1 + 1695 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695)); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530022', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + 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 + '2013', + '2012-2013', + '0', + '1926BB96-BF8C-493A-93BD-A8E60DBC83E2', + 'Jun 19 2015 11:40AM', + 'Jun 19 2015 11:40AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '7F4214CF-7CD7-412E-BECB-09738DFC013F', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' 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')); + + 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) + (SELECT TOP 1 + '10' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeDescriptorId, + MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayDescriptorId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530022', + 'XSNP41', + 'BASIC ENV AW 12', + '1', + '10', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '415AE933-085D-4F72-80B7-56C650A0BA08', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'XSNP41' AND EducationOrganizationId= '867530022')); + + 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) + (SELECT TOP 1 + '530' + 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 + '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.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'Beverly Hills High School', + NULL, + NULL, + NULL, + '56888B72-8AF0-4741-B6BC-90950E29A276', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530020', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.Session( + SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + '2012', + '530', + 'Traditional', + '2011-08-22', + '2011-12-20','82', + '5A3B8E35-D9A0-4BE6-864A-BB435F528198', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,SessionName,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'XSNP41', + '867530022', + '2012', + 'Traditional', + 'BASIC ENV AW 12', + NULL, + 'XSNP41', + '867530022', + NULL, + '012BF83D-4AA9-40D4-8DB7-275C729606E9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSNP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= '530')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '950', + 'uri://ed-fi.org/EducationalEnvironmentDescriptor', + 'Classroom', + 'Classroom', + 'Classroom', + NULL, + NULL, + NULL, + 'C21062A5-542C-4596-B985-17582EC975F4', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 950) ); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor( + EducationalEnvironmentDescriptorId) ( + SELECT TOP 1 + 950 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId = 950)); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530022', + '1405', + NULL, + NULL, + 'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1233', + 'uri://ed-fi.org/PopulationServedDescriptor', + 'Special Education Students', + 'Special Education Students', + 'Special Education Students', + NULL, + NULL, + NULL, + '749196AF-A7F5-4A09-9230-9CA0FD21BD68', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1233)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor( + PopulationServedDescriptorId) ( + SELECT TOP 1 + 1233 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId = 1233)); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SessionName,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId, + AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,LocationSchoolId,LocationClassroomIdentificationCode,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530022', + 'XSNP41', + '2012', + '14517', + 'Traditional', + '1', + '950', + NULL, + '1233', + NULL, + NULL, + NULL, + '867530022', + '1405', + '1.00', + 'D080764D-28BB-4824-B498-505FDEEC6F02', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocationClassroomIdentificationCode= '1405' AND LocalCourseCode= 'XSNP41' AND SchoolId= '867530022' AND SchoolYear= '2012' + AND SequenceOfCourse= '1' AND SessionName = 'Traditional' AND SectionIdentifier = '14517')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '110', + 'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml', + 'Limited', + 'Limited', + 'Limited', + NULL, + NULL, + NULL, + '29DF3155-D3B9-4605-B80B-50CC9C3FC6DF', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor( + LimitedEnglishProficiencyDescriptorId) + (SELECT TOP 1 + '110' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1167', + 'uri://ed-fi.org/OldEthnicityDescriptor', + 'White, Not Of Hispanic Origin', + 'White, Not Of Hispanic Origin', + 'White, Not Of Hispanic Origin', + NULL, + NULL, + NULL, + '1882389F-FE1E-40ED-8670-5E3C6DEA4607', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1167)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor( + OldEthnicityDescriptorId) ( + SELECT TOP 1 + 1167 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId = 1167)); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '2892', + 'uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor', + 'Free Breakfast', + 'Free Breakfast', + 'Free Breakfast', + NULL, + NULL, + NULL, + 'D45C8420-62FD-49AE-964D-1D8DCECE30D5', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 2892)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SchoolFoodServiceProgramServiceDescriptor( + SchoolFoodServiceProgramServiceDescriptorId) ( + SELECT TOP 1 + 2892 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolFoodServiceProgramServiceDescriptor WHERE SchoolFoodServiceProgramServiceDescriptorId = 2892)); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1395', + 'uri://ed-fi.org/SexDescriptor', + 'Female', + 'Female', + 'Female', + NULL, + NULL, + NULL, + 'D047F035-5000-456B-A279-6AF1BD20EB6D', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1395)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SexDescriptor( + SexDescriptorId) ( + SELECT TOP 1 + 1395 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId = 1395)); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1451', + 'uri://ed-fi.org/StateAbbreviationDescriptor', + 'TX', + 'TX', + 'TX', + NULL, + NULL, + NULL, + '67A24BD2-B27E-42A1-A508-2D45B49C6617', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1451)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.StateAbbreviationDescriptor( + StateAbbreviationDescriptorId) ( + SELECT TOP 1 + 1451 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId = 1451)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId, + DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100014881', + NULL, + 'Cecilia', + 'D', + 'Begay', + NULL, + NULL, + '1395', + '1989-06-05', + 'Lubbock', + '1451', + NULL, + NULL, + NULL, + NULL, + '189889', + '989B461B-45DD-4947-B310-51229E2068FC', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,SectionIdentifier,SessionName,AttemptStatusDescriptorId, + TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100014881', + '867530022', + 'XSNP41', + '2012', + '2011-08-22', + '2011-11-02', + '0', + NULL, + '14517', + 'Traditional', + NULL, + NULL, + '6779BA84-FD0E-45FC-8BF5-327835579D3C', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'XSNP41' AND SessionName = 'Traditional' + AND SchoolId= '867530022' AND SchoolYear= '2012' AND StudentUSI= '100014881' AND SectionIdentifier = '14517')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,SessionName,GradingPeriodSchoolYear, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100014881', + '867530022', + 'Traditional', + '2012', + 'XSNP41', + '14517', + '1', + '2012', + 'A', + '94.00', + NULL, + 'E079C048-D518-407D-8412-BD6968733E3E', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='E079C048-D518-407D-8412-BD6968733E3E')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1602', + 'uri://ed-fi.org/GradeTypeDescriptor', + 'Mid-Term Grade', + 'Mid-Term Grade', + 'Mid-Term Grade', + NULL, + NULL, + NULL, + 'B180C713-0E07-497E-8A03-66EA1B82234A', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1602)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.GradeTypeDescriptor( + GradeTypeDescriptorId) ( + SELECT TOP 1 + 1602 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId = 1602)); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,SessionName,GradingPeriodSchoolYear, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1602', + NULL, + '100014881', + '867530022', + 'Traditional', + '2012', + 'XSNP41', + '14517', + '1', + '2012', + 'A', + '94.00', + NULL, + '6A8FEB5B-080D-4200-994A-28B4C1DB4CF6', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='6A8FEB5B-080D-4200-994A-28B4C1DB4CF6')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '59', + 'http://www.ed-fi.org/Descriptor/GradingPeriodDescriptor.xml', + 'End of Year', + 'End of Year', + 'End of Year', + NULL, + NULL, + NULL, + '88A27CE8-5624-42ED-9E83-1FAF965364DF', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '59')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradingPeriodDescriptor( + GradingPeriodDescriptorId) + (SELECT TOP 1 + '59' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '59')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '59', + '867530022', + '2011-08-22', + '175', + '2012-05-25', + '1', + '2012', + '468EF2D9-FF78-4200-B2AE-3AEB540573E1', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='468EF2D9-FF78-4200-B2AE-3AEB540573E1')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '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.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530007', + '867530', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530007', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '9E3E8812-C3B1-429B-801B-7D9EC9359AD0', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='9E3E8812-C3B1-429B-801B-7D9EC9359AD0')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2013', + 'BB27B132-CE54-41E8-9C4D-A0A5177EF7DB', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='BB27B132-CE54-41E8-9C4D-A0A5177EF7DB')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '2', + '2012', + 'BB27B132-CE54-41E8-9C4D-A0A5177EF8DB', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='BB27B132-CE54-41E8-9C4D-A0A5177EF8DB')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530020', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + 'D69C9022-AD7B-4D72-BFE7-BB02FA29F5C7', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530020')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'A01', + 'B1B3F2B6-1281-4827-8BE4-343D8BC60169', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A01' AND SchoolId= '867530020')); + + 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', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor( + AcademicSubjectDescriptorId) + (SELECT TOP 1 + '18' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted, + HighSchoolCourseRequirement,CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits, + MaximumAvailableCreditTypeDescriptorId,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'XLTV41', + 'FUNCT VOC 12', + '1', + '18', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '77E4317B-95C7-49D0-9606-44B493D41455', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV41' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'XLTV41', + '867530020', + '2012', + 'FUNCT VOC 12', + NULL, + 'XLTV41', + '867530020', + 'Traditional', + '6E004FB8-D563-4B95-B00F-DB493AEA8730', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV41' AND SchoolId= '867530020' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + '702', + NULL, + NULL, + '22B56E5B-3A76-4472-9095-815D3DFF1F53', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530020')); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,SessionName, + PopulationServedDescriptorId,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'XLTV41', + '2012', + '14142', + '1', + '950', + NULL, + 'Traditional', + '1233', + NULL, + NULL, + NULL, + '1.00', + 'C5D44864-6A22-4D8D-84ED-434933862587', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV41' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '14142')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1166', + 'uri://ed-fi.org/OldEthnicityDescriptor', + 'Hispanic', + 'Hispanic', + 'Hispanic', + NULL, + NULL, + NULL, + '3F337FB4-C428-4B2B-9281-8158BA97B9F0', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1166)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor( + OldEthnicityDescriptorId) ( + SELECT TOP 1 + 1166 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId = 1166)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId,DateEnteredUS, + MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100020850', + NULL, + 'Deeanna', + 'M', + 'Haight', + NULL, + NULL, + '1395', + '1989-07-19', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '189919', + '32C24FB8-E425-453B-B476-E014BB2F1528', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100020850', + '867530020', + 'XLTV41', + '14142', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + NULL, + NULL, + NULL, + 'AF5E4900-37D7-4EC9-A50A-7DAF73C0D322', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'XLTV41' + AND SchoolId= '867530020' AND SchoolYear= '2012' AND StudentUSI= '100020850' AND SectionIdentifier= '14142')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,SessionName, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100020850', + '867530020', + '2012', + 'Traditional', + 'XLTV41', + '14142', + '1', + '2012', + NULL, + '90.00', + NULL, + 'C7D765CC-2FD9-43EA-B115-201EEE385923', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='C7D765CC-2FD9-43EA-B115-201EEE385923')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'A02', + '3BBC94D6-5A23-4A15-B06B-ADB42F867110', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A02' AND SchoolId= '867530020')); + + 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) + (SELECT TOP 1 + '12' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeDescriptorId, + MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'NCMR41', + 'Music Iv Choir (1 Unit)', + '1', + '12', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '89E9EF42-89CB-45B8-8A10-E0ADD3469468', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'NCMR41' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'NCMR41', + '867530020', + '2012', + 'Music Iv Choir (1 Unit)', + NULL, + 'NCMR41', + '867530020', + 'Traditional', + 'F87ECD3C-701E-47F3-BE73-5914F8B1843E', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR41' AND SchoolId= '867530020' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + '108', + NULL, + NULL, + '0A58614A-A9CD-4461-8535-1A5360FC359E', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1232', + 'uri://ed-fi.org/PopulationServedDescriptor', + 'Regular Students', + 'Regular Students', + 'Regular Students', + NULL, + NULL, + NULL, + 'E989F2DD-66C2-47CE-804C-A0E3EE5C7624', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1232)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor( + PopulationServedDescriptorId) ( + SELECT TOP 1 + 1232 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId = 1232)); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse, EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId, + SessionName,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530020', + 'NCMR41', + '2012', + '7383', + '1', + '950', + NULL, + '1232', + 'Traditional', + NULL, + NULL, + NULL, + '1.00', + 'F6844930-16BB-4CF5-BB1E-6F2A1EABC1F9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR41' AND SchoolId= '867530020' + AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '7383')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity, + BirthStateAbbreviationDescriptorId,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100044935', + NULL, + 'Michelle', + 'X', + 'Trejo', + NULL, + NULL, + '1395', + '1993-11-28', + 'Lubbock', + '1451', + NULL, + NULL, + NULL, + NULL, + '190966', + '45B66EF1-2E81-444C-AC01-9BA36FDCE4C9', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM',NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100044935')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100044935', + '867530020', + 'NCMR41', + '7383', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + '1', + NULL, + NULL, + 'F5D4524E-ED83-4C53-B766-890051FE3F9B', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'NCMR41' + AND SchoolId= '867530020' AND SchoolYear= '2012' AND StudentUSI= '100044935' )); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,GradingPeriodSequence, + SessionName,LocalCourseCode,SectionIdentifier,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100044935', + '867530020', + '2012', + '1', + 'Traditional', + 'NCMR41', + '7383', + '2012', + 'P', + NULL, + NULL, + '2052B8BE-5B0B-439E-8DE7-115E026FC25F', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='2052B8BE-5B0B-439E-8DE7-115E026FC25F')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'Olive Elementary School', + NULL, + NULL, + NULL, + '4C2A15D8-0244-491D-9963-13A91B0E5888', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT TOP 1 + '867530188', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '867530188', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '34227554-0200-4297-B47F-9FBE862326D3', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530188')); + + INSERT INTO edfi.ClassPeriod + (SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'TAR', + '13829E23-354A-438F-8432-05933168EE27', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'TAR' AND SchoolId= '867530188')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits, + MaximumAvailableCreditTypeDescriptorId,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'ART020', + 'Art, Grade 2', + '1', + '12', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '21E088E3-462A-48B7-8765-0F2938FE7B5A', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'ART020' AND EducationOrganizationId= '867530188')); + + INSERT INTO edfi.Session( + SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + '2012', + '530', + 'Traditional', + '2011-08-22', + '2011-12-20', + '82', + 'D4F5B18D-C97D-4F58-84A3-8AE062FF5339', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Session WHERE SchoolId= '867530188' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + 'ART020', + '867530188', + '2012', + 'Art, Grade 2', + NULL, + 'ART020', + '867530188', + 'Traditional', + '44B1DCDD-2D06-4956-A333-5BBFA4F9EC7F', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ART020' AND SchoolId= '867530188' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + '21', + NULL, + NULL, + '46ABB630-6AF4-423F-93E4-700D1560466D', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '21' AND SchoolId= '867530188')); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse,EducationalEnvironmentDescriptorId,SessionName, + MediumOfInstructionDescriptorId,PopulationServedDescriptorId,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '867530188', + 'ART020', + '2012', + '363', + '1', + '950', + 'Traditional', + NULL, + '1232', + NULL, + NULL, + NULL, + '0.00', + '5539D8B7-9DCA-4167-8922-BC107A8D62D2', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ART020' AND SchoolId= '867530188' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '363')); + + SET IDENTITY_INSERT edfi.descriptor ON; + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT TOP 1 + '1396', + 'uri://ed-fi.org/SexDescriptor', + 'Male', + 'Male', + 'Male', + NULL, + NULL, + NULL, + '64E51D5B-8249-45FE-8B6D-4347F525B2FB', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1396)); + SET IDENTITY_INSERT edfi.descriptor OFF; + + INSERT INTO edfi.SexDescriptor( + SexDescriptorId) ( + SELECT TOP 1 + 1396 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId = 1396)); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId, + DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT TOP 1 + '100019485', + NULL, + 'Ty', + 'J', + 'Arenas', + NULL, + NULL, + '1396', + '2004-02-09', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '189914', + '71782D5B-A947-4E53-B1BA-D059864A6F7C', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100019485')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '100019485', + '867530188', + 'ART020', + '363', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + '0', + NULL, + NULL, + '93705E11-BA34-4125-962B-1D2F47BD523D', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ART020' + AND SchoolId= '867530188' AND SchoolYear= '2012' AND StudentUSI= '100019485' AND SectionIdentifier= '363')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,GradingPeriodSequence,SessionName, + LocalCourseCode,SectionIdentifier,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1 + '54', + '2011-08-22', + '1601', + NULL, + '100019485', + '867530188', + '2012', + '1', + 'Traditional', + 'ART020', + '363', + '2012', + 'D', + NULL, + NULL, + '94D4CDA9-C902-4D27-81DE-01683C0BFFA9', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='94D4CDA9-C902-4D27-81DE-01683C0BFFA9')); + ---------------- + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1600','uri://ed-fi.org/GradeTypeDescriptor','Final','Final','Final',NULL,NULL,NULL,'4F208B5F-040E-4D49-AB1C-505D9C553E67','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1600'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1600' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1600')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'59','uri://ed-fi.org/GradingPeriodDescriptor','End of Year','End of Year','End of Year',NULL,NULL,NULL,'88A27CE8-5624-42ED-9E83-1FAF965364DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '59'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'59' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '59')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + 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.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'59','867530068','2011-08-22','175','2012-05-25','1','1D0BE116-AB28-486F-BDA8-56E843C205A8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '59' AND PeriodSequence= '1' AND SchoolId= '867530068' AND 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'12','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 TOP 1'867530068','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8D4C96E1-5768-4506-8CFB-DE4F7B1741E4','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= 'ACER08' AND EducationOrganizationId= '867530068')); + 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','uri://ed-fi.org/TermDescriptor','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; + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530068','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A8DFF608-36BB-4137-AA36-278CFB830BD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' 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 TOP 1'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','27A5F21F-9F9D-4CF7-AA35-7CE701A04837','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','107',NULL,NULL,'3192FE88-7579-4413-BF39-00314A4B30F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530068')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','ACER08','2012','1',NULL,NULL,'0.000','E252B3B6-DACA-4830-A64B-A12BCB4568E1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional-Spring Semester')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100078622',NULL,'Justin','A','Camarillo',NULL,NULL,'1997-01-12','Lubbock',NULL,NULL,NULL,'203451','E1C23D05-CAAA-4EB1-9954-78EF6BC038F8','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100078622'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100078622','867530068','ACER08','2012','2012-01-04','2012-05-25','1',NULL,'A5D89F06-0694-4974-B24E-88E9C947900B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2012-01-04' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional-Spring Semester' AND StudentUSI= '100078622')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'59','100078622','867530068','ACER08','2012','2012-01-04',NULL,'90.00',NULL,'18E2B445-9093-46F9-9D10-6D07B542739C','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional-Spring Semester','1','2012',NULL,'1600',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE Id='18E2B445-9093-46F9-9D10-6D07B542739C')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100078622',NULL,'Justin','A','Camarillo',NULL,NULL,'1997-01-12','Lubbock',NULL,NULL,NULL,'203451','E1C23D05-CAAA-4EB1-9954-78EF6BC038F8','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUniqueId='203451'));SET IDENTITY_INSERT edfi.Student 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'1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT TOP 1'1604' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1604')); + SET IDENTITY_INSERT edfi.Descriptor ON;INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'60','uri://ed-fi.org/GradingPeriodDescriptor','First Semester','First Semester','First Semester',NULL,NULL,NULL,'95B5EB9C-FFC1-4EBB-B5A2-87EFD10628B6','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '60'));SET IDENTITY_INSERT edfi.Descriptor OFF; + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT TOP 1'60' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '60')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT TOP 1'60','867530068','2011-08-22','82','2011-12-20','1','C8B4D6D9-D1BD-4BDD-ADDF-12D3561501F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '60' AND PeriodSequence= '1' AND SchoolId= '867530068' AND 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','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','9A6DB0F3-2F28-4953-9D11-3EBAAFC230B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','ACER08','2012','1',NULL,NULL,'0.000','159AC833-F3DE-404B-BD74-08F5DC5F8ACF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100083479',NULL,'Timothy','J','Pellum',NULL,NULL,'1997-11-21','Lubbock',NULL,NULL,NULL,'205689','1730E5EB-AC8D-497A-A6AE-230D37C1F5F9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100083479'));SET IDENTITY_INSERT edfi.Student OFF; + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100083479','867530068','ACER08','2012','2011-08-22','2011-12-20','1',NULL,'D6F99342-3B09-4D34-A726-1388B7122E7D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100083479')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT TOP 1'60','100083479','867530068','ACER08','2012','2011-08-22',NULL,'79.00',NULL,'95FF5252-69CB-43E8-91DD-CB60AF3659E1','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE Id='95FF5252-69CB-43E8-91DD-CB60AF3659E1')); + SET IDENTITY_INSERT edfi.Student ON;INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100083479',NULL,'Timothy','J','Pellum',NULL,NULL,'1997-11-21','Lubbock',NULL,NULL,NULL,'205689','1730E5EB-AC8D-497A-A6AE-230D37C1F5F9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUniqueId='205689'));SET IDENTITY_INSERT edfi.Student OFF; + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_3/0001_StudentSectionGradeFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_3/0001_StudentSectionGradeFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..4da697bd --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/MSSQL/v_3_3/0001_StudentSectionGradeFact_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_StudentSectionGradeFact' + ORDER BY ORDINAL_POSITION ASC; + + + StudentKey + nvarchar + + + SchoolKey + varchar + + + GradingPeriodKey + nvarchar + + + StudentSectionKey + nvarchar + + + SectionKey + nvarchar + + + NumericGradeEarned + decimal + + + LetterGradeEarned + nvarchar + + + GradeType + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/0001_StudentSectionGradeFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/0001_StudentSectionGradeFact_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_2/0001_StudentSectionGradeFact_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_3/0000_StudentSectionGradeFact_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_3/0000_StudentSectionGradeFact_Data_Load.xml new file mode 100644 index 00000000..c280a1e4 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_3/0000_StudentSectionGradeFact_Data_Load.xml @@ -0,0 +1,1585 @@ + + + Any + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + 'http://www.ed-fi.org/Descriptor/GradingPeriodDescriptor.xml', + 'First Six Weeks', + 'First Six Weeks', + 'First Six Weeks', + NULL, + NULL, + NULL, + 'ABE1098D-9723-48ED-AA29-BEF3E458FC5E', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '54')); + + INSERT INTO edfi.GradingPeriodDescriptor( + GradingPeriodDescriptorId) + (SELECT + '54' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '54')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '1601', + 'uri://ed-fi.org/GradeTypeDescriptor', + 'Grading Period', + 'Grading Period', + 'Grading Period', + NULL, + NULL, + NULL, + 'B28F1950-0205-4C7C-AB23-C35F9E67D4A8', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1601')); + + INSERT INTO edfi.GradeTypeDescriptor( + GradeTypeDescriptorId) + ( + SELECT + 1601 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId = 1601) + ); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT + '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT + '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,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT + '152950', + 'ESC Region 17', + NULL, + NULL, + NULL, + '03DE6F94-316A-4B06-8C67-2C8748DCA1A9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter( + EducationServiceCenterId,StateEducationAgencyId) + (SELECT + '152950', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.descriptor + (DescriptorId, Namespace, CodeValue, ShortDescription, Description, + PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + ( + SELECT + '1086', + 'uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor', + 'Independent', + 'Independent', + 'Independent', + NULL, + NULL, + NULL, + '0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1086) + ); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor (LocalEducationAgencyCategoryDescriptorId) + ( + SELECT 1086 + WHERE NOT EXISTS (SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId = 1086) + ); + + INSERT INTO edfi.LocalEducationAgency( + LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryDescriptorId,CharterStatusDescriptorId,EducationServiceCenterId,StateEducationAgencyId) + (SELECT + '867530', + NULL, + '1086', + NULL, + '152950', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1695', + 'uri://ed-fi.org/SchoolTypeDescriptor', + 'Regular', + 'Regular', + 'Regular', + NULL, + NULL, + NULL, + 'F5712765-A14F-4A3D-ABC9-BADFC9134BC1', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1695) ); + + INSERT INTO edfi.SchoolTypeDescriptor (SchoolTypeDescriptorId) ( + SELECT + 1695 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId = 1695)); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT + '867530022', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + + INSERT INTO edfi.SchoolYearType( + SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '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 + '2013', + '2012-2013', + '0', + '1926BB96-BF8C-493A-93BD-A8E60DBC83E2', + 'Jun 19 2015 11:40AM', + 'Jun 19 2015 11:40AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2013')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '7F4214CF-7CD7-412E-BECB-09738DFC013F', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530022')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT + '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.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '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')); + + INSERT INTO edfi.AcademicSubjectDescriptor( + AcademicSubjectDescriptorId) + (SELECT + '10' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeDescriptorId, + MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayDescriptorId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT + '867530022', + 'XSNP41', + 'BASIC ENV AW 12', + '1', + '10', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '415AE933-085D-4F72-80B7-56C650A0BA08', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'XSNP41' AND EducationOrganizationId= '867530022')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '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')); + + INSERT INTO edfi.TermDescriptor( + TermDescriptorId) + (SELECT + '530' + 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 + '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.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'Beverly Hills High School', + NULL, + NULL, + NULL, + '56888B72-8AF0-4741-B6BC-90950E29A276', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT + '867530020', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.Session( + SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + '2012', + '530', + 'Traditional', + '2011-08-22', + '2011-12-20','82', + '5A3B8E35-D9A0-4BE6-864A-BB435F528198', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,SessionName,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Discriminator,Id,LastModifiedDate,CreateDate) + (SELECT + 'XSNP41', + '867530022', + '2012', + 'Traditional', + 'BASIC ENV AW 12', + NULL, + 'XSNP41', + '867530022', + NULL, + '012BF83D-4AA9-40D4-8DB7-275C729606E9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSNP41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SessionName= '530')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '950', + 'uri://ed-fi.org/EducationalEnvironmentDescriptor', + 'Classroom', + 'Classroom', + 'Classroom', + NULL, + NULL, + NULL, + 'C21062A5-542C-4596-B985-17582EC975F4', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 950) ); + + INSERT INTO edfi.EducationalEnvironmentDescriptor( + EducationalEnvironmentDescriptorId) ( + SELECT + 950 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId = 950)); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT + '867530022', + '1405', + NULL, + NULL, + 'ED4E46EB-47E4-4CC2-A513-DC90A8AF9D4D', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1405' AND SchoolId= '867530022')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1233', + 'uri://ed-fi.org/PopulationServedDescriptor', + 'Special Education Students', + 'Special Education Students', + 'Special Education Students', + NULL, + NULL, + NULL, + '749196AF-A7F5-4A09-9230-9CA0FD21BD68', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1233)); + + INSERT INTO edfi.PopulationServedDescriptor( + PopulationServedDescriptorId) ( + SELECT + 1233 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId = 1233)); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SessionName,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId, + AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,LocationSchoolId,LocationClassroomIdentificationCode,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT + '867530022', + 'XSNP41', + '2012', + '14517', + 'Traditional', + '1', + '950', + NULL, + '1233', + NULL, + NULL, + NULL, + '867530022', + '1405', + '1.00', + 'D080764D-28BB-4824-B498-505FDEEC6F02', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocationClassroomIdentificationCode= '1405' AND LocalCourseCode= 'XSNP41' AND SchoolId= '867530022' AND SchoolYear= '2012' + AND SequenceOfCourse= '1' AND SessionName = 'Traditional' AND SectionIdentifier = '14517')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '110', + 'http://www.ed-fi.org/Descriptor/LimitedEnglishProficiencyDescriptor.xml', + 'Limited', + 'Limited', + 'Limited', + NULL, + NULL, + NULL, + '29DF3155-D3B9-4605-B80B-50CC9C3FC6DF', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '110')); + + INSERT INTO edfi.LimitedEnglishProficiencyDescriptor( + LimitedEnglishProficiencyDescriptorId) + (SELECT + '110' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.LimitedEnglishProficiencyDescriptor WHERE LimitedEnglishProficiencyDescriptorId= '110')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1167', + 'uri://ed-fi.org/OldEthnicityDescriptor', + 'White, Not Of Hispanic Origin', + 'White, Not Of Hispanic Origin', + 'White, Not Of Hispanic Origin', + NULL, + NULL, + NULL, + '1882389F-FE1E-40ED-8670-5E3C6DEA4607', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1167)); + + INSERT INTO edfi.OldEthnicityDescriptor( + OldEthnicityDescriptorId) ( + SELECT + 1167 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId = 1167)); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '2892', + 'uri://ed-fi.org/SchoolFoodServiceProgramServiceDescriptor', + 'Free Breakfast', + 'Free Breakfast', + 'Free Breakfast', + NULL, + NULL, + NULL, + 'D45C8420-62FD-49AE-964D-1D8DCECE30D5', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 2892)); + + INSERT INTO edfi.SchoolFoodServiceProgramServiceDescriptor( + SchoolFoodServiceProgramServiceDescriptorId) ( + SELECT + 2892 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SchoolFoodServiceProgramServiceDescriptor WHERE SchoolFoodServiceProgramServiceDescriptorId = 2892)); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1395', + 'uri://ed-fi.org/SexDescriptor', + 'Female', + 'Female', + 'Female', + NULL, + NULL, + NULL, + 'D047F035-5000-456B-A279-6AF1BD20EB6D', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1395)); + + INSERT INTO edfi.SexDescriptor( + SexDescriptorId) ( + SELECT + 1395 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId = 1395)); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1451', + 'uri://ed-fi.org/StateAbbreviationDescriptor', + 'TX', + 'TX', + 'TX', + NULL, + NULL, + NULL, + '67A24BD2-B27E-42A1-A508-2D45B49C6617', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1451)); + + INSERT INTO edfi.StateAbbreviationDescriptor( + StateAbbreviationDescriptorId) ( + SELECT + 1451 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId = 1451)); + + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId, + DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT + '100014881', + NULL, + 'Cecilia', + 'D', + 'Begay', + NULL, + NULL, + '1395', + '1989-06-05', + 'Lubbock', + '1451', + NULL, + NULL, + NULL, + NULL, + '189889', + '989B461B-45DD-4947-B310-51229E2068FC', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100014881')); + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,SectionIdentifier,SessionName,AttemptStatusDescriptorId, + TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT + '100014881', + '867530022', + 'XSNP41', + '2012', + '2011-08-22', + '2011-11-02', + '0', + NULL, + '14517', + 'Traditional', + NULL, + NULL, + '6779BA84-FD0E-45FC-8BF5-327835579D3C', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'XSNP41' AND SessionName = 'Traditional' + AND SchoolId= '867530022' AND SchoolYear= '2012' AND StudentUSI= '100014881' AND SectionIdentifier = '14517')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,SessionName,GradingPeriodSchoolYear, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '2011-08-22', + '1601', + NULL, + '100014881', + '867530022', + 'Traditional', + '2012', + 'XSNP41', + '14517', + '1', + '2012', + 'A', + '94.00', + NULL, + 'E079C048-D518-407D-8412-BD6968733E3E', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='E079C048-D518-407D-8412-BD6968733E3E')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1602', + 'uri://ed-fi.org/GradeTypeDescriptor', + 'Mid-Term Grade', + 'Mid-Term Grade', + 'Mid-Term Grade', + NULL, + NULL, + NULL, + 'B180C713-0E07-497E-8A03-66EA1B82234A', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1602)); + + INSERT INTO edfi.GradeTypeDescriptor( + GradeTypeDescriptorId) ( + SELECT + 1602 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId = 1602)); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,SessionName,GradingPeriodSchoolYear, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '2011-08-22', + '1602', + NULL, + '100014881', + '867530022', + 'Traditional', + '2012', + 'XSNP41', + '14517', + '1', + '2012', + 'A', + '94.00', + NULL, + '6A8FEB5B-080D-4200-994A-28B4C1DB4CF6', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='6A8FEB5B-080D-4200-994A-28B4C1DB4CF6')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '59', + 'http://www.ed-fi.org/Descriptor/GradingPeriodDescriptor.xml', + 'End of Year', + 'End of Year', + 'End of Year', + NULL, + NULL, + NULL, + '88A27CE8-5624-42ED-9E83-1FAF965364DF', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '59')); + + INSERT INTO edfi.GradingPeriodDescriptor( + GradingPeriodDescriptorId) + (SELECT + '59' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '59')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '59', + '867530022', + '2011-08-22', + '175', + '2012-05-25', + '1', + '2012', + '468EF2D9-FF78-4200-B2AE-3AEB540573E1', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='468EF2D9-FF78-4200-B2AE-3AEB540573E1')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT + '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.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT + '867530007', + '867530', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530007')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '867530007', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '9E3E8812-C3B1-429B-801B-7D9EC9359AD0', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='9E3E8812-C3B1-429B-801B-7D9EC9359AD0')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2013', + 'BB27B132-CE54-41E8-9C4D-A0A5177EF7DB', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='BB27B132-CE54-41E8-9C4D-A0A5177EF7DB')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '867530022', + '2011-08-22', + '29', + '2011-09-30', + '2', + '2012', + 'BB27B132-CE54-41E8-9C4D-A0A5177EF8DB', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE id='BB27B132-CE54-41E8-9C4D-A0A5177EF8DB')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '867530020', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + 'D69C9022-AD7B-4D72-BFE7-BB02FA29F5C7', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530020')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'A01', + 'B1B3F2B6-1281-4827-8BE4-343D8BC60169', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A01' AND SchoolId= '867530020')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '18', + 'http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml', + 'Other', + 'Other', + 'Other', + NULL, + NULL, + NULL, + '2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + + INSERT INTO edfi.AcademicSubjectDescriptor( + AcademicSubjectDescriptorId) + (SELECT + '18' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted, + HighSchoolCourseRequirement,CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits, + MaximumAvailableCreditTypeDescriptorId,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'XLTV41', + 'FUNCT VOC 12', + '1', + '18', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '77E4317B-95C7-49D0-9606-44B493D41455', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV41' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT + 'XLTV41', + '867530020', + '2012', + 'FUNCT VOC 12', + NULL, + 'XLTV41', + '867530020', + 'Traditional', + '6E004FB8-D563-4B95-B00F-DB493AEA8730', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV41' AND SchoolId= '867530020' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + '702', + NULL, + NULL, + '22B56E5B-3A76-4472-9095-815D3DFF1F53', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530020')); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse,EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,SessionName, + PopulationServedDescriptorId,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'XLTV41', + '2012', + '14142', + '1', + '950', + NULL, + 'Traditional', + '1233', + NULL, + NULL, + NULL, + '1.00', + 'C5D44864-6A22-4D8D-84ED-434933862587', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV41' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '14142')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1166', + 'uri://ed-fi.org/OldEthnicityDescriptor', + 'Hispanic', + 'Hispanic', + 'Hispanic', + NULL, + NULL, + NULL, + '3F337FB4-C428-4B2B-9281-8158BA97B9F0', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1166)); + + INSERT INTO edfi.OldEthnicityDescriptor( + OldEthnicityDescriptorId) ( + SELECT + 1166 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId = 1166)); + + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId,DateEnteredUS, + MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT + '100020850', + NULL, + 'Deeanna', + 'M', + 'Haight', + NULL, + NULL, + '1395', + '1989-07-19', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '189919', + '32C24FB8-E425-453B-B476-E014BB2F1528', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100020850')); + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT + '100020850', + '867530020', + 'XLTV41', + '14142', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + NULL, + NULL, + NULL, + 'AF5E4900-37D7-4EC9-A50A-7DAF73C0D322', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'XLTV41' + AND SchoolId= '867530020' AND SchoolYear= '2012' AND StudentUSI= '100020850' AND SectionIdentifier= '14142')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,SessionName, + LocalCourseCode,SectionIdentifier,GradingPeriodSequence,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '2011-08-22', + '1601', + NULL, + '100020850', + '867530020', + '2012', + 'Traditional', + 'XLTV41', + '14142', + '1', + '2012', + NULL, + '90.00', + NULL, + 'C7D765CC-2FD9-43EA-B115-201EEE385923', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='C7D765CC-2FD9-43EA-B115-201EEE385923')); + + INSERT INTO edfi.ClassPeriod( + SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'A02', + '3BBC94D6-5A23-4A15-B06B-ADB42F867110', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A02' AND SchoolId= '867530020')); + + INSERT INTO edfi.Descriptor( + DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate) + (SELECT + '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')); + + INSERT INTO edfi.AcademicSubjectDescriptor( + AcademicSubjectDescriptorId) + (SELECT + '12' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeDescriptorId, + MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'NCMR41', + 'Music Iv Choir (1 Unit)', + '1', + '12', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '89E9EF42-89CB-45B8-8A10-E0ADD3469468', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'NCMR41' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT + 'NCMR41', + '867530020', + '2012', + 'Music Iv Choir (1 Unit)', + NULL, + 'NCMR41', + '867530020', + 'Traditional', + 'F87ECD3C-701E-47F3-BE73-5914F8B1843E', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR41' AND SchoolId= '867530020' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + '108', + NULL, + NULL, + '0A58614A-A9CD-4461-8535-1A5360FC359E', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1232', + 'uri://ed-fi.org/PopulationServedDescriptor', + 'Regular Students', + 'Regular Students', + 'Regular Students', + NULL, + NULL, + NULL, + 'E989F2DD-66C2-47CE-804C-A0E3EE5C7624', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1232)); + + INSERT INTO edfi.PopulationServedDescriptor( + PopulationServedDescriptorId) ( + SELECT + 1232 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId = 1232)); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse, EducationalEnvironmentDescriptorId,MediumOfInstructionDescriptorId,PopulationServedDescriptorId, + SessionName,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT + '867530020', + 'NCMR41', + '2012', + '7383', + '1', + '950', + NULL, + '1232', + 'Traditional', + NULL, + NULL, + NULL, + '1.00', + 'F6844930-16BB-4CF5-BB1E-6F2A1EABC1F9', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR41' AND SchoolId= '867530020' + AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '7383')); + + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity, + BirthStateAbbreviationDescriptorId,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT + '100044935', + NULL, + 'Michelle', + 'X', + 'Trejo', + NULL, + NULL, + '1395', + '1993-11-28', + 'Lubbock', + '1451', + NULL, + NULL, + NULL, + NULL, + '190966', + '45B66EF1-2E81-444C-AC01-9BA36FDCE4C9', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM',NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100044935')); + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT + '100044935', + '867530020', + 'NCMR41', + '7383', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + '1', + NULL, + NULL, + 'F5D4524E-ED83-4C53-B766-890051FE3F9B', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'NCMR41' + AND SchoolId= '867530020' AND SchoolYear= '2012' AND StudentUSI= '100044935' )); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,GradingPeriodSequence, + SessionName,LocalCourseCode,SectionIdentifier,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '2011-08-22', + '1601', + NULL, + '100044935', + '867530020', + '2012', + '1', + 'Traditional', + 'NCMR41', + '7383', + '2012', + 'P', + NULL, + NULL, + '2052B8BE-5B0B-439E-8DE7-115E026FC25F', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='2052B8BE-5B0B-439E-8DE7-115E026FC25F')); + + INSERT INTO edfi.EducationOrganization( + EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT + '867530188', + 'Olive Elementary School', + NULL, + NULL, + NULL, + '4C2A15D8-0244-491D-9963-13A91B0E5888', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530188')); + + INSERT INTO edfi.School( + SchoolId,LocalEducationAgencyId,SchoolTypeDescriptorId,CharterStatusDescriptorId,TitleIPartASchoolDesignationDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId, + AdministrativeFundingControlDescriptorId,InternetAccessDescriptorId,CharterApprovalAgencyTypeDescriptorId,CharterApprovalSchoolYear) + (SELECT + '867530188', + '867530', + '1695', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.School WHERE SchoolId= '867530188')); + + INSERT INTO edfi.GradingPeriod( + GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,SchoolYear,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '867530188', + '2011-08-22', + '29', + '2011-09-30', + '1', + '2012', + '34227554-0200-4297-B47F-9FBE862326D3', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.GradingPeriod WHERE BeginDate= '2011-08-22' AND GradingPeriodDescriptorId= '54' AND SchoolId= '867530188')); + + INSERT INTO edfi.ClassPeriod + (SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT + '867530188', + 'TAR', + '13829E23-354A-438F-8432-05933168EE27', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'TAR' AND SchoolId= '867530188')); + + INSERT INTO edfi.Course( + EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement, + CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,MinimumAvailableCreditTypeDescriptorId,MinimumAvailableCreditConversion,MinimumAvailableCredits, + MaximumAvailableCreditTypeDescriptorId,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate) + (SELECT + '867530188', + 'ART020', + 'Art, Grade 2', + '1', + '12', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '21E088E3-462A-48B7-8765-0F2938FE7B5A', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Course WHERE CourseCode= 'ART020' AND EducationOrganizationId= '867530188')); + + INSERT INTO edfi.Session( + SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT + '867530188', + '2012', + '530', + 'Traditional', + '2011-08-22', + '2011-12-20', + '82', + 'D4F5B18D-C97D-4F58-84A3-8AE062FF5339', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Session WHERE SchoolId= '867530188' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + + INSERT INTO edfi.CourseOffering( + LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,SessionName,Id,LastModifiedDate,CreateDate) + (SELECT + 'ART020', + '867530188', + '2012', + 'Art, Grade 2', + NULL, + 'ART020', + '867530188', + 'Traditional', + '44B1DCDD-2D06-4956-A333-5BBFA4F9EC7F', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ART020' AND SchoolId= '867530188' AND SchoolYear= '2012' )); + + INSERT INTO edfi.Location( + SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT + '867530188', + '21', + NULL, + NULL, + '46ABB630-6AF4-423F-93E4-700D1560466D', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '21' AND SchoolId= '867530188')); + + INSERT INTO edfi.Section( + SchoolId,LocalCourseCode,SchoolYear,SectionIdentifier,SequenceOfCourse,EducationalEnvironmentDescriptorId,SessionName, + MediumOfInstructionDescriptorId,PopulationServedDescriptorId,AvailableCreditTypeDescriptorId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT + '867530188', + 'ART020', + '2012', + '363', + '1', + '950', + 'Traditional', + NULL, + '1232', + NULL, + NULL, + NULL, + '0.00', + '5539D8B7-9DCA-4167-8922-BC107A8D62D2', + 'Sep 18 2015 11:34AM', + 'Sep 18 2015 11:34AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ART020' AND SchoolId= '867530188' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND SectionIdentifier= '363')); + + INSERT INTO edfi.descriptor( + DescriptorId, Namespace, CodeValue, ShortDescription, Description, PriorDescriptorId, EffectiveBeginDate, EffectiveEndDate, Id, LastModifiedDate, CreateDate) + (SELECT + '1396', + 'uri://ed-fi.org/SexDescriptor', + 'Male', + 'Male', + 'Male', + NULL, + NULL, + NULL, + '64E51D5B-8249-45FE-8B6D-4347F525B2FB', + 'Jun 19 2015 11:42AM', + 'Jun 19 2015 11:42AM' + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.descriptor WHERE descriptorid = 1396)); + + INSERT INTO edfi.SexDescriptor( + SexDescriptorId) ( + SELECT + 1396 + WHERE NOT EXISTS ( + SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId = 1396)); + + INSERT INTO edfi.Student( + StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthSexDescriptorId,BirthDate,BirthCity,BirthStateAbbreviationDescriptorId, + DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,CitizenshipStatusDescriptorId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId) + (SELECT + '100019485', + NULL, + 'Ty', + 'J', + 'Arenas', + NULL, + NULL, + '1396', + '2004-02-09', + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + '189914', + '71782D5B-A947-4E53-B1BA-D059864A6F7C', + 'Nov 19 2015 4:14PM', + 'Sep 18 2015 11:34AM', + NULL + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Student WHERE StudentUSI= '100019485')); + + INSERT INTO edfi.StudentSectionAssociation( + StudentUSI,SchoolId,LocalCourseCode,SectionIdentifier,SchoolYear,SessionName, + BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierDescriptorId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate) + (SELECT + '100019485', + '867530188', + 'ART020', + '363', + '2012', + 'Traditional', + '2011-08-22', + '2011-12-20', + '0', + NULL, + NULL, + '93705E11-BA34-4125-962B-1D2F47BD523D', + 'Sep 18 2015 11:47AM', + 'Sep 18 2015 11:47AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ART020' + AND SchoolId= '867530188' AND SchoolYear= '2012' AND StudentUSI= '100019485' AND SectionIdentifier= '363')); + + INSERT INTO edfi.Grade( + GradingPeriodDescriptorId,BeginDate,GradeTypeDescriptorId,PerformanceBaseConversionDescriptorId,StudentUSI,SchoolId,GradingPeriodSchoolYear,GradingPeriodSequence,SessionName, + LocalCourseCode,SectionIdentifier,SchoolYear,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate) + (SELECT + '54', + '2011-08-22', + '1601', + NULL, + '100019485', + '867530188', + '2012', + '1', + 'Traditional', + 'ART020', + '363', + '2012', + 'D', + NULL, + NULL, + '94D4CDA9-C902-4D27-81DE-01683C0BFFA9', + 'Sep 18 2015 11:52AM', + 'Sep 18 2015 11:52AM' + WHERE NOT EXISTS( + SELECT 1 FROM edfi.Grade WHERE id='94D4CDA9-C902-4D27-81DE-01683C0BFFA9')); + ---------------- + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1600','uri://ed-fi.org/GradeTypeDescriptor','Final','Final','Final',NULL,NULL,NULL,'4F208B5F-040E-4D49-AB1C-505D9C553E67','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1600')); + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT '1600' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1600')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '59','uri://ed-fi.org/GradingPeriodDescriptor','End of Year','End of Year','End of Year',NULL,NULL,NULL,'88A27CE8-5624-42ED-9E83-1FAF965364DF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '59')); + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT '59' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '59')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '59','867530068','2011-08-22','175','2012-05-25','1','1D0BE116-AB28-486F-BDA8-56E843C205A8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '59' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2012')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + 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 '867530068','ACER08','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8D4C96E1-5768-4506-8CFB-DE4F7B1741E4','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= 'ACER08' AND EducationOrganizationId= '867530068')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530068','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','A8DFF608-36BB-4137-AA36-278CFB830BD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' 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 'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','27A5F21F-9F9D-4CF7-AA35-7CE701A04837','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530068','107',NULL,NULL,'3192FE88-7579-4413-BF39-00314A4B30F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '107' AND SchoolId= '867530068')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530068','ACER08','2012','1',NULL,NULL,'0.000','E252B3B6-DACA-4830-A64B-A12BCB4568E1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional-Spring Semester')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100078622',NULL,'Justin','A','Camarillo',NULL,NULL,'1997-01-12','Lubbock',NULL,NULL,NULL,'203451','E1C23D05-CAAA-4EB1-9954-78EF6BC038F8','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100078622')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100078622','867530068','ACER08','2012','2012-01-04','2012-05-25','1',NULL,'A5D89F06-0694-4974-B24E-88E9C947900B','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional-Spring Semester',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2012-01-04' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional-Spring Semester' AND StudentUSI= '100078622')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '59','100078622','867530068','ACER08','2012','2012-01-04',NULL,'90.00',NULL,'18E2B445-9093-46F9-9D10-6D07B542739C','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional-Spring Semester','1','2012',NULL,'1600',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE Id='18E2B445-9093-46F9-9D10-6D07B542739C')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100078622',NULL,'Justin','A','Camarillo',NULL,NULL,'1997-01-12','Lubbock',NULL,NULL,NULL,'203451','E1C23D05-CAAA-4EB1-9954-78EF6BC038F8','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUniqueId='203451')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1604','uri://ed-fi.org/GradeTypeDescriptor','Semester','Semester','Semester',NULL,NULL,NULL,'9CEB375F-144C-426B-B7FD-38D682765585','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1604')); + INSERT INTO edfi.GradeTypeDescriptor(GradeTypeDescriptorId)(SELECT '1604' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeTypeDescriptor WHERE GradeTypeDescriptorId= '1604')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '60','uri://ed-fi.org/GradingPeriodDescriptor','First Semester','First Semester','First Semester',NULL,NULL,NULL,'95B5EB9C-FFC1-4EBB-B5A2-87EFD10628B6','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '60')); + INSERT INTO edfi.GradingPeriodDescriptor(GradingPeriodDescriptorId)(SELECT '60' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriodDescriptor WHERE GradingPeriodDescriptorId= '60')); + INSERT INTO edfi.GradingPeriod(GradingPeriodDescriptorId,SchoolId,BeginDate,TotalInstructionalDays,EndDate,PeriodSequence,Id,LastModifiedDate,CreateDate,SchoolYear,Discriminator)(SELECT '60','867530068','2011-08-22','82','2011-12-20','1','C8B4D6D9-D1BD-4BDD-ADDF-12D3561501F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','2012',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.GradingPeriod WHERE GradingPeriodDescriptorId= '60' AND PeriodSequence= '1' AND SchoolId= '867530068' AND SchoolYear= '2012')); + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'ACER08','867530068','2012','Art, Grade 8',NULL,'ACER08','867530068','9A6DB0F3-2F28-4953-9D11-3EBAAFC230B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530068','ACER08','2012','1',NULL,NULL,'0.000','159AC833-F3DE-404B-BD74-08F5DC5F8ACF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','1','867530068','107','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100083479',NULL,'Timothy','J','Pellum',NULL,NULL,'1997-11-21','Lubbock',NULL,NULL,NULL,'205689','1730E5EB-AC8D-497A-A6AE-230D37C1F5F9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100083479')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100083479','867530068','ACER08','2012','2011-08-22','2011-12-20','1',NULL,'D6F99342-3B09-4D34-A726-1388B7122E7D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM','1','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE BeginDate= '2011-08-22' AND LocalCourseCode= 'ACER08' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '1' AND SessionName= 'Traditional' AND StudentUSI= '100083479')); + INSERT INTO edfi.Grade(GradingPeriodDescriptorId,StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,LetterGradeEarned,NumericGradeEarned,DiagnosticStatement,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,GradingPeriodSequence,GradingPeriodSchoolYear,PerformanceBaseConversionDescriptorId,GradeTypeDescriptorId,Discriminator)(SELECT '60','100083479','867530068','ACER08','2012','2011-08-22',NULL,'79.00',NULL,'95FF5252-69CB-43E8-91DD-CB60AF3659E1','Sep 18 2015 11:52AM','Sep 18 2015 11:52AM','1','Traditional','1','2012',NULL,'1604',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Grade WHERE Id='95FF5252-69CB-43E8-91DD-CB60AF3659E1')); + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100083479',NULL,'Timothy','J','Pellum',NULL,NULL,'1997-11-21','Lubbock',NULL,NULL,NULL,'205689','1730E5EB-AC8D-497A-A6AE-230D37C1F5F9','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUniqueId='205689')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_3/0001_StudentSectionGradeFact_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_3/0001_StudentSectionGradeFact_should_match_column_dictionary.xml new file mode 100644 index 00000000..ee8c4408 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/StudentSectionGradeFact/PostgreSQL/v_3_3/0001_StudentSectionGradeFact_should_match_column_dictionary.xml @@ -0,0 +1,46 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'ews_studentsectiongradefact' + ORDER BY ORDINAL_POSITION ASC; + + + studentkey + character varying + + + schoolkey + character varying + + + gradingperiodkey + text + + + studentsectionkey + text + + + sectionkey + text + + + numericgradeearned + numeric + + + lettergradeearned + character varying + + + gradetype + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_2/0000_UserAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_2/0000_UserAuthorization_Data_Load.xml new file mode 100644 index 00000000..fcee2311 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_2/0000_UserAuthorization_Data_Load.xml @@ -0,0 +1,253 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'157','uri://ed-fi.org/StaffClassificationDescriptor','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='157')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'156','uri://ed-fi.org/StaffClassificationDescriptor','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='156')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'160','uri://ed-fi.org/StaffClassificationDescriptor','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='160')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '157')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '156')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '160')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530175','Emery Elementary School',NULL,NULL,'C9318F9D-72B2-4BC7-B473-054DF91EE0CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530175')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1027',NULL,'Gervis','L','Stargel',NULL,NULL,'1959-11-09','0','105','29.00',NULL,NULL,NULL,'11330','4E551DAB-CBD7-4183-8F7D-69FCD87D8ACF','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1027')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1027','867530175','156','2011-07-07','Principal Elementary School','2015-06-19',NULL,NULL,NULL,NULL,'FE5420B9-860E-46B1-A1DD-CDADB6550C90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='FE5420B9-860E-46B1-A1DD-CDADB6550C90')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1030',NULL,'Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00',NULL,'1',NULL,'11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1030')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1030','867530020','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'1E8140A9-C8E4-41AD-8D15-1BDC6110B8E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='1E8140A9-C8E4-41AD-8D15-1BDC6110B8E4')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'106','uri://ed-fi.org/LevelOfEducationDescriptor','Doctorate','Doctorate','Doctorate',NULL,NULL,NULL,'6E78DBF8-F9ED-4DA0-8DEE-3727C2FD5762','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '106')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'106' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '106')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'136076',NULL,'Gabbyann','O','Martins',NULL,NULL,'1963-08-27','0','106','13.00',NULL,NULL,NULL,'13449','D6C4C2B7-53A7-4C7F-9524-BB8913256FA2','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '136076')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'136076','867530','160','2011-04-28','Superintendent',NULL,NULL,NULL,NULL,NULL,'E8F5868F-3950-4CDB-AB48-C181819BF51D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='E8F5868F-3950-4CDB-AB48-C181819BF51D')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'161443',NULL,'Peter',NULL,'Foster',NULL,NULL,'1978-01-04','0','105','6.00',NULL,NULL,NULL,'13630','2BE2C105-F717-4FC0-8AD5-8EC24F67F5E7','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '161443')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'161443','867530175','156','2011-10-24','School Principal',NULL,NULL,NULL,NULL,NULL,'4A6E9B38-1FEA-4F0B-AFF5-F1D1D4EE4FD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='4A6E9B38-1FEA-4F0B-AFF5-F1D1D4EE4FD9')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530020','NCMR11','Music I Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E9F00C12-EA6B-400E-83FA-36F46E0860A0','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= 'NCMR11' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530020','2012','530','Traditional','2011-08-22','2011-12-20','82','5A3B8E35-D9A0-4BE6-864A-BB435F528198','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','F2A93A39-AF53-482B-858F-06E671926D93','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530020','108',NULL,NULL,'0A58614A-A9CD-4461-8535-1A5360FC359E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE Id='01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1130',NULL,'Elizabeth','T','Austin',NULL,NULL,'1980-04-16','0','102','6.00',NULL,'1',NULL,'11370','402C218E-5CE6-46E1-840E-67DED85ED8F5','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1130')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1130','867530007','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'79271C87-712D-4E00-8384-3F767E339D23','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE Id='79271C87-712D-4E00-8384-3F767E339D23')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530067','Mesa Verde Middle School',NULL,NULL,'A43D2EC7-9B1B-426E-9BA2-2DFF504E5B5B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530067')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1749',NULL,'Reina','O','Parrish',NULL,NULL,'1960-06-13','0','102','15.00',NULL,'1',NULL,'11606','866CB16D-9D51-47C8-92AE-600A89FDE378','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1749')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1749','867530067','157','2011-04-28','Middle School Teacher',NULL,NULL,NULL,NULL,NULL,'94569066-6916-47E3-B1D1-B1D8BC3C00D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE Id='94569066-6916-47E3-B1D1-B1D8BC3C00D7')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530067','XSSF06','Science, Grade 6','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'30068ED3-A125-468A-B751-446E485C4088','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= 'XSSF06' AND EducationOrganizationId= '867530067')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530067','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530067')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530067','2012','530','Traditional','2011-08-22','2011-12-20','82','5E3CEE82-485E-489C-AAF4-8F6A01C90BD1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF06','867530067','2012','Science, Grade 6',NULL,'XSSF06','867530067','10254D52-F513-400F-B270-97C73F8F0220','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530067','133',NULL,NULL,'577017E3-E8E5-443F-9B78-76345A5193B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '133' AND SchoolId= '867530067')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','1A8D5CD2-0E93-40F8-B324-000683193BDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BDC')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530067','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','93AA4834-C9EA-40A5-8553-BDE331731210','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' 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 TOP 1'XSSF06','867530067','2012','Science, Grade 6',NULL,'XSSF06','867530067','92779B50-B341-491F-A92A-CD9089856C8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','D310EE2A-E836-4DB4-AD3A-2676D73C7606','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='D310EE2A-E836-4DB4-AD3A-2676D73C7606')); + + 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 TOP 1'867530067','XSSF07','Science, Grade 7','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7BEAA579-C94E-4064-8EE1-C8C7FC81F466','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= 'XSSF07' AND EducationOrganizationId= '867530067')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF07','867530067','2012','Science, Grade 7',NULL,'XSSF07','867530067','5076E1B4-6947-41AF-8B1E-16DD67191B32','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF07' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF07','2012','1',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BDF')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + + 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 TOP 1'867530068','XSSF06','Science, Grade 6','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2B7C767A-9B48-46F8-B6A3-2961062F794D','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= 'XSSF06' AND EducationOrganizationId= '867530068')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF06','867530068','2012','Science, Grade 6',NULL,'XSSF06','867530068','E76EB151-A9D4-4C77-867E-D7D8125A1CC5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','XSSF06','2012','2',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BD5')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','1A8D5CD2-0E93-40F8-B324-000683193BDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SectionIdentifier= '18032' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1749','867530067','XSSF06','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'EAF3E74E-60CC-401F-8A23-330DA051BC68','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18032','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='EAF3E74E-60CC-401F-8A23-330DA051BC68')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','XSSF06','2012','2',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '18032' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1749','867530068','XSSF06','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'EAF3E74E-60CC-401F-8A23-330DA051BC67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18032','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='EAF3E74E-60CC-401F-8A23-330DA051BC67')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7352' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'1290EA89-2B7F-436B-8DCD-E92E9BF378F6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7352','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1290EA89-2B7F-436B-8DCD-E92E9BF378F6')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','701F5FDD-E92D-4047-9050-4D8306345676','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18033','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='701F5FDD-E92D-4047-9050-4D8306345676')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','D89D11BF-5478-49B4-9A37-F76CDEDAE320','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18033','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='D89D11BF-5478-49B4-9A37-F76CDEDAE320')); + + 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,Discriminator)(SELECT TOP 1'867530067','2011','530','Traditional','2011-08-22','2011-12-20','82','FCC5ACE2-D0BC-4E4C-9939-B83E64EE37B6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF06','867530067','2011','Science, Grade 6',NULL,'XSSF06','867530067','7141B0BB-DB6D-46F8-AB43-1A6777E435C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2011','1',NULL,NULL,'0.000','051AC3D4-AD94-4498-ABA6-31DBB8F30C2D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='051AC3D4-AD94-4498-ABA6-31DBB8F30C2D')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'288237',NULL,'Carrie','E','Gunter',NULL,NULL,'1963-03-17','0','105','0.00',NULL,'0',NULL,'14105','292EADF0-0D3A-4B5A-9D63-53ACFA13111D','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '288237')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'288237','867530067','157','2011-04-28','Middle School Teacher',NULL,NULL,NULL,NULL,NULL,'7FB73436-583C-4C28-9D77-FC956596045E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='7FB73436-583C-4C28-9D77-FC956596045E')); + + UPDATE edfi.StaffEducationOrganizationAssignmentAssociation SET enddate='2015-06-19' WHERE id='FE5420B9-860E-46B1-A1DD-CDADB6550C90' + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..1c06ca98 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_2/0001_view_should_match_column_dictionary.json @@ -0,0 +1,34 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'rls_UserAuthorization' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "UserKey", + "DataType": "nvarchar" + }, + { + "ColumnName": "UserScope", + "DataType": "varchar" + }, + { + "ColumnName": "StudentPermission", + "DataType": "varchar" + }, + { + "ColumnName": "SectionPermission", + "DataType": "varchar" + }, + { + "ColumnName": "SectionKeyPermission", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolPermission", + "DataType": "varchar" + }, + { + "ColumnName": "DistrictId", + "DataType": "int" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_3/0000_UserAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_3/0000_UserAuthorization_Data_Load.xml new file mode 100644 index 00000000..fcee2311 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_3/0000_UserAuthorization_Data_Load.xml @@ -0,0 +1,253 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'157','uri://ed-fi.org/StaffClassificationDescriptor','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='157')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'156','uri://ed-fi.org/StaffClassificationDescriptor','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='156')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'160','uri://ed-fi.org/StaffClassificationDescriptor','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='160')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '157')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '156')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '160')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530175','Emery Elementary School',NULL,NULL,'C9318F9D-72B2-4BC7-B473-054DF91EE0CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530175')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1027',NULL,'Gervis','L','Stargel',NULL,NULL,'1959-11-09','0','105','29.00',NULL,NULL,NULL,'11330','4E551DAB-CBD7-4183-8F7D-69FCD87D8ACF','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1027')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1027','867530175','156','2011-07-07','Principal Elementary School','2015-06-19',NULL,NULL,NULL,NULL,'FE5420B9-860E-46B1-A1DD-CDADB6550C90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='FE5420B9-860E-46B1-A1DD-CDADB6550C90')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1030',NULL,'Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00',NULL,'1',NULL,'11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1030')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1030','867530020','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'1E8140A9-C8E4-41AD-8D15-1BDC6110B8E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='1E8140A9-C8E4-41AD-8D15-1BDC6110B8E4')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'106','uri://ed-fi.org/LevelOfEducationDescriptor','Doctorate','Doctorate','Doctorate',NULL,NULL,NULL,'6E78DBF8-F9ED-4DA0-8DEE-3727C2FD5762','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '106')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'106' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '106')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'136076',NULL,'Gabbyann','O','Martins',NULL,NULL,'1963-08-27','0','106','13.00',NULL,NULL,NULL,'13449','D6C4C2B7-53A7-4C7F-9524-BB8913256FA2','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '136076')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'136076','867530','160','2011-04-28','Superintendent',NULL,NULL,NULL,NULL,NULL,'E8F5868F-3950-4CDB-AB48-C181819BF51D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='E8F5868F-3950-4CDB-AB48-C181819BF51D')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'161443',NULL,'Peter',NULL,'Foster',NULL,NULL,'1978-01-04','0','105','6.00',NULL,NULL,NULL,'13630','2BE2C105-F717-4FC0-8AD5-8EC24F67F5E7','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '161443')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'161443','867530175','156','2011-10-24','School Principal',NULL,NULL,NULL,NULL,NULL,'4A6E9B38-1FEA-4F0B-AFF5-F1D1D4EE4FD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='4A6E9B38-1FEA-4F0B-AFF5-F1D1D4EE4FD9')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530020','NCMR11','Music I Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E9F00C12-EA6B-400E-83FA-36F46E0860A0','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= 'NCMR11' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + 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'530','uri://ed-fi.org/TermDescriptor','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)(SELECT TOP 1'530' 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,Discriminator)(SELECT TOP 1'867530020','2012','530','Traditional','2011-08-22','2011-12-20','82','5A3B8E35-D9A0-4BE6-864A-BB435F528198','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','F2A93A39-AF53-482B-858F-06E671926D93','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530020','108',NULL,NULL,'0A58614A-A9CD-4461-8535-1A5360FC359E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE Id='01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1130',NULL,'Elizabeth','T','Austin',NULL,NULL,'1980-04-16','0','102','6.00',NULL,'1',NULL,'11370','402C218E-5CE6-46E1-840E-67DED85ED8F5','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1130')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1130','867530007','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'79271C87-712D-4E00-8384-3F767E339D23','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE Id='79271C87-712D-4E00-8384-3F767E339D23')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530067','Mesa Verde Middle School',NULL,NULL,'A43D2EC7-9B1B-426E-9BA2-2DFF504E5B5B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530067')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1749',NULL,'Reina','O','Parrish',NULL,NULL,'1960-06-13','0','102','15.00',NULL,'1',NULL,'11606','866CB16D-9D51-47C8-92AE-600A89FDE378','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1749')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1749','867530067','157','2011-04-28','Middle School Teacher',NULL,NULL,NULL,NULL,NULL,'94569066-6916-47E3-B1D1-B1D8BC3C00D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE Id='94569066-6916-47E3-B1D1-B1D8BC3C00D7')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530067','XSSF06','Science, Grade 6','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'30068ED3-A125-468A-B751-446E485C4088','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= 'XSSF06' AND EducationOrganizationId= '867530067')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530067','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530067')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530067','2012','530','Traditional','2011-08-22','2011-12-20','82','5E3CEE82-485E-489C-AAF4-8F6A01C90BD1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF06','867530067','2012','Science, Grade 6',NULL,'XSSF06','867530067','10254D52-F513-400F-B270-97C73F8F0220','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530067','133',NULL,NULL,'577017E3-E8E5-443F-9B78-76345A5193B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '133' AND SchoolId= '867530067')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','1A8D5CD2-0E93-40F8-B324-000683193BDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BDC')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(SELECT TOP 1'867530067','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','93AA4834-C9EA-40A5-8553-BDE331731210','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' 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 TOP 1'XSSF06','867530067','2012','Science, Grade 6',NULL,'XSSF06','867530067','92779B50-B341-491F-A92A-CD9089856C8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','D310EE2A-E836-4DB4-AD3A-2676D73C7606','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='D310EE2A-E836-4DB4-AD3A-2676D73C7606')); + + 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 TOP 1'867530067','XSSF07','Science, Grade 7','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7BEAA579-C94E-4064-8EE1-C8C7FC81F466','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= 'XSSF07' AND EducationOrganizationId= '867530067')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF07','867530067','2012','Science, Grade 7',NULL,'XSSF07','867530067','5076E1B4-6947-41AF-8B1E-16DD67191B32','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF07' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF07','2012','1',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BDF')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + + 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 TOP 1'867530068','XSSF06','Science, Grade 6','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2B7C767A-9B48-46F8-B6A3-2961062F794D','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= 'XSSF06' AND EducationOrganizationId= '867530068')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF06','867530068','2012','Science, Grade 6',NULL,'XSSF06','867530068','E76EB151-A9D4-4C77-867E-D7D8125A1CC5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','XSSF06','2012','2',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BD5')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','1A8D5CD2-0E93-40F8-B324-000683193BDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SectionIdentifier= '18032' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1749','867530067','XSSF06','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'EAF3E74E-60CC-401F-8A23-330DA051BC68','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18032','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='EAF3E74E-60CC-401F-8A23-330DA051BC68')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530068','XSSF06','2012','2',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '18032' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1749','867530068','XSSF06','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'EAF3E74E-60CC-401F-8A23-330DA051BC67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18032','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='EAF3E74E-60CC-401F-8A23-330DA051BC67')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7352' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1030','867530020','NCMR11','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'1290EA89-2B7F-436B-8DCD-E92E9BF378F6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7352','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1290EA89-2B7F-436B-8DCD-E92E9BF378F6')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','701F5FDD-E92D-4047-9050-4D8306345676','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18033','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='701F5FDD-E92D-4047-9050-4D8306345676')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2012','1',NULL,NULL,'0.000','D89D11BF-5478-49B4-9A37-F76CDEDAE320','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18033','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='D89D11BF-5478-49B4-9A37-F76CDEDAE320')); + + 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,Discriminator)(SELECT TOP 1'867530067','2011','530','Traditional','2011-08-22','2011-12-20','82','FCC5ACE2-D0BC-4E4C-9939-B83E64EE37B6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XSSF06','867530067','2011','Science, Grade 6',NULL,'XSSF06','867530067','7141B0BB-DB6D-46F8-AB43-1A6777E435C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530067','XSSF06','2011','1',NULL,NULL,'0.000','051AC3D4-AD94-4498-ABA6-31DBB8F30C2D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='051AC3D4-AD94-4498-ABA6-31DBB8F30C2D')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'288237',NULL,'Carrie','E','Gunter',NULL,NULL,'1963-03-17','0','105','0.00',NULL,'0',NULL,'14105','292EADF0-0D3A-4B5A-9D63-53ACFA13111D','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '288237')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'288237','867530067','157','2011-04-28','Middle School Teacher',NULL,NULL,NULL,NULL,NULL,'7FB73436-583C-4C28-9D77-FC956596045E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='7FB73436-583C-4C28-9D77-FC956596045E')); + + UPDATE edfi.StaffEducationOrganizationAssignmentAssociation SET enddate='2015-06-19' WHERE id='FE5420B9-860E-46B1-A1DD-CDADB6550C90' + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..1c06ca98 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/MSSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,34 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'rls_UserAuthorization' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "UserKey", + "DataType": "nvarchar" + }, + { + "ColumnName": "UserScope", + "DataType": "varchar" + }, + { + "ColumnName": "StudentPermission", + "DataType": "varchar" + }, + { + "ColumnName": "SectionPermission", + "DataType": "varchar" + }, + { + "ColumnName": "SectionKeyPermission", + "DataType": "nvarchar" + }, + { + "ColumnName": "SchoolPermission", + "DataType": "varchar" + }, + { + "ColumnName": "DistrictId", + "DataType": "int" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/PostgreSQL/v_3_3/0000_UserAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/PostgreSQL/v_3_3/0000_UserAuthorization_Data_Load.xml new file mode 100644 index 00000000..03283cb6 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/PostgreSQL/v_3_3/0000_UserAuthorization_Data_Load.xml @@ -0,0 +1,203 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '157','uri://ed-fi.org/StaffClassificationDescriptor','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='157')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '156','uri://ed-fi.org/StaffClassificationDescriptor','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='156')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '160','uri://ed-fi.org/StaffClassificationDescriptor','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId='160')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '157')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '156')); + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '160')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530175','Emery Elementary School',NULL,NULL,'C9318F9D-72B2-4BC7-B473-054DF91EE0CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530175')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1027',NULL,'Gervis','L','Stargel',NULL,NULL,'1959-11-09','0','105','29.00',NULL,NULL,NULL,'11330','4E551DAB-CBD7-4183-8F7D-69FCD87D8ACF','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1027')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1027','867530175','156','2011-07-07','Principal Elementary School','2015-06-19',NULL,NULL,NULL,NULL,'FE5420B9-860E-46B1-A1DD-CDADB6550C90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='FE5420B9-860E-46B1-A1DD-CDADB6550C90')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1030',NULL,'Lakonya','G','Higgins',NULL,NULL,'1963-11-10','1','105','26.00',NULL,'1',NULL,'11331','3EF98209-B7BB-48E2-9766-B86C7BD69219','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1030')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1030','867530020','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'1E8140A9-C8E4-41AD-8D15-1BDC6110B8E4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='1E8140A9-C8E4-41AD-8D15-1BDC6110B8E4')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '106','uri://ed-fi.org/LevelOfEducationDescriptor','Doctorate','Doctorate','Doctorate',NULL,NULL,NULL,'6E78DBF8-F9ED-4DA0-8DEE-3727C2FD5762','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '106')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '106' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '106')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '136076',NULL,'Gabbyann','O','Martins',NULL,NULL,'1963-08-27','0','106','13.00',NULL,NULL,NULL,'13449','D6C4C2B7-53A7-4C7F-9524-BB8913256FA2','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '136076')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '136076','867530','160','2011-04-28','Superintendent',NULL,NULL,NULL,NULL,NULL,'E8F5868F-3950-4CDB-AB48-C181819BF51D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='E8F5868F-3950-4CDB-AB48-C181819BF51D')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '161443',NULL,'Peter',NULL,'Foster',NULL,NULL,'1978-01-04','0','105','6.00',NULL,NULL,NULL,'13630','2BE2C105-F717-4FC0-8AD5-8EC24F67F5E7','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '161443')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '161443','867530175','156','2011-10-24','School Principal',NULL,NULL,NULL,NULL,NULL,'4A6E9B38-1FEA-4F0B-AFF5-F1D1D4EE4FD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='4A6E9B38-1FEA-4F0B-AFF5-F1D1D4EE4FD9')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 '867530020','NCMR11','Music I Choir (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E9F00C12-EA6B-400E-83FA-36F46E0860A0','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= 'NCMR11' AND EducationOrganizationId= '867530020')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '530','uri://ed-fi.org/TermDescriptor','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')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '530' 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,Discriminator)(SELECT '867530020','2012','530','Traditional','2011-08-22','2011-12-20','82','5A3B8E35-D9A0-4BE6-864A-BB435F528198','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'NCMR11','867530020','2012','Music I Choir (1 Unit)',NULL,'NCMR11','867530020','F2A93A39-AF53-482B-858F-06E671926D93','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530020','108',NULL,NULL,'0A58614A-A9CD-4461-8535-1A5360FC359E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '108' AND SchoolId= '867530020')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE Id='01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530007','Badger Springs',NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '102','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1130',NULL,'Elizabeth','T','Austin',NULL,NULL,'1980-04-16','0','102','6.00',NULL,'1',NULL,'11370','402C218E-5CE6-46E1-840E-67DED85ED8F5','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1130')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1130','867530007','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'79271C87-712D-4E00-8384-3F767E339D23','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE Id='79271C87-712D-4E00-8384-3F767E339D23')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530067','Mesa Verde Middle School',NULL,NULL,'A43D2EC7-9B1B-426E-9BA2-2DFF504E5B5B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530067')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1749',NULL,'Reina','O','Parrish',NULL,NULL,'1960-06-13','0','102','15.00',NULL,'1',NULL,'11606','866CB16D-9D51-47C8-92AE-600A89FDE378','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1749')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1749','867530067','157','2011-04-28','Middle School Teacher',NULL,NULL,NULL,NULL,NULL,'94569066-6916-47E3-B1D1-B1D8BC3C00D7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE Id='94569066-6916-47E3-B1D1-B1D8BC3C00D7')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '10','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 '867530067','XSSF06','Science, Grade 6','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'30068ED3-A125-468A-B751-446E485C4088','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= 'XSSF06' AND EducationOrganizationId= '867530067')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530067','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530067')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530067','2012','530','Traditional','2011-08-22','2011-12-20','82','5E3CEE82-485E-489C-AAF4-8F6A01C90BD1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSSF06','867530067','2012','Science, Grade 6',NULL,'XSSF06','867530067','10254D52-F513-400F-B270-97C73F8F0220','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530067','133',NULL,NULL,'577017E3-E8E5-443F-9B78-76345A5193B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '133' AND SchoolId= '867530067')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF06','2012','1',NULL,NULL,'0.000','1A8D5CD2-0E93-40F8-B324-000683193BDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BDC')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '867530067','2012','535','Traditional-Spring Semester','2012-01-05','2012-05-25','93','93AA4834-C9EA-40A5-8553-BDE331731210','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' 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 'XSSF06','867530067','2012','Science, Grade 6',NULL,'XSSF06','867530067','92779B50-B341-491F-A92A-CD9089856C8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF06','2012','1',NULL,NULL,'0.000','D310EE2A-E836-4DB4-AD3A-2676D73C7606','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='D310EE2A-E836-4DB4-AD3A-2676D73C7606')); + + 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 '867530067','XSSF07','Science, Grade 7','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7BEAA579-C94E-4064-8EE1-C8C7FC81F466','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= 'XSSF07' AND EducationOrganizationId= '867530067')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSSF07','867530067','2012','Science, Grade 7',NULL,'XSSF07','867530067','5076E1B4-6947-41AF-8B1E-16DD67191B32','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF07' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF07','2012','1',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BDF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BDF')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530068','James Monroe Middle School',NULL,NULL,'3706C153-5CE2-429D-B73E-139496548673','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530068')); + + 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 '867530068','XSSF06','Science, Grade 6','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2B7C767A-9B48-46F8-B6A3-2961062F794D','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= 'XSSF06' AND EducationOrganizationId= '867530068')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530068','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530068')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530068','2012','530','Traditional','2011-08-22','2011-12-20','82','BBBBF7A7-84AD-4642-9B65-997222EEBA3E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSSF06','867530068','2012','Science, Grade 6',NULL,'XSSF06','867530068','E76EB151-A9D4-4C77-867E-D7D8125A1CC5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530068','XSSF06','2012','2',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='1A8D5CD2-0E93-40F8-B324-000683193BD5')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '127','uri://ed-fi.org/ClassroomPositionDescriptor','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')); + + INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId)(SELECT '127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF06','2012','1',NULL,NULL,'0.000','1A8D5CD2-0E93-40F8-B324-000683193BDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2012' AND SectionIdentifier= '18032' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1749','867530067','XSSF06','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'EAF3E74E-60CC-401F-8A23-330DA051BC68','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18032','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='EAF3E74E-60CC-401F-8A23-330DA051BC68')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530068','XSSF06','2012','2',NULL,NULL,'1.000','1A8D5CD2-0E93-40F8-B324-000683193BD5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530068' AND SchoolYear= '2012' AND SectionIdentifier= '18032' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1749','867530068','XSSF06','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'EAF3E74E-60CC-401F-8A23-330DA051BC67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','18032','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='EAF3E74E-60CC-401F-8A23-330DA051BC67')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530020','NCMR11','2012','1',NULL,NULL,'1.000','01FD022C-1BAA-4FA6-B372-0BF7ACFF98FA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','7352','867530020','108','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'NCMR11' AND SchoolId= '867530020' AND SchoolYear= '2012' AND SectionIdentifier= '7352' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1030','867530020','NCMR11','2012','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'1290EA89-2B7F-436B-8DCD-E92E9BF378F6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','7352','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='1290EA89-2B7F-436B-8DCD-E92E9BF378F6')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF06','2012','1',NULL,NULL,'0.000','701F5FDD-E92D-4047-9050-4D8306345676','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18033','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='701F5FDD-E92D-4047-9050-4D8306345676')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF06','2012','1',NULL,NULL,'0.000','D89D11BF-5478-49B4-9A37-F76CDEDAE320','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester','18033','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='D89D11BF-5478-49B4-9A37-F76CDEDAE320')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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,Discriminator)(SELECT '867530067','2011','530','Traditional','2011-08-22','2011-12-20','82','FCC5ACE2-D0BC-4E4C-9939-B83E64EE37B6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530067' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XSSF06','867530067','2011','Science, Grade 6',NULL,'XSSF06','867530067','7141B0BB-DB6D-46F8-AB43-1A6777E435C7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XSSF06' AND SchoolId= '867530067' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530067','XSSF06','2011','1',NULL,NULL,'0.000','051AC3D4-AD94-4498-ABA6-31DBB8F30C2D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','18032','867530067','133','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='051AC3D4-AD94-4498-ABA6-31DBB8F30C2D')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '288237',NULL,'Carrie','E','Gunter',NULL,NULL,'1963-03-17','0','105','0.00',NULL,'0',NULL,'14105','292EADF0-0D3A-4B5A-9D63-53ACFA13111D','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '288237')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '288237','867530067','157','2011-04-28','Middle School Teacher',NULL,NULL,NULL,NULL,NULL,'7FB73436-583C-4C28-9D77-FC956596045E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id='7FB73436-583C-4C28-9D77-FC956596045E')); + + UPDATE edfi.StaffEducationOrganizationAssignmentAssociation SET enddate='2015-06-19' WHERE id='FE5420B9-860E-46B1-A1DD-CDADB6550C90' + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json new file mode 100644 index 00000000..bbf22641 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserAuthorization/PostgreSQL/v_3_3/0001_view_should_match_column_dictionary.json @@ -0,0 +1,34 @@ +{ + "DBMS": "Any", + "Query": "SELECT COLUMN_NAME AS ColumnName, DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' AND table_name = 'rls_userauthorization' ORDER BY ORDINAL_POSITION ASC;", + "Result": [ + { + "ColumnName": "userkey", + "DataType": "character varying" + }, + { + "ColumnName": "userscope", + "DataType": "character varying" + }, + { + "ColumnName": "studentpermission", + "DataType": "text" + }, + { + "ColumnName": "sectionpermission", + "DataType": "character varying" + }, + { + "ColumnName": "sectionkeypermission", + "DataType": "text" + }, + { + "ColumnName": "schoolpermission", + "DataType": "character varying" + }, + { + "ColumnName": "districtid", + "DataType": "integer" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_2/0000_UserDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_2/0000_UserDim_Data_Load.xml new file mode 100644 index 00000000..d4f9d082 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_2/0000_UserDim_Data_Load.xml @@ -0,0 +1,67 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + 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'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1009','teresa.hood@edfi.org',NULL,'Feb 1 2015 12:00AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1009 AND ElectronicMailTypeDescriptorId =1589)); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1401',NULL,'Zenaida','R','Kenny',NULL,NULL,'1982-08-11','1','102','6.00',NULL,'1',NULL,'11472','B2C93CF6-63A3-4BFA-B26C-EDB079FD5865','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1401')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1401','zenaida.kenny@edfi.org',NULL,'Sep 18 2015 11:34AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1401 AND ElectronicMailTypeDescriptorId =1589)); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1401','zenaida.kenny@gmail.com',NULL,'Sep 18 2015 11:34AM',NULL,'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1401 AND ElectronicMailTypeDescriptorId =1586)); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1086',NULL,'Jennifer','U','Devito',NULL,NULL,'1972-06-14','0','105','10.00',NULL,'1',NULL,'11358','5404E7C3-B9BD-424F-ACFE-E6F1617139D0','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1086')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1086','jennifer.devito@edfi.org',NULL,'Sep 18 2016 12:00AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1086 AND ElectronicMailTypeDescriptorId =1589)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_2/0001_UserDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_2/0001_UserDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..0e3d855d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_2/0001_UserDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'rls_UserDim' + ORDER BY ORDINAL_POSITION ASC; + + + UserKey + nvarchar + + + UserEmail + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_3/0000_UserDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_3/0000_UserDim_Data_Load.xml new file mode 100644 index 00000000..d4f9d082 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_3/0000_UserDim_Data_Load.xml @@ -0,0 +1,67 @@ + + + Any + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + 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'1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1009','teresa.hood@edfi.org',NULL,'Feb 1 2015 12:00AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1009 AND ElectronicMailTypeDescriptorId =1589)); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1401',NULL,'Zenaida','R','Kenny',NULL,NULL,'1982-08-11','1','102','6.00',NULL,'1',NULL,'11472','B2C93CF6-63A3-4BFA-B26C-EDB079FD5865','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1401')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1401','zenaida.kenny@edfi.org',NULL,'Sep 18 2015 11:34AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1401 AND ElectronicMailTypeDescriptorId =1589)); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT TOP 1'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1401','zenaida.kenny@gmail.com',NULL,'Sep 18 2015 11:34AM',NULL,'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1401 AND ElectronicMailTypeDescriptorId =1586)); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1086',NULL,'Jennifer','U','Devito',NULL,NULL,'1972-06-14','0','105','10.00',NULL,'1',NULL,'11358','5404E7C3-B9BD-424F-ACFE-E6F1617139D0','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1086')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT TOP 1'1086','jennifer.devito@edfi.org',NULL,'Sep 18 2016 12:00AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1086 AND ElectronicMailTypeDescriptorId =1589)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_3/0001_UserDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_3/0001_UserDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..0e3d855d --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/MSSQL/v_3_3/0001_UserDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'rls_UserDim' + ORDER BY ORDINAL_POSITION ASC; + + + UserKey + nvarchar + + + UserEmail + nvarchar + + + LastModifiedDate + datetime2 + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/PostgreSQL/v_3_3/0000_UserDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/PostgreSQL/v_3_3/0000_UserDim_Data_Load.xml new file mode 100644 index 00000000..e812a72b --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/PostgreSQL/v_3_3/0000_UserDim_Data_Load.xml @@ -0,0 +1,47 @@ + + + Any + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1586','uri://ed-fi.org/ElectronicMailTypeDescriptor','Home/Personal','Home/Personal','Home/Personal',NULL,NULL,NULL,'55C70BD5-D46A-4798-AE8D-D2989DA9DB0F','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1586')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1589','uri://ed-fi.org/ElectronicMailTypeDescriptor','Work','Work','Work',NULL,NULL,NULL,'2E66FEA2-2FF6-49CE-84FD-1CD56141F621','Jun 19 2015 11:41AM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1589')); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT '1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1589')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '1009','teresa.hood@edfi.org',NULL,'Feb 1 2015 12:00AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1009 AND ElectronicMailTypeDescriptorId =1589)); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '102','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1401',NULL,'Zenaida','R','Kenny',NULL,NULL,'1982-08-11','1','102','6.00',NULL,'1',NULL,'11472','B2C93CF6-63A3-4BFA-B26C-EDB079FD5865','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1401')); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '1401','zenaida.kenny@edfi.org',NULL,'Sep 18 2015 11:34AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1401 AND ElectronicMailTypeDescriptorId =1589)); + + INSERT INTO edfi.ElectronicMailTypeDescriptor(ElectronicMailTypeDescriptorId)(SELECT '1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.ElectronicMailTypeDescriptor WHERE ElectronicMailTypeDescriptorId= '1586')); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '1401','zenaida.kenny@gmail.com',NULL,'Sep 18 2015 11:34AM',NULL,'1586' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1401 AND ElectronicMailTypeDescriptorId =1586)); + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1086',NULL,'Jennifer','U','Devito',NULL,NULL,'1972-06-14','0','105','10.00',NULL,'1',NULL,'11358','5404E7C3-B9BD-424F-ACFE-E6F1617139D0','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1086')); + + INSERT INTO edfi.StaffElectronicMail(StaffUSI,ElectronicMailAddress,PrimaryEmailAddressIndicator,CreateDate,DoNotPublishIndicator,ElectronicMailTypeDescriptorId)(SELECT '1086','jennifer.devito@edfi.org',NULL,'Sep 18 2016 12:00AM',NULL,'1589' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffElectronicMail WHERE StaffUSI=1086 AND ElectronicMailTypeDescriptorId =1589)); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/PostgreSQL/v_3_3/0001_UserDim_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/PostgreSQL/v_3_3/0001_UserDim_should_match_column_dictionary.xml new file mode 100644 index 00000000..7aaea315 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserDim/PostgreSQL/v_3_3/0001_UserDim_should_match_column_dictionary.xml @@ -0,0 +1,26 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'rls_userdim' + ORDER BY ORDINAL_POSITION ASC; + + + userkey + character varying + + + useremail + character varying + + + lastmodifieddate + timestamp without time zone + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml index 1558b876..be3ba82f 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml @@ -8,7 +8,7 @@ DATA_TYPE AS DataType FROM information_schema.columns WHERE table_schema = 'analytics' - AND table_name = 'UserStudentDataAuthorization' + AND table_name = 'rls_UserStudentDataAuthorization' ORDER BY ORDINAL_POSITION ASC; diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_1/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_1/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_2/0000_UserStudentDataAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_2/0000_UserStudentDataAuthorization_Data_Load.xml new file mode 100644 index 00000000..d5b96eca --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_2/0000_UserStudentDataAuthorization_Data_Load.xml @@ -0,0 +1,405 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530966','Lathrop',NULL,NULL,'3DB9E005-E37F-40F4-A464-111E1BB83F90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530966')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530966','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530966')); + + 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'540','uri://ed-fi.org/TermDescriptor','MiniTerm','MiniTerm','MiniTerm',NULL,NULL,NULL,'45E4AC08-0898-4C1C-81F3-ECEAEEB88474','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '540')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'540' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '540')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','2012','540','Traditional','2011-08-22','2011-12-20','82','7C4AAD4A-13BE-4711-B94F-CCA89A039EE5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '7C4AAD4A-13BE-4711-B94F-CCA89A039EE5')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530966','XLTV31','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'31EC8413-F052-4F54-A480-3CCB537A6289','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 id = '31EC8413-F052-4F54-A480-3CCB537A6289')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530966','A01','FC343021-68B4-4A3B-9F20-0CADE273D1B1','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id = 'FC343021-68B4-4A3B-9F20-0CADE273D1B1')); + + 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 TOP 1'867530966','XLTV31','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'31EC8413-F052-4F54-A480-3CCB537A6289','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= 'XLTV31' AND EducationOrganizationId= '867530966')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','2012','540','Traditional','2011-08-22','2011-12-20','82','7C4AAD4A-13BE-4711-B94F-CCA89A039EE5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','436B05C6-F9EB-4A60-AF8A-031F5B82C39D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '436B05C6-F9EB-4A60-AF8A-031F5B82C39D')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','702',NULL,NULL,'46946A71-F485-4786-B3C2-9483EA97E25B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE id = '46946A71-F485-4786-B3C2-9483EA97E25B')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','436B05C6-F9EB-4A60-AF8A-031F5B82C39D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','702',NULL,NULL,'46946A71-F485-4786-B3C2-9483EA97E25B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530966')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530966','XLTV31','2012','1',NULL,NULL,'1.000','6C39BD46-32BA-48DD-908C-76B89C81707B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '6C39BD46-32BA-48DD-908C-76B89C81707B')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 TOP 1'867530010','XLTV31','FUNCT VOC 11','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B220E503-811A-4763-AAEC-551B8CC18E1F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV31' AND EducationOrganizationId= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2012','540','SHORT','2012-05-10','2012-06-09','27','BCBFEB9F-7EC2-468C-B4A0-6093641CFC66','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','FUNCT VOC 11',NULL,'XLTV31','867530010','2943C518-FEC9-446E-AC3C-BDB5F68C0C42','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','702',NULL,NULL,'E25004BE-3043-4752-82AB-84E5B09EAC50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,NULL,'822CA8DD-05EC-4D7E-BC1E-7FA9310455EC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14138','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '822CA8DD-05EC-4D7E-BC1E-7FA9310455EC')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','703',NULL,NULL,'63C8020E-37F1-4C8F-AD92-3A55A6440537','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE id = '63C8020E-37F1-4C8F-AD92-3A55A6440537')); + + 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 TOP 1'867530010','XLTV51','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A522FCF1-5B5A-4FED-823C-BFD5CB872270','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 id = 'A522FCF1-5B5A-4FED-823C-BFD5CB872270')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV51','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','ED3401FD-5AD1-4968-8D6D-7636F6B263F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'ED3401FD-5AD1-4968-8D6D-7636F6B263F1')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV51','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','ED3401FD-5AD1-4968-8D6D-7636F6B263F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV51' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV51','2012','1',NULL,NULL,'1.000','54D3435A-E29B-49B7-83BE-E622B7B48203','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '54D3435A-E29B-49B7-83BE-E622B7B48203')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '8729D3F4-FA81-4AAA-9583-BA432A848D51')); + + 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,Discriminator)(SELECT TOP 1'867530010','2011','540','Traditional','2011-08-22','2011-12-20','82','75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2011','540','Traditional','2011-08-22','2011-12-20','82','75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2011','Art, Grade 8',NULL,'XLTV31','867530010','1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2011','Art, Grade 8',NULL,'XLTV31','867530010','1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2011','1',NULL,NULL,'1.000','9A3A7C4E-B447-4A59-A209-12E79843F493','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '9A3A7C4E-B447-4A59-A209-12E79843F493')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '72A1572F-466E-487F-A4BB-3907E9B0FE96')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','DA21FC2B-295F-45D6-98FC-5FFB960BC6DC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = 'DA21FC2B-295F-45D6-98FC-5FFB960BC6DC')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2028',NULL,'Lakedra','M','Labbe',NULL,NULL,'1961-09-04','0','105','13.00',NULL,'1',NULL,'11721','AAB17FCB-35FE-4D2F-91B9-48CE20F93FC3','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2028')); + SET IDENTITY_INSERT edfi.Staff 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'157','uri://ed-fi.org/StaffClassificationDescriptor','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '157')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'2028','867530010','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'3C090A3B-66D2-49D4-A922-94A053939466','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '3C090A3B-66D2-49D4-A922-94A053939466')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'2028','867530966','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'45330DC0-244F-4E73-8B4B-4CED8D9D5DDC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '45330DC0-244F-4E73-8B4B-4CED8D9D5DDC')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'160','uri://ed-fi.org/StaffClassificationDescriptor','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '160')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'156','uri://ed-fi.org/StaffClassificationDescriptor','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '156')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'158','uri://ed-fi.org/StaffClassificationDescriptor','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'6CDD69AC-577F-48A1-9D61-B258601FE7DA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '158')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'158' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '158')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530966','XLTV31','2012','1',NULL,NULL,'1.000','6C39BD46-32BA-48DD-908C-76B89C81707B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530966','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'11499779-1CF5-4042-B059-61FC6EC20C3D','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '11499779-1CF5-4042-B059-61FC6EC20C3D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','DA21FC2B-295F-45D6-98FC-5FFB960BC6DC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'D406F31D-2799-47B5-BDD6-5CA1244DCC0D','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'D406F31D-2799-47B5-BDD6-5CA1244DCC0D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV51','2012','1',NULL,NULL,'1.000','54D3435A-E29B-49B7-83BE-E622B7B48203','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV51' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV51','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'64642E1E-E7EF-44B9-B027-374BF0DD423F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '64642E1E-E7EF-44B9-B027-374BF0DD423F')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14139' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'432F6FB1-291A-408F-8023-D95187E2E2D9','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '432F6FB1-291A-408F-8023-D95187E2E2D9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2011','1',NULL,NULL,'1.000','9A3A7C4E-B447-4A59-A209-12E79843F493','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'1DB24665-BCF9-44B1-A23B-E1F7502F3CDD','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '1DB24665-BCF9-44B1-A23B-E1F7502F3CDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,NULL,'822CA8DD-05EC-4D7E-BC1E-7FA9310455EC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14138','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100109923',NULL,'Marilyn','X','Crate',NULL,NULL,'1992-11-08',NULL,NULL,NULL,NULL,'218268','EE7DA957-9660-4F29-B100-F629B82FCEB3','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109923')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109923','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'CE30BB40-AFA8-43F9-BE8C-D92EC2C24BB5','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = 'CE30BB40-AFA8-43F9-BE8C-D92EC2C24BB5')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100109925',NULL,'Sherri','O','Jorgenson',NULL,NULL,'2000-04-13',NULL,NULL,NULL,NULL,'218269','56D72FAD-F83F-406D-A075-5F6E062BA74A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109925')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'50F2E605-EC54-47E1-B629-AB92484F14DF','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '50F2E605-EC54-47E1-B629-AB92484F14DF')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV51','2012','2012-05-10',NULL,NULL,NULL,'3962C03B-EE4F-48B8-8644-70FAAAF3A865','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '3962C03B-EE4F-48B8-8644-70FAAAF3A865')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'3D8A12C4-2652-4DC7-A77E-57680B987E31','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '3D8A12C4-2652-4DC7-A77E-57680B987E31')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV31','2011','2012-05-10',NULL,NULL,NULL,'49EDE6F6-1B31-4B99-B53F-8062D2FD0C53','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '49EDE6F6-1B31-4B99-B53F-8062D2FD0C53')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530010','XLTS41','FUN SCI 12','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1D9DB781-E501-423D-A473-EAFEF622362A','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTS41' AND EducationOrganizationId= '867530010')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTS41','867530010','2012','FUN SCI 12',NULL,'XLTS41','867530010','C0F0D784-1DB1-48E9-A31B-10E1BFCFCEBB','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTS41' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTS41','2012','1',NULL,NULL,NULL,'49340B0B-3CB1-4C95-9A66-081CB995134F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14082','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTS41' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14082' AND SessionName= 'SHORT')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100109929',NULL,'Ross',NULL,'Mcgee',NULL,NULL,'1997-07-05',NULL,NULL,NULL,NULL,'218271','9E5AABD5-5267-401A-8F6E-438B50C4C6E2','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109929')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109929','867530010','XLTS41','2012','2012-05-10',NULL,NULL,NULL,'227405F7-D726-406F-B613-C66D1EA931AA','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14082','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '227405F7-D726-406F-B613-C66D1EA931AA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109929','867530010','XLTV31','2012','2012-05-10','2025-05-10',NULL,NULL,'A9842111-FE42-4A17-BB3E-7B470349E6BA','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = 'A9842111-FE42-4A17-BB3E-7B470349E6BA')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1348',NULL,'Kevin',NULL,'Little',NULL,NULL,'1939-03-11','0','105','49.00',NULL,'1',NULL,'11453','2277E5CD-3E6A-41CF-A138-A6EB05EBA8A4','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1348')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1348','867530010','157','2011-04-28','High School Teacher','2025-11-20',NULL,NULL,NULL,NULL,'589F784C-B7E4-487C-9C51-368C3C760881','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '589F784C-B7E4-487C-9C51-368C3C760881')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1009','867530010','160','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'8714DD85-AFBF-4E12-98EA-2DE587E0CBDD','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '8714DD85-AFBF-4E12-98EA-2DE587E0CBDD')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1009','867530','160','2011-04-28','Superintendent',NULL,NULL,NULL,NULL,NULL,'94F724DB-A119-40FE-B8BC-B00360EC56AC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '94F724DB-A119-40FE-B8BC-B00360EC56AC')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1009','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'FA20D582-5898-4A8C-B05F-546532C0BEE3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'FA20D582-5898-4A8C-B05F-546532C0BEE3')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1348','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'E6C0F88A-2DF7-4335-8AF4-52D69A28FE87','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'E6C0F88A-2DF7-4335-8AF4-52D69A28FE87')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100023228',NULL,'Claudio','C','Roche',NULL,NULL,'1990-11-27',NULL,NULL,NULL,NULL,'190019','0F61EFBC-7AFC-4E49-A5EE-87E423432876','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100023228')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100023228','867530010',NULL,'2012-05-10','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1D3FA61F-0B4A-4FBB-927A-314819FD3276','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id = '1D3FA61F-0B4A-4FBB-927A-314819FD3276')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100109929','867530010',NULL,'2012-05-15','31',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73AF169A-A909-4F63-A9CE-CFEFC4E55271','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id = '73AF169A-A909-4F63-A9CE-CFEFC4E55271')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1447',NULL,'Annette','C','Gillen',NULL,NULL,'1974-08-05','0','105','14.00',NULL,'1',NULL,'11492','E8303E9B-4613-41D3-B06B-5D724F926DF0','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1447')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1447','867530010','160','2011-04-28','Superintendent','2019-11-01',NULL,NULL,NULL,NULL,'3936E58B-6D97-457D-A878-634BB1335440','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '3936E58B-6D97-457D-A878-634BB1335440')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1447','867530','160','2011-04-28','Superintendent','2019-11-21',NULL,NULL,NULL,NULL,'A6FE178E-5C2A-4BBD-AD06-1D98CF8E64B3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = 'A6FE178E-5C2A-4BBD-AD06-1D98CF8E64B3')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1447','867530','156','2011-04-28','Principal',NULL,NULL,NULL,NULL,NULL,'7351F958-2492-4AAF-AE00-1DECE9987EE6','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '7351F958-2492-4AAF-AE00-1DECE9987EE6')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063371',NULL,'Esther','V','Labbe',NULL,NULL,'1993-04-21',NULL,NULL,NULL,NULL,'197184','2AA8A972-6490-483A-B5AF-DE43A3E22706','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063371')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063371','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','94B15370-73C9-4E36-A36F-22EDBF563CF6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = '94B15370-73C9-4E36-A36F-22EDBF563CF6')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063218',NULL,'Keith','E','Dearth',NULL,NULL,'1994-10-18','Lubbock',NULL,NULL,NULL,'197085','86C8C6D2-B150-4CC5-AE52-60A4B7F2CCA2','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063218')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063218','867530020',NULL,'2011-08-22','24',NULL,NULL,NULL,'2019-11-01',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','E6CC8EE7-4CAC-4398-AEA1-0267F98265A9','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = 'E6CC8EE7-4CAC-4398-AEA1-0267F98265A9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3175',NULL,'Anne','V','Lamar',NULL,NULL,'1962-02-06','1','105','26.00',NULL,NULL,NULL,'12143','A0976ECB-5857-45F7-BB3C-B66137D6E9F7','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3175')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'3175','867530011','156','2011-04-28','Principal High School',NULL,NULL,NULL,NULL,NULL,'C9650B65-1ED2-4D56-9AB9-4DAAC273CA5D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = 'C9650B65-1ED2-4D56-9AB9-4DAAC273CA5D')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4149',NULL,'Sandra','O','Bedard',NULL,NULL,'1954-03-20','0','105','25.00',NULL,NULL,NULL,'12497','36FE68F9-6884-4772-8D75-B973E2BB2E9A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4149')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'4149','867530020','156','2011-04-28','Principal High School','2019-11-01',NULL,NULL,NULL,NULL,'760A015A-E9D7-4AC0-8955-6F0836F0D68B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = '760A015A-E9D7-4AC0-8955-6F0836F0D68B')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'3175','867530020','156','2011-04-28','Principal High School',NULL,NULL,NULL,NULL,NULL,'F4DB540F-D50C-4E97-A4BF-6EDA86214AFF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = 'F4DB540F-D50C-4E97-A4BF-6EDA86214AFF')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'20276567',NULL,'Brandy',NULL,'Blue',NULL,NULL,'1985-02-19','0','102','0.00',NULL,'0',NULL,'14162','FA5A3285-B77B-41D8-B2DD-49E42329E7AB','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '20276567')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'20276567','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'8986F407-C11A-4C04-B6C6-AE579A7C510F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '8986F407-C11A-4C04-B6C6-AE579A7C510F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530060','Belvedeer Middle School',NULL,NULL,'EA6C38E6-ABC4-4527-8D65-FBD1C1BDE296','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530060')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'20276567','867530060','158','2012-05-22','Substitute',NULL,NULL,NULL,NULL,NULL,'6BB13AD5-D89C-495F-80D8-CE135CBC36B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '6BB13AD5-D89C-495F-80D8-CE135CBC36B5')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'140527',NULL,'Lydia',NULL,'Mcdaniels',NULL,NULL,'1980-07-14','0','105','1.00',NULL,'1',NULL,'13493','9DD6B002-420F-4484-83B9-708DF28FC403','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '140527')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'140527','867530010','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'EEC82563-643D-4032-B16F-268215A7CAA0','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = 'EEC82563-643D-4032-B16F-268215A7CAA0')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100023228',NULL,'Claudio','C','Roche',NULL,NULL,'1990-11-27',NULL,NULL,NULL,NULL,'190019','0F61EFBC-7AFC-4E49-A5EE-87E423432876','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE id='0F61EFBC-7AFC-4E49-A5EE-87E423432876')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','2012','540','SHORT','2011-08-22','2011-12-20','82','4594078C-1C67-4261-A20B-D9F11B8AFDB7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','4E760B35-4581-464F-8205-CE35E062F1A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530966','XLTV31','2012','1',NULL,NULL,'1.000','864376B6-6AE9-4BD2-BC17-2DDC9DBBF410','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530966','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'AB69E1B6-78C3-45E5-97C6-D20F10C684BC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='AB69E1B6-78C3-45E5-97C6-D20F10C684BC')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100023228','867530010','XLTV31','2012','2012-05-10','2012-05-10',NULL,NULL,'74F65A0A-AFF6-4DED-9734-60CA522C4F50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='74F65A0A-AFF6-4DED-9734-60CA522C4F50')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2011','540','SHORT','2012-05-10','2012-06-09','27','BC76AB27-E076-4447-9BC3-01B62CFFDC59','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2011','FUNCT VOC 11',NULL,'XLTV31','867530010','C619D4BC-1EB4-456D-8397-D72F7037F9B7','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2011','1',NULL,NULL,'1.000','06C869F3-283C-4C4A-AF19-5893AB283B01','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'E9227B4E-B23C-4C65-9A87-6E61E3CD41AB','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E9227B4E-B23C-4C65-9A87-6E61E3CD41AB')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml new file mode 100644 index 00000000..be3ba82f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'rls_UserStudentDataAuthorization' + ORDER BY ORDINAL_POSITION ASC; + + + UserKey + nvarchar + + + StudentKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_3/0000_UserStudentDataAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_3/0000_UserStudentDataAuthorization_Data_Load.xml new file mode 100644 index 00000000..d5b96eca --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_3/0000_UserStudentDataAuthorization_Data_Load.xml @@ -0,0 +1,405 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530966','Lathrop',NULL,NULL,'3DB9E005-E37F-40F4-A464-111E1BB83F90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530966')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' 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')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT TOP 1'1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530966','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530966')); + + 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'540','uri://ed-fi.org/TermDescriptor','MiniTerm','MiniTerm','MiniTerm',NULL,NULL,NULL,'45E4AC08-0898-4C1C-81F3-ECEAEEB88474','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '540')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'540' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '540')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','2012','540','Traditional','2011-08-22','2011-12-20','82','7C4AAD4A-13BE-4711-B94F-CCA89A039EE5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '7C4AAD4A-13BE-4711-B94F-CCA89A039EE5')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 TOP 1'867530966','XLTV31','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'31EC8413-F052-4F54-A480-3CCB537A6289','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 id = '31EC8413-F052-4F54-A480-3CCB537A6289')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT TOP 1'867530966','A01','FC343021-68B4-4A3B-9F20-0CADE273D1B1','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id = 'FC343021-68B4-4A3B-9F20-0CADE273D1B1')); + + 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 TOP 1'867530966','XLTV31','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'31EC8413-F052-4F54-A480-3CCB537A6289','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= 'XLTV31' AND EducationOrganizationId= '867530966')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','2012','540','Traditional','2011-08-22','2011-12-20','82','7C4AAD4A-13BE-4711-B94F-CCA89A039EE5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','436B05C6-F9EB-4A60-AF8A-031F5B82C39D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '436B05C6-F9EB-4A60-AF8A-031F5B82C39D')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','702',NULL,NULL,'46946A71-F485-4786-B3C2-9483EA97E25B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE id = '46946A71-F485-4786-B3C2-9483EA97E25B')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','436B05C6-F9EB-4A60-AF8A-031F5B82C39D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT TOP 1'950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','702',NULL,NULL,'46946A71-F485-4786-B3C2-9483EA97E25B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530966')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT TOP 1'1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530966','XLTV31','2012','1',NULL,NULL,'1.000','6C39BD46-32BA-48DD-908C-76B89C81707B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '6C39BD46-32BA-48DD-908C-76B89C81707B')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT TOP 1'18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 TOP 1'867530010','XLTV31','FUNCT VOC 11','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B220E503-811A-4763-AAEC-551B8CC18E1F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV31' AND EducationOrganizationId= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2012','540','SHORT','2012-05-10','2012-06-09','27','BCBFEB9F-7EC2-468C-B4A0-6093641CFC66','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','FUNCT VOC 11',NULL,'XLTV31','867530010','2943C518-FEC9-446E-AC3C-BDB5F68C0C42','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','702',NULL,NULL,'E25004BE-3043-4752-82AB-84E5B09EAC50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,NULL,'822CA8DD-05EC-4D7E-BC1E-7FA9310455EC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14138','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '822CA8DD-05EC-4D7E-BC1E-7FA9310455EC')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','703',NULL,NULL,'63C8020E-37F1-4C8F-AD92-3A55A6440537','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE id = '63C8020E-37F1-4C8F-AD92-3A55A6440537')); + + 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 TOP 1'867530010','XLTV51','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A522FCF1-5B5A-4FED-823C-BFD5CB872270','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 id = 'A522FCF1-5B5A-4FED-823C-BFD5CB872270')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV51','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','ED3401FD-5AD1-4968-8D6D-7636F6B263F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'ED3401FD-5AD1-4968-8D6D-7636F6B263F1')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV51','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','ED3401FD-5AD1-4968-8D6D-7636F6B263F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV51' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV51','2012','1',NULL,NULL,'1.000','54D3435A-E29B-49B7-83BE-E622B7B48203','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '54D3435A-E29B-49B7-83BE-E622B7B48203')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '8729D3F4-FA81-4AAA-9583-BA432A848D51')); + + 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,Discriminator)(SELECT TOP 1'867530010','2011','540','Traditional','2011-08-22','2011-12-20','82','75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2011','540','Traditional','2011-08-22','2011-12-20','82','75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2011','Art, Grade 8',NULL,'XLTV31','867530010','1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2011','Art, Grade 8',NULL,'XLTV31','867530010','1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2011','1',NULL,NULL,'1.000','9A3A7C4E-B447-4A59-A209-12E79843F493','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '9A3A7C4E-B447-4A59-A209-12E79843F493')); + + 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','uri://ed-fi.org/TermDescriptor','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; + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT TOP 1'535' 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,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '72A1572F-466E-487F-A4BB-3907E9B0FE96')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','DA21FC2B-295F-45D6-98FC-5FFB960BC6DC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = 'DA21FC2B-295F-45D6-98FC-5FFB960BC6DC')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'2028',NULL,'Lakedra','M','Labbe',NULL,NULL,'1961-09-04','0','105','13.00',NULL,'1',NULL,'11721','AAB17FCB-35FE-4D2F-91B9-48CE20F93FC3','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2028')); + SET IDENTITY_INSERT edfi.Staff 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'157','uri://ed-fi.org/StaffClassificationDescriptor','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '157')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'2028','867530010','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'3C090A3B-66D2-49D4-A922-94A053939466','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '3C090A3B-66D2-49D4-A922-94A053939466')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'2028','867530966','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'45330DC0-244F-4E73-8B4B-4CED8D9D5DDC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '45330DC0-244F-4E73-8B4B-4CED8D9D5DDC')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'160','uri://ed-fi.org/StaffClassificationDescriptor','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '160')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'156','uri://ed-fi.org/StaffClassificationDescriptor','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '156')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'158','uri://ed-fi.org/StaffClassificationDescriptor','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'6CDD69AC-577F-48A1-9D61-B258601FE7DA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '158')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT TOP 1'158' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '158')); + + 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','uri://ed-fi.org/ClassroomPositionDescriptor','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)(SELECT TOP 1'127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530966','XLTV31','2012','1',NULL,NULL,'1.000','6C39BD46-32BA-48DD-908C-76B89C81707B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530966','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'11499779-1CF5-4042-B059-61FC6EC20C3D','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '11499779-1CF5-4042-B059-61FC6EC20C3D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','DA21FC2B-295F-45D6-98FC-5FFB960BC6DC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'D406F31D-2799-47B5-BDD6-5CA1244DCC0D','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'D406F31D-2799-47B5-BDD6-5CA1244DCC0D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV51','2012','1',NULL,NULL,'1.000','54D3435A-E29B-49B7-83BE-E622B7B48203','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV51' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV51','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'64642E1E-E7EF-44B9-B027-374BF0DD423F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '64642E1E-E7EF-44B9-B027-374BF0DD423F')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14139' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'432F6FB1-291A-408F-8023-D95187E2E2D9','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '432F6FB1-291A-408F-8023-D95187E2E2D9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2011','1',NULL,NULL,'1.000','9A3A7C4E-B447-4A59-A209-12E79843F493','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'1DB24665-BCF9-44B1-A23B-E1F7502F3CDD','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '1DB24665-BCF9-44B1-A23B-E1F7502F3CDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2012','1',NULL,NULL,NULL,'822CA8DD-05EC-4D7E-BC1E-7FA9310455EC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14138','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100109923',NULL,'Marilyn','X','Crate',NULL,NULL,'1992-11-08',NULL,NULL,NULL,NULL,'218268','EE7DA957-9660-4F29-B100-F629B82FCEB3','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109923')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109923','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'CE30BB40-AFA8-43F9-BE8C-D92EC2C24BB5','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = 'CE30BB40-AFA8-43F9-BE8C-D92EC2C24BB5')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100109925',NULL,'Sherri','O','Jorgenson',NULL,NULL,'2000-04-13',NULL,NULL,NULL,NULL,'218269','56D72FAD-F83F-406D-A075-5F6E062BA74A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109925')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'50F2E605-EC54-47E1-B629-AB92484F14DF','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '50F2E605-EC54-47E1-B629-AB92484F14DF')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV51','2012','2012-05-10',NULL,NULL,NULL,'3962C03B-EE4F-48B8-8644-70FAAAF3A865','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '3962C03B-EE4F-48B8-8644-70FAAAF3A865')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'3D8A12C4-2652-4DC7-A77E-57680B987E31','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '3D8A12C4-2652-4DC7-A77E-57680B987E31')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109925','867530010','XLTV31','2011','2012-05-10',NULL,NULL,NULL,'49EDE6F6-1B31-4B99-B53F-8062D2FD0C53','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '49EDE6F6-1B31-4B99-B53F-8062D2FD0C53')); + + 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','uri://ed-fi.org/AcademicSubjectDescriptor','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)(SELECT TOP 1'10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 TOP 1'867530010','XLTS41','FUN SCI 12','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1D9DB781-E501-423D-A473-EAFEF622362A','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTS41' AND EducationOrganizationId= '867530010')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTS41','867530010','2012','FUN SCI 12',NULL,'XLTS41','867530010','C0F0D784-1DB1-48E9-A31B-10E1BFCFCEBB','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTS41' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTS41','2012','1',NULL,NULL,NULL,'49340B0B-3CB1-4C95-9A66-081CB995134F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14082','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTS41' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14082' AND SessionName= 'SHORT')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100109929',NULL,'Ross',NULL,'Mcgee',NULL,NULL,'1997-07-05',NULL,NULL,NULL,NULL,'218271','9E5AABD5-5267-401A-8F6E-438B50C4C6E2','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109929')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109929','867530010','XLTS41','2012','2012-05-10',NULL,NULL,NULL,'227405F7-D726-406F-B613-C66D1EA931AA','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14082','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '227405F7-D726-406F-B613-C66D1EA931AA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100109929','867530010','XLTV31','2012','2012-05-10','2025-05-10',NULL,NULL,'A9842111-FE42-4A17-BB3E-7B470349E6BA','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = 'A9842111-FE42-4A17-BB3E-7B470349E6BA')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT TOP 1'1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1348',NULL,'Kevin',NULL,'Little',NULL,NULL,'1939-03-11','0','105','49.00',NULL,'1',NULL,'11453','2277E5CD-3E6A-41CF-A138-A6EB05EBA8A4','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1348')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1348','867530010','157','2011-04-28','High School Teacher','2025-11-20',NULL,NULL,NULL,NULL,'589F784C-B7E4-487C-9C51-368C3C760881','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '589F784C-B7E4-487C-9C51-368C3C760881')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT TOP 1'1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1009','867530010','160','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'8714DD85-AFBF-4E12-98EA-2DE587E0CBDD','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '8714DD85-AFBF-4E12-98EA-2DE587E0CBDD')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1009','867530','160','2011-04-28','Superintendent',NULL,NULL,NULL,NULL,NULL,'94F724DB-A119-40FE-B8BC-B00360EC56AC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '94F724DB-A119-40FE-B8BC-B00360EC56AC')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1009','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'FA20D582-5898-4A8C-B05F-546532C0BEE3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'FA20D582-5898-4A8C-B05F-546532C0BEE3')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'1348','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'E6C0F88A-2DF7-4335-8AF4-52D69A28FE87','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'E6C0F88A-2DF7-4335-8AF4-52D69A28FE87')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100023228',NULL,'Claudio','C','Roche',NULL,NULL,'1990-11-27',NULL,NULL,NULL,NULL,'190019','0F61EFBC-7AFC-4E49-A5EE-87E423432876','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100023228')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100023228','867530010',NULL,'2012-05-10','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1D3FA61F-0B4A-4FBB-927A-314819FD3276','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id = '1D3FA61F-0B4A-4FBB-927A-314819FD3276')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100109929','867530010',NULL,'2012-05-15','31',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73AF169A-A909-4F63-A9CE-CFEFC4E55271','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id = '73AF169A-A909-4F63-A9CE-CFEFC4E55271')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'1447',NULL,'Annette','C','Gillen',NULL,NULL,'1974-08-05','0','105','14.00',NULL,'1',NULL,'11492','E8303E9B-4613-41D3-B06B-5D724F926DF0','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1447')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1447','867530010','160','2011-04-28','Superintendent','2019-11-01',NULL,NULL,NULL,NULL,'3936E58B-6D97-457D-A878-634BB1335440','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '3936E58B-6D97-457D-A878-634BB1335440')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1447','867530','160','2011-04-28','Superintendent','2019-11-21',NULL,NULL,NULL,NULL,'A6FE178E-5C2A-4BBD-AD06-1D98CF8E64B3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = 'A6FE178E-5C2A-4BBD-AD06-1D98CF8E64B3')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'1447','867530','156','2011-04-28','Principal',NULL,NULL,NULL,NULL,NULL,'7351F958-2492-4AAF-AE00-1DECE9987EE6','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '7351F958-2492-4AAF-AE00-1DECE9987EE6')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063371',NULL,'Esther','V','Labbe',NULL,NULL,'1993-04-21',NULL,NULL,NULL,NULL,'197184','2AA8A972-6490-483A-B5AF-DE43A3E22706','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063371')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063371','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','94B15370-73C9-4E36-A36F-22EDBF563CF6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = '94B15370-73C9-4E36-A36F-22EDBF563CF6')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT TOP 1'24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + SET IDENTITY_INSERT edfi.Descriptor OFF; + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT TOP 1'1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100063218',NULL,'Keith','E','Dearth',NULL,NULL,'1994-10-18','Lubbock',NULL,NULL,NULL,'197085','86C8C6D2-B150-4CC5-AE52-60A4B7F2CCA2','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063218')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT TOP 1'100063218','867530020',NULL,'2011-08-22','24',NULL,NULL,NULL,'2019-11-01',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','E6CC8EE7-4CAC-4398-AEA1-0267F98265A9','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = 'E6CC8EE7-4CAC-4398-AEA1-0267F98265A9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'3175',NULL,'Anne','V','Lamar',NULL,NULL,'1962-02-06','1','105','26.00',NULL,NULL,NULL,'12143','A0976ECB-5857-45F7-BB3C-B66137D6E9F7','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3175')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'3175','867530011','156','2011-04-28','Principal High School',NULL,NULL,NULL,NULL,NULL,'C9650B65-1ED2-4D56-9AB9-4DAAC273CA5D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = 'C9650B65-1ED2-4D56-9AB9-4DAAC273CA5D')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'4149',NULL,'Sandra','O','Bedard',NULL,NULL,'1954-03-20','0','105','25.00',NULL,NULL,NULL,'12497','36FE68F9-6884-4772-8D75-B973E2BB2E9A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4149')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'4149','867530020','156','2011-04-28','Principal High School','2019-11-01',NULL,NULL,NULL,NULL,'760A015A-E9D7-4AC0-8955-6F0836F0D68B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = '760A015A-E9D7-4AC0-8955-6F0836F0D68B')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'3175','867530020','156','2011-04-28','Principal High School',NULL,NULL,NULL,NULL,NULL,'F4DB540F-D50C-4E97-A4BF-6EDA86214AFF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = 'F4DB540F-D50C-4E97-A4BF-6EDA86214AFF')); + + 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','uri://ed-fi.org/LevelOfEducationDescriptor','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; + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT TOP 1'102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'20276567',NULL,'Brandy',NULL,'Blue',NULL,NULL,'1985-02-19','0','102','0.00',NULL,'0',NULL,'14162','FA5A3285-B77B-41D8-B2DD-49E42329E7AB','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '20276567')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'20276567','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'8986F407-C11A-4C04-B6C6-AE579A7C510F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '8986F407-C11A-4C04-B6C6-AE579A7C510F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT TOP 1'867530060','Belvedeer Middle School',NULL,NULL,'EA6C38E6-ABC4-4527-8D65-FBD1C1BDE296','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530060')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'20276567','867530060','158','2012-05-22','Substitute',NULL,NULL,NULL,NULL,NULL,'6BB13AD5-D89C-495F-80D8-CE135CBC36B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '6BB13AD5-D89C-495F-80D8-CE135CBC36B5')); + + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT TOP 1'140527',NULL,'Lydia',NULL,'Mcdaniels',NULL,NULL,'1980-07-14','0','105','1.00',NULL,'1',NULL,'13493','9DD6B002-420F-4484-83B9-708DF28FC403','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '140527')); + SET IDENTITY_INSERT edfi.Staff OFF; + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT TOP 1'140527','867530010','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'EEC82563-643D-4032-B16F-268215A7CAA0','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = 'EEC82563-643D-4032-B16F-268215A7CAA0')); + + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT TOP 1'100023228',NULL,'Claudio','C','Roche',NULL,NULL,'1990-11-27',NULL,NULL,NULL,NULL,'190019','0F61EFBC-7AFC-4E49-A5EE-87E423432876','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE id='0F61EFBC-7AFC-4E49-A5EE-87E423432876')); + SET IDENTITY_INSERT edfi.Student OFF; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530966','2012','540','SHORT','2011-08-22','2011-12-20','82','4594078C-1C67-4261-A20B-D9F11B8AFDB7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','4E760B35-4581-464F-8205-CE35E062F1A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530966','XLTV31','2012','1',NULL,NULL,'1.000','864376B6-6AE9-4BD2-BC17-2DDC9DBBF410','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530966','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'AB69E1B6-78C3-45E5-97C6-D20F10C684BC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='AB69E1B6-78C3-45E5-97C6-D20F10C684BC')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT TOP 1'100023228','867530010','XLTV31','2012','2012-05-10','2012-05-10',NULL,NULL,'74F65A0A-AFF6-4DED-9734-60CA522C4F50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='74F65A0A-AFF6-4DED-9734-60CA522C4F50')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'867530010','2011','540','SHORT','2012-05-10','2012-06-09','27','BC76AB27-E076-4447-9BC3-01B62CFFDC59','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT TOP 1'XLTV31','867530010','2011','FUNCT VOC 11',NULL,'XLTV31','867530010','C619D4BC-1EB4-456D-8397-D72F7037F9B7','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT TOP 1'867530010','XLTV31','2011','1',NULL,NULL,'1.000','06C869F3-283C-4C4A-AF19-5893AB283B01','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT TOP 1'2028','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'E9227B4E-B23C-4C65-9A87-6E61E3CD41AB','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E9227B4E-B23C-4C65-9A87-6E61E3CD41AB')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_3/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_3/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml new file mode 100644 index 00000000..be3ba82f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/MSSQL/v_3_3/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'rls_UserStudentDataAuthorization' + ORDER BY ORDINAL_POSITION ASC; + + + UserKey + nvarchar + + + StudentKey + nvarchar + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml similarity index 100% rename from src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml rename to src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_2/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_3/0000_UserStudentDataAuthorization_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_3/0000_UserStudentDataAuthorization_Data_Load.xml new file mode 100644 index 00000000..e92cd9e1 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_3/0000_UserStudentDataAuthorization_Data_Load.xml @@ -0,0 +1,405 @@ + + + Any + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530966','Lathrop',NULL,NULL,'3DB9E005-E37F-40F4-A464-111E1BB83F90','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530966')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530','Glendale ISD',NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '152950','ESC Region 17',NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.EducationServiceCenter' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT '152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1086','uri://ed-fi.org/LocalEducationAgencyCategoryDescriptor','Independent','Independent','Independent',NULL,NULL,NULL,'0A65B4F5-49CC-4ABD-9A3F-41FFA09EF2B3','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1086')); + + + INSERT INTO edfi.LocalEducationAgencyCategoryDescriptor(LocalEducationAgencyCategoryDescriptorId)(SELECT '1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryDescriptor WHERE LocalEducationAgencyCategoryDescriptorId= '1086')); + + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '867530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1695','uri://ed-fi.org/SchoolTypeDescriptor','Regular','Regular','Regular',NULL,NULL,NULL,'F5712765-A14F-4A3D-ABC9-BADFC9134BC1','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1695')); + + + INSERT INTO edfi.SchoolTypeDescriptor(SchoolTypeDescriptorId)(SELECT '1695' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolTypeDescriptor WHERE SchoolTypeDescriptorId= '1695')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530966','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530966')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '540','uri://ed-fi.org/TermDescriptor','MiniTerm','MiniTerm','MiniTerm',NULL,NULL,NULL,'45E4AC08-0898-4C1C-81F3-ECEAEEB88474','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '540')); + + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '540' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '540')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530966','2012','540','Traditional','2011-08-22','2011-12-20','82','7C4AAD4A-13BE-4711-B94F-CCA89A039EE5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '7C4AAD4A-13BE-4711-B94F-CCA89A039EE5')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '12','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + + 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 '867530966','XLTV31','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'31EC8413-F052-4F54-A480-3CCB537A6289','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 id = '31EC8413-F052-4F54-A480-3CCB537A6289')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate,OfficialAttendancePeriod,Discriminator)(SELECT '867530966','A01','FC343021-68B4-4A3B-9F20-0CADE273D1B1','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE id = 'FC343021-68B4-4A3B-9F20-0CADE273D1B1')); + + 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 '867530966','XLTV31','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'31EC8413-F052-4F54-A480-3CCB537A6289','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= 'XLTV31' AND EducationOrganizationId= '867530966')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530966','2012','540','Traditional','2011-08-22','2011-12-20','82','7C4AAD4A-13BE-4711-B94F-CCA89A039EE5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','436B05C6-F9EB-4A60-AF8A-031F5B82C39D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '436B05C6-F9EB-4A60-AF8A-031F5B82C39D')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530966','702',NULL,NULL,'46946A71-F485-4786-B3C2-9483EA97E25B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE id = '46946A71-F485-4786-B3C2-9483EA97E25B')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','436B05C6-F9EB-4A60-AF8A-031F5B82C39D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '950','uri://ed-fi.org/EducationalEnvironmentDescriptor','Classroom','Classroom','Classroom',NULL,NULL,NULL,'C21062A5-542C-4596-B985-17582EC975F4','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '950')); + + + INSERT INTO edfi.EducationalEnvironmentDescriptor(EducationalEnvironmentDescriptorId)(SELECT '950' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentDescriptor WHERE EducationalEnvironmentDescriptorId= '950')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530966','702',NULL,NULL,'46946A71-F485-4786-B3C2-9483EA97E25B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530966')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1232','uri://ed-fi.org/PopulationServedDescriptor','Regular Students','Regular Students','Regular Students',NULL,NULL,NULL,'E989F2DD-66C2-47CE-804C-A0E3EE5C7624','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1232')); + + + INSERT INTO edfi.PopulationServedDescriptor(PopulationServedDescriptorId)(SELECT '1232' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedDescriptor WHERE PopulationServedDescriptorId= '1232')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530966','XLTV31','2012','1',NULL,NULL,'1.000','6C39BD46-32BA-48DD-908C-76B89C81707B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '6C39BD46-32BA-48DD-908C-76B89C81707B')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '18','uri://ed-fi.org/AcademicSubjectDescriptor','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '18' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530010','Fremont',NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + + 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 '867530010','XLTV31','FUNCT VOC 11','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B220E503-811A-4763-AAEC-551B8CC18E1F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTV31' AND EducationOrganizationId= '867530010')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530010','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','2012','540','SHORT','2012-05-10','2012-06-09','27','BCBFEB9F-7EC2-468C-B4A0-6093641CFC66','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2012','FUNCT VOC 11',NULL,'XLTV31','867530010','2943C518-FEC9-446E-AC3C-BDB5F68C0C42','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','702',NULL,NULL,'E25004BE-3043-4752-82AB-84E5B09EAC50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '702' AND SchoolId= '867530010')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,NULL,'822CA8DD-05EC-4D7E-BC1E-7FA9310455EC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14138','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '822CA8DD-05EC-4D7E-BC1E-7FA9310455EC')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','703',NULL,NULL,'63C8020E-37F1-4C8F-AD92-3A55A6440537','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE id = '63C8020E-37F1-4C8F-AD92-3A55A6440537')); + + 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 '867530010','XLTV51','Art, Grade 8','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'A522FCF1-5B5A-4FED-823C-BFD5CB872270','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 id = 'A522FCF1-5B5A-4FED-823C-BFD5CB872270')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV51','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','ED3401FD-5AD1-4968-8D6D-7636F6B263F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'ED3401FD-5AD1-4968-8D6D-7636F6B263F1')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV51','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','ED3401FD-5AD1-4968-8D6D-7636F6B263F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV51' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV51','2012','1',NULL,NULL,'1.000','54D3435A-E29B-49B7-83BE-E622B7B48203','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '54D3435A-E29B-49B7-83BE-E622B7B48203')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '8729D3F4-FA81-4AAA-9583-BA432A848D51')); + + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT '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,Discriminator)(SELECT '867530010','2011','540','Traditional','2011-08-22','2011-12-20','82','75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','2011','540','Traditional','2011-08-22','2011-12-20','82','75EFEA03-5FC6-4FE1-BD42-74D5DE46B05E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2011','Art, Grade 8',NULL,'XLTV31','867530010','1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = '1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2011','Art, Grade 8',NULL,'XLTV31','867530010','1F2B39C4-2517-4B1E-8FB9-31D24A2DD94C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2011','1',NULL,NULL,'1.000','9A3A7C4E-B447-4A59-A209-12E79843F493','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = '9A3A7C4E-B447-4A59-A209-12E79843F493')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '535','uri://ed-fi.org/TermDescriptor','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')); + + + INSERT INTO edfi.TermDescriptor(TermDescriptorId)(SELECT '535' 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,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE id = '72A1572F-466E-487F-A4BB-3907E9B0FE96')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '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',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE id = 'E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2012','Art, Grade 8',NULL,'XLTV31','867530010','E3ACF8A5-A2AA-40B9-8870-9FE65BA2151B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'Traditional')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,'1.000','DA21FC2B-295F-45D6-98FC-5FFB960BC6DC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id = 'DA21FC2B-295F-45D6-98FC-5FFB960BC6DC')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '105','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '105' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1167','uri://ed-fi.org/OldEthnicityDescriptor','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin',NULL,NULL,NULL,'1882389F-FE1E-40ED-8670-5E3C6DEA4607','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1167')); + + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1167' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1167')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1395','uri://ed-fi.org/SexDescriptor','Female','Female','Female',NULL,NULL,NULL,'D047F035-5000-456B-A279-6AF1BD20EB6D','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1395')); + + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1395' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1395')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '2028',NULL,'Lakedra','M','Labbe',NULL,NULL,'1961-09-04','0','105','13.00',NULL,'1',NULL,'11721','AAB17FCB-35FE-4D2F-91B9-48CE20F93FC3','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2028')); + + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '157','uri://ed-fi.org/StaffClassificationDescriptor','Teacher','Teacher','Teacher',NULL,NULL,NULL,'943DD864-2F66-42F4-85A4-82E9BB59711E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '157')); + + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '157' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '157')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '2028','867530010','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'3C090A3B-66D2-49D4-A922-94A053939466','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '3C090A3B-66D2-49D4-A922-94A053939466')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '2028','867530966','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'45330DC0-244F-4E73-8B4B-4CED8D9D5DDC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '45330DC0-244F-4E73-8B4B-4CED8D9D5DDC')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '160','uri://ed-fi.org/StaffClassificationDescriptor','Superintendent','Superintendent','Superintendent',NULL,NULL,NULL,'5051BECA-3A27-4EC3-99A7-6637B5958DF5','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '160')); + + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '160' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '160')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '156','uri://ed-fi.org/StaffClassificationDescriptor','Principal','Principal','Principal',NULL,NULL,NULL,'CC705A05-24BE-4E75-8BC2-EFF0E8864BB8','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '156')); + + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '156' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '156')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '158','uri://ed-fi.org/StaffClassificationDescriptor','Substitute Teacher','Substitute Teacher','Substitute Teacher',NULL,NULL,NULL,'6CDD69AC-577F-48A1-9D61-B258601FE7DA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '158')); + + + INSERT INTO edfi.StaffClassificationDescriptor(StaffClassificationDescriptorId)(SELECT '158' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffClassificationDescriptor WHERE StaffClassificationDescriptorId= '158')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '127','uri://ed-fi.org/ClassroomPositionDescriptor','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')); + + + INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId)(SELECT '127' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530966','XLTV31','2012','1',NULL,NULL,'1.000','6C39BD46-32BA-48DD-908C-76B89C81707B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530966','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'11499779-1CF5-4042-B059-61FC6EC20C3D','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '11499779-1CF5-4042-B059-61FC6EC20C3D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,'1.000','DA21FC2B-295F-45D6-98FC-5FFB960BC6DC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'D406F31D-2799-47B5-BDD6-5CA1244DCC0D','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'D406F31D-2799-47B5-BDD6-5CA1244DCC0D')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV51','2012','1',NULL,NULL,'1.000','54D3435A-E29B-49B7-83BE-E622B7B48203','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV51' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530010','XLTV51','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'64642E1E-E7EF-44B9-B027-374BF0DD423F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '64642E1E-E7EF-44B9-B027-374BF0DD423F')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,'1.000','8729D3F4-FA81-4AAA-9583-BA432A848D51','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14139','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14139' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'432F6FB1-291A-408F-8023-D95187E2E2D9','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '432F6FB1-291A-408F-8023-D95187E2E2D9')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2011','1',NULL,NULL,'1.000','9A3A7C4E-B447-4A59-A209-12E79843F493','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SectionIdentifier= '14138' AND SessionName= 'Traditional')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'1DB24665-BCF9-44B1-A23B-E1F7502F3CDD','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '1DB24665-BCF9-44B1-A23B-E1F7502F3CDD')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2012','1',NULL,NULL,NULL,'822CA8DD-05EC-4D7E-BC1E-7FA9310455EC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14138','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100109923',NULL,'Marilyn','X','Crate',NULL,NULL,'1992-11-08',NULL,NULL,NULL,NULL,'218268','EE7DA957-9660-4F29-B100-F629B82FCEB3','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109923')); + + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109923','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'CE30BB40-AFA8-43F9-BE8C-D92EC2C24BB5','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = 'CE30BB40-AFA8-43F9-BE8C-D92EC2C24BB5')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100109925',NULL,'Sherri','O','Jorgenson',NULL,NULL,'2000-04-13',NULL,NULL,NULL,NULL,'218269','56D72FAD-F83F-406D-A075-5F6E062BA74A','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109925')); + + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109925','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'50F2E605-EC54-47E1-B629-AB92484F14DF','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '50F2E605-EC54-47E1-B629-AB92484F14DF')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109925','867530010','XLTV51','2012','2012-05-10',NULL,NULL,NULL,'3962C03B-EE4F-48B8-8644-70FAAAF3A865','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '3962C03B-EE4F-48B8-8644-70FAAAF3A865')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109925','867530010','XLTV31','2012','2012-05-10',NULL,NULL,NULL,'3D8A12C4-2652-4DC7-A77E-57680B987E31','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '3D8A12C4-2652-4DC7-A77E-57680B987E31')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109925','867530010','XLTV31','2011','2012-05-10',NULL,NULL,NULL,'49EDE6F6-1B31-4B99-B53F-8062D2FD0C53','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '49EDE6F6-1B31-4B99-B53F-8062D2FD0C53')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '10','uri://ed-fi.org/AcademicSubjectDescriptor','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')); + + + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId)(SELECT '10' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + + 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 '867530010','XLTS41','FUN SCI 12','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1D9DB781-E501-423D-A473-EAFEF622362A','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'XLTS41' AND EducationOrganizationId= '867530010')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTS41','867530010','2012','FUN SCI 12',NULL,'XLTS41','867530010','C0F0D784-1DB1-48E9-A31B-10E1BFCFCEBB','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTS41' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTS41','2012','1',NULL,NULL,NULL,'49340B0B-3CB1-4C95-9A66-081CB995134F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT','14082','867530010','702',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTS41' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SectionIdentifier= '14082' AND SessionName= 'SHORT')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100109929',NULL,'Ross',NULL,'Mcgee',NULL,NULL,'1997-07-05',NULL,NULL,NULL,NULL,'218271','9E5AABD5-5267-401A-8F6E-438B50C4C6E2','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100109929')); + + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109929','867530010','XLTS41','2012','2012-05-10',NULL,NULL,NULL,'227405F7-D726-406F-B613-C66D1EA931AA','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14082','SHORT',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = '227405F7-D726-406F-B613-C66D1EA931AA')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100109929','867530010','XLTV31','2012','2012-05-10','2025-05-10',NULL,NULL,'A9842111-FE42-4A17-BB3E-7B470349E6BA','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id = 'A9842111-FE42-4A17-BB3E-7B470349E6BA')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1165','uri://ed-fi.org/OldEthnicityDescriptor','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin',NULL,NULL,NULL,'2EE1F325-F468-48FF-BD5E-475F1C30A8EF','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1165')); + + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1165' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1165')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1396','uri://ed-fi.org/SexDescriptor','Male','Male','Male',NULL,NULL,NULL,'64E51D5B-8249-45FE-8B6D-4347F525B2FB','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1396')); + + + INSERT INTO edfi.SexDescriptor(SexDescriptorId)(SELECT '1396' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexDescriptor WHERE SexDescriptorId= '1396')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1348',NULL,'Kevin',NULL,'Little',NULL,NULL,'1939-03-11','0','105','49.00',NULL,'1',NULL,'11453','2277E5CD-3E6A-41CF-A138-A6EB05EBA8A4','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1396','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1348')); + + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1348','867530010','157','2011-04-28','High School Teacher','2025-11-20',NULL,NULL,NULL,NULL,'589F784C-B7E4-487C-9C51-368C3C760881','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '589F784C-B7E4-487C-9C51-368C3C760881')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1166','uri://ed-fi.org/OldEthnicityDescriptor','Hispanic','Hispanic','Hispanic',NULL,NULL,NULL,'3F337FB4-C428-4B2B-9281-8158BA97B9F0','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1166')); + + + INSERT INTO edfi.OldEthnicityDescriptor(OldEthnicityDescriptorId)(SELECT '1166' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityDescriptor WHERE OldEthnicityDescriptorId= '1166')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1009',NULL,'Teresa','A','Hood',NULL,NULL,'1950-09-09','1','105','39.00',NULL,NULL,NULL,'11324','C5C450D5-AE21-4836-B523-7B2822E65421','Aug 10 2014 12:00AM','Sep 18 2015 11:34AM',NULL,'1395','1166',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1009')); + + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1009','867530010','160','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'8714DD85-AFBF-4E12-98EA-2DE587E0CBDD','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '8714DD85-AFBF-4E12-98EA-2DE587E0CBDD')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1009','867530','160','2011-04-28','Superintendent',NULL,NULL,NULL,NULL,NULL,'94F724DB-A119-40FE-B8BC-B00360EC56AC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '94F724DB-A119-40FE-B8BC-B00360EC56AC')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1009','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'FA20D582-5898-4A8C-B05F-546532C0BEE3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'FA20D582-5898-4A8C-B05F-546532C0BEE3')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '1348','867530010','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'E6C0F88A-2DF7-4335-8AF4-52D69A28FE87','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14139','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'E6C0F88A-2DF7-4335-8AF4-52D69A28FE87')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '38','uri://ed-fi.org/GradeLevelDescriptor','Twelfth grade','Twelfth grade','Twelfth grade',NULL,NULL,NULL,'70A2201E-CA80-497A-8271-F258E6B326A9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '38')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '38' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '38')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100023228',NULL,'Claudio','C','Roche',NULL,NULL,'1990-11-27',NULL,NULL,NULL,NULL,'190019','0F61EFBC-7AFC-4E49-A5EE-87E423432876','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100023228')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100023228','867530010',NULL,'2012-05-10','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1D3FA61F-0B4A-4FBB-927A-314819FD3276','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id = '1D3FA61F-0B4A-4FBB-927A-314819FD3276')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '31','uri://ed-fi.org/GradeLevelDescriptor','Ninth grade','Ninth grade','Ninth grade',NULL,NULL,NULL,'4B247880-FE8C-43F3-BA5D-5E2CEDCC5C4E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '31')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '31' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '31')); + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100109929','867530010',NULL,'2012-05-15','31',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73AF169A-A909-4F63-A9CE-CFEFC4E55271','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE id = '73AF169A-A909-4F63-A9CE-CFEFC4E55271')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '1447',NULL,'Annette','C','Gillen',NULL,NULL,'1974-08-05','0','105','14.00',NULL,'1',NULL,'11492','E8303E9B-4613-41D3-B06B-5D724F926DF0','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1447')); + + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1447','867530010','160','2011-04-28','Superintendent','2019-11-01',NULL,NULL,NULL,NULL,'3936E58B-6D97-457D-A878-634BB1335440','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '3936E58B-6D97-457D-A878-634BB1335440')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1447','867530','160','2011-04-28','Superintendent','2019-11-21',NULL,NULL,NULL,NULL,'A6FE178E-5C2A-4BBD-AD06-1D98CF8E64B3','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = 'A6FE178E-5C2A-4BBD-AD06-1D98CF8E64B3')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '1447','867530','156','2011-04-28','Principal',NULL,NULL,NULL,NULL,NULL,'7351F958-2492-4AAF-AE00-1DECE9987EE6','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '7351F958-2492-4AAF-AE00-1DECE9987EE6')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530020','Beverly Hills High School',NULL,NULL,'56888B72-8AF0-4741-B6BC-90950E29A276','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530020')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '867530020','867530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530020')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100063371',NULL,'Esther','V','Labbe',NULL,NULL,'1993-04-21',NULL,NULL,NULL,NULL,'197184','2AA8A972-6490-483A-B5AF-DE43A3E22706','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063371')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063371','867530020',NULL,'2011-08-22','38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','94B15370-73C9-4E36-A36F-22EDBF563CF6','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = '94B15370-73C9-4E36-A36F-22EDBF563CF6')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '24','uri://ed-fi.org/GradeLevelDescriptor','Eleventh grade','Eleventh grade','Eleventh grade',NULL,NULL,NULL,'685393AA-B8FB-46AE-924A-318231F2A8E9','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '24')); + + + INSERT INTO edfi.GradeLevelDescriptor(GradeLevelDescriptorId)(SELECT '24' WHERE NOT EXISTS(SELECT 1 FROM edfi.GradeLevelDescriptor WHERE GradeLevelDescriptorId= '24')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '1451','uri://ed-fi.org/StateAbbreviationDescriptor','TX','TX','TX',NULL,NULL,NULL,'67A24BD2-B27E-42A1-A508-2D45B49C6617','Dec 13 2018 2:31PM','Dec 13 2018 2:31PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '1451')); + + + INSERT INTO edfi.StateAbbreviationDescriptor(StateAbbreviationDescriptorId)(SELECT '1451' WHERE NOT EXISTS(SELECT 1 FROM edfi.StateAbbreviationDescriptor WHERE StateAbbreviationDescriptorId= '1451')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100063218',NULL,'Keith','E','Dearth',NULL,NULL,'1994-10-18','Lubbock',NULL,NULL,NULL,'197085','86C8C6D2-B150-4CC5-AE52-60A4B7F2CCA2','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,'1451',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100063218')); + + + INSERT INTO edfi.StudentSchoolAssociation(StudentUSI,SchoolId,SchoolYear,EntryDate,EntryGradeLevelDescriptorId,EntryTypeDescriptorId,RepeatGradeIndicator,SchoolChoiceTransfer,ExitWithdrawDate,ExitWithdrawTypeDescriptorId,ResidencyStatusDescriptorId,PrimarySchool,EmployedWhileEnrolled,ClassOfSchoolYear,EducationOrganizationId,GraduationPlanTypeDescriptorId,GraduationSchoolYear,Id,LastModifiedDate,CreateDate,CalendarCode,EntryGradeLevelReasonDescriptorId,Discriminator)(SELECT '100063218','867530020',NULL,'2011-08-22','24',NULL,NULL,NULL,'2019-11-01',NULL,NULL,NULL,NULL,NULL,NULL,'633','2013','E6CC8EE7-4CAC-4398-AEA1-0267F98265A9','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSchoolAssociation WHERE ID = 'E6CC8EE7-4CAC-4398-AEA1-0267F98265A9')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530011','Cooper',NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '3175',NULL,'Anne','V','Lamar',NULL,NULL,'1962-02-06','1','105','26.00',NULL,NULL,NULL,'12143','A0976ECB-5857-45F7-BB3C-B66137D6E9F7','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3175')); + + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '3175','867530011','156','2011-04-28','Principal High School',NULL,NULL,NULL,NULL,NULL,'C9650B65-1ED2-4D56-9AB9-4DAAC273CA5D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = 'C9650B65-1ED2-4D56-9AB9-4DAAC273CA5D')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '4149',NULL,'Sandra','O','Bedard',NULL,NULL,'1954-03-20','0','105','25.00',NULL,NULL,NULL,'12497','36FE68F9-6884-4772-8D75-B973E2BB2E9A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1165',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4149')); + + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '4149','867530020','156','2011-04-28','Principal High School','2019-11-01',NULL,NULL,NULL,NULL,'760A015A-E9D7-4AC0-8955-6F0836F0D68B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = '760A015A-E9D7-4AC0-8955-6F0836F0D68B')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '3175','867530020','156','2011-04-28','Principal High School',NULL,NULL,NULL,NULL,NULL,'F4DB540F-D50C-4E97-A4BF-6EDA86214AFF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE ID = 'F4DB540F-D50C-4E97-A4BF-6EDA86214AFF')); + + + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT '102','uri://ed-fi.org/LevelOfEducationDescriptor','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')); + + + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId)(SELECT '102' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '20276567',NULL,'Brandy',NULL,'Blue',NULL,NULL,'1985-02-19','0','102','0.00',NULL,'0',NULL,'14162','FA5A3285-B77B-41D8-B2DD-49E42329E7AB','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '20276567')); + + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '20276567','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'8986F407-C11A-4C04-B6C6-AE579A7C510F','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '8986F407-C11A-4C04-B6C6-AE579A7C510F')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '867530060','Belvedeer Middle School',NULL,NULL,'EA6C38E6-ABC4-4527-8D65-FBD1C1BDE296','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.School' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530060')); + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '20276567','867530060','158','2012-05-22','Substitute',NULL,NULL,NULL,NULL,NULL,'6BB13AD5-D89C-495F-80D8-CE135CBC36B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = '6BB13AD5-D89C-495F-80D8-CE135CBC36B5')); + + + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,HispanicLatinoEthnicity,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,StaffUniqueId,Id,LastModifiedDate,CreateDate,CitizenshipStatusDescriptorId,SexDescriptorId,OldEthnicityDescriptorId,Discriminator)(SELECT '140527',NULL,'Lydia',NULL,'Mcdaniels',NULL,NULL,'1980-07-14','0','105','1.00',NULL,'1',NULL,'13493','9DD6B002-420F-4484-83B9-708DF28FC403','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM',NULL,'1395','1167',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '140527')); + + + INSERT INTO edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI,EducationOrganizationId,StaffClassificationDescriptorId,BeginDate,PositionTitle,EndDate,OrderOfAssignment,EmploymentEducationOrganizationId,EmploymentStatusDescriptorId,EmploymentHireDate,Id,LastModifiedDate,CreateDate,CredentialIdentifier,StateOfIssueStateAbbreviationDescriptorId,Discriminator)(SELECT '140527','867530010','157','2011-04-28','High School Teacher',NULL,NULL,NULL,NULL,NULL,'EEC82563-643D-4032-B16F-268215A7CAA0','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffEducationOrganizationAssignmentAssociation WHERE id = 'EEC82563-643D-4032-B16F-268215A7CAA0')); + + + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,BirthDate,BirthCity,DateEnteredUS,MultipleBirthStatus,BirthInternationalProvince,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId,BirthSexDescriptorId,BirthStateAbbreviationDescriptorId,CitizenshipStatusDescriptorId,Discriminator)(SELECT '100023228',NULL,'Claudio','C','Roche',NULL,NULL,'1990-11-27',NULL,NULL,NULL,NULL,'190019','0F61EFBC-7AFC-4E49-A5EE-87E423432876','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE id='0F61EFBC-7AFC-4E49-A5EE-87E423432876')); + + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530966','2012','540','SHORT','2011-08-22','2011-12-20','82','4594078C-1C67-4261-A20B-D9F11B8AFDB7','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530966','2012','Art, Grade 8',NULL,'XLTV31','867530966','4E760B35-4581-464F-8205-CE35E062F1A4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530966','XLTV31','2012','1',NULL,NULL,'1.000','864376B6-6AE9-4BD2-BC17-2DDC9DBBF410','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530966','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530966' AND SchoolYear= '2012' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530966','XLTV31','2012','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'AB69E1B6-78C3-45E5-97C6-D20F10C684BC','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='AB69E1B6-78C3-45E5-97C6-D20F10C684BC')); + + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,LocalCourseCode,SchoolYear,BeginDate,EndDate,HomeroomIndicator,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,AttemptStatusDescriptorId,RepeatIdentifierDescriptorId,Discriminator)(SELECT '100023228','867530010','XLTV31','2012','2012-05-10','2012-05-10',NULL,NULL,'74F65A0A-AFF6-4DED-9734-60CA522C4F50','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','Traditional',NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE id='74F65A0A-AFF6-4DED-9734-60CA522C4F50')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '867530010','2011','540','SHORT','2012-05-10','2012-06-09','27','BC76AB27-E076-4447-9BC3-01B62CFFDC59','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'SHORT')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'XLTV31','867530010','2011','FUNCT VOC 11',NULL,'XLTV31','867530010','C619D4BC-1EB4-456D-8397-D72F7037F9B7','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SessionName= 'SHORT')); + + INSERT INTO edfi.Section(SchoolId,LocalCourseCode,SchoolYear,SequenceOfCourse,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate,SessionName,SectionIdentifier,LocationSchoolId,LocationClassroomIdentificationCode,PopulationServedDescriptorId,MediumOfInstructionDescriptorId,EducationalEnvironmentDescriptorId,AvailableCreditTypeDescriptorId,Discriminator)(SELECT '867530010','XLTV31','2011','1',NULL,NULL,'1.000','06C869F3-283C-4C4A-AF19-5893AB283B01','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','SHORT','14138','867530010','702','1232',NULL,'950',NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE LocalCourseCode= 'XLTV31' AND SchoolId= '867530010' AND SchoolYear= '2011' AND SectionIdentifier= '14138' AND SessionName= 'SHORT')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,SchoolId,LocalCourseCode,SchoolYear,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate,SectionIdentifier,SessionName,Discriminator)(SELECT '2028','867530010','XLTV31','2011','127','2012-05-10','2012-06-09',NULL,NULL,NULL,'E9227B4E-B23C-4C65-9A87-6E61E3CD41AB','Mar 8 2016 12:16PM','Mar 8 2016 12:16PM','14138','SHORT',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id='E9227B4E-B23C-4C65-9A87-6E61E3CD41AB')); + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_3/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_3/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml new file mode 100644 index 00000000..a9700f7c --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/UserStudentDataAuthorization/PostgreSQL/v_3_3/0001_UserStudentDataAuthorization_should_match_column_dictionary.xml @@ -0,0 +1,22 @@ + + + Any + + + + SELECT COLUMN_NAME AS ColumnName, + DATA_TYPE AS DataType + FROM information_schema.columns + WHERE table_schema = 'analytics' + AND table_name = 'rls_userstudentdataauthorization' + ORDER BY ORDINAL_POSITION ASC; + + + userkey + character varying + + + studentkey + character varying + + \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessBase.cs b/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessBase.cs index 5cb6151a..fc3e38c0 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessBase.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessBase.cs @@ -5,32 +5,40 @@ using System; using System.Data; -using System.Data.SqlClient; using System.Diagnostics.CodeAnalysis; using Dapper; using EdFi.AnalyticsMiddleTier.Common; -using Npgsql; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; namespace EdFi.AnalyticsMiddleTier.Tests { [SuppressMessage("ReSharper", "InconsistentNaming")] - public class TestHarnessBase : ITestHarnessBase + public abstract class TestHarnessBase : ITestHarnessBase { - public Engine DataStandardEngine { get; set; } = Engine.Default; + public Engine DataStandardEngine => _dataStandardSettings.DatabaseEngine; + + public DataStandard DataStandardVersion => _dataStandardSettings.CurrentDataStandard; + + protected string DataStandardVersionFolderName => _dataStandardSettings.VersionFolderName; + + public string DataStandardBaseVersionFolderName => _dataStandardSettings.BaseVersionFolderName; + + public string TestDataFolderName => _dataStandardSettings.TestDataFolderName; + + protected IDataStandardSettings _dataStandardSettings { get; set; } protected IDatabaseMigrationStrategy _databaseMigrationStrategy; - protected string _databaseName; - - protected string _dataStandardBaseVersion; + protected IDatabaseConnection _databaseConnection + => _dataStandardSettings.DatabaseConnection; - protected string _dataStandardFolderName; + protected string _databaseName => _databaseConnection.DatabaseName; - protected InstallBase _dataStandardInstallBase; + protected string _databaseBackupFile => _dataStandardSettings.DatabaseBackupFile; - protected Type _dataStandardInstallType; + protected InstallBase _dataStandardInstallBase; - protected string _dataStandardVersionName; + protected Type _dataStandardInstallType => _dataStandardSettings.DataStandardInstallType; protected Func _installDelegate; @@ -41,71 +49,27 @@ protected TestHarnessBase() // private so that this class cannot be instantiated elsewhere } - public string _connectionString; - - public string _mainDatabaseConnectionString; - - protected IOrm _orm { get; set; } - - public DataStandard DataStandardVersion { get; set; } - - public IOrm Orm + protected TestHarnessBase(IDataStandardSettings dataStandardSettings) { - get - { - if (_orm == null) - { - _orm = DataStandardEngine == Engine.PostgreSQL - ? new DapperWrapper(new NpgsqlConnection(_connectionString)) - : _orm = new DapperWrapper(new SqlConnection(_connectionString)); - } - - return _orm; - } - set => _orm = value; + // private so that this class cannot be instantiated elsewhere + _dataStandardSettings = dataStandardSettings; } - protected IDatabaseMigrationStrategy DatabaseMigrationStrategy - { - get - { - if (_databaseMigrationStrategy == null) - { - if (DataStandardEngine == Engine.PostgreSQL) - { - _databaseMigrationStrategy = new PostgresMigrationStrategy(Orm); - } - else - { - _databaseMigrationStrategy = new SqlServerMigrationStrategy(Orm); - } - } + protected string _connectionString => _databaseConnection.ConnectionString; - return _databaseMigrationStrategy; - } - set => _databaseMigrationStrategy = value; - } + protected string _mainDatabaseConnectionString => _databaseConnection.MainDatabaseConnectionString; - protected IUninstallStrategy UninstallStrategy - { - get - { - if (_uninstallStrategy == null) - { - if (DataStandardEngine == Engine.PostgreSQL) - { - _uninstallStrategy = new PostgresUninstallStrategy(Orm); - } - else - { - _uninstallStrategy = new SqlServerUninstallStrategy(Orm); - } - } + protected IOrm _orm { get; set; } + + public IOrm Orm => _orm ??= _dataStandardSettings.DatabaseConnection.Orm; - return _uninstallStrategy; - } - set => _uninstallStrategy = value; - } + protected IDatabaseMigrationStrategy DatabaseMigrationStrategy => + _databaseMigrationStrategy + ??= _dataStandardSettings.DatabaseConnection.DatabaseMigrationStrategy; + + protected IUninstallStrategy UninstallStrategy => + _uninstallStrategy + ??= _dataStandardSettings.DatabaseConnection.UninstallStrategy; protected InstallBase DataStandardInstallBase { @@ -117,19 +81,7 @@ protected InstallBase DataStandardInstallBase } set => _dataStandardInstallBase = value; } - - public string DataStandardVersionName => $"v_{_dataStandardVersionName}"; - - public string DataStandardBaseVersion => _dataStandardBaseVersion; - - public string DataStandardFolderName => string.IsNullOrWhiteSpace(_dataStandardFolderName) - ? ToString() - : $"{DataStandardEngine}.v_{_dataStandardFolderName}"; - - public string CurrentDataStandardFolderName => string.IsNullOrWhiteSpace(_dataStandardFolderName) - ? ToString() - : $"{DataStandardEngine}.v_{_dataStandardVersionName}"; - + public Func InstallDelegate { get @@ -155,12 +107,6 @@ protected InstallBase DataStandardInstallBase return UninstallStrategy.Uninstall(uninstallAll); } - public string GetTestDataFolderName(bool useCurrentDataStandard) - => useCurrentDataStandard - ? $"{CurrentDataStandardFolderName}" - : $"{DataStandardFolderName}" ; - - public T ExecuteScalarQuery(string sqlCommand) { using (var connection = OpenConnection()) @@ -222,7 +168,7 @@ public virtual void PrepareDatabase() public override string ToString() { - return $"{DataStandardEngine}.v_{_dataStandardVersionName}"; + return $"{DataStandardEngine}.{DataStandardVersionFolderName}"; } public (bool success, string errorMessage) RunTestCase(string testCaseFile) diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessPostgres.cs b/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessPostgres.cs index ab32ca9a..8b80f463 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessPostgres.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessPostgres.cs @@ -7,6 +7,7 @@ using System.Diagnostics.CodeAnalysis; using Dapper; using EdFi.AnalyticsMiddleTier.Common; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using Npgsql; namespace EdFi.AnalyticsMiddleTier.Tests @@ -14,21 +15,15 @@ namespace EdFi.AnalyticsMiddleTier.Tests [SuppressMessage("ReSharper", "InconsistentNaming")] public class TestHarnessPostgres : TestHarnessBase { - public TestHarnessPostgres() - { - DataStandardEngine = Engine.PostgreSQL; - } + public static TestHarnessPostgres DataStandard32PG + = new TestHarnessPostgres(new PostgresDataStandardSettings(DataStandard.Ds32)); - public static TestHarnessPostgres DataStandard32PG = new TestHarnessPostgres + public static TestHarnessPostgres DataStandard33PG + = new TestHarnessPostgres(new PostgresDataStandardSettings(DataStandard.Ds33)); + + protected TestHarnessPostgres(IDataStandardSettings dataStandardSettings) : base(dataStandardSettings) { - _dataStandardBaseVersion = "v_3", - _dataStandardVersionName = "3_2", - _dataStandardFolderName = "3_2", - DataStandardEngine = Engine.PostgreSQL, - _dataStandardInstallType = typeof(DataStandard32.Install), - DataStandardVersion = DataStandard.Ds32, - _connectionString = new PostsgreConnectionStringDS32().ToString() - }; + } public override void PrepareDatabase() { @@ -38,11 +33,15 @@ public override void PrepareDatabase() using (var connection = OpenConnection()) { var truncateAllTablesLine = connection.ExecuteScalar( - @"SELECT 'TRUNCATE TABLE ' - || string_agg(format('%I.%I', schemaname, tablename), ', ') - || ' CASCADE' + @"SELECT 'TRUNCATE TABLE ' || string_agg(format('%I.%I', schemaname, tablename), ', ') || ' CASCADE' FROM pg_tables - WHERE tableowner = 'postgres' AND (schemaname = 'edfi' OR schemaname = 'analytics_config')"); + WHERE tableowner = 'postgres' + AND ( + schemaname = 'edfi' + OR schemaname = 'analytics_config' + OR schemaname = 'auth' + OR schemaname = 'util' + )"); if (!string.IsNullOrEmpty(truncateAllTablesLine)) { diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessSQLServer.cs b/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessSQLServer.cs index 82d5b261..d18efd2c 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessSQLServer.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestHarnessSQLServer.cs @@ -11,7 +11,7 @@ using System.Reflection; using Dapper; using EdFi.AnalyticsMiddleTier.Common; -using EdFi.AnalyticsMiddleTier.DataStandard2; +using EdFi.AnalyticsMiddleTier.Tests.DataStandardConfiguration; using Microsoft.SqlServer.Dac; namespace EdFi.AnalyticsMiddleTier.Tests @@ -19,51 +19,23 @@ namespace EdFi.AnalyticsMiddleTier.Tests [SuppressMessage("ReSharper", "InconsistentNaming")] public class TestHarnessSQLServer : TestHarnessBase { - public TestHarnessSQLServer() : base() - { - DataStandardEngine = Engine.MSSQL; - _mainDatabaseConnectionString = new SQLServerConnectionStringDS32().GetMainDatabaseConnectionString; - } + private string _snapshotName => $"{_databaseName}_ss"; - public static TestHarnessSQLServer DataStandard2 = new TestHarnessSQLServer - { - _dataStandardBaseVersion = "v_2", - _dataStandardVersionName = "2", - _databaseName = new SQLServerConnectionStringDS2().Database, - _dacpacName = "EdFi_Ods_2.0.dacpac", - _dataStandardInstallType = typeof(Install), - DataStandardVersion = DataStandard.Ds2, - _connectionString = new SQLServerConnectionStringDS2().ToString() - }; - - public static TestHarnessSQLServer DataStandard31 = new TestHarnessSQLServer - { - _dataStandardBaseVersion = "v_3", - _dataStandardVersionName = "3_1", - _dataStandardFolderName = "3_1", - _databaseName = new SQLServerConnectionStringDS31().Database, - _dacpacName = "EdFi_Ods_3.1.dacpac", - _dataStandardInstallType = typeof(DataStandard31.Install), - DataStandardVersion = DataStandard.Ds31, - _connectionString = new SQLServerConnectionStringDS31().ToString() - }; - - public static TestHarnessSQLServer DataStandard32 = new TestHarnessSQLServer - { - _dataStandardBaseVersion = "v_3", - _dataStandardVersionName = "3_2", - _dataStandardFolderName = "3_1", - _databaseName = new SQLServerConnectionStringDS32().Database, - _dacpacName = "EdFi_Ods_3.2.dacpac", - DataStandardEngine = Engine.MSSQL, - _dataStandardInstallType = typeof(DataStandard32.Install), - DataStandardVersion = DataStandard.Ds32, - _connectionString = new SQLServerConnectionStringDS32().ToString() - }; + public static TestHarnessSQLServer DataStandard2 + = new TestHarnessSQLServer(new SqlServerDataStandardSettings(DataStandard.Ds2)); - private string _snapshotName => $"{_databaseName}_ss"; + public static TestHarnessSQLServer DataStandard31 + = new TestHarnessSQLServer(new SqlServerDataStandardSettings(DataStandard.Ds31)); + + public static TestHarnessSQLServer DataStandard32 + = new TestHarnessSQLServer(new SqlServerDataStandardSettings(DataStandard.Ds32)); + + public static TestHarnessSQLServer DataStandard33 + = new TestHarnessSQLServer(new SqlServerDataStandardSettings(DataStandard.Ds33)); - private string _dacpacName; + protected TestHarnessSQLServer(IDataStandardSettings dataStandardSettings) : base(dataStandardSettings) + { + } public override void PrepareDatabase() { @@ -93,8 +65,8 @@ bool NotUsingSnapshots() //return true; const string analyticsMiddleTierNoSnapshots = "ANALYTICSMIDDLETIER_NO_SNAPSHOTS"; - var noSnapshotsEnvVar = Environment.GetEnvironmentVariable(analyticsMiddleTierNoSnapshots) ?? - "false"; + var noSnapshotsEnvVar = Environment.GetEnvironmentVariable(analyticsMiddleTierNoSnapshots) + ?? "false"; if (bool.TryParse(noSnapshotsEnvVar, out bool avoidSnapshot)) { @@ -148,7 +120,7 @@ DacDeployOptions CreateDeployOptions() string GetDacFilePath() { // ReSharper disable once AssignNullToNotNullAttribute - return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), _dacpacName); + return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), _databaseBackupFile); } void CreateSnapshot() diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/readme.md b/src/EdFi.AnalyticsMiddleTier.Tests/readme.md index 3fee2fef..05d7fcf2 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/readme.md +++ b/src/EdFi.AnalyticsMiddleTier.Tests/readme.md @@ -8,8 +8,8 @@ project operates: 1. Check to see if the target testing database exists on the localhost default database instance. 1. If not, then create it from the dacpac file for that specific Data - Standard. There is `EdFi_Ods_2.0.dacpac`, `EdFi_Ods_3.1.dacpac`, and - `EdFi_Ods_3.2.dacpac` for each Data Standard. These dacpac's contain all + Standard. There is `EdFi_Ods_2.0.dacpac`, `EdFi_Ods_3.1.dacpac`, `EdFi_Ods_3.2.dacpac` + and `EdFi_Ods_3.3.dacpac` for each Data Standard. These dacpac's contain all of the `edfi.*` tables from that specific Data Standard schema. 2. Next, create a database snapshot of the target database, because restoring from a snapshot is faster than dropping and recreating the @@ -37,18 +37,24 @@ There are a few considerations to make, when using these settings. Every time a new scenario is executed, the database is reset. Particularly for Postgres this means the project executes a Truncate statement on all the tables in the databases that belong to the schemas `edfi` and `analytics_config`. It’s very important to know this, because whatever data in this database exists, is going to be deleted. -At this point Postgres has been implemented for Data Standard 3.2 only. Therefore, just one database can be configured. This means you must make sure the database configured contains this data standard. +At this point Postgres has been implemented for Data Standard 3.2 and Data Standard 3.3. This means you must make sure these databases configured contain these data standards. -The database must exist before the tests can be executed. The tests framework doesn’t create the database for Postgres. +The databases must exist before the tests can be executed. The tests framework doesn’t create the databases for Postgres. ##### The settings `USE_POSTGRES_DEFAULT_CONN_STRING` = Whether we want to use the default connection string. By default it’s set to `TRUE`. -This is a very important setting. Internally the project has a hardcoded connection string. If you don’t change this value, then the rest of the settings will be ignored. This is the connection string used internally hardcoded: -`User ID=postgres;Host=localhost;Port=5432;Database=edfi_ods_tests;Pooling=false;` +This is a very important setting. Internally the project has a hardcoded connection string. If you don’t change this value, then the rest of the settings will be ignored. This is the connection string used internally hardcoded for data standard 3.2: + +`User ID=postgres;Host=localhost;Port=5432;Database=edfi_ods_tests_ds32;Pooling=false;` + +And this is the one for data standard 3.3: + +`User ID=postgres;Host=localhost;Port=5432;Database=edfi_ods_tests_ds33;Pooling=false;` `POSTGRES_HOST` = The host to connect to. -`POSTGRES_DATABASE` = The PostgreSQL database to connect to. Remember, all data here will be deleted. +`POSTGRES_DATABASE_DS32` = The PostgreSQL database with Data Standard 3.2 to connect to. Remember, all data here will be deleted. +`POSTGRES_DATABASE_DS33` = The PostgreSQL database with Data Standard 3.3 to connect to. Remember, all data here will be deleted. `POSTGRES_PORT` = Port used to get connected to Postgres. `POSTGRES_USER` = The username to connect with. `POSTGRES_PASS` = The password to connect with. @@ -73,6 +79,9 @@ This is a very important setting. Internally the project has a hardcoded connect `SQLSERVER_DATABASE_DS2` = The database with Data Standard 2 to connect to. `SQLSERVER_DATABASE_DS31` = The database with Data Standard 3.1 to connect to. `SQLSERVER_DATABASE_DS32` = The database with Data Standard 3.2 to connect to. +`SQLSERVER_DATABASE_DS33` = The database with Data Standard 3.3 to connect to. `SQLSERVER_INTEGRATED_SECURITY` = The type of user authentication. True corresponds to “Windows Authentication”, and False corresponds to “SQL Server Authentication”; `SQLSERVER_USER` = The username to connect with. `SQLSERVER_PASS` = The password to connect with. +`SQLSERVER_ADMIN_USER` = The MSSQL admin username to connect with (e.g. sa). +`SQLSERVER_ADMIN_PASS` = The MSSQL admin password to connect with. diff --git a/src/EdFi.AnalyticsMiddleTier.sln.DotSettings b/src/EdFi.AnalyticsMiddleTier.sln.DotSettings index ccfde5c4..43ebce23 100644 --- a/src/EdFi.AnalyticsMiddleTier.sln.DotSettings +++ b/src/EdFi.AnalyticsMiddleTier.sln.DotSettings @@ -19,4 +19,5 @@ True True True - True \ No newline at end of file + True + True \ No newline at end of file